Bug #2902 Updated: Segmentation fault with duplicate function name same as Bug #1642

From: Date: Sun, 16 Jun 2002 13:01:27 +0000
Subject: Bug #2902 Updated: Segmentation fault with duplicate function name same as Bug #1642
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-10725@lists.php.net to get a copy of this message
ID: 2902 Updated by: sander@php.net Reported By: kuroda@tkitdsn1.eq.gs.com -Status: Analyzed +Status: Bogus Bug Type: Reproducible Crash Operating System: Solaris 2.5.1 PHP Version: 3.0.12 New Comment: Thank you for taking the time to report a problem with PHP. Unfortunately, PHP 3 is no longer supported. Please download the latest version of PHP 4 from http://www.php.net/downloads.php If you are able to reproduce the bug with one of the latest versions of PHP, please change the PHP version on this bug report to the version you tested and change the status back to "Open". Again, thank you for your continued support of PHP. Previous Comments: ------------------------------------------------------------------------ [1999-12-03 10:23:37] sas@cvs.php.net You cannot combine --with-sybase and --with-sybase-ct. Both modules use the same function names. Nevertheless, I think PHP should not crash, if function names are used twice. ------------------------------------------------------------------------ [1999-12-03 07:44:19] kuroda@tkitdsn1.eq.gs.com I successfully compiled php3 binary on Solaris 2.5.1 with Sybase. I'm trying to use cgi version because we use netscape enterprise server 3.1. But I have core dump when I run a small example script like: #!/home/kuroda/5bin/php <? echo "argv=$argv[1]"; ?> Configuration is: ./configure --with-sybase=/opt/sybase --with-sybase-ct=/opt/sybase --enable-debug gcc version is egcs-2.91.66 and Sybase Openclient Ver. 11.1.1. This is a debugger message when I got a segmentation fault. warning: Unable to find dynamic linker breakpoint function. warning: GDB will be unable to debug shared library initializers warning: and track explicitly loaded dynamic code. Content-type: text/html Program received signal SIGSEGV, Segmentation fault. 0xef323e3c in strlen () (gdb) bt #0 0xef323e3c in strlen () #1 0xef36272c in _doprnt () #2 0xef36b684 in vfprintf () #3 0x2b54c in php3_printf ( format=0x80bf0 "<br>\n<b>%s</b>: %s in <b>%s</b> on line <b>%d</b><br>\n") at main.c:322 #4 0x2b790 in php3_error (type=32, format=0x82218 "Module load failed - duplicate function name - %s") at main.c:399 #5 0x3557c in register_functions (functions=0x9e03c) at internal_functions. c:591 #6 0x3563c in register_module (module=0x9e1f8) at internal_functions.c:631 #7 0x35424 in module_startup_modules () at internal_functions.c:535 #8 0x2cb20 in php3_module_startup () at main.c:1252 #9 0x2d794 in main (argc=2, argv=0xeffff0b4) at main.c:1762 Thank you very much for your any help. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=2902&edit=1

« previous php.bugs (#10725) next »