bug-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Segfault with PHP and bison 1.875(a)


From: Sebastian Bergmann
Subject: Re: Segfault with PHP and bison 1.875(a)
Date: Sun, 05 Oct 2003 11:05:36 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5b) Gecko/20030901 Thunderbird/0.2

Paul Eggert wrote:
>>  http://bugs.php.net/bug.php?id=22215

  I applied the patch above to my current CVS checkout of PHP 5 and
  it still segfaults when the parsers are generated with bison 1.875:

Starting program: /usr/src/php/php5/sapi/cli/php
[New Thread 16384 (LWP 22087)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 22087)]
0x0823c5e8 in zend_stream_read (file_handle=0x0, buf=0x83c4e10 "",
len=8192) at /usr/src/php/php5/Zend/zend_stream.c:95
95              if (file_handle->handle.stream.interactive) {
(gdb) bt
#0  0x0823c5e8 in zend_stream_read (file_handle=0x0, buf=0x83c4e10 "",
len=8192) at /usr/src/php/php5/Zend/zend_stream.c:95
#1  0x0820ebbf in yy_get_next_buffer () at Zend/zend_ini_scanner.c:1242
#2  0x0820e87b in ini_lex (ini_lval=0xbfffe2c0) at
Zend/zend_ini_scanner.c:1076
#3  0x0820d863 in ini_parse () at Zend/zend_ini_parser.c:1087
#4  0x0820d5cd in zend_parse_ini_file (fh=0xbffff480, unbuffered_errors=1
'\001',
     ini_parser_cb=0x81e5a29 <php_config_ini_parser_cb>, arg=0x83b1000) at
zend_ini_parser.y:156
#5  0x081e637b in php_init_config () at /usr/src/php/php5/main/php_ini.c:420
#6  0x081e0ef5 in php_module_startup (sf=0x82ef200,
additional_modules=0x0, num_additional_modules=0)
     at /usr/src/php/php5/main/main.c:1390
#7  0x0825b67e in main (argc=1, argv=0xbffff794) at
/usr/src/php/php5/sapi/cli/php_cli.c:593
#8  0x403feb47 in __libc_start_main () from /lib/libc.so.6

-- 
Sebastian Bergmann
http://sebastian-bergmann.de/                   http://phpOpenTracker.de/

Das Buch zu PHP 5: http://professionelle-softwareentwicklung-mit-php5.de/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]