[mapserver-users] Segfaults with MapScript from Python

2015-02-12 Thread Jelmer Baas
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 fffc ip 7f805588750f sp 7fff641f27c0 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


Re: [mapserver-users] Segfaults with MapScript from Python

2015-02-12 Thread Dan Little
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 b...@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 fffc ip 7f805588750f sp 7fff641f27c0 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
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Segfaults with MapScript from Python

2015-02-12 Thread Jelmer Baas
The code isn't all that complex, not much more than three layers with a postgis 
source and using an ogr_style column. 

I'll do my best to create a stripped-down script and test dataset tomorrow.

-- 
Jelmer

Van: Dan Little [theduckylit...@gmail.com]
Verzonden: donderdag 12 februari 2015 16:55
Aan: Jelmer Baas
CC: mapserver-users@lists.osgeo.org
Onderwerp: 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 b...@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 fffc ip 7f805588750f sp 7fff641f27c0 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
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users