Note that this does not open properly (it drops the 2nd line):
gdb --args src/inkscape /tmp/small_test.emf
with bt
#0 SPDocument::createDoc (rdoc=0x8f6b4f0, uri=0x8c8ad48 "\354\017\310\b\354\254\310\b\\a\310\b\\k\275\b\\k\275\b\240\017\306\b8\237\315\b\001", base=0x0,
name=0x8c8ad48 "\354\017\310\b\354\254\310\b\\a\310\b\\k\275\b\\k\275\b\240\017\306\b8\237\315\b\001", keepalive=1, parent=0x0) at document.cpp:331
#1 0x080e8bb9 in SPDocument::createNewDocFromMem (buffer=0x8c8ad48 "\354\017\310\b\354\254\310\b\\a\310\b\\k\275\b\\k\275\b\240\017\306\b8\237\315\b\001",
length=147369288, keepalive=150102000) at document.cpp:577
#2 0x083366d3 in Inkscape::Extension::Internal::Emf::open (this=0x8c19310, uri=0x8e53a5c "/tmp/small_test.emf") at extension/internal/emf-inout.cpp:3500
#3 0x082bc623 in Inkscape::Extension::Input::open (this=0x8ca6098, uri=0x8e53a5c "/tmp/small_test.emf") at extension/input.cpp:153
#4 0x082ba238 in Inkscape::Extension::open (key=0x8c8ad48, filename=0x8e53a5c "/tmp/small_test.emf") at extension/system.cpp:117
#5 0x08101010 in sp_file_open (uri=..., key=0x0, add_to_recent=true, replace_empty=true) at file.cpp:274
#6 0x080ad76e in sp_main_gui (argc=2, argv=0xbffff6d4) at main.cpp:1065
#7 0x0808c321 in main (argc=2, argv=0xbffff6d4) at main.cpp:789
When run in valgrind I could not find any evidence of an uninitialized variable in any of the relevant sections.
Note that this does not open properly (it drops the 2nd line):
gdb --args src/inkscape /tmp/small_test.emf
with bt
#0 SPDocument: :createDoc (rdoc=0x8f6b4f0, uri=0x8c8ad48 "\354\017\ 310\b\354\ 254\310\ b\\a\310\ b\\k\275\ b\\k\275\ b\240\017\ 306\b8\ 237\315\ b\001", base=0x0, 310\b\354\ 254\310\ b\\a\310\ b\\k\275\ b\\k\275\ b\240\017\ 306\b8\ 237\315\ b\001", keepalive=1, parent=0x0) at document.cpp:331 :createNewDocFr omMem (buffer=0x8c8ad48 "\354\017\ 310\b\354\ 254\310\ b\\a\310\ b\\k\275\ b\\k\275\ b\240\017\ 306\b8\ 237\315\ b\001", 147369288, keepalive= 150102000) at document.cpp:577 :Extension: :Internal: :Emf::open (this=0x8c19310, uri=0x8e53a5c "/tmp/small_ test.emf" ) at extension/ internal/ emf-inout. cpp:3500 :Extension: :Input: :open (this=0x8ca6098, uri=0x8e53a5c "/tmp/small_ test.emf" ) at extension/ input.cpp: 153 :Extension: :open (key=0x8c8ad48, filename=0x8e53a5c "/tmp/small_ test.emf" ) at extension/ system. cpp:117
name=0x8c8ad48 "\354\017\
#1 0x080e8bb9 in SPDocument:
length=
#2 0x083366d3 in Inkscape:
#3 0x082bc623 in Inkscape:
#4 0x082ba238 in Inkscape:
#5 0x08101010 in sp_file_open (uri=..., key=0x0, add_to_recent=true, replace_empty=true) at file.cpp:274
#6 0x080ad76e in sp_main_gui (argc=2, argv=0xbffff6d4) at main.cpp:1065
#7 0x0808c321 in main (argc=2, argv=0xbffff6d4) at main.cpp:789
When run in valgrind I could not find any evidence of an uninitialized variable in any of the relevant sections.