bugLibreDWG - Bugs: bug #29270, dwg_print_BLOCK_HEADER segfaults

 
 

bug #29270: dwg_print_BLOCK_HEADER segfaults

Submitter:  Rodrigo Rodrigues da Silva <pitanga>
Submitted:  Fri 19 Mar 2010 09:42:27 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Works For Me
Privacy:  Public Assigned to:  reini_urban
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 26 Apr 2018 04:05:29 PM UTC, comment #1: 

With which dwg?

The new testsuite runs dwg2SVG through all our files, and all my private files, and doesn't crash on any supported DWG version.
I think I've fixed that recently.

Reini Urban <reini_urban>
Group administrator
Fri 19 Mar 2010 09:42:27 PM UTC, original submission:  

In order to reproduce this bug you need to compile with LIBREDWG_TRACE=9 and ./configure --enable trace.

This is the backtrace:

==========
-objref: HANDLE(5.1.24) Absolute:24
-found:  HANDLE(0.1.24)
Object BLOCK_HEADER:
Object handle: 0.1.24
entry_name: "*MODEL_SPACE"
_64_flag: 1
xrefindex_plus1: 0
xdep: 0
anonymous: 0
hasattrs: 0
blkisxref: 0
xrefoverlaid: 0
loaded_bit: 0
base_pt.x: 0.000000
base_pt.y: 0.000000
base_pt.z: 0.000000
xref_pname: ""
block_description: ""
size_of_preview_data: 0
block_control_handle: HANDLE(4.1.1) absolute:1
xdicobjhandle: HANDLE(3.0.0) absolute:0
NULL_handle: HANDLE(5.0.0) absolute:0
block_entity: HANDLE(3.1.25) absolute:25
first_entity: HANDLE(4.2.433) absolute:433
last_entity: HANDLE(4.2.4427) absolute:4427
endblk_entity: HANDLE(3.1.26) absolute:26

Program received signal SIGSEGV, Segmentation fault.
0x00007f2dbf7165ed in dwg_print_BLOCK_HEADER (dat=0x7fff1fbe2670, obj=0x1deb808) at /usr/include/bits/stdio2.h:98
98   return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt,
(gdb) bt
#0  0x00007f2dbf7165ed in dwg_print_BLOCK_HEADER (dat=0x7fff1fbe2670, obj=0x1deb808) at /usr/include/bits/stdio2.h:98
#1  0x00007f2dbf6cf9af in resolve_objectref_vector (dwg=0x7fff1fbe26b0) at decode.c:878
#2  0x00007f2dbf6fb4b4 in decode_R13_R15 (dat=0x7fff1fbe2670, dwg=0x7fff1fbe26b0) at decode.c:840
#3  0x00007f2dbf6fb955 in dwg_decode_data (dat=0x7fff1fbe2670, dwg=0x7fff1fbe26b0) at decode.c:345
#4  0x00007f2dbf6cae2b in dwg_read_file (filename=<value optimized out>, dwg_data=0x7fff1fbe26b0) at dwg.c:92
#5  0x0000000000401499 in test_SVG (filename=0x2 <Address 0x2 out of bounds>) at testSVG.c:57
#6  0x00007f2dbf0ef5a6 in __libc_start_main () from /lib/libc.so.6

Rodrigo Rodrigues da Silva <pitanga>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by reini_urban (Posted a comment)
  • -email is unavailable- added by pitanga (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-06-08 reini_urban Open/ClosedOpen Closed
    2018-04-26 reini_urban StatusNone Works For Me
        Assigned toNone reini_urban

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code