View Issue Details

IDProjectCategoryView StatusLast Update
0003450Path[FreeCAD] Bugpublic2018-05-05 09:28
ReportersliptonicAssigned To 
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionfixed 
Product Version[FreeCAD] 0.17 
Target VersionFixed in Version[FreeCAD] 0.18 
Summary0003450: Path simulation crashes with unusual setups.
DescriptionUnder certain reproducible situations, the simulator will fail and cause FreeCAD to segfault. These conditions aren't typical but also not very rare.

Two that I've found:
Attempting to simulate with no operations in the Job.
Attempting to simulate with only a custom operation in the job.
Steps To ReproduceCreate a job.
Add NO operations.
Click the Simulator button.
Click either ok or cancel.
freecad segfaults.
TagsNo tags attached.

Activities

sliptonic

2018-05-02 19:45

developer   ~0011221

[code=]Program received signal SIGSEGV, Segmentation fault.
#0 /lib/x86_64-linux-gnu/libc.so.6(+0x354b0) [0x7f0a1af904b0]
#1 0x7f09930f972f in cStock::ApplyLinearTool(Point3D&, Point3D&, cSimTool&) from /home/brad/FCD/FC/Mod/Path/PathSimulator.so+0x7d
#2 0x7f09930f6d14 in PathSimulator::PathSim::ApplyCommand(Base::Placement*, Path::Command*) from /home/brad/FCD/FC/Mod/Path/PathSimulator.so+0xec
#3 0x7f09930fe181 in PathSimulator::PathSimPy::ApplyCommand(_object*, _object*) from /home/brad/FCD/FC/Mod/Path/PathSimulator.so+0xed
#4 0x7f09930fcefa in PathSimulator::PathSimPy::staticCallback_ApplyCommand(_object*, _object*, _object*) from /home/brad/FCD/FC/Mod/Path/PathSimulator.so+0x12a
#5 /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x8a51) [0x7f0a1cb56971]
#6 /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x7124) [0x7f0a1cb55044]
#7 /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x85c) [0x7f0a1cc8c05c]
#8 /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(+0x13e370) [0x7f0a1cbe2370]
#9 /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyObject_Call+0x43) [0x7f0a1cbb5273]
#10 /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(+0x1853ac) [0x7f0a1cc293ac]
#11 /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyObject_Call+0x43) [0x7f0a1cbb5273]
#12 /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_CallObjectWithKeywords+0x47) [0x7f0a1cc8b487]
#13 0x7f09fdad1d99 in PySide::SignalManager::callPythonMetaMethod(QMetaMethod const&, void**, _object*, bool) from /usr/lib/x86_64-linux-gnu/libpyside-python2.7.so.1.2+0x79
#14 /usr/lib/x86_64-linux-gnu/libpyside-python2.7.so.1.2(+0x16459) [0x7f09fdad9459]
#15 0x7f0a1ba5c166 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x626
#16 /usr/lib/python2.7/dist-packages/PySide/QtCore.so(+0x1a16e3) [0x7f09fded96e3]
#17 0x7f0a1ba61c83 in QObject::event(QEvent*) from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0xa3
#18 /usr/lib/python2.7/dist-packages/PySide/QtCore.so(+0x1a1263) [0x7f09fded9263]
#19 0x7f0a1bf74fdc in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x8c
#20 0x7f0a1bf7bf16 in QApplication::notify(QObject*, QEvent*) from /usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x2b6
#21 0x7f0a1e64fe94 in Gui::GUIApplication::notify(QObject*, QEvent*) from /home/brad/FCD/FC/lib/libFreeCADGui.so+0x10e
#22 0x7f0a1ba4790d in QCoreApplication::notifyInternal(QObject*, QEvent*) from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x8d
#23 /usr/lib/x86_64-linux-gnu/libQtCore.so.4(+0x1bd780) [0x7f0a1ba7a780]
#24 /usr/lib/x86_64-linux-gnu/libQtCore.so.4(+0x1ba929) [0x7f0a1ba77929]
#25 /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x2a7) [0x7f0a14e1c197]
#26 /lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x4a3f0) [0x7f0a14e1c3f0]
#27 /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_iteration+0x2c) [0x7f0a14e1c49c]
#28 0x7f0a1ba782ae in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x7e
#29 /usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x272616) [0x7f0a1c022616]
#30 0x7f0a1ba4618f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x3f
#31 0x7f0a1ba464f5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x1b5
#32 0x7f0a1ba4c4b9 in QCoreApplication::exec() from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x99
#33 0x7f0a1e5dd24a in Gui::Application::runApplication() from /home/brad/FCD/FC/lib/libFreeCADGui.so+0x1ec4
#34 ./bin/FreeCAD(main+0xa2d) [0x40903f]
#35 /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7f0a1af7b830]
#36 ./bin/FreeCAD(_start+0x29) [0x408489]
[/code]

wmayer

2018-05-05 09:28

administrator   ~0011230

https://github.com/FreeCAD/FreeCAD/commit/8d4f31f0216b2765615c2e3d096b8efa68e508c8

Issue History

Date Modified Username Field Change
2018-05-02 19:39 sliptonic New Issue
2018-05-02 19:45 sliptonic Additional Information Updated View Revisions
2018-05-02 19:45 sliptonic Note Added: 0011221
2018-05-05 09:28 wmayer Status new => closed
2018-05-05 09:28 wmayer Resolution open => fixed
2018-05-05 09:28 wmayer Fixed in Version => 0.18
2018-05-05 09:28 wmayer Note Added: 0011230