|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21767 segfault in cli/cgi
Submitted: 2003-01-20 03:35 UTC Modified: 2003-03-20 01:00 UTC
From: philip at cornado dot com Assigned:
Status: No Feedback Package: Scripting Engine problem
PHP Version: 5CVS-2003-01-20 (dev) OS: linux
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.
Block user comment
Status: Assign to:
Bug Type:
From: philip at cornado dot com
New email:
PHP Version: OS:


 [2003-01-20 03:35 UTC] philip at cornado dot com
./configure --enable-debug --enable-sockets

Autoconf 2.13
(GNU libtool) 1.4.3
(GNU Bison) 1.75

From latest checkout of php5, configure and make run fine but simply calling a php binary ('php -v') results is a segfault.  Here's the backtrace from simply running CLI:

#0  0x08157415 in zend_objects_store_put (object=0x401a803c, dtor=0x8155e50 <zend_objects_destroy_object>, clone=0) at /cvs/php5/Zend/zend_objects_API.c:47
#1  0x08155efc in zend_objects_new (object=0xbfffe8a0, class_type=0x81ac780) at /cvs/php5/Zend/zend_objects.c:58
#2  0x08149b2b in _object_and_properties_init (arg=0x81c2108, class_type=0x81ac780, properties=0x81c2138, __zend_filename=0x816cc20 "/cvs/php5/ext/standard/browscap.c", __zend_lineno=133) at /cvs/php5/Zend/zend_API.c:594
#3  0x0808e578 in php_browscap_parser_cb (arg1=0xbfffe980, arg2=0x0, callback_type=2, arg=0x81a6960) at /cvs/php5/ext/standard/browscap.c:133
#4  0x081321fa in ini_parse () at /cvs/php5/Zend/zend_ini_parser.y:213
#5  0x08131c6e in zend_parse_ini_file (fh=0xbffff7e0, unbuffered_errors=1 '\001', ini_parser_cb=0x808e3c8 <php_browscap_parser_cb>, arg=0x81a6960) at /cvs/php5/Zend/zend_ini_parser.y:164
#6  0x0808e6d2 in zm_startup_browscap (type=1, module_number=3) at /cvs/php5/ext/standard/browscap.c:169
#7  0x080877da in zm_startup_basic (type=1, module_number=3) at /cvs/php5/ext/standard/basic_functions.c:1044
#8  0x0814b113 in zend_startup_module (module=0x819dd20) at /cvs/php5/Zend/zend_API.c:1057
#9  0x08112296 in php_startup_extensions (ptr=0x81a63a4, count=8) at /cvs/php5/main/main.c:1106
#10 0x08165b15 in php_startup_internal_extensions () at main/internal_functions_cli.c:65
#11 0x0811270a in php_module_startup (sf=0x81a6320, additional_modules=0x0, num_additional_modules=0) at /cvs/php5/main/main.c:1269
#12 0x08164c0e in main (argc=2, argv=0xbffffaa4) at /cvs/php5/sapi/cli/php_cli.c:480


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-04 04:06 UTC]
Has this problem gone in the latest version?

 [2003-03-20 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over 2 weeks, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sun Dec 04 08:03:43 2022 UTC