Edit report at https://bugs.php.net/bug.php?id=65312&edit=1

 ID:                 65312
 User updated by:    bee8192 at gmail dot com
 Reported by:        bee8192 at gmail dot com
 Summary:            Segmentation fault with filesize=4096
-Status:             Feedback
+Status:             Open
 Type:               Bug
 Package:            *General Issues
 Operating System:   Win7x64+Cygwin
 PHP Version:        5.5.1
 Block user comment: N
 Private report:     N

 New Comment:

(gdb) bt
#0  lex_scan (zendlval=zendlval@entry=0x285888) at 
Zend/zend_language_scanner.c:1091
#1  0x006e840f in zendlex (zendlval=zendlval@entry=0x285880) at /install/php-
5.5.1/Zend/zend_compile.c:6777
#2  0x006c2f0e in zendparse () at /install/php-
5.5.1/Zend/zend_language_parser.c:3436
#3  0x006c98f2 in compile_file (file_handle=0x289944, type=8) at 
Zend/zend_language_scanner.l:588
#4  0x005a0c72 in phar_compile_file (file_handle=0x289944, type=8) at 
/install/php-5.5.1/ext/phar/phar.c:3388
#5  0x006fe22d in zend_execute_scripts (type=type@entry=8, 
retval=retval@entry=0x0, file_count=file_count@entry=3) at /install/php-
5.5.1/Zend/zend.c:1308
#6  0x0069fa4c in php_execute_script (primary_file=primary_file@entry=0x289944) 
at /install/php-5.5.1/main/main.c:2484
#7  0x007a249b in do_cli (argc=argc@entry=2, argv=0xb965ba 
<long_min_digits+726>, argv@entry=0x28ac1c) at /install/php-
5.5.1/sapi/cli/php_cli.c:994
#8  0x007b1e6c in main (argc=2, argv=0x28ac1c) at /install/php-
5.5.1/sapi/cli/php_cli.c:1378
(gdb)


One would rather need php in cygwin environment than need cygwin to run php.


Previous Comments:
------------------------------------------------------------------------
[2013-07-23 06:23:58] a...@php.net

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.

Why would one use cygwin if there is a native build? Besides that, a backtrace 
is 
needed.

------------------------------------------------------------------------
[2013-07-23 00:00:16] bee8192 at gmail dot com

Description:
------------
php fails to parse any file with size 4096 with "Segmentation fault (core 
dumped)" 
message on Cygwin. Adding or deleting any character from the file fixes the 
problem.

Test script:
---------------
/home/Eugene/test>php -r 'echo str_repeat("\n", 4096);' > test.php
/home/Eugene/test>ls -l
total 4
-rw-r--r--+ 1 Eugene 4096 Jul 23 00:42 test.php
/home/Eugene/test>php -f test.php
Segmentation fault (core dumped)



Expected result:
----------------
4096 new lines.

Actual result:
--------------
Segmentation fault (core dumped)



------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=65312&edit=1

Reply via email to