Opened 17 years ago

Closed 17 years ago

#2231 closed defect (fixed)

AGG:

Reported by: cph Owned by: tbonfort
Priority: normal Milestone:
Component: AGG Version: svn-trunk (development)
Severity: major Keywords:
Cc: sdlime

Description

A mapfile where the IMAGEMODE "PC256" using the AGG driver causes a seg fault. Attached is the offending file.

Attachments (1)

l2.map (560 bytes ) - added by cph 17 years ago.

Download all attachments as: .zip

Change History (5)

by cph, 17 years ago

Attachment: l2.map added

comment:1 by tbonfort, 17 years ago

backtrace of the crash

Thread [1] (Suspended: Signal 'SIGSEGV' received. Description: Segmentation fault.)	
	6 mapserv_row_ptr_cache<int>::attach() /home/tom/workspace/mapserver/mapagg.h:74 0x080a61b3	
	5 mapserv_row_ptr_cache() /home/tom/workspace/mapserver/mapagg.h:57 0x080a625f	
	4 msImageCreateAGG() /home/tom/workspace/mapserver/mapagg.cpp:137 0x0809651c	
	3 msPrepareImage() /home/tom/workspace/mapserver/mapdraw.c:158 0x08078003	
	2 msDrawMap() /home/tom/workspace/mapserver/mapdraw.c:319 0x08078654	
	1 main() /home/tom/workspace/mapserver/shp2img.c:229 0x080509ef	

comment:2 by sdlime, 17 years ago

I think we should just update msImageInitAGG to throw an error with pixel models other than RGBA (not even sure that works) or RGB. I can take care of that unless there is a better idea.

Note that paletted output is still possible using a quantization or a pre-defined palette.

Steve

comment:3 by sdlime, 17 years ago

Oops, I image msImageCreateAGG()...

comment:4 by sdlime, 17 years ago

Resolution: fixed
Status: newclosed

I added a test to make sure the format is RGB or RGBA, throws an error otherwise. r6592

Steve

Note: See TracTickets for help on using tickets.