#349 SIGSEGV - Block insertion

master branch
closed-fixed
Rallaz
actions (81)
5
2012-11-23
2012-09-12
Jean-Luc Coulon
No

Sorry, I report again the same problem.
I've a test case that triggers the problem.

My system:
Debian GNU/linux with kernel 3.5.2
Librecad from git repository

I've built a drawing with librecad.
I've make a block from part of a draw and exported it as a file (attached).

When I open the related dxf, everything is fine.

If try to insert it (File -> Insert -> Block), librecad crashed.

Attached : the bt from gdb, valgrind summary, the dxf file

Regards

Jean-Luc

Discussion

  • dxf file triggering the problem as a block

     
    Attachments
  • Rallaz
    Rallaz
    2012-09-12

    The real bug are:
    On save a block that contain another block as insert
    the block definition are not saved, resulting in bad dxf file
    and losing information

    Opening the file result in a "phantom" insert, without a block
    definition.
    On insert, are checked if the block name exist, asking the name to a null block =>SIGSEGV

    added commit ef65c131dc with:
    When save a block add needed block's definitions to create good files without loss information.
    On insert a bad dxf without block definition add an empty block to avoid "phantom" insert

     
  • Rallaz
    Rallaz
    2012-09-12

    • assigned_to: nobody --> rallaz
    • status: open --> open-fixed
     
  • Rallaz
    Rallaz
    2012-09-12

    Sorry, correct commit are:
    2f82b82241

     
  • Rallaz
    Rallaz
    2012-11-23

    • status: open-fixed --> closed-fixed
     
  • Rallaz
    Rallaz
    2012-11-23

    fixed a month ago without more comment. Closing