|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-02-20 04:18 UTC] sqchen at citiz dot net
Description:
------------
glob("*.txt", 50) segment fault on linux
Reproduce code:
---------------
glob("*.txt", 50) ans also when the second parameter is 48 or 64 or some others
Actual result:
--------------
segfault
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 18:00:02 2025 UTC |
Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1077895360 (LWP 9385)] 0x40343c10 in strncpy () from /lib/tls/libc.so.6 (gdb) bt #0 0x40343c10 in strncpy () from /lib/tls/libc.so.6 #1 0x080d7e56 in zif_glob (ht=-1073750192, return_value=0x8372494, return_value_ptr=0x0, this_ptr=0x0, return_value_used=0) at /usr/src/debug/php-5.1.2/ext/standard/dir.c:424 #2 0x0818964c in zend_do_fcall_common_helper_SPEC (execute_data=0xbffff020) at zend_vm_execute.h:192 #3 0x081d9088 in execute (op_array=0x8372b04) at zend_vm_execute.h:92 #4 0x08161b7f in zend_eval_string (str=0xbffff58b "glob(\"*.txt\", 50);", retval_ptr=0x0, string_name=0xbfffdf50 "p?-@(\n\032@8") at /usr/src/debug/php-5.1.2/Zend/zend_execute_API.c:1091 #5 0x08161ccf in zend_eval_string_ex (str=0xbfffdf50 "p?-@(\n\032@8", retval_ptr=0xbfffdf50, string_name=0xbfffdf50 "p?-@(\n\032@8", handle_exceptions=1) at /usr/src/debug/php-5.1.2/Zend/zend_execute_API.c:1125 #6 0x081da780 in main (argc=3, argv=0xbffff3c4) at /usr/src/debug/php-5.1.2/sapi/cli/php_cli.c:1129 PHP 5.1.3-dev (cli) (built: Feb 16 2006 17:24:42)