No subject


Tue May 12 06:44:55 UTC 2009


correct one, correct?

> * install php5-dbg
> * include a copy of the crash's backtrace in gdb
> * a sample script which can cause the segfault with /usr/bin/php5
> (assuming
>   that it can)
> 
> if it doesn't crash on the cmdline, you might have to do something a
> bit trickier to get a corefile/backtrace out of apache.

I'm running Mantis 1.1.6, and when I change the driver to "mysqli", this
happens, moving to "mysql" works fine.


So I'm going to insert some info:

Apache core:
(wasn't able to get it, no idea why, maybe you can assist me? I runned
"gcore -o apache_gcore 31199" when apache crashed and GDB said that the
process has crashed, at least with other app's I was able to catch several
core debug's like this.)

gcore -o apache_gcore 31199
/home/alojamento/mantis/apache_gcore.G31369:1: Error in sourced command
file:
ptrace: Operation not permitted.
gcore: failed to create apache_gcore.31199

GDB trace:

flecha:/home/alojamento/mantis# gdb /usr/sbin/apache2
GNU gdb 6.8-debian
Copyright (C) 2008 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 "i486-linux-gnu"...
(no debugging symbols found)
(gdb) -X -k start
Undefined command: "-X".  Try "help".
(gdb) run -X -k start
Starting program: /usr/sbin/apache2 -X -k start
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[New Thread 0xb7bc26c0 (LWP 30884)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[New Thread 0xb632cb90 (LWP 30909)]
[Thread 0xb632cb90 (LWP 30909) exited]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7bc26c0 (LWP 30884)]
0xb6f58e8f in my_search_option_files () from /usr/lib/libmysqlclient.so.15
(gdb) bt
#0  0xb6f58e8f in my_search_option_files () from
/usr/lib/libmysqlclient.so.15
#1  0xb6c9d979 in load_defaults () from /usr/lib/libmysqlclient_r.so.15
#2  0xb6f78aca in mysql_read_default_options () from
/usr/lib/libmysqlclient.so.15
#3  0xb6cbf5a7 in mysql_real_connect () from /usr/lib/libmysqlclient_r.so.15
#4  0xb659a986 in zif_mysqli_real_connect () from
/usr/lib/php5/20060613+lfs/mysqli.so
#5  0xb7873333 in ?? () from /usr/lib/apache2/modules/libphp5.so
#6  0x00000008 in ?? ()
#7  0x0aa3685c in ?? ()
#8  0x00000000 in ?? ()
(gdb) d0
Undefined command: "d0".  Try "help".
(gdb) f 0
#0  0xb6f58e8f in my_search_option_files () from
/usr/lib/libmysqlclient.so.15
(gdb) f 1
#1  0xb6c9d979 in load_defaults () from /usr/lib/libmysqlclient_r.so.15
(gdb) f 2
#2  0xb6f78aca in mysql_read_default_options () from
/usr/lib/libmysqlclient.so.15
(gdb) f 2
#2  0xb6f78aca in mysql_read_default_options () from
/usr/lib/libmysqlclient.so.15
(gdb) f 3
#3  0xb6cbf5a7 in mysql_real_connect () from /usr/lib/libmysqlclient_r.so.15
(gdb) f 4
#4  0xb659a986 in zif_mysqli_real_connect () from
/usr/lib/php5/20060613+lfs/mysqli.so
(gdb) f 5
#5  0xb7873333 in ?? () from /usr/lib/apache2/modules/libphp5.so
(gdb) f 6
#6  0x00000008 in ?? ()
(gdb) quit
The program is running.  Exit anyway? (y or n) y
flecha:/home/alojamento/mantis#




More information about the pkg-php-maint mailing list