I did some more digging and tracked down the offending subsystem. I will contact the developer off line and hopefully this will be a simple fix.

Curt.


Curtis L. Olson wrote:

This problem affects 2d panels. With 2d panels you can have multiple panel versions and switch between them with the 's' key.

Very recently FG has started generating a segfault whenever you type 's' to toggle to a minipanel.

This can be reproduced by starting FlightGear with --aircraft=c172p-2dpanel

Once FlightGear is up and running, type 's' to switch to the mini panel. FlightGear will immediate crash. (This was working fine up until a week or two ago.)

The backtrace I get is:

#0  0x08435d2d in SGSubsystemGroup::Member::update (this=0xde5f2d8,
   delta_time_sec=0.32500000000000001) at subsystem_mgr.cxx:236
#1  0x08435f80 in SGSubsystemGroup::update (this=0x979db9c,
   delta_time_sec=0.32500000000000001) at stl_vector.h:462
#2  0x08435e56 in SGSubsystemMgr::update (this=0x979db94,
   delta_time_sec=0.32500000000000001) at subsystem_mgr.cxx:297
#3  0x08051df2 in fgMainLoop () at main.cxx:495
#4  0xb7fccd20 in glutMainLoop () from /usr/lib/libglut.so.3
#5  0x08054a88 in fgMainInit (argc=2, argv=0xbf8f5bc4) at main.cxx:1007
#6  0x08050e50 in main (argc=2, argv=0xbf8f5bc4) at bootstrap.cxx:193

This indicates the crash is in simgear/structure/subsystem_mgr.cxx, line #236:

void
SGSubsystemGroup::Member::update (double delta_time_sec)
{
   elapsed_sec += delta_time_sec;
   if (elapsed_sec >= min_step_sec) {
       if (!subsystem->is_suspended()) {
           subsystem->update(elapsed_sec);
           elapsed_sec = 0;
       }
   }
}

The specific line of the crash is when the system checks if the subsystem->is_suspended().

Does anyone have any ideas what may have changed recently to cause this crash? This is a feature I use and need, I'm not just nitpicking the random segfaults I see in FG.

Thanks,

Curt.



--
Curtis Olson        http://www.flightgear.org/~curt
HumanFIRST Program  http://www.humanfirst.umn.edu/
FlightGear Project  http://www.flightgear.org
Unique text:        2f585eeea02e2c79d7b1d8c4963bae2d


_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to