Re: segmentation fault in t_splay() calling Tcl_Alloc()

From: Ralf Fassel (ralfixx_at_gmx.de)
Date: 10/06/03


Date: 06 Oct 2003 20:59:45 +0200


* adavis@addpower.com (Anthony Davis)
| Let me first start this message by stating that I believe this to be
| an error in gcc,

Hmm... given the evidence you produced so far, most honorable
opponent, I dare to draw your attention towards other possible
culprits...

| ... and I am getting a segmentation fault in the libc function
| t_splay() after calling Tcl_Alloc() in my application.

Usually segfaults like these result from memory corruption,
i.e. you're thrashing malloc's stack somewhere else, and only at the
next malloc the effect becomes visible.

Does your program call malloc()/free() itself besides Tcl_Alloc()?
Have you checked the pointers there?

R'



Relevant Pages