我正在尝试学习使用gdb调试php。在附加到php进程后,我将收到有关php5-mysql、php5-pgsql的调试符号的错误。哪里有问题?
# gdb -p 33087
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 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-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Attaching to process 33087
Reading symbols from /usr/bin/php5...Reading symbols from /usr/lib/debug/usr/bin/php5...done.
done.
...
Reading symbols from /usr/lib/php5/20100525/pdo.so...Reading symbols from /usr/lib/debug/usr/lib/php5/20100525/pdo.so...done.
done.
Loaded symbols for /usr/lib/php5/20100525/pdo.so
Reading symbols from /usr/lib/php5/20100525/curl.so...Reading symbols from /usr/lib/debug/usr/lib/php5/20100525/curl.so...done.
done.
Reading symbols from /usr/lib/php5/20100525/mcrypt.so...Reading symbols from /usr/lib/debug/usr/lib/php5/20100525/mcrypt.so...done.
done.
...
Reading symbols from /usr/lib/php5/20100525/mysql.so...
warning: the debug information found in "/usr/lib/debug//usr/lib/php5/20100525/mysql.so" does not match "/usr/lib/php5/20100525/mysql.so" (CRC mismatch).
warning: the debug information found in "/usr/lib/debug/usr/lib/php5/20100525/mysql.so" does not match "/usr/lib/php5/20100525/mysql.so" (CRC mismatch).
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/php5/20100525/mysql.so
Reading symbols from /usr/lib/x86_64-linux-gnu/libmysqlclient.so.18...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libmysqlclient.so.18
Reading symbols from /usr/lib/php5/20100525/mysqli.so...
warning: the debug information found in "/usr/lib/debug//usr/lib/php5/20100525/mysqli.so" does not match "/usr/lib/php5/20100525/mysqli.so" (CRC mismatch).
warning: the debug information found in "/usr/lib/debug/usr/lib/php5/20100525/mysqli.so" does not match "/usr/lib/php5/20100525/mysqli.so" (CRC mismatch).
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/php5/20100525/mysqli.so
Reading symbols from /usr/lib/php5/20100525/pdo_mysql.so...
warning: the debug information found in "/usr/lib/debug//usr/lib/php5/20100525/pdo_mysql.so" does not match "/usr/lib/php5/20100525/pdo_mysql.so" (CRC mismatch).
warning: the debug information found in "/usr/lib/debug/usr/lib/php5/20100525/pdo_mysql.so" does not match "/usr/lib/php5/20100525/pdo_mysql.so" (CRC mismatch).
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/php5/20100525/pdo_mysql.so
Reading symbols from /usr/lib/php5/20100525/pdo_pgsql.so...Reading symbols from /usr/lib/debug/usr/lib/php5/20100525/pdo_pgsql.so...done.
done.
Loaded symbols for /usr/lib/php5/20100525/pdo_pgsql.so
Reading symbols from /usr/lib/x86_64-linux-gnu/libpq.so.5...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libpq.so.5
...
0x00007fe63e36b18d in poll () from /lib/x86_64-linux-gnu/libc.so.6
(gdb)如何修复“警告:在"/usr/lib/debug/usr/lib/php5/20100525/mysql.so”中找到的调试信息不匹配“/usr/lib/php5 5/20100525/mysql.so等错误(CRC不匹配)?有趣的是,其他php扩展的符号是可以的,但是只有mysql、mysqli、postgres失败了。
Debian 7.6,所有的php包都是5.4.41-0+deb7u1。
发布于 2015-10-14 14:14:28
如何修复像
warning: the debug information found in "/usr/lib/debug/usr/lib/php5/20100525/mysql.so" does not match "/usr/lib/php5/20100525/mysql.so" (CRC mismatch).这样的错误
警告告诉您,来自两个.so库的包是不同版本的,您应该更新-dbg包以匹配已安装的mysql包。
这个命令:
dpkg -S /usr/lib/debug/usr/lib/php5/20100525/mysql.so \
/usr/lib/php5/20100525/mysql.so将告诉您.sos来自哪个包。这个命令:
dpkg -l <package1> <package2>会告诉你他们安装的版本。
https://stackoverflow.com/questions/33124009
复制相似问题