Bug#510988: simpleopal: simpleopal example dies with segfault

Junichi Uekawa dancer at netfort.gr.jp
Tue Jan 6 23:25:11 UTC 2009


At Tue, 06 Jan 2009 16:39:44 +0100,
Eugen Dedu wrote:
> 
> Hum...  On my amd64 machine the command you gave works...
> 
> Could you also check with -I -H instead of -IHn ?
> 
> Also, simpleopal is one file only, would it be possible to you to 
> compile it yourself and look where the proble is?
> - apt-get install libopal3.4.2-dev
> - apt-get source libopal3.4.2
> - cd opal-3.4.2/samples/simple
> - make PTLIBDIR=/usr OPALDIR=/usr (maybe simply 'make' works also)
> and see if it works.
> 

I've built with debug symbols:

--- Makefile-	2009-01-07 08:18:18.159511055 +0900
+++ Makefile	2009-01-07 08:18:29.815167780 +0900
@@ -39,7 +39,7 @@
 CFLAGS += -g
 else
 DEBUG_SUFFIX=
-CFLAGS += -O3
+CFLAGS += -O3 -g
 endif
 
 ifeq ($(STATIC_BUILD), yes)



and 

(gdb) run -I -H  iax2:guest at misery.digium.com/s


[snip]

Initiating call to "iax2:guest at misery.digium.com/s"
[New Thread 0x4175a950 (LWP 13066)]
Press ? for help.
Command ? 
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x4175a950 (LWP 13066)]
0x00007f152a480821 in IAX2FrameList::AddNewFrame () from /usr/lib/libopal.so.3.4.2
(gdb) bt
#0  0x00007f152a480821 in IAX2FrameList::AddNewFrame () from /usr/lib/libopal.so.3.4.2
#1  0x00007f152a4aaa57 in IAX2Transmit::SendFrame () from /usr/lib/libopal.so.3.4.2
#2  0x00007f152a4a3065 in IAX2Processor::TransmitFrameToRemoteEndpoint () from /usr/lib/libopal.so.3.4.2
#3  0x00007f152a478349 in IAX2CallProcessor::ConnectToRemoteNode () from /usr/lib/libopal.so.3.4.2
#4  0x00007f152a478dfd in IAX2CallProcessor::ProcessLists () from /usr/lib/libopal.so.3.4.2
#5  0x00007f152a4a21dd in IAX2Processor::Main () from /usr/lib/libopal.so.3.4.2
#6  0x00007f15299e10ab in PThread::PX_ThreadStart () from /usr/lib/libpt.so.2.4.2
#7  0x00007f15294d6fc7 in start_thread () from /lib/libpthread.so.0
#8  0x00007f15270e25ad in clone () from /lib/libc.so.6
#9  0x0000000000000000 in ?? ()






Other threads:
(gdb) thread 1 
[Switching to thread 1 (Thread 0x7f152a9da6f0 (LWP 13062))]#0  0x00007f15270dbce2 in select () from /lib/libc.so.6
(gdb) bt
#0  0x00007f15270dbce2 in select () from /lib/libc.so.6
#1  0x00007f15299dfed2 in PThread::PXBlockOnIO () from /usr/lib/libpt.so.2.4.2
#2  0x00007f15299d4d06 in PChannel::PXSetIOBlock () from /usr/lib/libpt.so.2.4.2
#3  0x00007f15299d509c in PChannel::Read () from /usr/lib/libpt.so.2.4.2
#4  0x00007f15299d6230 in PChannelStreamBuffer::underflow () from /usr/lib/libpt.so.2.4.2
#5  0x00007f152787cca4 in std::istream::peek () from /usr/lib/libstdc++.so.6
#6  0x00000000004161c5 in MyManager::Main (this=0x111fa60, args=<value optimized out>) at main.cxx:1076
#7  0x0000000000417017 in SimpleOpalProcess::Main (this=0x11065b0) at main.cxx:362
#8  0x00007f1529a0d87d in PProcess::_main () from /usr/lib/libpt.so.2.4.2
#9  0x000000000040ead5 in main (argc=<value optimized out>, argv=<value optimized out>, envp=<value optimized out>) at main.cxx:65
(gdb) thread 2
[Switching to thread 2 (Thread 0x409d8950 (LWP 13063))]#0  0x00007f15294dafad in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
(gdb) bt
#0  0x00007f15294dafad in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f15299e0566 in PSyncPoint::Wait () from /usr/lib/libpt.so.2.4.2
#2  0x00007f152a0fd9d7 in OpalManager::GarbageMain () from /usr/lib/libopal.so.3.4.2
#3  0x00007f15299e10ab in PThread::PX_ThreadStart () from /usr/lib/libpt.so.2.4.2
#4  0x00007f15294d6fc7 in start_thread () from /lib/libpthread.so.0
#5  0x00007f15270e25ad in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()
(gdb) thread 3
[Switching to thread 3 (Thread 0x4152f950 (LWP 13064))]#0  0x00007f15294dad29 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
(gdb) bt
#0  0x00007f15294dad29 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f15299e070b in PSyncPoint::Wait () from /usr/lib/libpt.so.2.4.2
#2  0x00007f152a4a21d0 in IAX2Processor::Main () from /usr/lib/libopal.so.3.4.2
#3  0x00007f15299e10ab in PThread::PX_ThreadStart () from /usr/lib/libpt.so.2.4.2
#4  0x00007f15294d6fc7 in start_thread () from /lib/libpthread.so.0
#5  0x00007f15270e25ad in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()
(gdb) thread 4
[Switching to thread 4 (Thread 0x41570950 (LWP 13065))]#0  0x00007f15294dad29 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
(gdb) bt
#0  0x00007f15294dad29 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f15299e070b in PSyncPoint::Wait () from /usr/lib/libpt.so.2.4.2
#2  0x00007f152a492608 in IAX2IncomingEthernetFrames::Main () from /usr/lib/libopal.so.3.4.2
#3  0x00007f15299e10ab in PThread::PX_ThreadStart () from /usr/lib/libpt.so.2.4.2
#4  0x00007f15294d6fc7 in start_thread () from /lib/libpthread.so.0
#5  0x00007f15270e25ad in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()






More information about the Pkg-voip-maintainers mailing list