View Issue Details

IDProjectCategoryView StatusLast Update
0001472FreeCADBugpublic2014-03-16 15:06
Reportershoogen Assigned Toshoogen  
PriorityurgentSeverityblockReproducibilityalways
Status closedResolutionno change required 
PlatformAMD64OSLinuxOS VersionDebian 7.4
Product Versiontrunk 
Summary0001472: SIGSEGV in Gui::Document::slotNewObject
Description#0 0x0000000000000000 in ?? ()
#1 0x00007ffff7453fc3 in Gui::Document::slotNewObject (this=0x398ee40, Obj=
    ...) at /home/sebastian/free-cad/src/Gui/Document.cpp:381
0000002 0x00007ffff7464d82 in boost::_mfi::mf1<void, Gui::Document, App::DocumentObject const&>::operator() (this=0x3a3b5d0, p=0x398ee40, a1=...)
    at /usr/include/boost/bind/mem_fn_template.hpp:165
0000003 0x00007ffff7464264 in boost::_bi::list2<boost::_bi::value<Gui::Document*>, boost::arg<1> >::operator()<boost::_mfi::mf1<void, Gui::Document, App::DocumentObject const&>, boost::_bi::list1<App::DocumentObject const&> > (this=0x3a3b5e0,
    f=..., a=...) at /usr/include/boost/bind/bind.hpp:313
0000004 0x00007ffff74634da in boost::_bi::bind_t<void, boost::_mfi::mf1<void, Gui::Document, App::DocumentObject const&>, boost::_bi::list2<boost::_bi::value<Gui::Document*>, boost::arg<1> > >::operator()<App::DocumentObject> (this=0x3a3b5d0,
    a1=...) at /usr/include/boost/bind/bind_template.hpp:47
0000005 0x00007ffff7462426 in boost::detail::function::void_function_obj_invoker1<boost::_bi::bind_t<void, boost::_mfi::mf1<void, Gui::Document, App::DocumentObject const&>, boost::_bi::list2<boost::_bi::value<Gui::Document*>, boost::arg<1> > >, void, App::DocumentObject const&>::invoke (function_obj_ptr=..., a0=...)
    at /usr/include/boost/function/function_template.hpp:153
0000006 0x00007ffff6c1240d in boost::function1<void, App::DocumentObject const&>::operator() (this=0x3a3b5c8, a0=...)
    at /usr/include/boost/function/function_template.hpp:760
0000007 0x00007ffff6c0f1be in boost::signals::detail::call_bound1<void>::caller<App::DocumentObject const&, boost::function<void (App::DocumentObject const&)> >::operator()<boost::signals::detail::connection_slot_pair>(boost::signals::detail::connection_slot_pair const&) const (this=0x7fffffffa420, slot=...)
    at /usr/include/boost/signals/signal_template.hpp:119
0000008 0x00007ffff6c0bb1a in boost::signals::detail::slot_call_iterator<boost::signals::detail::call_bound1<void>::caller<App::DocumentObject const&, boost::function<void (App::DocumentObject const&)> >, boost::signals::detail::named_slot_map_iterator>::dereference() const (this=0x7fffffffa3e0)
    at /usr/include/boost/signals/detail/slot_call_iterator.hpp:61
0000009 0x00007ffff6c08884 in boost::iterator_core_access::dereference<boost::signals::detail::slot_call_iterator<boost::signals::detail::call_bound1<void>::caller<App::DocumentObject const&, boost::function<void (App::DocumentObject const&)> >, boost::signals::detail::named_slot_map_iterator> >(boost::signals::detail::slot_call_iterator<boost::signals::detail::call_bound1<void>::caller<App::DocumentObject const&, boost::function<void (App::DocumentObject const&)> >, boost::signals::detail::named_slot_map_iterator> const&) (f=...)
    at /usr/include/boost/iterator/iterator_facade.hpp:517
0000010 0x00007ffff6c048a2 in boost::iterator_facade<boost::signals::detail::slot_call_iterator<boost::signals::detail::call_bound1<void>::caller<App::DocumentObject const&, boost::function<void (App::DocumentObject const&)> >, boost::signals::detail::named_slot_map_iterator>, boost::signals::detail::unusable, boost::single_pass_traversal_tag, boost::signals::detail::unusable const&, long>::operator*() const (this=0x7fffffffa3e0)
0000011 0x00007ffff6bffb9e in boost::detail::postfix_increment_proxy<boost::signals::detail::slot_call_iterator<boost::signals::detail::call_bound1<void>::caller<App::DocumentObject const&, boost::function<void (App::DocumentObject const&)> >, boost::signals::detail::named_slot_map_iterator> >::postfix_increment_proxy(boost::signals::detail::slot_call_iterator<boost::signals::detail::call_bound1<void>::caller<App::DocumentObject const&, boost::function<void (App::DocumentObject const&)> >, boost::signals::detail::named_slot_map_iterator> const&) (this=
    0x7fffffffa29f, x=...)
    at /usr/include/boost/iterator/iterator_facade.hpp:145
0000012 0x00007ffff6bf88c8 in boost::operator++<boost::signals::detail::slot_call_iterator<boost::signals::detail::call_bound1<void>::caller<App::DocumentObject const&, boost::function<void (App::DocumentObject const&)> >, boost::signals::detail::named_slot_map_iterator>, boost::signals::detail::unusable, boost::single_pass_traversal_tag, boost::signals::detail::unusable const&, long>(boost::iterator_facade<boost::signals::detail::slot_call_iterator<boost::signals::detail::call_bound1<void>::caller<App::DocumentObject const&, boost::function<void (App::DocumentObject const&)> >, boost::signals::detail::named_slot_map_iterator>, boost::signals::detail::unusable, boost::single_pass_traversal_tag, boost::signals::detail::unusable const&, long>&, int) (i=...)
    at /usr/include/boost/iterator/iterator_facade.hpp:732
0000013 0x00007ffff6bf36b9 in boost::last_value<void>::operator()<boost::signals::detail::slot_call_iterator<boost::signals::detail::call_bound1<void>::caller<App::DocumentObject const&, boost::function<void (App::DocumentObject const&)> >, boost::signals::detail::named_slot_map_iterator> >(boost::signals::detail::slot_call_iterator<boost::signals::detail::call_bound1<void>::caller<App::DocumentObject const&, boost::function<void (App::DocumentObject const&)> >, boost::signals::detail::named_slot_map_iterator>, boost::signals::detail::slot_call_iterator<boost::signals::detail::call_bound1<void>::caller<App::DocumentObject const&, boost::function<void (App::DocumentObject const&)> >, boost::signals::detail::named_slot_map_iterator>) const (this=0x3500148, first=..., last=...)
    at /usr/include/boost/last_value.hpp:49
0000014 0x00007ffff6bee722 in boost::signal1<void, App::DocumentObject const&, boost::last_value<void>, int, std::less<int>, boost::function<void (App::DocumentObject const&)> >::operator()(App::DocumentObject const&) (this=0x1e526b0, a1=...)
    at /usr/include/boost/signals/signal_template.hpp:354
0000015 0x00007ffff6be556a in App::Document::addObject (this=0x1e52470, sType=
    0x19ccc24 "Part::Feature", pObjectName=0xd63fb4 "Line")
    at /home/sebastian/free-cad/src/App/Document.cpp:1454
0000016 0x00007ffff6c49262 in App::DocumentPy::addObject (this=0x24e92c0, args=
    ('Part::Feature', 'Line'))
    at /home/sebastian/free-cad/src/App/DocumentPyImp.cpp:168
0000017 0x00007ffff6c445e6 in App::DocumentPy::staticCallback_addObject (self=
    <App.Document at remote 0x24e92c8>, args=('Part::Feature', 'Line'))
    at /home/sebastian/fc-build/src/App/DocumentPy.cpp:876
0000018 0x00007ffff61e6bb6 in PyEval_EvalFrameEx ()
---Type <return> to continue, or q <return> to quit---
   from /usr/lib/libpython2.6.so.1.0
0000019 0x00007ffff61e772c in PyEval_EvalCodeEx ()
   from /usr/lib/libpython2.6.so.1.0
0000020 0x00007ffff61e65ff in PyEval_EvalFrameEx ()
   from /usr/lib/libpython2.6.so.1.0
0000021 0x00007ffff61e6703 in PyEval_EvalFrameEx ()
   from /usr/lib/libpython2.6.so.1.0
0000022 0x00007ffff61e6703 in PyEval_EvalFrameEx ()
   from /usr/lib/libpython2.6.so.1.0
0000023 0x00007ffff61e772c in PyEval_EvalCodeEx ()
   from /usr/lib/libpython2.6.so.1.0
0000024 0x00007ffff61e7882 in PyEval_EvalCode () from /usr/lib/libpython2.6.so.1.0
0000025 0x00007ffff620897d in PyRun_StringFlags ()
   from /usr/lib/libpython2.6.so.1.0
0000026 0x00007ffff66caff2 in Base::InterpreterSingleton::runString (this=
    0x62b620, sCmd=
    0x24af830 "importDXF.open(\"/home/sebastian/Downloads/beam/W14x22.dxf\")")
    at /home/sebastian/free-cad/src/Base/Interpreter.cpp:161
0000027 0x00007ffff74a6c6b in Gui::Command::doCommand (eType=Gui::Command::App,
    sCmd=0x7ffff77c57d2 "%s.open(\"%s\")")
    at /home/sebastian/free-cad/src/Gui/Command.cpp:427
0000028 0x00007ffff7427c2b in Gui::Application::open (this=0x7fffffffd4b0,
    FileName=0x24da028 "/home/sebastian/Downloads/beam/W14x22.dxf", Module= 0x1e64ce8 "importDXF")
    at /home/sebastian/free-cad/src/Gui/Application.cpp:491
0000029 0x00007ffff74af098 in StdCmdOpen::activated (this=0x9c2290, iMsg=0)
    at /home/sebastian/free-cad/src/Gui/CommandDoc.cpp:140
0000030 0x00007ffff74a6527 in Gui::Command::invoke (this=0x9c2290, i=0)
    at /home/sebastian/free-cad/src/Gui/Command.cpp:288
0000031 0x00007ffff749d0cf in Gui::Action::onActivated (this=0x16d7b00)
    at /home/sebastian/free-cad/src/Gui/Action.cpp:92
TagsNo tags attached.
FreeCAD Information

Relationships

has duplicate 0001476 closedwmayer crash when trying to create Part object 

Activities

shoogen

2014-03-11 20:38

developer   ~0004428

OS: Debian GNU/Linux 7.4 (wheezy)
Platform: 64-bit
Version: 0.14.3303 (Git)
Branch: master
Hash: 289d06bf8e4ac1b7a44b4d58536285fcfebcb8d9
Python version: 2.6.8
Qt version: 4.8.2
Coin version: 3.1.3
SoQt version: 1.5.0
OCC version: 6.7.0

quick61

2014-03-12 01:35

reporter   ~0004429

Not sure if it's the same bug or not but I'm getting what looks to be a boost related crash every time I try to convert a mesh to a shape in the part workbench. Forum thread - http://forum.freecadweb.org/viewtopic.php?f=3&t=6053

wmayer

2014-03-12 09:58

administrator   ~0004430

This is related too: http://forum.freecadweb.org/viewtopic.php?f=3&t=6054&sid=150ed90cbefba50f1e2ad4b4e6684eba

shoogen

2014-03-12 10:10

developer   ~0004431

Bisecting: 0 revisions left to test after this (roughly 0 steps)
[38d55b540e72c0fe5c6fcf1458c6ad5167fe01c7] + Start drag and drop of view providers

wmayer

2014-03-12 10:43

administrator   ~0004432

Does the problem start with this commit 38d55b540e72c0fe5c6fcf1458c6ad5167fe01c7 ?

wmayer

2014-03-12 10:52

administrator   ~0004433

Did you do a complete rebuild?

shoogen

2014-03-12 11:08

developer   ~0004434

in the mean time, i did. it is not reproduceable on a clean build.

wmayer

2014-03-12 11:28

administrator   ~0004435

So it must have been a corrupted build. The reason could be the addition of the virtual methods inside ViewProvider in the core system which then led to runtime crashes because the vtables of subclasses were incorrect.

So, can this be closed?

Issue History

Date Modified Username Field Change
2014-03-11 20:24 shoogen New Issue
2014-03-11 20:38 shoogen Note Added: 0004428
2014-03-12 01:35 quick61 Note Added: 0004429
2014-03-12 09:58 wmayer Note Added: 0004430
2014-03-12 09:58 wmayer Priority normal => urgent
2014-03-12 09:58 wmayer Severity crash => block
2014-03-12 10:10 shoogen Note Added: 0004431
2014-03-12 10:36 shoogen Summary SIGSEGV in boost => SIGSEGV in Gui::Document::slotNewObject
2014-03-12 10:43 wmayer Note Added: 0004432
2014-03-12 10:52 wmayer Note Added: 0004433
2014-03-12 11:08 shoogen Note Added: 0004434
2014-03-12 11:28 wmayer Note Added: 0004435
2014-03-12 12:23 shoogen Status new => closed
2014-03-12 12:23 shoogen Assigned To => shoogen
2014-03-12 12:23 shoogen Resolution open => no change required
2014-03-16 15:06 wmayer Relationship added has duplicate 0001476