[Live-devel] Segmentation fault inBasicTaskScheduler::SingleStep()

Aeschbacher Fabrice Fabrice.Aeschbacher at siemens.com
Tue Nov 2 11:52:36 PST 2004


Hi,

I compiled all (libs + my code) with -g. 

Now I am trying using "turnOnBackgroundReadHandling()". I allways get a
segfault, but now in some other place:

========================================================================
========
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1218568064 (LWP 15494)]
0x0806e1e4 in MultiFramedRTPSink::afterGettingFrame1(unsigned, unsigned,
timeval, unsigned) (
    this=0x944bd28, frameSize=3532, numTruncatedBytes=0,
presentationTime=
      {tv_sec = 1099391828, tv_usec = 132661},
durationInMicroseconds=500000)
    at MultiFramedRTPSink.cpp:213
213         if ((fPreviousFrameEndedFragmentation
Current language:  auto; currently c++
(gdb) bt
#0  0x0806e1e4 in MultiFramedRTPSink::afterGettingFrame1(unsigned,
unsigned, timeval, unsigned)
 (this=0x944bd28, frameSize=3532, numTruncatedBytes=0, presentationTime=
      {tv_sec = 1099391828, tv_usec = 132661},
durationInMicroseconds=500000)
    at MultiFramedRTPSink.cpp:213
#1  0x0806e0ef in MultiFramedRTPSink::afterGettingFrame(void*, unsigned,
unsigned, timeval, uns
igned) (clientData=0x944bd28, numBytesRead=3532, numTruncatedBytes=0, 
    durationInMicroseconds=500000) at MultiFramedRTPSink.cpp:185
#2  0x0805296e in FramedSource::afterGetting(FramedSource*)
(source=0x2d80ac9f)
    at FramedSource.cpp:115
#3  0x0808a2b6 in BasicTaskScheduler::SingleStep(unsigned)
(this=0x92d6eb0, maxDelayTime=0)
    at BasicTaskScheduler.cpp:102
#4  0x08089bdd in BasicTaskScheduler0::doEventLoop(char*)
(this=0x92d6eb0, watchVariable=0x0)
    at BasicTaskScheduler0.cpp:74
#5  0x0805164f in HalStreamer::start() ()
#6  0x080504b6 in main ()
(gdb)
========================================================================
========

Note: I am using a TCP source (corresponging to a video source from
/dev/xxx on localhost; this is the way the (non-reentrant) device is
multiplexed). I also tried setting TCP_NODELAY, which  hasn't changed
anything.

Best regards,
Fabrice Aeschbacher


> -----Original Message-----
> From: live-devel-bounces at ns.live.com 
> [mailto:live-devel-bounces at ns.live.com] On Behalf Of Ross Finlayson
> Sent: Freitag, 29. Oktober 2004 20:48
> To: LIVE.COM Streaming Media - development & use
> Subject: Re: [Live-devel] Segmentation fault 
> inBasicTaskScheduler::SingleStep()
> 
> 
> 
> >I wrote a class based on DeviceSource model. When reading 
> from a file, 
> >all works fine. But when reading from a socket, the program fails 
> >(segmentation fault). The debugger (gdb) says that the instruction 
> >causing the segfault is in BasicTaskScheduler::SingleStep, line 99.
> 
> Did you also compile the code with the "-g" flag?  (You can 
> do this by 
> adding "-g" to the COMPILE_OPTS definition in your "config.*" 
> file.)  This 
> should cause gdb to report the error more accurately.
> 
> >Do you have any idea?
> 
> Unfortunately, not.
> 
> Note: Because you're reading from a socket, though, make sure 
> that you call 
> "turnOnBackgroundReadHandling()" on it beforehand.  (I don't 
> know if this 
> is related to your crash, though.)
> 
> 
> 	Ross Finlayson
> 	LIVE.COM
> 	<http://www.live.com/>
> 
> _______________________________________________
> live-devel mailing list
> live-devel at lists.live.com 
> http://lists.live.com/mailman/listinfo/live-> devel
> 



More information about the live-devel mailing list