Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#3828 closed defect (duplicate)

imagetype gif causes segmentation fault in trunk

Reported by: havatv Owned by: tbonfort
Priority: normal Milestone:
Component: MapServer C Library Version: unspecified
Severity: normal Keywords:
Cc: havatv

Description (last modified by tbonfort)

(gdb) run -m test.map -o test.gif
Starting program: svn/mapserver/shp2img -m test.map -o test.gif
[Thread debugging using libthread_db enabled]
[New Thread 0x7ffd707a4710 (LWP 16305)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffd707a4710 (LWP 16305)]
0x000000000050c582 in msFreeSymbol (s=0x27be3b0) at mapsymbol.c:128
128               s->renderer->freeSymbol(s);
(gdb) bt
#0  0x000000000050c582 in msFreeSymbol (s=0x27be3b0) at mapsymbol.c:128
#1  0x000000000050d59d in msFreeSymbolSet (symbolset=0x27bbca0)
    at mapsymbol.c:397
#2  0x00000000004a4e43 in msFreeMap (map=0x27bbc70) at mapobject.c:102
#3  0x0000000000414d6a in main (argc=5, argv=0x7fffbfffc058) at shp2img.c:314

Attachments (1)

bug3828.patch (2.0 KB ) - added by tbonfort 13 years ago.
trying to fix this…

Download all attachments as: .zip

Change History (8)

comment:1 by tbonfort, 13 years ago

Description: modified (diff)

comment:2 by havatv, 13 years ago

This one seems to be more difficult to isolate. In my complex mapfile, I can hinder the seg fault by for instance removing a class with simple polygon fill. It does not seem to be tied to one specific class, because if I remove another class with simple polygon fill, that can also hinder the seg fault.

It does not seem to be tied to the dimensionality of the features either, because if I render only polygons, or only lines, there is no crash.

comment:3 by havatv, 13 years ago

Cc: havatv added

by tbonfort, 13 years ago

Attachment: bug3828.patch added

trying to fix this...

comment:4 by tbonfort, 13 years ago

Havard, can you test the attached patch to see if it resolves your issue please ?

comment:5 by havatv, 13 years ago

No crash with shp2img after applying bug3828.patch.

comment:6 by tbonfort, 13 years ago

Resolution: duplicate
Status: newclosed

I've created #3834 which contains the reason for this bug. closing this one as it is only a side effect of 3834.

comment:7 by tbonfort, 13 years ago

the workaround for this issue has been committed in r11546

Note: See TracTickets for help on using tickets.