I receive a segmentation fault when I launch geocache_seed:
(gdb) run -c /etc/mod_geocache/geocache.xml -t mtb-cartography -z 0,2 -n 4 Starting program: /usr/bin/geocache_seed -c /etc/mod_geocache/geocache.xml -t mtb-cartography -z 0,2 -n 4 [Thread debugging using libthread_db enabled]
Program received signal SIGSEGV, Segmentation fault. 0x0000000000000001 in ?? () (gdb) bt
0 0x0000000000000001 in ?? ()
1 0x000000000040a3fa in geocache_configuration_parse (ctx=0x7fffffffd590, filename=<value optimized out>, config=0x62b730) at configuration.c:992
2 0x00000000004055ed in main (argc=<value optimized out>, argv=0x7fffffffd7b8) at geocache_seed.c:310
I'm using mod-geocache 0.3.1 on CentOS 5.5
Looking into the source it seems that the log method was not bound to the gctx struct, yet.
Comment #1
Posted on Mar 24, 2011 by Helpful RhinoLooking at the code, this has been fixed in trunk. I don't have the time to backport this in the 0.3 branch until next week, I'll release a 0.3.2 then (there's another critical fix that should be addressed in the seeder too, see r261).
Comment #2
Posted on Mar 24, 2011 by Happy ElephantAfter commenting the line of code, that caused the error described above, I received the folloing segmentation fault:
[root@dev mapserver_fpe]# /usr/bin/geocache_seed -c /etc/mod_geocache/geocache.xml -t mtb-cartography -z 0,5 -n 4 Segmentation fault 42.6667 tiles/sec (avg:39.12) [root@dev mapserver_fpe]# gdb /usr/bin/geocache_seed GNU gdb (GDB) Red Hat Enterprise Linux (7.0.1-23.el5_5.2) Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-redhat-linux-gnu". For bug reporting instructions, please see: http://www.gnu.org/software/gdb/bugs/... Reading symbols from /usr/bin/geocache_seed...Reading symbols from /usr/lib/debug/usr/bin/geocache_seed.debug...done. done. (gdb) run -c /etc/mod_geocache/geocache.xml -t mtb-cartography -z 0,5 -n 4 Starting program: /usr/bin/geocache_seed -c /etc/mod_geocache/geocache.xml -t mtb-cartography -z 0,5 -n 4 [Thread debugging using libthread_db enabled] [New Thread 0x40a00940 (LWP 26367)] libgcc_s.so.1 must be installed for pthread_cancel to work
Program received signal SIGABRT, Aborted. [Switching to Thread 0x40a00940 (LWP 26367)] 0x00000035eee30265 in raise () from /lib64/libc.so.6 (gdb) bt
0 0x00000035eee30265 in raise () from /lib64/libc.so.6
1 0x00000035eee31d10 in abort () from /lib64/libc.so.6
2 0x00000035eee6a84b in __libc_message () from /lib64/libc.so.6
3 0x00000035eee6a92a in __libc_fatal () from /lib64/libc.so.6
4 0x00000035efe0f26a in pthread_cancel_init () from /lib64/libpthread.so.0
5 0x00000035efe0f2f0 in _Unwind_ForcedUnwind () from /lib64/libpthread.so.0
6 0x00000035efe0d160 in __pthread_unwind () from /lib64/libpthread.so.0
7 0x00000035efe07985 in pthread_exit () from /lib64/libpthread.so.0
8 0x00002aaaaaae2d76 in apr_thread_exit () from /usr/lib64/libapr-1.so.0
9 0x0000000000404e7c in doseed (thread=0x7ac658, data=) at geocache_seed.c:190
10 0x00000035efe0673d in start_thread () from /lib64/libpthread.so.0
11 0x00000035eeed3f6d in clone () from /lib64/libc.so.6
(gdb)
Comment #3
Posted on Apr 11, 2011 by Helpful Rhinodoes the segfault also occur in trunk ?
Comment #4
Posted on Apr 12, 2011 by Happy ElephantTryed the trunk version from today morning and it worked without segfault error using 4cores.
Comment #5
Posted on Apr 12, 2011 by Helpful Rhino(No comment was entered for this change.)
Status: Fixed
Labels:
Type-Defect
Priority-Medium
Milestone-Release0.4