[mapserver-dev] python-mapscript: generateSLD() segfaults

Yewondwossen Assefa yassefa at dmsolutions.ca
Thu Mar 5 10:07:03 EST 2009


Stephan

Checking now if I can reproduce it here ... if not I might ask for a 
sample of your map file.

Best Regards,

Stephan Holl wrote:
> Dear mapServer-devs,
> 
> using Python-mapscript to write out SLDs for my layers I found out,
> that some layers did not write an SLD and my script dies with a
> segfault.
> 
> Using GDB I get this information from bt:
> 
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0xb7fd36c0 (LWP 14112)]
> 0x00769878 in msStringConcatenate at plt ()
> from /home/gis2/intevation/wms-migration/apps/lib/python2.4/site-packages/_mapscript.so
> (gdb) bt #0  0x00769878 in msStringConcatenate at plt ()
> from /home/gis2/intevation/wms-migration/apps/lib/python2.4/site-packages/_mapscript.so
> #1  0x0083b7e6 in msSLDGenerateSLD ()
> from /home/gis2/intevation/wms-migration/apps/lib/python2.4/site-packages/_mapscript.so
> #2  0x007b141d in _wrap_layerObj_generateSLD (self=0x0,
> args=0xb7f680ec) at mapscript_wrap.c:3717 #3  0x4f02645d in
> PyCFunction_Call () from /usr/lib/libpython2.4.so.1.0 #4  0x4effbd57 in
> PyObject_Call () from /usr/lib/libpython2.4.so.1.0 #5  0x4f05f1bc in
> PyEval_EvalFrame () from /usr/lib/libpython2.4.so.1.0 #6  0x4f061c68 in
> PyEval_EvalCodeEx () from /usr/lib/libpython2.4.so.1.0 #7  0x4f060426
> in PyEval_EvalFrame () from /usr/lib/libpython2.4.so.1.0 #8  0x4f061c68
> in PyEval_EvalCodeEx () from /usr/lib/libpython2.4.so.1.0 #9
> 0x4f061cf3 in PyEval_EvalCode () from /usr/lib/libpython2.4.so.1.0 #10
> 0x4f07e998 in ?? () from /usr/lib/libpython2.4.so.1.0 #11 0x4f0800a8 in
> PyRun_SimpleFileExFlags () from /usr/lib/libpython2.4.so.1.0 #12
> 0x4f08078a in PyRun_AnyFileExFlags () from /usr/lib/libpython2.4.so.1.0
> #13 0x4f087185 in Py_Main () from /usr/lib/libpython2.4.so.1.0 #14
> 0x08048582 in main ()
> 
> bt full gives this:
> (gdb) bt full
> #0  0x00769878 in msStringConcatenate at plt ()
> from /home/gis2/intevation/wms-migration/apps/lib/python2.4/site-packages/_mapscript.so
> No symbol table info available. #1  0x0083b7e6 in msSLDGenerateSLD ()
> from /home/gis2/intevation/wms-migration/apps/lib/python2.4/site-packages/_mapscript.so
> No symbol table info available. #2  0x007b141d in
> _wrap_layerObj_generateSLD (self=0x0, args=0xb7f680ec) at
> mapscript_wrap.c:3717 resultobj = (PyObject *) 0x0 arg1 = <value
> optimized out> result = <value optimized out>
>         argp1 = (void *) 0x94f5230
>         res1 = <value optimized out>
>         obj0 = (PyObject *) 0xb7ce764c
> #3  0x4f02645d in PyCFunction_Call () from /usr/lib/libpython2.4.so.1.0
> 
> I am using MS 5.2.1 and python 2.4.3
> 
> The Layer it dies has 26 classes with Expressions like this:
> EXPRESSION "EH        "
> 
> All this is on Oracle Spatial though.
> 
> Perhaps someone can give me a hint?
> 
> 	Stephan
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> mapserver-dev mailing list
> mapserver-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-dev


-- 
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst

Email: assefa at dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925
----------------------------------------------------------------



More information about the mapserver-dev mailing list