php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2902 Segmentation fault with duplicate function name same as Bug #1642
Submitted: 1999-12-03 07:44 UTC Modified: 2002-06-16 09:01 UTC
From: kuroda at tkitdsn1 dot eq dot gs dot com Assigned:
Status: Not a bug Package: Reproducible Crash
PHP Version: 3.0.12 OS: Solaris 2.5.1
Private report: No CVE-ID: None
 [1999-12-03 07:44 UTC] kuroda at tkitdsn1 dot eq dot gs dot 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-12-03 10:23 UTC] sas at cvs dot php dot 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.
 [2002-06-16 09:01 UTC] sander@php.net
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.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Tue Jun 02 07:01:27 2020 UTC