[Live-devel] Segmentation fault in BasicTaskScheduler::SingleStep()

Aeschbacher Fabrice Fabrice.Aeschbacher at siemens.com
Fri Oct 29 16:48:48 PDT 2004


Hi,

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.

Do you have any idea?

Below the debugger trace:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1218563968 (LWP 370)]
0x0808a12f in BasicTaskScheduler::SingleStep(unsigned) (this=0x9bf2eb0,
maxDelayTime=0)
    at BasicTaskScheduler.cpp:99
99          if (FD_ISSET(handler->socketNum, &readSet) &&
Current language:  auto; currently c++
(gdb) bt
#0  0x0808a12f in BasicTaskScheduler::SingleStep(unsigned)
(this=0x9bf2eb0, maxDelayTime=0)
    at BasicTaskScheduler.cpp:99
#1  0x08089a8d in BasicTaskScheduler0::doEventLoop(char*)
(this=0x9bf2eb0, watchVariable=0x0)
    at BasicTaskScheduler0.cpp:74

Best regards,
Fabrice Aeschbacher



More information about the live-devel mailing list