Re: What is cause of this error??



On Sat, 2003-02-01 at 14:03, beer wrote:
> Hi, 
> I have some error about my program.
> It make my program terminate.
>  
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 8192 (LWP 22876)]
> 0x420741b1 in malloc_consolidate () from /lib/i686/libc.so.6
> (gdb) bt
> #0  0x420741b1 in malloc_consolidate () from /lib/i686/libc.so.6
> #1  0x42073ab7 in _int_malloc () from /lib/i686/libc.so.6
> #2  0x42073155 in malloc () from /lib/i686/libc.so.6
> #3  0x403b4edd in g_try_malloc () from /usr/lib/libglib-2.0.so.0

Segfault inside malloc => you corrupted memory elsewhere in your
program. First thing to do (if you are under Linux) is try setting
the MALLOC_CHECK_ environment variable to 2. If that doesn't show
the error, you may want to try a tool such as valgrind or ElectricFence.

Regards,
                                       Owen





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]