php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1642 Crash for duplicate function name
Submitted: 1999-07-01 05:07 UTC Modified: 2000-06-23 14:53 UTC
From: kk at netuse dot de Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 3.0.11 OS: Solaris 2.7
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: kk at netuse dot de
New email:
PHP Version: OS:

 

 [1999-07-01 05:07 UTC] kk at netuse dot de
I wrote a module that erraneously contained two functions
with the same name. When I tried to start the interpreter
it crashed, trying to print the error message:

kk@boss ~/Source/php3 $ ./php
Content-type: text/html

<Segmentation Fault (core dumped)
(gdb) kk@boss ~/Source/php3 $ gdb php
GNU gdb 4.18
Copyright 1998 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 "sparc-sun-solaris2.7"...
(gdb) run
Starting program: /home/kk/Source/php3/php
[New LWP    2        ]
[New LWP    3        ]
[New LWP    4        ]
Content-type: text/html


Program received signal SIGSEGV, Segmentation fault.
0xff036d04 in strlen () from /usr/lib/libc.so.1
(gdb) bt
#0  0xff036d04 in strlen () from /usr/lib/libc.so.1
#1  0xff07eeb8 in _doprnt () from /usr/lib/libc.so.1
#2  0xff080c54 in vfprintf () from /usr/lib/libc.so.1
#3  0x304a4 in php3_printf (
    format=0x82488 "<br>\n<b>%s</b>:  %s in <b>%s</b> on line <b>%d</b><br>\n")
    at main.c:322
#4  0x306e8 in php3_error (type=32,
    format=0x83c80 "Module load failed - duplicate function name - %s")
    at main.c:399
#5  0x399a0 in register_functions (functions=0x9f6f4)
    at internal_functions.c:591
#6  0x39a60 in register_module (module=0x9f844) at internal_functions.c:631
#7  0x39848 in module_startup_modules () at internal_functions.c:535
#8  0x31a4c in php3_module_startup () at main.c:1252
#9  0x32640 in main (argc=1, argv=0xffbefb24) at main.c:1762

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-06-23 14:53 UTC] hholzgra at cvs dot php dot net
not reproduceable with 3.0.16

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 12:01:29 2024 UTC