[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mapserver-users
Subject:    Re: [mapserver-users] Segfaults with MapScript from Python
From:       Jelmer Baas <baas () speerit ! nl>
Date:       2015-02-13 10:07:05
Message-ID: BC9747AD8551184D9B674A8310FE337B229F7DB0 () mailserver
[Download RAW message or body]

[Attachment #2 (text/plain)]

Dan, List,

I've been messing around with this issue some more, and found the cause!

This record crashes MapScript is this (this is the ONLY record in the database now):
OID, geom, ogr_style
1234, POINT(620008 6697971), 'LABEL(t:"(0) test")'

The ONLY thing that matters is the OGR_STYLE clause - the (0) part. Replace the style \
with 'LABEL(t:".(0) test")' and all is well.

I attached my test scripts. Run simply with 'python test.py'.

Test-data:
CREATE TABLE testset
(
  oid oid,
  geom geometry,
  ogr_style character varying(350),
  filetype character(1)
)
Insert into testset(oid, geom, ogr_style) values (1234, \
'010100002031BF0D00F726AD90D0EB2241846601CDFC8C5941', 'LABEL(t:"(0) test")')

This single record crashes Python / MapScript with a lovely
" Segmentation fault (core dumped)".

Hopefully someone can debug this issue.

Regards,
Jelmer

-----Original Message-----
From: Dan Little [mailto:theduckylittle@gmail.com] 
Sent: donderdag 12 februari 2015 16:55
To: Jelmer Baas
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Segfaults with MapScript from Python

I don't see any debugging symbols in there making life a little bit
more difficult.

Is your Python code very complex? Could a useful snippet be posted to a gist?

On Thu, Feb 12, 2015 at 9:44 AM, Jelmer Baas <baas@speerit.nl> wrote:
> Hi List,
> 
> Some of my automated renders are failing because Python crashes with an \
>                 Segmentation fault. I've finally found at least some logs of this:
> Feb 12 16:16:19 vm-ctwrender07 kernel: [276759.889265] traps: python[8002] general \
> protection ip:7f104ec4f50f sp:7fff17d8d790 error:0 in \
>                 libmapserver.so.6.4.1[7f104eb91000+1d8000]
> Feb 12 15:08:01 vm-ctwrender07 kernel: [272664.046597] traps: python[7841] general \
> protection ip:7f80558877b6 sp:7fff641f27c0 error:0 in \
>                 libmapserver.so.6.4.1[7f80557c9000+1d8000]
> Feb 12 13:53:01 vm-ctwrender07 kernel: [268166.881041] python[7614]: segfault at \
> fffffffffffffffc ip 00007f805588750f sp 00007fff641f27c0 error 5 in \
> libmapserver.so.6.4.1[7f80557c9000+1d8000] 
> Unfortunatly, I have no idea how to continue. I suspect this has something todo \
> with odd font rendering (too large, too small), since I had issues with that \
> before. Can someone match these addresses with code and find out where it crashes? 
> Thanks in advance!
> 
> Regards,
> Jelmer
> _______________________________________________
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users


["MapScript crash.zip" (application/x-zip-compressed)]

_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic