[BUG] profile.c / plot_cylinder_pressure_text()

Lubomir I. Ivanov neolit123 at gmail.com
Sun Nov 11 06:19:48 PST 2012

against 96fb31bc0128414
there is a bug a cannot reproduce on ubuntu/debian, but gdb on win7 shows a:
Program received signal SIGSEGV, Segmentation fault.
0x00423ae1 in plot_cylinder_pressure_text (gc=0x470380, pi=0x3512f78)
    at profile.c:1303
1303            cyl = entry->cylinderindex;
when subsurface opens 'test12.xml".

bug is not present if there are not <cylinder..> entries in the XML.
a naive solution seems to be to check if "entry" is NULL.

Signed-off-by: Lubomir I. Ivanov <neolit123 at gmail.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: profile_bug.patch
Type: application/octet-stream
Size: 929 bytes
Desc: not available
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20121111/5436c546/attachment.obj>

More information about the subsurface mailing list