[EMAIL PROTECTED] wrote:
>
----------------------------------------------------------------------------

 > [root@clue5 mmfsd]# gdb ./mmfsd -s ./mmfsd.map
 > GNU gdb 20001124
 > (gdb) run
 > Program received signal SIGSEGV, Segmentation fault.
 > [Switching to Thread 1026 (LWP 20084)]
 > 0x20000000001fa170 in chunk_alloc () from /lib/libc.so.6.1
 >
----------------------------------------------------------------------------

I've gotten this problem absolutely reproducibly without threads when
accidentally freeing a structure before freeing an element of the
structure.  e.g.:

    free (data);
    free (data->elem1);
    free (data->elem2);

The code runs happily through the 'free' commands and SEGVs on a later
(maybe next, didn't check) call to malloc.

Derek

--
Derek Price                      CVS Solutions Architect ( http://CVSHome.org )
mailto:[EMAIL PROTECTED]     OpenAvenue ( http://OpenAvenue.com )
--
HAMLET  Ha, ha!  Are you honest?
OPHELIA  My lord?
HAMLET  Are you fair?
OPHELIA  What means your lordship?
HAMLET  That if you be honest and fair, you honesty
  should admit no discourse to your beauty.

     - Hamlet, Act III, Scene 1, Lines 103-108



_______________________________________________
Bug-gdb mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-gdb

Reply via email to