From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,51cac8d4f3a458ad X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news3.google.com!news2.google.com!proxad.net!freenix!news.wanadoo.fr!news.wanadoo.fr!not-for-mail From: Jean-Baptiste CAMPESATO Organization: a2lf - Association pour le Logiciel Libre Francophone Subject: Re: GNAT.Sockets Segfault in a task Date: Sun, 03 Apr 2005 14:34:06 +0200 User-Agent: Pan/0.14.2.91 (As She Crawled Across the Table) Message-Id: Newsgroups: comp.lang.ada References: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8bit NNTP-Posting-Date: 03 Apr 2005 14:32:07 CEST NNTP-Posting-Host: 83.200.98.117 X-Trace: 1112531527 news.wanadoo.fr 19320 83.200.98.117:37556 X-Complaints-To: abuse@wanadoo.fr Xref: g2news1.google.com comp.lang.ada:10249 Date: 2005-04-03T14:32:07+02:00 List-Id: Le Sun, 03 Apr 2005 08:28:56 -0400, Jeff C a �crit�: > Jean-Baptiste CAMPESATO wrote: >> re-Hello :) >> To begin my code is here : http://www.a2lf.org/chttpd/. >> At httpd.adb, line 81, I've "Message:String := String'Input(Channel);" In >> a procedure called by a task. And i get a Segfault sometimes when I >> receive a text from the Socket. >> I already tested to make a task type reather than a task, and I've always >> this problem. >> Somebody know what's the problem ? >> Thanks a lot. > > Perhaps you are blowing the stack for the task? GNAT does not enable > storage error for stack errors be default (you must build with > -fstack-check). > > When you made it a task type did you try setting a large stack for the > task type? Hello, with -fstack-check I got : camje_lemon@pc3:~/prog/ada/httpd$ \_o< $./main Connection de 127.0.0.1:37560 de 127.0.0.1:37560 Connection de 127.0.0.1:37562 raised STORAGE_ERROR : stack overflow detected ----------------------------------------------- And at the first input Message is empty : "" de 127.0.0.1:37560 ----------------------------------------------- If nobody can help me, i will use AdaSockets :). Thanks