Bug 4238

Summary: php-cgi-4.3.7-alt0.cvs20040519 из Сизифа(25.05.04) Segmentation fault
Product: Sisyphus Reporter: Alexander Markelov <markelov>
Component: php-cgiAssignee: Alexey Gladkov <legion>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: critical    
Priority: P3 CC: legion
Version: unstable   
Hardware: all   
OS: Linux   

Description Alexander Markelov 2004-05-26 15:20:57 MSD
падает в Segmentation fault при запуске /usr/bin/php-cgi
может будет полезно
[deep@server deep]$ rpm -qa | grep php
php-libs-4.3.7-alt0.cvs20040519
php-gd2-4.3.7-alt0.cvs20040519
php-ldap-4.3.7-alt0.cvs20040519
php-cgi-4.3.7-alt0.cvs20040519
php-sybase_ct-4.3.7-alt0.cvs20040519.1
phpMyAdmin-2.5.5-alt1pl1
php-base-1.0-alt1
php-imap-4.3.7-alt0.cvs20040519
php-manual-ru-4.3.0-alt2
php-pgsql-4.3.7-alt0.cvs20040519
php-mime_magic-4.3.7-alt0.cvs20040519
php-mysql-4.3.7-alt0.cvs20040519
php-4.3.7-alt0.cvs20040519
php-mbstring-4.3.7-alt0.cvs20040519
mod_php-4.3.7-alt0.cvs20040519
php-openssl-4.3.7-alt0.cvs20040519
php-devel-4.3.7-alt0.cvs20040519
[deep@server deep]$ gdb /usr/bin/php-cgi
GNU gdb 6.1-alt1 (ALT Linux)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i586-alt-linux"...(no debugging symbols found)...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) break main
Breakpoint 1 at 0x804a946
(gdb) run
Starting program: /usr/bin/php-cgi
(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)...
Breakpoint 1, 0x0804a946 in main ()
(gdb) s
Single stepping until exit from function main,
which has no line number information.
0x08049f50 in php_startup_internal_extensions ()
(gdb) bt
#0  0x08049f50 in php_startup_internal_extensions ()
#1  0x0804d3cc in php_builtin_extensions ()
#2  0xbffff984 in ?? ()
#3  0x0804ba60 in _IO_stdin_used ()
#4  0x0804db0c in executor_globals ()
#5  0x0804d360 in php_builtin_extensions ()
#6  0x00000000 in ?? ()
(gdb) break php_builtin_extensions
Breakpoint 2 at 0x804d300
(gdb) s
Single stepping until exit from function php_startup_internal_extensions,
which has no line number information.

Program received signal SIGSEGV, Segmentation fault.
0x002c2491 in strlen () from /lib/libc.so.6
(gdb) info program
        Using the running image of child process 8452.
Program stopped at 0x2c2491.
It stopped with signal SIGSEGV, Segmentation fault.

(gdb) where
#0  0x002c2491 in strlen () from /lib/libc.so.6
#1  0x0021417f in zend_register_module () from /usr/lib/libphp-4.3.7.so
#2  0x00213eb9 in zend_startup_module () from /usr/lib/libphp-4.3.7.so
#3  0x001e4038 in php_startup_extensions () from /usr/lib/libphp-4.3.7.so
#4  0x08049f0b in php_startup_internal_extensions ()
#5  0x00000014 in ?? ()
#6  0xbffff7b8 in ?? ()
#7  0x001e460b in php_module_startup () from /usr/lib/libphp-4.3.7.so
Previous frame inner to this frame (corrupt stack?)
(gdb)
Comment 1 Alexey Gladkov 2004-05-26 15:25:48 MSD
Новая сборка php-cgi с утра в incoming и на 
ftp.altlinux.ru/pub/people/legion/{rpm,srpm}/
проверьте, там все исправлено.