From: Jean-Baptiste CAMPESATO <camje_lemon@nospam.a2lf.org>
Subject: Re: GNAT.Sockets Segfault in a task
Date: Sun, 03 Apr 2005 14:34:06 +0200
Date: 2005-04-03T14:32:07+02:00 [thread overview]
Message-ID: <pan.2005.04.03.12.34.06.221567@nospam.a2lf.org> (raw)
In-Reply-To: EbCdnVQRI7HvfNLfRVn-tg@comcast.com
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
next prev parent reply other threads:[~2005-04-03 12:34 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-03 9:16 GNAT.Sockets Segfault in a task Jean-Baptiste CAMPESATO
2005-04-03 12:28 ` Jeff C
2005-04-03 12:34 ` Jean-Baptiste CAMPESATO [this message]
2005-04-03 13:28 ` Pascal Obry
2005-04-03 13:35 ` Jean-Baptiste CAMPESATO
2005-04-03 15:17 ` Jean-Baptiste CAMPESATO
2005-04-03 18:08 ` tmoran
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox