[mapserver-users] bad query result crashes Perl

Mr. Puneet Kishor punk.kish at gmail.com
Sun Sep 11 12:36:56 EDT 2011


I query Pg to grab the data with which I construct LAYER CLASSes like so (nothing fancy).

    SELECT class_name, class_expression, class_color FROM table;

A few of the rows in the result set come back with class_color = '' (I can easily avoid those, but that is not the point of this post). The "bad" color crashes mapscript.bundle which takes down Perl as well, which should never happen.

I am using Perl 5.14.1 on Mac OS X Lion.

$ perl -V
Summary of my perl5 (revision 5 version 14 subversion 1) configuration:
   
  Platform:
    osname=darwin, osvers=11.0.1, archname=darwin-multi-2level
    uname='darwin lucknow.local 11.0.1 darwin kernel version 11.0.1: wed jun 29 19:53:22 pdt 2011; root:xnu-1699.23.2~1release_x86_64 x86_64 
..
blah blah
..

Here is the crash report
----


Process:         perl5.14 [247]
Path:            /opt/local/bin/perl5.14
Identifier:      perl5.14
Version:         ??? (???)
Code Type:       X86-64 (Native)
Parent Process:  perl5.14 [246]

Date/Time:       2011-09-11 11:25:29.138 -0500
OS Version:      Mac OS X 10.7.1 (11B2118)
Report Version:  9

Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000

VM Regions Near 0:
--> 
    __TEXT                 000000010ca28000-000000010cb6a000 [ 1288K] r-x/rwx SM=COW  /opt/local/bin/perl5.14

Application Specific Information:
objc[247]: garbage collection is OFF

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   mapscript.bundle              	0x000000010cdd2e84 _wrap_styleObj_color_set + 596


--
Puneet Kishor 


More information about the mapserver-users mailing list