Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Modula 3 > Stack Checking ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 135 of 148
Post > Topic >>

Stack Checking in modula3

by "demoitem" <peter.mckinna@[EMAIL PROTECTED] > Sep 25, 2006 at 04:18 AM

Hi,

 I was running down a problem with network objects producing a segv on
my linux box and finally discovered that the recursive pickler would
overflow the stack on a linked list of 25 or so items
which was documented in the pickle source.  On trying to reproduce the
problem I discovered that it only occurs in a thread (using the
threadposix model) which is not the main.  The main thread will
allocate as much stack as you like until you run out of virtual memory.


  I was wondering what options there are to give better diagnostics of
stack overflow than simple segv's in an m3 program. Presumably the
pthread model will duplicate the main thread model in allocation of
more stack until vm exhaustion.  At that point it would be nice to know
it was a stack problem and hence a probably recursive programming fault
than tracing through the nightmare of   possible library bugs.

Regards

Peter




 3 Posts in Topic:
Stack Checking in modula3
"demoitem" <  2006-09-25 04:18:35 
Re: Stack Checking in modula3
Olaf Wagner <wagner@[E  2006-10-09 08:13:54 
Re: Stack Checking in modula3
Riley <riley@[EMAIL PR  2006-10-09 15:39:40 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed May 14 5:57:50 CDT 2008.