[php-maint] PHP-mysqli Problem since 5.2.9.dfsg.1-2

Jorge Bastos - Decimal jorge at decimal.pt
Wed May 20 22:16:34 UTC 2009


Additional info, I was testing, and if I try to dump the core to the process
of gdb, it works, but I don't know if it's the right one.

Attached there's the file.

flecha:/home/alojamento/mantis# ps aux |grep -i apache
root     31833  2.1  1.0  26024 21748 pts/0    S+   23:05   0:00 gdb
/usr/sbin/apache2
www-data 31836  1.0  0.9  49888 20608 pts/0    Tl   23:05   0:00
/usr/sbin/apache2 -X -k start
root     31862  0.0  0.0   3580   760 pts/1    R+   23:05   0:00 grep -i
apache
flecha:/home/alojamento/mantis# gcore -o apache_gcore 31833
(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)
0xb7ed2146 in poll () from /lib/libc.so.6
Saved corefile apache_gcore.31833
flecha:/home/alojamento/mantis# gcore -o apache_gcore 31836
/home/alojamento/mantis/apache_gcore.l31881:1: Error in sourced command
file:
ptrace: Operation not permitted.
gcore: failed to create apache_gcore.31836



> -----Original Message-----
> From: Jorge Bastos - Decimal [mailto:jorge at decimal.pt]
> Sent: quarta-feira, 20 de Maio de 2009 22:56
> To: 'sean finney'
> Cc: 'pkg-php-maint at lists.alioth.debian.org'
> Subject: RE: [php-maint] PHP-mysqli Problem since 5.2.9.dfsg.1-2
> 
> > i suggest you report a bug against php5-mysql, and if at all possible
> > please do the following (along with including standard version info
> > etc):
> 
> Howdy,
> 
> From apt-cache show libapache2-mod-php5, I think the email in CC is the
> 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#
-------------- next part --------------
A non-text attachment was scrubbed...
Name: apache_coredump.zip
Type: application/x-zip-compressed
Size: 4439664 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-php-maint/attachments/20090520/fe0643df/attachment-0001.bin>


More information about the pkg-php-maint mailing list