Re: Yet another crash - argc/argv

From: Date: Sat, 29 Jan 2000 12:40:40 +0000
Subject: Re: Yet another crash - argc/argv
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-15013@lists.php.net to get a copy of this message
SM>> Script: SM>> #!/usr/bin/php SM>> <? SM>> printf("argc: %d\nargv1-2:%s-%s\n",$argc,$argv[0],$argv[1]); SM>> ?> The same script, run with arguments, gives: Program received signal SIGSEGV, Segmentation fault. 0x808931c in zend_hash_index_find (ht=0x812b488, h=0, pData=0xbffff550) at zend_hash.c:909 909 p = ht->arBuckets[nIndex]; (gdb) where #0 0x808931c in zend_hash_index_find (ht=0x812b488, h=0, pData=0xbffff550) at zend_hash.c:909 #1 0x80c40c6 in zend_fetch_dimension_address_inner (ht=0x812b488, op2=0x812b94c, Ts=0xbffff5d8, type=0) at ./zend_execute.c:584 #2 0x80c20b7 in zend_fetch_dimension_address (result=0x812b92c, op1=0x812b93c, op2=0x812b94c, Ts=0xbffff5d8, type=0) at ./zend_execute.c:706 #3 0x80bd7be in execute (op_array=0x812b7a8) at ./zend_execute.c:1224 #4 0x80762ec in php_execute_script (primary_file=0xbffff7a4) at main.c:1205 #5 0x805a021 in main (argc=4, argv=0xbffff804) at cgi_main.c:518 -- Stanislav Malyshev stas@zend.com +972-3-6139665

« previous php.dev (#15013) next »