-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
person getStage(id, -1) crashes sumo #7336
Comments
If you run sumoD with valgrind (under Linux) you get this info ==132033== Invalid read of size 8 I think the programm tries to comute the distance to a vehicle, which is deleted. |
To reproduce the error on Linux run the script demi-i_hs.py with the option --gdb and start parallel a sumoD with gdb or valgrind |
Running the scenario of Dillip you get for some persons this stack trace
SumoCrash.tar.gz
Program received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()
(gdb) bt
#0 0x0000000000000000 in ?? ()
#1 0x00005555562a14de in MSStageDriving::getDistance (this=0x5555584dd930) at /dosd/src/opensource/Sumo/sumo-git-co/sumo/src/microsim/transportables/MSStageDriving.cpp:134
#2 0x00005555560582b9 in libsumo::Person::getStage (personID="2364", nextStageIndex=-1) at /dosd/src/opensource/Sumo/sumo-git-co/sumo/src/libsumo/Person.cpp:234
#3 0x0000555555ff2379 in TraCIServerAPI_Person::processGet (server=..., inputStorage=..., outputStorage=...) at /dosd/src/opensource/Sumo/sumo-git-co/sumo/src/traci-server/TraCIServerAPI_Person.cpp:63
#4 0x0000555555fdbe6e in TraCIServer::dispatchCommand (this=0x5555569247a0) at /dosd/src/opensource/Sumo/sumo-git-co/sumo/src/traci-server/TraCIServer.cpp:752
#5 0x0000555555fdb3b7 in TraCIServer::processCommandsUntilSimStep (this=0x5555569247a0, step=1935000) at /dosd/src/opensource/Sumo/sumo-git-co/sumo/src/traci-server/TraCIServer.cpp:602
#6 0x0000555555e21756 in MSNet::simulationStep (this=0x555556939660) at /dosd/src/opensource/Sumo/sumo-git-co/sumo/src/microsim/MSNet.cpp:524
#7 0x0000555555e1f08b in MSNet::simulate (this=0x555556939660, start=0, stop=36000000) at /dosd/src/opensource/Sumo/sumo-git-co/sumo/src/microsim/MSNet.cpp:355
#8 0x0000555555e1c29c in main (argc=2, argv=0x7fffffffdb98) at /dosd/src/opensource/Sumo/sumo-git-co/sumo/src/sumo_main.cpp:107
(gdb) up
#1 0x00005555562a14de in MSStageDriving::getDistance (this=0x5555584dd930) at /dosd/src/opensource/Sumo/sumo-git-co/sumo/src/microsim/transportables/MSStageDriving.cpp:134
134 return myVehicle->getOdometer() - myVehicleDistance;
(gdb) p *myVehicle
$1 = { = { = {_vptr.Named = 0x555557eba000, myID = " \347\036XUU\000"}, }, }
The text was updated successfully, but these errors were encountered: