[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gdb pthread? problem on IA64 turbolinux
From: |
Derek R. Price |
Subject: |
Re: gdb pthread? problem on IA64 turbolinux |
Date: |
Mon, 08 Jan 2001 18:25:47 GMT |
address@hidden wrote:
>
----------------------------------------------------------------------------
> address@hidden 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:address@hidden 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: gdb pthread? problem on IA64 turbolinux,
Derek R. Price <=