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

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

0000002  0x7f09930f6d14 in PathSimulator::PathSim::ApplyCommand(Base::Placement*, Path::Command*) from /home/brad/FCD/FC/Mod/Path/PathSimulator.so+0xec

0000003  0x7f09930fe181 in PathSimulator::PathSimPy::ApplyCommand(_object*, _object*) from /home/brad/FCD/FC/Mod/Path/PathSimulator.so+0xed

0000004  0x7f09930fcefa in PathSimulator::PathSimPy::staticCallback_ApplyCommand(_object*, _object*, _object*) 
from /home/brad/FCD/FC/Mod/Path/PathSimulator.so+0x12a
0000005  /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x8a51) [0x7f0a1cb56971]
0000006  /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x7124) [0x7f0a1cb55044]
0000007  /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x85c) [0x7f0a1cc8c05c]
0000008  /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(+0x13e370) [0x7f0a1cbe2370]
0000009  /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyObject_Call+0x43) [0x7f0a1cbb5273]
0000010  /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(+0x1853ac) [0x7f0a1cc293ac]
0000011  /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyObject_Call+0x43) [0x7f0a1cbb5273]
0000012  /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_CallObjectWithKeywords+0x47) [0x7f0a1cc8b487]

0000013  0x7f09fdad1d99 in PySide::SignalManager::callPythonMetaMethod(QMetaMethod const&, void**, _object*, 
bool) from /usr/lib/x86_64-linux-gnu/libpyside-python2.7.so.1.2+0x79
0000014  /usr/lib/x86_64-linux-gnu/libpyside-python2.7.so.1.2(+0x16459) [0x7f09fdad9459]
0000015  0x7f0a1ba5c166 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x626

0000016  /usr/lib/python2.7/dist-packages/PySide/QtCore.so(+0x1a16e3) [0x7f09fded96e3]
0000017  0x7f0a1ba61c83 in QObject::event(QEvent*) from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0xa3
0000018  /usr/lib/python2.7/dist-packages/PySide/QtCore.so(+0x1a1263) [0x7f09fded9263]
0000019  0x7f0a1bf74fdc in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x8c

0000020  0x7f0a1bf7bf16 in QApplication::notify(QObject*, QEvent*) from /usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x2b6

0000021  0x7f0a1e64fe94 in Gui::GUIApplication::notify(QObject*, QEvent*) from /home/brad/FCD/FC/lib/libFreeCADGui.so+0x10e

0000022  0x7f0a1ba4790d in QCoreApplication::notifyInternal(QObject*, QEvent*) from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x8d

0000023  /usr/lib/x86_64-linux-gnu/libQtCore.so.4(+0x1bd780) [0x7f0a1ba7a780]
0000024  /usr/lib/x86_64-linux-gnu/libQtCore.so.4(+0x1ba929) [0x7f0a1ba77929]
0000025  /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x2a7) [0x7f0a14e1c197]
0000026  /lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x4a3f0) [0x7f0a14e1c3f0]
0000027  /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_iteration+0x2c) [0x7f0a14e1c49c]
0000028  0x7f0a1ba782ae in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) 
from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x7e
0000029  /usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x272616) [0x7f0a1c022616]
0000030  0x7f0a1ba4618f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x3f

0000031  0x7f0a1ba464f5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x1b5

0000032  0x7f0a1ba4c4b9 in QCoreApplication::exec() from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x99
0000033  0x7f0a1e5dd24a in Gui::Application::runApplication() from /home/brad/FCD/FC/lib/libFreeCADGui.so+0x1ec4

0000034  ./bin/FreeCAD(main+0xa2d) [0x40903f]
0000035  /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7f0a1af7b830]
0000036  ./bin/FreeCAD(_start+0x29) [0x408489]

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