Ah! And the backtrace:

Program received signal SIGSEGV, Segmentation fault.
0x00007f503cf7570d in dwg_print_BLOCK_HEADER (dat=0x7fff5dfcca10,
obj=0x7f503c8193f8) at /usr/include/bits/stdio2.h:98
98      return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt,
(gdb) bt
#0  0x00007f503cf7570d in dwg_print_BLOCK_HEADER (dat=0x7fff5dfcca10,
obj=0x7f503c8193f8) at /usr/include/bits/stdio2.h:98
#1  0x00007f503cf2f34f in resolve_objectref_vector (dwg=0x7fff5dfcca50) at
decode.c:867
#2  0x00007f503cf58a36 in decode_R2004 (dat=0x7fff5dfcca10,
dwg=0x7fff5dfcca50) at decode.c:1745
#3  0x00007f503cf5ab7e in dwg_decode_data (dat=0x7fff5dfcca10,
dwg=0x7fff5dfcca50) at decode.c:343
#4  0x00007f503cf2ad6b in dwg_read_file (filename=<value optimized out>,
dwg_data=0x7fff5dfcca50) at dwg.c:92
#5  0x0000000000401479 in test_SVG (filename=0x2 <Address 0x2 out of
bounds>) at testSVG.c:57
#6  0x00007f503c94f5a6 in __libc_start_main () from /lib/libc.so.6
#7  0x0000000000400d39 in _start () at ../sysdeps/x86_64/elf/start.S:113
(gdb)

On Wed, Mar 3, 2010 at 3:33 PM, Felipe Sanches <[email protected]> wrote:

> fel...@simon:~/devel/libredwg/examples$ gdb .libs/testSVG
> GNU gdb 6.8-debian
> Copyright (C) 2008 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"...
> (gdb) r ./tests/23Nightingale.dwg > /dev/null 2> error.out
> Starting program: /home/felipe/devel/libredwg/examples/.libs/testSVG
> ./tests/23Nightingale.dwg > /dev/null 2> error.out
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x00007f503cf7570d in dwg_print_BLOCK_HEADER (dat=0x7fff5dfcca10,
> obj=0x7f503c8193f8) at /usr/include/bits/stdio2.h:98
> 98      return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt,
> (gdb)
>
>
>
> On Wed, Mar 3, 2010 at 3:19 PM, Rodrigo Rodrigues da Silva <
> [email protected]> wrote:
>
>> Timo Lähde wrote:
>>
>>> Those insert_handles looks odd?
>>>
>> Definitely wrong. Did you get a segfault after that?
>>
>>
>>
>

Reply via email to