Bug#299608: Segmentation fault still present in current php4
Philipp, On Wed, Mar 30, 2005 at 09:40:51AM +0200, Philipp Kern wrote: Hi there Adam, On 30 Mar 2005, at 04:31, Adam Conrad wrote: Philipp Kern said: Apache still segfaults when mysql_fetch_field() is called from within PHPMyAdmin: [notice] child pid 31234 exit signal Segmentation fault (11) Can you reduce this to a useful testcase? I've tried to reproduce this bug, and have failed miserably. mysql_fetch_field() always works just fine for me. I did a 1:1 copy from the PHPMyAdmin code to reproduce this, and indeed it works: ?php mysql_connect(server, user, pass); $result = mysql_query(SELECT * FROM mysql.user); $fields = array(); $num_fields = mysql_num_fields($result); for($i = 0; $i $num_fields; $i++) { $fields[] = mysql_fetch_field($result, $i); } ? Substituting in my server info and a table I'm allowed to read, I've tested this snippet with the cli, apache1.3, and apache2. No segfaults whatsoever with php4 4.3.10-10. You're sure you've restarted apache after upgrading php4? -- Steve Langasek postmodern programmer signature.asc Description: Digital signature
Bug#299608: Segmentation fault still present in current php4
On 30 Mar 2005, at 10:14, Steve Langasek wrote: Substituting in my server info and a table I'm allowed to read, I've tested this snippet with the cli, apache1.3, and apache2. No segfaults whatsoever with php4 4.3.10-10. You're sure you've restarted apache after upgrading php4? Sure I restarted Apache. Here's a gdb backtrace of the crash, hope this helps a bit: Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 16384 (LWP 18776)] 0x4022fc0f in strlen () from /lib/libc.so.6 (gdb) bt #0 0x4022fc0f in strlen () from /lib/libc.so.6 #1 0x408e7eba in add_property_string_ex () from /usr/lib/apache/1.3/libphp4.so #2 0x40b4ce31 in zif_mysql_fetch_field () from /usr/lib/php4/20020429/mysql.so #3 0x408f5fc0 in execute () from /usr/lib/apache/1.3/libphp4.so #4 0x408e5bd1 in zend_execute_scripts () from /usr/lib/apache/1.3/libphp4.so #5 0x408b7cdf in php_execute_script () from /usr/lib/apache/1.3/libphp4.so #6 0x408fa26e in apache_php_module_main () from /usr/lib/apache/1.3/libphp4.so #7 0x408fae3c in apache_php_module_main () from /usr/lib/apache/1.3/libphp4.so #8 0x408fb001 in apache_php_module_main () from /usr/lib/apache/1.3/libphp4.so #9 0x080553c3 in ap_invoke_handler () #10 0x08068465 in ap_some_auth_required () #11 0x08068614 in ap_process_request () #12 0x08060bd2 in ap_child_terminate () #13 0x08060de7 in ap_child_terminate () #14 0x08060f10 in ap_child_terminate () #15 0x08061a9a in ap_child_terminate () #16 0x08061ff8 in main () Regards, Philipp Kern Debian Developer PGP.sig Description: This is a digitally signed message part
Bug#299608: Segmentation fault still present in current php4
On 30 Mar 2005, at 10:40, Adam Conrad wrote: Can I get a complete list of apache modules and php extensions that are being loaded on that machine? PHP extensions: mysql.so Apache modules: env_module /usr/lib/apache/1.3/mod_env.so config_log_module /usr/lib/apache/1.3/mod_log_config.so agent_log_module /usr/lib/apache/1.3/mod_log_agent.so referer_log_module /usr/lib/apache/1.3/mod_log_referer.so mime_module /usr/lib/apache/1.3/mod_mime.so negotiation_module /usr/lib/apache/1.3/mod_negotiation.so status_module /usr/lib/apache/1.3/mod_status.so autoindex_module /usr/lib/apache/1.3/mod_autoindex.so dir_module /usr/lib/apache/1.3/mod_dir.so cgi_module /usr/lib/apache/1.3/mod_cgi.so userdir_module /usr/lib/apache/1.3/mod_userdir.so alias_module /usr/lib/apache/1.3/mod_alias.so rewrite_module /usr/lib/apache/1.3/mod_rewrite.so access_module /usr/lib/apache/1.3/mod_access.so auth_module /usr/lib/apache/1.3/mod_auth.so setenvif_module /usr/lib/apache/1.3/mod_setenvif.so dav_module /usr/lib/apache/1.3/libdav.so perl_module /usr/lib/apache/1.3/mod_perl.so ssl_module /usr/lib/apache/1.3/mod_ssl.so auth_mysql_module /usr/lib/apache/1.3/mod_auth_mysql.so bandwidth_module /usr/lib/apache/1.3/mod_bandwidth.so php4_module /usr/lib/apache/1.3/libphp4.so Regards, Philipp Kern Debian Developer PGP.sig Description: This is a digitally signed message part
Bug#299608: Segmentation fault still present in current php4
On 30 Mar 2005, at 10:55, Adam Conrad wrote: Philipp Kern said: auth_mysql_module /usr/lib/apache/1.3/mod_auth_mysql.so What version is libapache-mod-auth-mysql on your system? You guessed right, thank you. It was indeed an old version installed on the system. After upgrading to 4.3.9-2 from 4.1.8 it works just fine. Regards, Philipp Kern Debian Developer PGP.sig Description: This is a digitally signed message part
Bug#299608: Segmentation fault still present in current php4
Package: php4-mysql Version: 4:4.3.10-10 Followup-For: Bug #299608 Apache still segfaults when mysql_fetch_field() is called from within PHPMyAdmin: [notice] child pid 31234 exit signal Segmentation fault (11) When using mmcache to get more verbose faults it gives me the following: [25148] MMCACHE: PHP crashed on opline 24 of mysql_fetch_field() at /usr/share/phpmyadmin/libraries/dbi/mysql.dbi.lib.php:246 Kind regards, Philipp Kern Debian Developer -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.4.27 Locale: LANG=C, LC_CTYPE=C Versions of packages php4-mysql depends on: ii debconf [debconf-2.0] 1.4.22 Debian configuration management sy ii libapache-mod-php4 [phpapi- 4:4.3.10-10 server-side, HTML-embedded scripti ii libc6 2.3.2.ds1-13 GNU C Library: Shared libraries an ii libmysqlclient124.0.18-7 mysql database client library ii php4-cli [phpapi-20020918] 4:4.3.10-10 command-line interpreter for the p ii php4-common 4:4.3.10-10 Common files for packages built fr -- debconf information: php4/extension_mysql_cli: true php4/add_extension: true php4/remove_extension: true php4/extension_mysql_apache: true php4/extension_mysql_cgi: true -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#299608: Segmentation fault still present in current php4
Philipp Kern said: Apache still segfaults when mysql_fetch_field() is called from within PHPMyAdmin: [notice] child pid 31234 exit signal Segmentation fault (11) Can you reduce this to a useful testcase? I've tried to reproduce this bug, and have failed miserably. mysql_fetch_field() always works just fine for me. ... Adam -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#299608: Segmentation fault still present in current php4
Hi there Adam, On 30 Mar 2005, at 04:31, Adam Conrad wrote: Philipp Kern said: Apache still segfaults when mysql_fetch_field() is called from within PHPMyAdmin: [notice] child pid 31234 exit signal Segmentation fault (11) Can you reduce this to a useful testcase? I've tried to reproduce this bug, and have failed miserably. mysql_fetch_field() always works just fine for me. I did a 1:1 copy from the PHPMyAdmin code to reproduce this, and indeed it works: ?php mysql_connect(server, user, pass); $result = mysql_query(SELECT * FROM mysql.user); $fields = array(); $num_fields = mysql_num_fields($result); for($i = 0; $i $num_fields; $i++) { $fields[] = mysql_fetch_field($result, $i); } ? Regards, Philipp Kern Debian Developer PGP.sig Description: This is a digitally signed message part