Mapserver4.4.2 CGI version: ?Premature end of script headers: mapserv
Joe H. Semon
fishingwind at HOTMAIL.COM
Sun May 8 00:59:41 PDT 2005
Debug shp2img:
(gdb) file shp2img
Reading symbols from shp2img...done.
(gdb) break fopen
Breakpoint 1 at 0x804f2b4
(gdb) run -m mi38017.map -o 1.png
Starting program: /home/www/mapserver/shp2img -m mi38017.map -o 1.png
[New Thread 1083995360 (LWP 13888)]
[Switching to Thread 1083995360 (LWP 13888)]
Breakpoint 1, 0x0804f2b4 in fopen ()
(gdb) next
Single stepping until exit from function fopen,
which has no line number information.
Warning:
Cannot insert breakpoint 0.
Error accessing memory address 0x9b0: è¾å
¥/è¾åºé误.
(gdb) bt
#0 0x0804df44 in _init ()
#1 0x0805b3dc in msLoadMap (filename=0xbffffa00 "mi38017.map",
new_mappath=0x0) at mapfile.c:4413
#2 0x0804fdb8 in main (argc=5, argv=0xbffff8a4) at shp2img.c:89
#3 0x42015574 in __libc_start_main () from /lib/tls/libc.so.6
(gdb) next
Single stepping until exit from function _init,
which has no line number information.
Program received signal SIGSEGV, Segmentation fault.
0x0805a857 in loadMapInternal (filename=0xbffffa00 "mi38017.map",
new_mappath=0x0) at mapfile.c:4178
4178 if((msyyin = fopen(filename,"r")) == NULL) {
(gdb) kill
Kill the program being debugged? (y or n) y
(gdb)
Seems it occurs an error when opening the .map file.
More information about the MapServer-users
mailing list