[php-maint] Bug#493045: backtrace

Frank van Viegen frank at paiq.nl
Sat Oct 25 15:13:40 UTC 2008


Same problem here. 'php --help'  exits with a segfault about 30% of
the times. The problem only occurs when mysql or mysqli is loaded;
default settings are used. As the problem seems to be thread-related,
it may be relevant to know that this is on a dual processor box,
running Linux version 2.6.22-3-686 (Debian 2.6.22-6).

Package versions:

# dpkg -l | grep mysql | awk '{print $1" "$2" "$3}'
ii libdbd-mysql-perl 4.007-1
ii libdbd-mysql-ruby 0.2.2-1
ii libdbd-mysql-ruby1.8 0.2.2-1
ii libmysql-ruby1.8 2.7.4-1
ii libmysqlclient15off 5.0.51a-15
ii mysql-client-5.0 5.0.51a-15
ii mysql-common 5.0.51a-15
ii mysql-server 5.0.51a-15
ii mysql-server-5.0 5.0.51a-15
ii php5-mysql 5.2.6-5

And a backtrace. Quite a few missing symbols though. If required,
please hint me on how to resolve that.

# gdb `which php`
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) r --help
Starting program: /usr/bin/php --help
(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)

[New Thread 0xb77ef6d0 (LWP 15714)]
[New Thread 0xaec47b90 (LWP 15715)]
Usage: php [options] [-f] <file> [--] [args...]
       php [options] -r <code> [--] [args...]
       php [options] [-B <begin_code>] -R <code> [-E <end_code>] [--] [args...]
       php [options] [-B <begin_code>] -F <file> [-E <end_code>] [--] [args...]
       php [options] -- [args...]
       php [options] -a

  -a               Run interactively
  -c <path>|<file> Look for php.ini file in this directory
  -n               No php.ini file will be used
  -d foo[=bar]     Define INI entry foo with value 'bar'
  -e               Generate extended information for debugger/profiler
  -f <file>        Parse and execute <file>.
  -h               This help
  -i               PHP information
  -l               Syntax check only (lint)
  -m               Show compiled in modules
  -r <code>        Run PHP <code> without using script tags <?..?>
  -B <begin_code>  Run PHP <begin_code> before processing input lines
  -R <code>        Run PHP <code> for every input line
  -F <file>        Parse and execute <file> for every input line
  -E <end_code>    Run PHP <end_code> after processing all input lines
  -H               Hide any passed arguments from external tools.
  -s               Display colour syntax highlighted source.
  -v               Version number
  -w               Display source with stripped comments and whitespace.
  -z <file>        Load Zend extension <file>.

  args...          Arguments passed to script. Use -- args when first argument
                   starts with - or script is read from stdin

  --ini            Show configuration file names

  --rf <name>      Show information about function <name>.
  --rc <name>      Show information about class <name>.
  --re <name>      Show information about extension <name>.
  --ri <name>      Show configuration for extension <name>.

(no debugging symbols found)

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xaec47b90 (LWP 15715)]
0xb77e93cf in ?? () from /lib/libgcc_s.so.1
(gdb) bt
#0  0xb77e93cf in ?? () from /lib/libgcc_s.so.1
#1  0xb77e9c63 in ?? () from /lib/libgcc_s.so.1
#2  0xb77e9d8b in _Unwind_ForcedUnwind () from /lib/libgcc_s.so.1
#3  0xb780aee6 in _Unwind_ForcedUnwind () from /lib/i686/cmov/libpthread.so.0
#4  0xb7808901 in __pthread_unwind () from /lib/i686/cmov/libpthread.so.0
#5  0xb7802a20 in pthread_exit () from /lib/i686/cmov/libpthread.so.0
#6  0xb7a57a74 in pthread_exit () from /lib/i686/cmov/libc.so.6
#7  0xb72a5e7e in ?? ()
#8  0x00000000 in ?? ()
(gdb)





More information about the pkg-php-maint mailing list