[Live-devel] Segmentation fault (signal 11) in Red Hat Enterprise 4

Pablo Estebanez pabloestebanez at hotmail.com
Tue Jan 24 13:23:31 PST 2006


Hi, guys.

I've been working for weeks with RHE 3 (kernel 2.4) with no problems with 
liveMedia libraries and test programs. But we've been forced tu upgrade 
ourselves to RHE 4 (with kernel 2.6).
With this change, a lot of segmentation faults are happening. Even, there is 
a moment (now) when we get only this signal each time we do something.

I've recompiled everything with -g option. Running basic test openRTSP, with 
192.168.1.58 being a MP4 camera, gets that:

$ ./openRTSP rtsp://192.168.1.58/live.sdp
Opened URL "rtsp://192.168.1.58/live.sdp", returning a SDP description:
v=0
o=RTSP 1138106801 115 IN IP4 192.168.1.58
s=RTSP server
c=IN IP4 192.168.1.58
t=0 0
a=charset:Shift_JIS
a=range:npt=0-
a=control:*
a=etag:1234567890
m=video 0 RTP/AVP 96
a=rtpmap:96 MP4V-ES/30000
a=control:live.m4v
a=fmtp:96 
profile-level-id=8;config=000001B008000001B509000001000000012000845D4C282C2090A21F;decode_buf=12672
m=audio 0 RTP/AVP 97
b=AS:5
a=rtpmap:97 AMR/8000
a=control:live.amr
a=maxptime:200
a=fmtp:97 octet-align=1;crc=0;robust-sorting=0;decode_buf=400

Segmentation fault (core dumped)

---------------------------------------------------

And the info from gdb is that below:

GNU gdb Red Hat Linux (6.3.0.0-1.91rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain 
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...Using host libthread_db 
library "/lib/tls/libthread_db.so.1".

Core was generated by `./openRTSP rtsp://192.168.1.58/live.sdp'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libstdc++.so.6...done.
Loaded symbols for /usr/lib/libstdc++.so.6
Reading symbols from /lib/tls/libm.so.6...done.
Loaded symbols for /lib/tls/libm.so.6
Reading symbols from /lib/libgcc_s.so.1...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /lib/tls/libc.so.6...done.
Loaded symbols for /lib/tls/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
#0  0x0806b7c2 in RTPInterface::startNetworkReading (this=0x8dfde34,
    handlerProc=0x806c3d8 
<RTCPInstance::incomingReportHandler(RTCPInstance*, int)>)
    at ../UsageEnvironment/include/UsageEnvironment.hh:69
69        virtual int getErrno() const = 0;
(gdb) backtrace
#0  0x0806b7c2 in RTPInterface::startNetworkReading (this=0x8dfde34,
    handlerProc=0x806c3d8 
<RTCPInstance::incomingReportHandler(RTCPInstance*, int)>)
    at ../UsageEnvironment/include/UsageEnvironment.hh:69
#1  0x0806d095 in RTCPInstance (this=0x8dfde00, env=@0x8df80e0, RTCPgs=0x0, 
totSessionBW=500,
    cname=0x8dfd710 "proliantux", sink=0x0, source=0x8dfdd30, isSSMSource=0) 
at RTCP.cpp:157
#2  0x0806d0e2 in RTCPInstance::createNew (env=@0x8df80e0, RTCPgs=0x0, 
totSessionBW=500, cname=0x8dfd710 "proliantux",
    sink=0x0, source=0x8dfdd30, isSSMSource=0) at RTCP.cpp:186
#3  0x080783e3 in MediaSubsession::initiate (this=0x8dfd720, 
useSpecialRTPoffset=-1) at include/MediaSession.hh:267
#4  0x0804be5c in main ()
Current language:  auto; currently c++
(gdb) q

------------------------------------------------

I believe there are issues relating linux libraries, but don't understand 
very well the liveMedia core. It sounds strange: a fault in getErrno() ? And 
much more strange: usually, after a while (five minutes, half an hour...) 
the situation become stable again.

I hope some of you can help me.

Thx a lot !!

_________________________________________________________________
Un amor, una aventura, compañía para un viaje. Regístrate gratis en MSN Amor 
& Amistad. http://match.msn.es/match/mt.cfm?pg=channel&tcid=162349



More information about the live-devel mailing list