Bug#874727: closed by Anton Gladky <gladk at debian.org> (Bug#874727: fixed in coin3 3.1.4~abc9f50+dfsg2-1)

Sebastian Bachmann me at free-minds.net
Tue Oct 9 09:55:12 BST 2018


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-6    2:1.6.6-1
ii  libxext6    2: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    <none>
pn  libsimage-dev  <none>
ii  zlib1g         1:1.2.11.dfsg-1



On Mon, 8 Oct 2018 16:35:21 -0700 mlampert <mlampert at telus.net> 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:
> 
> <?xml version="1.0" encoding="UTF-8" ?>
> <HeeksCAD_Document>
>     <Tool title="1/4 inch 2 flute End Mill" tool_number="2" id="11">
>         <params diameter="6.35" tool_length_offset="0" automatically_generate_title="0" material="1" type="end_mill" corner_radius="0" flat_radius="0" cutting_edge_angle="0" cutting_edge_height="50.8" />
>     </Tool>
>     <Tool title="9/16 4 flute End Mill" tool_number="3" id="13">
>         <params diameter="14.2875" tool_length_offset="0" automatically_generate_title="0" material="1" type="end_mill" corner_radius="0" flat_radius="0" cutting_edge_angle="0" cutting_edge_height="50.8" />
>     </Tool>
>     <Tool title="3/4 four flute" tool_number="5" id="12">
>         <params diameter="19.05" tool_length_offset="0" automatically_generate_title="0" material="1" type="end_mill" corner_radius="0" flat_radius="0" cutting_edge_angle="0" cutting_edge_height="50.8" />
>     </Tool>
>     <Tool title="Face Mill" tool_number="4" id="14">
>         <params diameter="60" tool_length_offset="0" automatically_generate_title="0" material="1" type="end_mill" corner_radius="0" flat_radius="0" cutting_edge_angle="0" cutting_edge_height="50.8" />
>     </Tool>
>     <Tool title="3/16 4 flute" tool_number="6" id="8">
>         <params diameter="4.7625" tool_length_offset="0" automatically_generate_title="0" material="1" type="end_mill" corner_radius="0" flat_radius="0" cutting_edge_angle="0" cutting_edge_height="50.8" />
>     </Tool>
> </HeeksCAD_Document>
> 
> 
> 
> 
> On Fri, 5 Oct 2018 10:03:26 +0200
> Christoph Berg <myon at debian.org> wrote:
> 
> > Re: markus 2018-10-05 <20181004193807.40af399c at 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



More information about the debian-science-maintainers mailing list