Re: [Flightgear-devel] segfault in SimGear code
Ron Lange wrote: Hi Gerhard, certainly I examine the variables, as mentioned the last created thread try to access the properties, but the static property pointers don't point to valid memory regions. The 'vel' property node is just the first invalid, where the invalid access occured. The other two property nodes within this scope are invalid, too. Can anyone also cause this segfault by using with an .fgfsrc containing just one line --airport=EDHI --aircraft=bo105 --enable-game-mode Ron, Definitely you should put one option per line. The parser simply wasn't designed to accept input the way you have it. Regards, Curt. -- Curtis Olsonhttp://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
Re: [Flightgear-devel] segfault in SimGear code
Hi Gerhard, certainly I examine the variables, as mentioned the last created thread try to access the properties, but the static property pointers don't point to valid memory regions. The 'vel' property node is just the first invalid, where the invalid access occured. The other two property nodes within this scope are invalid, too. Can anyone also cause this segfault by using with an .fgfsrc containing just one line --airport=EDHI --aircraft=bo105 --enable-game-mode ? Regards Ron Gerhard Wesp schrieb: On Fri, Feb 11, 2005 at 04:14:15PM +0100, Ron Lange wrote: double v = vel->getDoubleValue(); <= segfault Can you check vel in the debugger? Just set a breakpoint one line above and enter ``print vel'' (in gdb). Cheers -Gerhard ___ Flightgear-devel mailing list Flightgear-devel@flightgear.org http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d
Re: [Flightgear-devel] segfault in SimGear code
On Fri, Feb 11, 2005 at 04:14:15PM +0100, Ron Lange wrote: >double v = vel->getDoubleValue(); <= segfault Can you check vel in the debugger? Just set a breakpoint one line above and enter ``print vel'' (in gdb). Cheers -Gerhard -- Gerhard Wesp o o Tel.: +41 (0) 43 5347636 Bachtobelstrasse 56 | http://www.cosy.sbg.ac.at/~gwesp/ CH-8045 Zuerich \_/ See homepage for email address! ___ Flightgear-devel mailing list Flightgear-devel@flightgear.org http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d
Re: [Flightgear-devel] segfault in SimGear code
Hm...hmmm...since putting one flag per line in .fgfsrc wasn't satisfying (not starting from EDHI nor with the bo-105...) I put all flags in one row. Then everything goes as desired but the game mode...after adding enabel-game-mode the segfault appeared. Regards Ron Martin Spott schrieb: Jorge Van Hemelryck wrote: Could you make sure that there is only one option per line in the .fgfsrc file ? It looks like the parser is trying to set the airport from the string "EDHI --aircraft=bo105 --enable-game-mode"... Aaah, your comment reminds me that the parser is unable to parse multiple options per line from the ~/.fgfsrc file - although I always had the impression that the parser simply ignores the following flags (it still would be nice if the parser could cope with multiple flags), Martin. ___ Flightgear-devel mailing list Flightgear-devel@flightgear.org http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d
Re: [Flightgear-devel] segfault in SimGear code
Jorge Van Hemelryck wrote: > Could you make sure that there is only one option per line in the > .fgfsrc file ? It looks like the parser is trying to set the airport > from the string "EDHI --aircraft=bo105 --enable-game-mode"... Aaah, your comment reminds me that the parser is unable to parse multiple options per line from the ~/.fgfsrc file - although I always had the impression that the parser simply ignores the following flags (it still would be nice if the parser could cope with multiple flags), Martin. -- Unix _IS_ user friendly - it's just selective about who its friends are ! -- ___ Flightgear-devel mailing list Flightgear-devel@flightgear.org http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d
Re: [Flightgear-devel] segfault in SimGear code
On Fri, 11 Feb 2005 16:14:15 +0100 Ron Lange wrote: > sorry, not the *commandline* below causes fg to break but similar > .fgfsrc file... > > > fgfs --airport=EDHI --aircraft=bo105 --enable-game-mode > > # > > Again, only a present .fgfsrc with similar content causes a segfault, > the commandline let fg regulary start. > Second hint: following message appeared twice: > > Failed to find runway 28R at airport EDHI --aircraft=bo105 > --enable-game-mode > Failed to find a good runway for EDHI --aircraft=bo105 --enable-game-mode Could you make sure that there is only one option per line in the .fgfsrc file ? It looks like the parser is trying to set the airport from the string "EDHI --aircraft=bo105 --enable-game-mode"... -- Jorge Van Hemelryck ___ Flightgear-devel mailing list Flightgear-devel@flightgear.org http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d
Re: [Flightgear-devel] segfault in SimGear code
sorry, not the *commandline* below causes fg to break but similar .fgfsrc file... fgfs --airport=EDHI --aircraft=bo105 --enable-game-mode # Again, only a present .fgfsrc with similar content causes a segfault, the commandline let fg regulary start. Second hint: following message appeared twice: Failed to find runway 28R at airport EDHI --aircraft=bo105 --enable-game-mode Failed to find a good runway for EDHI --aircraft=bo105 --enable-game-mode gdb session points on Autopilot/xmlauto.cxx:804 ff static void update_helper( double dt ) { // Estimate speed in 5,10 seconds static SGPropertyNode *vel = fgGetNode( "/velocities/airspeed-kt", true ); static SGPropertyNode *lookahead5 = fgGetNode( "/autopilot/internal/lookahead-5-sec-airspeed-kt", true ); static SGPropertyNode *lookahead10 = fgGetNode( "/autopilot/internal/lookahead-10-sec-airspeed-kt", true ); static double average = 0.0; // average/filtered prediction static double v_last = 0.0; // last velocity double v = vel->getDoubleValue(); <= segfault obvisously the last thread has no longer access to valid property nodes. Regards Ron ___ Flightgear-devel mailing list Flightgear-devel@flightgear.org http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d
[Flightgear-devel] segfault in SimGear code
Hi, I have just updated to fg 0.9.8 and got also the most recent versions of the other stuff. Certainly. In windowed mode it is running fine, but I just start fg with game mode enabled. Result:a segfault :-( To prevent digging into your source code I just attach the gdb backtrace. Regards Ron # commandline: fgfs --airport=EDHI --aircraft=bo105 --enable-game-mode # Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1024 (LWP 16324)] SGPropertyNode::getDoubleValue (this=0x776e7572) at props.cxx:1117 1117 if (_attr == (READ|WRITE) && _type == DOUBLE) (gdb) bt #0 SGPropertyNode::getDoubleValue (this=0x776e7572) at props.cxx:1117 #1 0x08383fce in update_helper (dt=0) at xmlauto.cxx:815 #2 0x0838475a in FGXMLAutopilot::update (this=0x9fd4cd8, dt=0) at xmlauto.cxx:942 #3 0x0855449b in SGSubsystemGroup::Member::update (this=0x9fd4cf8, delta_time_sec=0) at subsystem_mgr.cxx:225 #4 0x08553de2 in SGSubsystemGroup::update (this=0x8b6f3dc, delta_time_sec=0) at subsystem_mgr.cxx:115 #5 0x0855480c in SGSubsystemMgr::update (this=0x8b6f3c0, delta_time_sec=0) at subsystem_mgr.cxx:278 #6 0x08051ae8 in fgMainLoop () at main.cxx:451 #7 0x080a0481 in GLUTidle () at fg_os.cxx:113 #8 0x400571c6 in idleWait () from /usr/lib/libglut.so.3 #9 0x080554ce in fgMainInit (argc=1, argv=0xbfffe674) at main.cxx:958 #10 0x0804fff5 in main (argc=1, argv=0xbfffe674) at bootstrap.cxx:192 #11 0x403e67ee in __libc_start_main () from /lib/libc.so.6 ### ___ Flightgear-devel mailing list Flightgear-devel@flightgear.org http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d