#336 g-acad segfault

crash or data loss
closed-accepted
Sean Morrison
5
2012-10-11
2012-10-10
Anonymous
No

mdupont@mdupont-Aspire-7750G ~/experiments/ose/OSE-CEB-Press/stl/output $ gdb /usr/brlcad/bin/g-acad # -o acad.txt cebiv.g cebiv
GNU gdb (GDB) 7.2-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/brlcad/bin/g-acad...(no debugging symbols found)...done.
(gdb) r -o acad.txt cebiv.g cebiv
Starting program: /usr/brlcad/bin/g-acad -o acad.txt cebiv.g cebiv
[Thread debugging using libthread_db enabled]
Model: cebiv.g
Objects: cebiv
Tesselation tolerances:
abs = 0 mm
rel = 0.01
norm = 0
Calculational tolerances:
dist = 0.0005 mm perp = 1e-06
Model: cebiv.g
Objects: cebiv
Tesselation tolerances:
abs = 0 mm
rel = 0.01
norm = 0
Calculational tolerances:
dist = 0.0005 mm perp = 1e-06
Attempting to process region /cebiv/all_0/01-001-00-0_-_01-002-00-0-10_01-006-00-0-1_0

Program received signal SIGSEGV, Segmentation fault.
0x0000000000401c42 in do_region_end ()
(gdb) bt
#0 0x0000000000401c42 in do_region_end ()
#1 0x00007fffe93afa62 in _db_walk_dispatcher () from /usr/brlcad/lib/librt.so.20
#2 0x00007fffe93b0026 in db_walk_tree () from /usr/brlcad/lib/librt.so.20
#3 0x0000000000402d6b in main ()
(gdb)

using file :
https://github.com/h4ck3rm1k3/OSE-CEB-Press/blob/master/stl/output/cebiv.g

Discussion

  • Sean Morrison
    Sean Morrison
    2012-10-10

    You're on quite a roll uncovering bugs! That said, the backtrace isn't very helpful without debugging symbols.

    Note that ACAD is a Lockheed Martin geometry file format and is completely unrelated to AutoCAD. That's usually not what people assume.

     
  • Sean Morrison
    Sean Morrison
    2012-10-10

    • assigned_to: nobody --> brlcad
    • status: open --> pending-accepted
     

  • Anonymous
    2012-10-10

    ok, i am just testing, this is the ubuntu standard release,also the the bug reports are as well. I will retest on the debug compiled version when I get to it.

     

  • Anonymous
    2012-10-10

    • status: pending-accepted --> open-accepted
     

  • Anonymous
    2012-10-10

    Version: 7.22.0-0

     
  • Sean Morrison
    Sean Morrison
    2012-10-10

    The library that is called to process polygonal mesh geometry is in constant flux changing pretty much every release (and every few days), so testing against trunk SVN sources or having debug symbols is critical to make sure we're not investigating problems already fixed. Of course, I know where your geometry came from, so I can probably easily reproduce it if the problem still exists. ;)

    That's just more for your information, as the testing is most definitely appreciated. Let me know if you get inclined to debug one of these issues yourself (since it looks like you might know how to code).

     

  • Anonymous
    2012-10-10

    correction i am using the release from sf.net, I will be retesting with the version i compile myself next after the first round of tests go through.

     

  • Anonymous
    2012-10-10

    And yes, I would love to help out, I do know how to code and debug complex c and c++ programs. I would like to get more involved. it just takes a bit of time to get up to speed.

     

  • Anonymous
    2012-10-11

    h4ck3rm1k3@gcc10:~/experiments/brlcad/brlcad$ bin/g-acad -o acad.txt ../../OSE-CEB-Press/stl/output/cebiv.g cebiv
    works with the latest svg version.

     

  • Anonymous
    2012-10-11

    • status: open-accepted --> closed-accepted