|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-06-23 14:53 UTC] hholzgra at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 15 13:00:01 2025 UTC |
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