Bug#874727: closed by Anton Gladky (Bug#874727: fixed in coin3 3.1.4~abc9f50+dfsg2-1)

2018-10-09 Thread Vincas Dargis

Freecad crashes while importing any .svg:

1. Open Inkscape
2. Save to "drwing.svg" or whatever (yes, empty file)
3. Launch Freecad
4. File -> New
5. File -> Import -> select drawing.svg -> check "SVG as geometry" -> Select -> 
Crash happens:

```
Thread 1 "freecad" received signal SIGSEGV, Segmentation fault.
0x7fffed83995b in XML_SetHashSalt () from 
/lib/x86_64-linux-gnu/libexpat.so.1
#0  0x7fffed83995b in XML_SetHashSalt () at 
/lib/x86_64-linux-gnu/libexpat.so.1
#1  0x7fffe40095b0 in  () at 
/usr/lib/python2.7/lib-dynload/pyexpat.x86_64-linux-gnu.so
#2  0x76836c66 in PyEval_EvalFrameEx () at 
/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#3  0x768365ef in PyEval_EvalFrameEx () at 
/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#4  0x768365ef in PyEval_EvalFrameEx () at 
/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#5  0x768365ef in PyEval_EvalFrameEx () at 
/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#6  0x7682d032 in PyEval_EvalCodeEx () at 
/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#7  0x7682d649 in PyEval_EvalCode () at 
/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#8  0x76805e86 in PyRun_StringFlags () at 
/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#9  0x76b4f606 in Base::InterpreterSingleton::runString[abi:cxx11](char const*) () at 
/usr/lib/freecad/lib/libFreeCADBase.so
#10 0x772bb533 in Gui::Command::doCommand(Gui::Command::DoCmd_Type, char const*, ...) () at 
/usr/lib/freecad/lib/libFreeCADGui.so
#11 0x77255ef8 in Gui::Application::importFrom(char const*, char const*, char const*) () at 
/usr/lib/freecad/lib/libFreeCADGui.so

#12 0x772c5960 in StdCmdImport::activated(int) () at 
/usr/lib/freecad/lib/libFreeCADGui.so
#13 0x772bf674 in Gui::Command::invoke(int) () at 
/usr/lib/freecad/lib/libFreeCADGui.so
#14 0x733bdedd in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () at 
/lib/x86_64-linux-gnu/libQtCore.so.4

#15 0x73e66572 in QAction::triggered(bool) () at 
/lib/x86_64-linux-gnu/libQtGui.so.4
#16 0x73e67917 in QAction::activate(QAction::ActionEvent) () at 
/lib/x86_64-linux-gnu/libQtGui.so.4

#17 0x742b9514 in  () at /lib/x86_64-linux-gnu/libQtGui.so.4
#18 0x742bdec3 in  () at /lib/x86_64-linux-gnu/libQtGui.so.4
#19 0x73ec20d8 in QWidget::event(QEvent*) () at 
/lib/x86_64-linux-gnu/libQtGui.so.4
#20 0x742c1beb in QMenu::event(QEvent*) () at 
/lib/x86_64-linux-gnu/libQtGui.so.4
#21 0x73e6c38c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at 
/lib/x86_64-linux-gnu/libQtGui.so.4
#22 0x73e7415a in QApplication::notify(QObject*, QEvent*) () at 
/lib/x86_64-linux-gnu/libQtGui.so.4
#23 0x7729c8c8 in Gui::GUIApplication::notify(QObject*, QEvent*) () at 
/usr/lib/freecad/lib/libFreeCADGui.so
#24 0x733a996e in QCoreApplication::notifyInternal(QObject*, QEvent*) () at 
/lib/x86_64-linux-gnu/libQtCore.so.4
#25 0x73e72df6 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, 
QWidget*, QWidget**, QPointer&, bool) ()

at /lib/x86_64-linux-gnu/libQtGui.so.4
#26 0x73eedf13 in  () at /lib/x86_64-linux-gnu/libQtGui.so.4
#27 0x73eecf0c in QApplication::x11ProcessEvent(_XEvent*) () at 
/lib/x86_64-linux-gnu/libQtGui.so.4

#28 0x73f163fc in  () at /lib/x86_64-linux-gnu/libQtGui.so.4
#29 0x7fffeebbec3e in g_main_context_dispatch () at 
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#30 0x7fffeebbeed8 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#31 0x7fffeebbef6c in g_main_context_iteration () at 
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#32 0x733d9cb3 in QEventDispatcherGlib::processEvents(QFlags) 
() at /lib/x86_64-linux-gnu/libQtCore.so.4

#33 0x73f16587 in  () at /lib/x86_64-linux-gnu/libQtGui.so.4
#34 0x733a7f14 in QEventLoop::processEvents(QFlags) () at 
/lib/x86_64-linux-gnu/libQtCore.so.4
#35 0x733a827e in QEventLoop::exec(QFlags) () at 
/lib/x86_64-linux-gnu/libQtCore.so.4

#36 0x733ae12c in QCoreApplication::exec() () at 
/lib/x86_64-linux-gnu/libQtCore.so.4
#37 0x7725e1fb in Gui::Application::runApplication() () at 
/usr/lib/freecad/lib/libFreeCADGui.so
#38 0x8ce8 in main ()
```



Bug#874727: closed by Anton Gladky (Bug#874727: fixed in coin3 3.1.4~abc9f50+dfsg2-1)

2018-10-09 Thread Sebastian Bachmann
Sorry for the noise but I got 0.17 working... Not sure what the problem was
(just reinstalled).

The SVG import bug works as well in 0.17.

You can also trigger it using the python console in FreeCAD:

from xml.parsers import expat
expat.ParserCreate()

Program received signal SIGSEGV, Segmentation fault.
#0  /lib/x86_64-linux-gnu/libc.so.6(+0x35fc0) [0x7f1690c36fc0]
#1  /lib/x86_64-linux-gnu/libexpat.so.1(XML_SetHashSalt+0x1b) [0x7f168b4b595b]
#2  /usr/lib/python2.7/lib-dynload/pyexpat.x86_64-linux-gnu.so(+0x75b0) 
[0x7f167c9785b0]
#3  /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x9327) 
[0x7f1694caaab7]
#4  /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x732) 
[0x7f1694ca1032]
#5  /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCode+0x19) 
[0x7f1694ca1649]
[...]


It is still the same bug as described in the forum:
https://forum.freecadweb.org/viewtopic.php?f=15=23380=190525=expat#p190172

I build a working coin version back then by simply removing all attemps to
build the internal expat version. It looks like the flag --enable-system-expat
does not enable system expat but still uses the internal version.

hth!

regards
sebastian




On Tue, 9 Oct 2018 10:55:12 +0200 Sebastian Bachmann  
wrote:
> There is another method to trigger this bug:
> 
> * Open FreeCAD
> * File --> Open
> * Select any SVG File, click Open
> * Select "SVG as Geometry (importSVG)", click Select
> 
> It crashes with a similar stacktrace:
> 
> Program received signal SIGSEGV, Segmentation fault.
> #0  /lib/x86_64-linux-gnu/libc.so.6(+0x35fc0) [0x7f11a255efc0]
> #1  /lib/x86_64-linux-gnu/libexpat.so.1(XML_SetHashSalt+0x1b) [0x7f119968c95b]
> #2  /usr/lib/python2.7/lib-dynload/pyexpat.x86_64-linux-gnu.so(+0x75b0) 
> [0x7f118d4f65b0]
> #3  /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x94d6) 
> [0x7f11a3b6cc66]
> [...]
> 
> Tested here with FreeCAD 0.18 Revision: 14928 (Git)
> 
> I tried with .17 from experimental but it looks like that the SVG import was 
> not
> supported in that version?
> But this version is pretty much unusable. No UI elements other that the
> menu bar loads and there are only 2 Workspaces available for me...
> 
> regards
> Sebastian
> 
> 
> 
> -- System Information:
> Debian Release: buster/sid
>   APT prefers testing
>   APT policy: (990, 'testing'), (700, 'unstable'), (500, 'oldstable')
> Architecture: amd64 (x86_64)
> Foreign Architectures: i386
> 
> Kernel: Linux 4.18.0-1-amd64 (SMP w/4 CPU cores)
> Locale: LANG=de_AT.UTF-8, LC_CTYPE=de_AT.UTF-8 (charmap=UTF-8), 
> LANGUAGE=de_AT.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> Init: systemd (via /run/systemd/system)
> LSM: AppArmor: enabled
> 
> Versions of packages libcoin80v5 depends on:
> ii  libc6   2.27-6
> ii  libgcc1 1:8.2.0-7
> ii  libgl1  1.1.0-1
> ii  libice6 2:1.0.9-2
> ii  libsm6  2:1.2.2-1+b3
> ii  libstdc++6  8.2.0-7
> ii  libx11-62:1.6.6-1
> ii  libxext62:1.3.3-1+b2
> 
> libcoin80v5 recommends no packages.
> 
> Versions of packages libcoin80v5 suggests:
> ii  libbz2-1.0 1.0.6-9
> ii  libfreetype6   2.8.1-2
> pn  libopenal0a
> pn  libsimage-dev  
> ii  zlib1g 1:1.2.11.dfsg-1
> 



Bug#874727: closed by Anton Gladky (Bug#874727: fixed in coin3 3.1.4~abc9f50+dfsg2-1)

2018-10-09 Thread Sebastian Bachmann
There is another method to trigger this bug:

* Open FreeCAD
* File --> Open
* Select any SVG File, click Open
* Select "SVG as Geometry (importSVG)", click Select

It crashes with a similar stacktrace:

Program received signal SIGSEGV, Segmentation fault.
#0  /lib/x86_64-linux-gnu/libc.so.6(+0x35fc0) [0x7f11a255efc0]
#1  /lib/x86_64-linux-gnu/libexpat.so.1(XML_SetHashSalt+0x1b) [0x7f119968c95b]
#2  /usr/lib/python2.7/lib-dynload/pyexpat.x86_64-linux-gnu.so(+0x75b0) 
[0x7f118d4f65b0]
#3  /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x94d6) 
[0x7f11a3b6cc66]
[...]

Tested here with FreeCAD 0.18 Revision: 14928 (Git)

I tried with .17 from experimental but it looks like that the SVG import was not
supported in that version?
But this version is pretty much unusable. No UI elements other that the
menu bar loads and there are only 2 Workspaces available for me...

regards
Sebastian



-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (990, 'testing'), (700, 'unstable'), (500, 'oldstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.18.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_AT.UTF-8, LC_CTYPE=de_AT.UTF-8 (charmap=UTF-8), 
LANGUAGE=de_AT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libcoin80v5 depends on:
ii  libc6   2.27-6
ii  libgcc1 1:8.2.0-7
ii  libgl1  1.1.0-1
ii  libice6 2:1.0.9-2
ii  libsm6  2:1.2.2-1+b3
ii  libstdc++6  8.2.0-7
ii  libx11-62:1.6.6-1
ii  libxext62:1.3.3-1+b2

libcoin80v5 recommends no packages.

Versions of packages libcoin80v5 suggests:
ii  libbz2-1.0 1.0.6-9
ii  libfreetype6   2.8.1-2
pn  libopenal0a
pn  libsimage-dev  
ii  zlib1g 1:1.2.11.dfsg-1



On Mon, 8 Oct 2018 16:35:21 -0700 mlampert  wrote:
> I've attached an xml tool table.
> 
> * start FreeCAD from the command line
> * Create a new document
> * switch to "Path" Workbench
> * start "Path Manager" from the Path menu
> * import attached tooltable (note the file type selection)
> 
> You'll get:
> Program received signal SIGSEGV, Segmentation fault.
> #0  /lib/x86_64-linux-gnu/libc.so.6(+0x35fc0) [0x7f75fc00ffc0]
> #1  /lib/x86_64-linux-gnu/libexpat.so.1(XML_SetHashSalt+0x1b) [0x7f75f584095b]
> #2  /usr/lib/python2.7/lib-dynload/pyexpat.x86_64-linux-gnu.so(+0x75b0) 
> [0x7f75c08145b0]
> #3  /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x94d6) 
> [0x7f7602316c66]
> #4  /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x8e5f) 
> [0x7f76023165ef]
> #5  /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x8e5f) 
> [0x7f76023165ef]
> #6  /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x732) 
> [0x7f760230d032]
> 
> 
> I don't think the file itself matters at all because it segfaults while 
> trying to initialise libexpat, but in case the attachment gets filtered, this 
> is the content:
> 
> 
> 
> 
>  automatically_generate_title="0" material="1" type="end_mill" 
> corner_radius="0" flat_radius="0" cutting_edge_angle="0" 
> cutting_edge_height="50.8" />
> 
> 
>  automatically_generate_title="0" material="1" type="end_mill" 
> corner_radius="0" flat_radius="0" cutting_edge_angle="0" 
> cutting_edge_height="50.8" />
> 
> 
>  automatically_generate_title="0" material="1" type="end_mill" 
> corner_radius="0" flat_radius="0" cutting_edge_angle="0" 
> cutting_edge_height="50.8" />
> 
> 
>  automatically_generate_title="0" material="1" type="end_mill" 
> corner_radius="0" flat_radius="0" cutting_edge_angle="0" 
> cutting_edge_height="50.8" />
> 
> 
>  automatically_generate_title="0" material="1" type="end_mill" 
> corner_radius="0" flat_radius="0" cutting_edge_angle="0" 
> cutting_edge_height="50.8" />
> 
> 
> 
> 
> 
> 
> On Fri, 5 Oct 2018 10:03:26 +0200
> Christoph Berg  wrote:
> 
> > Re: markus 2018-10-05 <20181004193807.40af399c@yolanda>
> > > it's a packaging bug - libcoin is statically linked with libexpat,
> > > and the version being used is outdated. So anything that uses
> > > libcoin and libexpat will run into a segfault.
> > > 
> > > I am not aware of any other application that uses libcoin.  
> > 
> > I noticed because PostGIS is affected via postgis B-D -> libsfcgal-dev
> > -> libsfcgal-osg1 -> libopenscenegraph100v5 -> libcoin80v5. Looking
> > at https://udd.debian.org/cgi-bin/autoremovals.cgi there's quite a few
> > packages depending on coin3. So the question whether this affects
> > freecad only or more packages is making quite a difference.
> > 
> > Do you have a recipe on how to reproduce the bug with freecad from



Bug#874727: closed by Anton Gladky (Bug#874727: fixed in coin3 3.1.4~abc9f50+dfsg2-1)

2018-10-08 Thread mlampert
I've attached an xml tool table.

* start FreeCAD from the command line
* Create a new document
* switch to "Path" Workbench
* start "Path Manager" from the Path menu
* import attached tooltable (note the file type selection)

You'll get:
Program received signal SIGSEGV, Segmentation fault.
#0  /lib/x86_64-linux-gnu/libc.so.6(+0x35fc0) [0x7f75fc00ffc0]
#1  /lib/x86_64-linux-gnu/libexpat.so.1(XML_SetHashSalt+0x1b) [0x7f75f584095b]
#2  /usr/lib/python2.7/lib-dynload/pyexpat.x86_64-linux-gnu.so(+0x75b0) 
[0x7f75c08145b0]
#3  /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x94d6) 
[0x7f7602316c66]
#4  /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x8e5f) 
[0x7f76023165ef]
#5  /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x8e5f) 
[0x7f76023165ef]
#6  /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x732) 
[0x7f760230d032]


I don't think the file itself matters at all because it segfaults while trying 
to initialise libexpat, but in case the attachment gets filtered, this is the 
content:























On Fri, 5 Oct 2018 10:03:26 +0200
Christoph Berg  wrote:

> Re: markus 2018-10-05 <20181004193807.40af399c@yolanda>
> > it's a packaging bug - libcoin is statically linked with libexpat,
> > and the version being used is outdated. So anything that uses
> > libcoin and libexpat will run into a segfault.
> > 
> > I am not aware of any other application that uses libcoin.  
> 
> I noticed because PostGIS is affected via postgis B-D -> libsfcgal-dev
> -> libsfcgal-osg1 -> libopenscenegraph100v5 -> libcoin80v5. Looking
> at https://udd.debian.org/cgi-bin/autoremovals.cgi there's quite a few
> packages depending on coin3. So the question whether this affects
> freecad only or more packages is making quite a difference.
> 
> Do you have a recipe on how to reproduce the bug with freecad from
> experimental?
> 
> Christoph



tt.xml
Description: XML document


Bug#874727: closed by Anton Gladky (Bug#874727: fixed in coin3 3.1.4~abc9f50+dfsg2-1)

2018-10-05 Thread Christoph Berg
Re: markus 2018-10-05 <20181004193807.40af399c@yolanda>
> it's a packaging bug - libcoin is statically linked with libexpat, and
> the version being used is outdated. So anything that uses libcoin and
> libexpat will run into a segfault.
> 
> I am not aware of any other application that uses libcoin.

I noticed because PostGIS is affected via postgis B-D -> libsfcgal-dev
-> libsfcgal-osg1 -> libopenscenegraph100v5 -> libcoin80v5. Looking at
https://udd.debian.org/cgi-bin/autoremovals.cgi there's quite a few
packages depending on coin3. So the question whether this affects
freecad only or more packages is making quite a difference.

Do you have a recipe on how to reproduce the bug with freecad from
experimental?

Christoph



Bug#874727: closed by Anton Gladky (Bug#874727: fixed in coin3 3.1.4~abc9f50+dfsg2-1)

2018-10-04 Thread markus
Hi Christoph,

it's a packaging bug - libcoin is statically linked with libexpat, and
the version being used is outdated. So anything that uses libcoin and
libexpat will run into a segfault.

I am not aware of any other application that uses libcoin.

HTH,
Markus


On Tue, 2 Oct 2018 10:37:00 +0200
Christoph Berg  wrote:

> Control: tags -1 moreinfo
> 
> Re: mlampert 2018-01-06 <20180104145135.59a157e4@occ7>
> > Version libcoin89-dev 3.1.4-abc9f50+dfsg3-2 (in Debian Testing as
> > of yesterday) still has a statically linked version of libexpat -
> > and still causes any application using the system version libexpat
> > to segfault.  
> 
> Re: Vincas Dargis 2018-07-25
> 
> > Are there any workarounds for this issue? Seems same problem as
> > discovered on Kbuntu 18.04 that FreeCAD crashes when importing from
> > SVG file.  
> 
> Hi,
> 
> do we have any evidence that this is a bug in coin3, and not simply
> freecad being buggy? The freecad version currently in unstable crashes
> in all sorts of ways.
> 
> Markus: did you see the bug in any other application?
> 
> Christoph



Bug#874727: closed by Anton Gladky (Bug#874727: fixed in coin3 3.1.4~abc9f50+dfsg2-1)

2018-10-02 Thread Christoph Berg
Control: tags -1 moreinfo

Re: mlampert 2018-01-06 <20180104145135.59a157e4@occ7>
> Version libcoin89-dev 3.1.4-abc9f50+dfsg3-2 (in Debian Testing as of 
> yesterday) still has a statically linked version of libexpat - and still 
> causes any application using the system version libexpat to segfault.

Re: Vincas Dargis 2018-07-25 
> Are there any workarounds for this issue? Seems same problem as discovered
> on Kbuntu 18.04 that FreeCAD crashes when importing from SVG file.

Hi,

do we have any evidence that this is a bug in coin3, and not simply
freecad being buggy? The freecad version currently in unstable crashes
in all sorts of ways.

Markus: did you see the bug in any other application?

Christoph



Bug#874727: closed by Anton Gladky (Bug#874727: fixed in coin3 3.1.4~abc9f50+dfsg2-1)

2018-07-25 Thread Vincas Dargis
Are there any workarounds for this issue? Seems same problem as discovered on Kbuntu 18.04 that 
FreeCAD crashes when importing from SVG file.