comp.lang.ada
 help / color / mirror / Atom feed
From: awdorrin <awdorrin@gmail.com>
Subject: Re: Stumped: Seg Fault with System.Secondary_Stack.SS_Mark()
Date: Fri, 7 Sep 2012 07:38:48 -0700 (PDT)
Date: 2012-09-07T07:38:48-07:00	[thread overview]
Message-ID: <cdb623ff-341f-42e6-ae30-dd5236476de9@googlegroups.com> (raw)
In-Reply-To: <0b591914-1915-4c8b-b0d5-ebf188fc2de4@googlegroups.com>

I have done some more investigation this morning.

As suggested, I removed the string concat in the ADD_TO_Q() call.
Checking the rde_b.ada.dg file showed that there was no references to the secondary stack, within that function. (Unfortunately, looking at all the other .dg files generated, I saw over 5000 references to usage of the secondary stack.)

I verified that each pthread is being provided with 8MB of space for their stack. (This program starts off from C and spawns threads, which are mixed Ada and C.)

I'm not yet sure how to verify the default stack/secondary stack sizes in GNAT (although I've seen the -d/-D gnat flags for explicitly setting the sizes) - still researching.

Yesterday, this program could run for random amounts of time before seg faulting, sometimes over 30 minutes, so I have it running again to see what I can get to happen. I figure it very well could crash in another routine which uses the secondary stack - until I figure out what the root cause is...



  reply	other threads:[~2012-09-07 14:38 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-06 19:34 Stumped: Seg Fault with System.Secondary_Stack.SS_Mark() awdorrin
2012-09-06 19:57 ` Ludovic Brenta
2012-09-06 20:53   ` awdorrin
2012-09-06 21:18     ` Ludovic Brenta
2012-09-06 22:13       ` awdorrin
2012-09-07 14:38         ` awdorrin [this message]
2012-09-07 14:55           ` Ludovic Brenta
2012-09-07 15:35           ` Simon Wright
2012-09-07 16:18             ` awdorrin
2012-09-07 16:31               ` awdorrin
2012-09-07 17:07                 ` Simon Wright
2012-09-07 17:50                   ` awdorrin
2012-09-08 13:23                     ` francois_fabien
2012-09-10 13:50                       ` awdorrin
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox