|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-09-11 05:43 UTC] iain at iaindooley dot com
Description: ------------ i have some php scripts which are run from cron. i occassionally get an email from cron telling me that there was a Segmentation Fault Reproduce code: --------------- This only seems to happen on the command line, and it only seems to happen _after_ the script has been executed Expected result: ---------------- No segementation fault Actual result: -------------- A segmentation fault PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 19:00:01 2025 UTC |
sorry, i was using httpd for the backtrace where as i should have been using cli php. here is the backtrace: #0 _zval_ptr_dtor (zval_ptr=0x5a5a5a5a, __zend_filename=0x8306fe4 "/usr/home/iain/dist/php-5.1.6/Zend/zend_variables.c", __zend_lineno=175) at /usr/home/iain/dist/php-5.1.6/Zend/zend_execute_API.c:393 #1 0x082254a8 in _zval_ptr_dtor_wrapper (zval_ptr=0x5a5a5a5a) at /usr/home/iain/dist/php-5.1.6/Zend/zend_variables.c:175 #2 0x0822f988 in zend_hash_destroy (ht=0x84f8e6c) at /usr/home/iain/dist/php-5.1.6/Zend/zend_hash.c:521 #3 0x0821d971 in destroy_zend_class (pce=0x8225490) at /usr/home/iain/dist/php-5.1.6/Zend/zend_opcode.c:178 #4 0x0822fc14 in zend_hash_apply_deleter (ht=0x83a90c0, p=0x8524f00) at /usr/home/iain/dist/php-5.1.6/Zend/zend_hash.c:576 #5 0x0822ff3f in zend_hash_reverse_apply (ht=0x83a90c0, apply_func=0x8219888 <clean_non_persistent_class>) at /usr/home/iain/dist/php-5.1.6/Zend/zend_hash.c:737 #6 0x08219fd9 in shutdown_executor () at /usr/home/iain/dist/php-5.1.6/Zend/zend_execute_API.c:273 #7 0x08226541 in zend_deactivate () at /usr/home/iain/dist/php-5.1.6/Zend/zend.c:854 #8 0x081eb845 in php_request_shutdown (dummy=0x0) at /usr/home/iain/dist/php-5.1.6/main/main.c:1292 #9 0x082acf9c in main (argc=4, argv=0xbfbfedec) at /usr/home/iain/dist/php-5.1.6/sapi/cli/php_cli.c:1246 and here is the one for the other application: #0 0x082194e0 in zend_get_constant (name=0x9e9a2a4 "@", name_len=1515870810, result=0xaf) at /usr/home/iain/dist/php-5.1.6/Zend/zend_constants.c:246 #1 0x082251c4 in zend_stack_apply_with_argument (stack=0x0, type=136466860, apply_function=0xbfbfbf08, arg=0x9ea0ba4) at /usr/home/iain/dist/php-5.1.6/Zend/zend_stack.c:165 #2 0x0822f6a4 in _zend_hash_add_or_update (ht=0x9e9a2a4, arKey=0x1 <Address 0x1 out of bounds>, nKeyLength=714067076, pData=0x9e8aa40, nDataSize=136558788, pDest=0x9e934e4, flag=-1077952712, __zend_filename=0x823b8d4 "\017", __zend_lineno=166278372) at /usr/home/iain/dist/php-5.1.6/Zend/zend_hash.c:242 #3 0x0823b6f5 in zend_strtod (s00=0x9e934e4 "$�J\b���\t", se=0x10) at /usr/home/iain/dist/php-5.1.6/Zend/zend_strtod.c:1318 #4 0x0823b8d4 in zend_strtod (s00=0x9e934e4 "$�J\b���\t", se=0x907) at /usr/home/iain/dist/php-5.1.6/Zend/zend_strtod.c:1608 #5 0x0823e47c in zend_objects_store_init (objects=0x8210eab, init_size=183683280) at /usr/home/iain/dist/php-5.1.6/Zend/zend_objects_API.c:35 #6 0x0821953e in zend_get_constant (name=0x89b8824 "", name_len=166331952, result=0xaf) at /usr/home/iain/dist/php-5.1.6/Zend/zend_constants.c:300 #7 0x082251c4 in zend_stack_apply_with_argument (stack=0x0, type=136466860, apply_function=0x10, arg=0x9ea0624) at /usr/home/iain/dist/php-5.1.6/Zend/zend_stack.c:165 #8 0x0822f6a4 in _zend_hash_add_or_update (ht=0x89b8824, arKey=0x1 <Address 0x1 out of bounds>, nKeyLength=714067076, pData=0x8852000, nDataSize=142942244, pDest=0x30, flag=-1077952456, __zend_filename=0x8850ab0 "��\204\b��\204\b$ \205\b", __zend_lineno=142924196) at /usr/home/iain/dist/php-5.1.6/Zend/zend_hash.c:242 #9 0x08224f4e in zend_stack_init (stack=0x884efa4) at /usr/home/iain/dist/php-5.1.6/Zend/zend_stack.c:35 #10 0x0821953e in zend_get_constant (name=0x82af0c4 "l|a!s", name_len=144413988, result=0xaf) at /usr/home/iain/dist/php-5.1.6/Zend/zend_constants.c:300 #11 0x082251c4 in zend_stack_apply_with_argument (stack=0xdb, type=136466860, apply_function=0xbfec424, arg=0x8850aa4) at /usr/home/iain/dist/php-5.1.6/Zend/zend_stack.c:165 #12 0x0822f6a4 in _zend_hash_add_or_update (ht=0x89b9524, arKey=0xbfb9f00 "�w\202���*\b-", nKeyLength=8, pData=0x8210e6c, nDataSize=136558788, pDest=0x8853624, flag=-1077952328, __zend_filename=0x823b8d4 "\017", __zend_lineno=142947876) at /usr/home/iain/dist/php-5.1.6/Zend/zend_hash.c:242 #13 0x0823b6f5 in zend_strtod (s00=0x8853624 "$B\233\b$\225\233\b", se=0xc0) at /usr/home/iain/dist/php-5.1.6/Zend/zend_strtod.c:1318 #14 0x0823b8d4 in zend_strtod (s00=0x8853624 "$B\233\b$\225\233\b", se=0x26) at /usr/home/iain/dist/php-5.1.6/Zend/zend_strtod.c:1608 #15 0x0823e47c in zend_objects_store_init (objects=0xbfd88e4, init_size=183628728) at /usr/home/iain/dist/php-5.1.6/Zend/zend_objects_API.c:35 #16 0x0821953e in zend_get_constant (name=0xbfe8724 "�M\235|\004", name_len=201230128, result=0xaf) at /usr/home/iain/dist/php-5.1.6/Zend/zend_constants.c:300 #17 0x082251c4 in zend_stack_apply_with_argument (stack=0x8307afc, type=136466860, apply_function=0xf3, arg=0x0) at /usr/home/iain/dist/php-5.1.6/Zend/zend_stack.c:165 #18 0x0822f7d8 in _zend_hash_add_or_update (ht=0x8522124, arKey=0x8309e40 "ytes!", nKeyLength=243, pData=0x87d93bc, nDataSize=36, pDest=0xbfe4de4, flag=142308644, __zend_filename=0xbfbfc1d4 "��w\b0�w\b�\225\204\b��w\b0�\204\b0�\204\b��\204\b$%|\b\020", __zend_lineno=0) at /usr/home/iain/dist/php-5.1.6/Zend/zend_hash.c:248 #19 0x08241dda in zend_do_fcall_common_helper_SPEC (execute_data=0xbfbfc570) at zend_vm_execute.h:294 #20 0x08241661 in zend_fetch_property_address (result=0x87d40c4, container_ptr=0xbfbfc570, prop_ptr=0x87cb024, type=139130404) at /usr/home/iain/dist/php-5.1.6/Zend/zend_execute.c:1254 #21 0x082418b5 in execute (op_array=0x0) at zend_vm_execute.h:48 #22 0x08241661 in zend_fetch_property_address (result=0x87d40c4, container_ptr=0xbfbfcc00, prop_ptr=0x87c8c24, type=137403968) at /usr/home/iain/dist/php-5.1.6/Zend/zend_execute.c:1254 #23 0x082418b5 in execute (op_array=0x0) at zend_vm_execute.h:48 #24 0x08241661 in zend_fetch_property_address (result=0x84f4958, container_ptr=0xbfbfcf10, prop_ptr=0x84c1d24, type=139134500) at /usr/home/iain/dist/php-5.1.6/Zend/zend_execute.c:1254 #25 0x082418b5 in execute (op_array=0x0) at zend_vm_execute.h:48 #26 0x08241661 in zend_fetch_property_address (result=0x85280bc, container_ptr=0xbfbfd070, prop_ptr=0x854c924, type=137387756) at /usr/home/iain/dist/php-5.1.6/Zend/zend_execute.c:1254 #27 0x082418b5 in execute (op_array=0x0) at zend_vm_execute.h:48 #28 0x08241661 in zend_fetch_property_address (result=0x84bc61c, container_ptr=0xbfbfd530, prop_ptr=0x849fe24, type=2) at /usr/home/iain/dist/php-5.1.6/Zend/zend_execute.c:1254 #29 0x08226a2e in zend_error (type=1, format=0x0) at /usr/home/iain/dist/php-5.1.6/Zend/zend.c:917 #30 0x081ec1dc in php_module_shutdown () at /usr/home/iain/dist/php-5.1.6/main/main.c:1643 #31 0x082ad56b in main (argc=4, argv=0xbfbfede8) at /usr/home/iain/dist/php-5.1.6/sapi/cli/php_cli.c:876