Menu

#953 Converting SDF mol into SVG results in a crash

2.3.x
open
nobody
svg (3)
1
2015-01-14
2015-01-14
No

I'm running OpenBabel v2.3.0 on a xubuntu system v12.04.5 LTS
When I try to convert the given SDF file into a vectorial SVG file, running the following command:

$ babel mol.sdf -osvg pic.svg

babel crash with the following error:

*** glibc detected *** babel: munmap_chunk(): invalid pointer: 0x0000000000c52480 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x7e846)[0x7fb00e48f846]
/usr/lib/libopenbabel.so.4(+0xc1b2d)[0x7fb00e0d1b2d]
/usr/lib/libopenbabel.so.4(+0xc462d)[0x7fb00e0d462d]
/usr/lib/libopenbabel.so.4(+0xd19bf)[0x7fb00e0e19bf]
/usr/lib/libopenbabel.so.4(ZN9OpenBabel15generateDiagramEPNS_5OBMolE+0x65)[0x7fb00e0f8e25]
/usr/lib/openbabel/2.3.0/plugin_ops.so(+0xc012)[0x7fb00337f012]
/usr/lib/openbabel/2.3.0/svgformat.so(+0x4b4c)[0x7fb00cbc4b4c]
/usr/lib/openbabel/2.3.0/svgformat.so(+0x6dc2)[0x7fb00cbc6dc2]
/usr/lib/libopenbabel.so.4(_ZN9OpenBabel12OBConversion7ConvertEv+0xee)[0x7fb00e110fce]
/usr/lib/libopenbabel.so.4(_ZN9OpenBabel12OBConversion7ConvertEPSiPSo+0x1d3)[0x7fb00e114763]
/usr/lib/libopenbabel.so.4(_ZN9OpenBabel12OBConversion11FullConvertERSt6vectorISsSaISsEERSsS4
+0x20b1)[0x7fb00e1168e1]
babel[0x40287b]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7fb00e43276d]
babel[0x402f51]
======= Memory map: ========
00400000-00406000 r-xp 00000000 08:06 5638697 /usr/bin/babel
00605000-00606000 r--p 00005000 08:06 5638697 /usr/bin/babel
00606000-00607000 rw-p 00006000 08:06 5638697 /usr/bin/babel
[...]

However, if I make all hydrogens implicit, in this way:

$ babel mol.sdf -osvg pic.svg -d

the output is correctly generated.

1 Attachments

Discussion