bug-bison
[Top][All Lists]
Advanced

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

Re: [PHP-DEV] Re: Segfault with PHP and bison 1.875(a)


From: Rasmus Lerdorf
Subject: Re: [PHP-DEV] Re: Segfault with PHP and bison 1.875(a)
Date: Sun, 5 Oct 2003 02:15:05 -0700 (PDT)

I had a look at this.  I think it is only the ini file parser that is 
crashing.  Try running without a php.ini.  Not that this is ok, but it at 
least narrows it down a bit if true.

-Rasmus

On Sun, 5 Oct 2003, Sebastian Bergmann wrote:

> 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
> 
> 





reply via email to

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