[Asterisk-Dev] H323 segfault .... PPC

Reini Urban r.urban at inode.at
Mon Jun 2 03:40:16 MST 2003


That's a typical malloc problem I encounter often.

Some other pointer (the previous in the malloc reserved chunk)
overwrote past its end. so this pointer cannot be deleted anymore.

it's quite hard to detect the broken alloc/new/memcpy/strcpy.
please check with valgrind or dmalloc (dmalloc.org). valgrind is usually 
better.


Iain Stevenson wrote:
> 
> ... been playing with chan_h323 on my ppc * system.  It seems to fall 
> over a bit on startup although not every time.  Here's the backtrace:
> 
> (gdb) bt
> #0  chunk_free (ar_ptr=0xfe43b60, p=0x100d24e0) at malloc.c:3179
> #1  0xfd8e808 in __libc_free (mem=0xfe43b60) at malloc.c:3153
> #2  0xdd53288 in __builtin_delete (ptr=0xfe43b60)
>    at /dist/rpm/BUILD/gcc/BUILD/gcc-2.95.4/gcc/cp/new2.cc:54
> #3  0xeedeed8 in PContainer::Destruct () from 
> /root/pwlib/lib/libpt_linux_ppc_r.so.1
> #4  0xeec8138 in PThread::PX_ThreadStart () from 
> /root/pwlib/lib/libpt_linux_ppc_r.so.1
> #5  0xffad450 in pthread_start_thread (arg=0xfe43b60) at manager.c:291
> #6  0xfded8bc in clone () at soinit.c:76
> 
> This is with the latest ptlib and openh323 updated to current cvs.
-- 
Reini Urban - Programmer - http://inode.at




More information about the asterisk-dev mailing list