[Asterisk-Users] Oh323 segmentation fault in asterisk...

Chris Ziomkowski cziom at jsg.co.th
Tue Oct 28 03:12:50 MST 2003


This looks like the same case as the thread:

Problem ATA-711-723-Oh323-Asterisk that was posted back in August.

Although, given the nature of trampled memory problems it could be almost 
anything.

The Oh323 library dies in a call to realloc. This is almost certainly 
indicative of someone stomping on memory somewhere previously, or else a 
memory bug in the pwlib library itself. (Which I find hard to believe given 
the several years its been around.) My suspicion is an out of bounds memory 
access previously.

Here is the trace:

(gdb) where
#0  0x4207b2ef in chunk_realloc () from /lib/i686/libc.so.6
#1  0x4207b1f8 in realloc () from /lib/i686/libc.so.6
#2  0x489d2176 in PAbstractArray::SetSize ()
    from /usr/local/lib/libpt_linux_x86_r.so.1.5.2
#3  0x489d1a3d in PContainer::SetMinSize ()
    from /usr/local/lib/libpt_linux_x86_r.so.1.5.2
#4  0x483eedd7 in RTP_DataFrame::SetPayloadSize ()
    from /usr/local/lib/libh323_linux_x86_r.so.1.12.2
#5  0x483d73c9 in H323_RTPChannel::Transmit ()
    from /usr/local/lib/libh323_linux_x86_r.so.1.12.2
#6  0x483d497c in H323LogicalChannelThread::Main ()
    from /usr/local/lib/libh323_linux_x86_r.so.1.12.2
#7  0x489ca634 in PThread::PX_ThreadStart ()
    from /usr/local/lib/libpt_linux_x86_r.so.1.5.2
#8  0x4003bfef in pthread_start_thread () from /lib/i686/libpthread.so.0
#9  0x4003c0df in pthread_start_thread_event () from /lib/i686/libpthread.so.0

This happens the instant the call connects to Asterisk, exactly as the 
previous poster back in August described.  Tried various frame sizes, 
nothing seems to help. G.711 is the only codec in common between the 2 
systems. (Quintum A400 Tenor and Asterisk).

Does anyone know if this previous issue was ever resolved, and if so, 
how?  I have to make this work, and tracking down a bad memory access in 
unfamiliar code is a task so unappealing that I'd place it right behind 
pulling off my fingernails and pouring salt over the open wounds. (Not to 
mention I am not a C++ person at all, so digging through the Oh323 code 
will prove a formidable challenge.)

Are other people having success with Oh323 and G.711? If so, can anyone 
send me the oh323.conf that they are using? Perhaps it is a combination of 
flags that causes the issue.

Otherwise, can anyone suggest a place to start/offer assistance?

Thanks,

Chris Ziomkowski




More information about the asterisk-users mailing list