ogr vrt with php_mapscript

Olivier Gayte olivier.gayte at VEREMES.COM
Wed Nov 10 07:49:53 EST 2004


Franck,

It has taken some delay because I had never used gdb until now.
You will find herewith the traceback when php_mapscript crashes.
/usr/local/lib/libgdal.so.1 points towards libgdal.so.1.5.0
May I do anything else to help you in your investigation?

Regards.

826       if (msTryBuildPath3(szPath, layer->map->mappath,
(gdb) n
838           if( layer->debug )
(gdb) n
840           poDS = OGRSFDriverRegistrar::Open( pszDSName );
(gdb) s

Program received signal SIGSEGV, Segmentation fault.
strxmov (dst=0x8264085 "", src=0x204d <Address 0x204d out of bounds>)
    at /home/olivier/tr/source/php-4.3.7/ext/mysql/libmysql/strxmov.c:26
26          while ((*dst++ = *src++)) ;
Current language:  auto; currently c
(gdb) bt
#0  strxmov (dst=0x8264085 "", src=0x204d <Address 0x204d out of bounds>)
    at /home/olivier/tr/source/php-4.3.7/ext/mysql/libmysql/strxmov.c:26
#1  0x40bdf427 in SQLConnect () from /usr/lib/libmyodbc3.so
#2  0x40b4d706 in SQLConnect (connection_handle=0x824fe48,
    server_name=0x824f0a8 "str_odbc", name_length1=-3,
    user_name=0x824f148 "dupont", name_length2=-3,
    authentication=0x824f168 "dupont", name_length3=-3) at SQLConnect.c:3796
#3  0x40870dc2 in CPLODBCSession::EstablishSession(char const*, char
const*, cha
r const*) () from /usr/local/lib/libgdal.so.1
#4  0x408e7746 in OGRODBCDataSource::Open(char const*, int, int) ()
   from /usr/local/lib/libgdal.so.1
#5  0x408e7d86 in OGRODBCDriver::Open(char const*, int) ()
   from /usr/local/lib/libgdal.so.1
#6  0x408ee1f7 in OGRSFDriverRegistrar::Open(char const*, int,
OGRSFDriver**)
    () from /usr/local/lib/libgdal.so.1
#7  0x408ee33f in OGRSFDriverRegistrar::OpenShared(char const*, int,
OGRSFDriver
**) () from /usr/local/lib/libgdal.so.1
#8  0x408f4f99 in OGRVRTLayer::Initialize(_CPLXMLNode*, char const*) ()
   from /usr/local/lib/libgdal.so.1
#9  0x408f4745 in OGRVRTDataSource::Initialize(_CPLXMLNode*, char const*) ()
   from /usr/local/lib/libgdal.so.1
#10 0x408f4997 in OGRVRTDriver::Open(char const*, int) ()
   from /usr/local/lib/libgdal.so.1
---Type <return> to continue, or q <return> to quit---
#11 0x408ee1f7 in OGRSFDriverRegistrar::Open(char const*, int,
OGRSFDriver**)
    () from /usr/local/lib/libgdal.so.1
#12 0x405154b3 in msOGRFileOpen (layer=0x0,
    connection=0x81d6670 "<OGRVRTDataSource><OGRVRTLayer
name=\"dossier\"><SrcDataSource>ODBC:dupont/dupont at str_odbc</SrcDataSource><
SrcLayer>dossier</SrcLayer><SrcSQL>SELECT DOSSIER_CDN, DOSSIER_XLAM_CDA as
x, DOSSIER_YLAM_CDA "...)
    at mapogr.cpp:833
#13 0x40515e91 in msOGRLayerOpen (layer=0x81b7fb0,
pszOverrideConnection=0x0)
    at mapogr.cpp:1339
#14 0x405172fd in msLayerOpen (layer=0x81b7fb0) at maplayer.c:141
#15 0x4051bcd1 in msDrawVectorLayer (map=0x40b9f008, layer=0x81b7fb0,
    image=0x81db4d8) at mapdraw.c:663
#16 0x4051bad5 in msDrawLayer (map=0x40b9f008, layer=0x81b7fb0,
    image=0x81db4d8) at mapdraw.c:585
#17 0x4051b2ef in msDrawMap (map=0x40b9f008) at mapdraw.c:295
#18 0x404e8c1f in mapObj_draw (self=0x40b9f008) at mapscript_i.c:416
#19 0x404dadad in php3_ms_map_draw (ht=0, return_value=0x81b2a84,
    this_ptr=0x81b2a64, return_value_used=1) at php_mapscript.c:3311
#20 0x08122216 in execute (op_array=0x81b2ca4)
    at /home/olivier/tr/source/php-4.3.7/Zend/zend_execute.c:1635
#21 0x08117477 in zend_execute_scripts (type=8, retval=0x0, file_count=3)
    at /home/olivier/tr/source/php-4.3.7/Zend/zend.c:891
#22 0x080f614f in php_execute_script (primary_file=0xbffff010)
---Type <return> to continue, or q <return> to quit---
    at /home/olivier/tr/source/php-4.3.7/main/main.c:1731
#23 0x081265b7 in main (argc=2, argv=0xbffff094)
    at /home/olivier/tr/source/php-4.3.7/sapi/cgi/cgi_main.c:1592
#24 0x42015574 in __libc_start_main () from /lib/tls/libc.so.6
(gdb)



More information about the mapserver-users mailing list