[peruser] segfaults with patch v7 on freebsd 7/amd64

Dave Steinberg dave-peruser at redterror.net
Thu Jan 6 11:40:18 MST 2011


On 1/6/2011 1:36 PM, Dave Steinberg wrote:
> On 1/6/2011 1:23 PM, Marcelo Coelho wrote:
>> Hi Dave,
>>
>> When you used RC2 patch, did you receive sig11's?
>
> Yes, judging from my error logs at the time I started running RC2, the
> "exit signal Segmentation fault (11)" messages started right around that
> time.

In the grand tradition of replying to oneself, I found some more and 
different backtraces:

#0  apr_palloc (pool=0x80f71a028, in_size=Variable "in_size" is not 
available.
) at memory/unix/apr_pools.c:252
252     memory/unix/apr_pools.c: No such file or directory.
         in memory/unix/apr_pools.c
[New Thread 0x8016020b0 (LWP 100742)]
(gdb) bt
#0  apr_palloc (pool=0x80f71a028, in_size=Variable "in_size" is not 
available.
) at memory/unix/apr_pools.c:252
#1  0x000000080102f7d2 in apr_table_compress (t=0x80f71a370, flags=1) at 
tables/apr_tables.c:1101
#2  0x000000000042acd0 in ap_get_mime_headers_core (r=0x80f71a0a0, 
bb=0x80f71b8e0) at protocol.c:826
#3  0x000000000042b34d in ap_read_request (conn=0x80f706298) at 
protocol.c:918
#4  0x00000000004407d3 in ap_process_http_connection (c=0x80f706298) at 
http_core.c:183
#5  0x000000000043d0d2 in ap_run_process_connection (c=0x80f706298) at 
connection.c:43
#6  0x000000000044a174 in process_socket (p=0x80f706028, 
sock=0x80f7060a0, conn_id=12, bucket_alloc=0x80f710028, pool=0x80f704028)
     at peruser.c:1364
#7  0x000000000044b32b in child_main (child_num_arg=Variable 
"child_num_arg" is not available.
) at peruser.c:2211
#8  0x000000000044bae5 in make_child (s=0x801617868, slot=12) at 
peruser.c:2532
#9  0x000000000044c0fc in ap_mpm_run (_pconf=Variable "_pconf" is not 
available.
) at peruser.c:2623
#10 0x0000000000423afa in main (argc=3, argv=0x7fffffffeab8) at main.c:739

====

Gigantic awesome backtrace that implicates Zend:

#0  0x000000080ce52df0 in ?? ()
#1  0x00000008056a6f9e in list_entry_destructor () from 
/var/www/libexec/apache22/libphp5.so
#2  0x00000008056a53de in zend_hash_del_key_or_index () from 
/var/www/libexec/apache22/libphp5.so
#3  0x00000008056a7219 in _zend_list_delete () from 
/var/www/libexec/apache22/libphp5.so
#4  0x000000080568c636 in _zval_ptr_dtor () from 
/var/www/libexec/apache22/libphp5.so
#5  0x00000008056a45a3 in zend_hash_destroy () from 
/var/www/libexec/apache22/libphp5.so
#6  0x00000008056b4159 in zend_object_std_dtor () from 
/var/www/libexec/apache22/libphp5.so
#7  0x00000008056b4179 in zend_objects_free_object_storage () from 
/var/www/libexec/apache22/libphp5.so
#8  0x00000008056b7a5b in zend_objects_store_del_ref_by_handle () from 
/var/www/libexec/apache22/libphp5.so
#9  0x00000008056b7a8f in zend_objects_store_del_ref () from 
/var/www/libexec/apache22/libphp5.so
#10 0x000000080568c636 in _zval_ptr_dtor () from 
/var/www/libexec/apache22/libphp5.so
#11 0x00000008056a45a3 in zend_hash_destroy () from 
/var/www/libexec/apache22/libphp5.so
#12 0x0000000805698eaf in _zval_dtor_func () from 
/var/www/libexec/apache22/libphp5.so
#13 0x000000080568c636 in _zval_ptr_dtor () from 
/var/www/libexec/apache22/libphp5.so
#14 0x00000008056a45a3 in zend_hash_destroy () from 
/var/www/libexec/apache22/libphp5.so
#15 0x0000000805698eaf in _zval_dtor_func () from 
/var/www/libexec/apache22/libphp5.so
#16 0x000000080568c636 in _zval_ptr_dtor () from 
/var/www/libexec/apache22/libphp5.so
#17 0x00000008056a45a3 in zend_hash_destroy () from 
/var/www/libexec/apache22/libphp5.so
#18 0x0000000805698eaf in _zval_dtor_func () from 
/var/www/libexec/apache22/libphp5.so
#19 0x000000080568c636 in _zval_ptr_dtor () from 
/var/www/libexec/apache22/libphp5.so
#20 0x00000008056a45a3 in zend_hash_destroy () from 
/var/www/libexec/apache22/libphp5.so
#21 0x00000008056b4159 in zend_object_std_dtor () from 
/var/www/libexec/apache22/libphp5.so
#22 0x00000008056b4179 in zend_objects_free_object_storage () from 
/var/www/libexec/apache22/libphp5.so
#23 0x00000008056b7a5b in zend_objects_store_del_ref_by_handle () from 
/var/www/libexec/apache22/libphp5.so
#24 0x00000008056b7a8f in zend_objects_store_del_ref () from 
/var/www/libexec/apache22/libphp5.so
#25 0x000000080568c636 in _zval_ptr_dtor () from 
/var/www/libexec/apache22/libphp5.so
#26 0x00000008056a45a3 in zend_hash_destroy () from 
/var/www/libexec/apache22/libphp5.so
#27 0x00000008056b4159 in zend_object_std_dtor () from 
/var/www/libexec/apache22/libphp5.so
#28 0x00000008056b4179 in zend_objects_free_object_storage () from 
/var/www/libexec/apache22/libphp5.so
#29 0x00000008056b7a5b in zend_objects_store_del_ref_by_handle () from 
/var/www/libexec/apache22/libphp5.so
#30 0x00000008056b7a8f in zend_objects_store_del_ref () from 
/var/www/libexec/apache22/libphp5.so
#31 0x000000080568c636 in _zval_ptr_dtor () from 
/var/www/libexec/apache22/libphp5.so
#32 0x00000008056a45a3 in zend_hash_destroy () from 
/var/www/libexec/apache22/libphp5.so
#33 0x0000000805690783 in destroy_zend_class () from 
/var/www/libexec/apache22/libphp5.so
#34 0x00000008056a45a3 in zend_hash_destroy () from 
/var/www/libexec/apache22/libphp5.so
#35 0x0000000805699716 in zend_shutdown () from 
/var/www/libexec/apache22/libphp5.so
#36 0x000000080565544a in php_module_shutdown () from 
/var/www/libexec/apache22/libphp5.so
#37 0x00000008056554e9 in php_module_shutdown_wrapper () from 
/var/www/libexec/apache22/libphp5.so
#38 0x000000080571d871 in php_apache_child_shutdown () from 
/var/www/libexec/apache22/libphp5.so
#39 0x00000008010363ed in run_cleanups (cref=0x80fd51048) at 
memory/unix/apr_pools.c:2308
#40 0x0000000801036e6e in apr_pool_destroy (pool=0x80fd51028) at 
memory/unix/apr_pools.c:779
#41 0x000000000044ced8 in just_die (sig=Variable "sig" is not available.
) at peruser.c:561
#42 <signal handler called>
#43 0x00000008056dd670 in zend_assign_to_variable () from 
/var/www/libexec/apache22/libphp5.so
#44 0x000000080570d2c3 in ZEND_ASSIGN_SPEC_CV_VAR_HANDLER () from 
/var/www/libexec/apache22/libphp5.so
#45 0x00000008056b8fb3 in execute () from 
/var/www/libexec/apache22/libphp5.so
#46 0x00000008056c6171 in zend_do_fcall_common_helper_SPEC () from 
/var/www/libexec/apache22/libphp5.so
#47 0x00000008056b8fb3 in execute () from 
/var/www/libexec/apache22/libphp5.so
#48 0x00000008056c6171 in zend_do_fcall_common_helper_SPEC () from 
/var/www/libexec/apache22/libphp5.so
#49 0x00000008056b8fb3 in execute () from 
/var/www/libexec/apache22/libphp5.so
#50 0x00000008056c6171 in zend_do_fcall_common_helper_SPEC () from 
/var/www/libexec/apache22/libphp5.so
#51 0x00000008056b8fb3 in execute () from 
/var/www/libexec/apache22/libphp5.so
#52 0x00000008056c6171 in zend_do_fcall_common_helper_SPEC () from 
/var/www/libexec/apache22/libphp5.so
#53 0x00000008056b8fb3 in execute () from 
/var/www/libexec/apache22/libphp5.so
#54 0x00000008056c6171 in zend_do_fcall_common_helper_SPEC () from 
/var/www/libexec/apache22/libphp5.so
---Type <return> to continue, or q <return> to quit---
#55 0x00000008056b8fb3 in execute () from 
/var/www/libexec/apache22/libphp5.so
#56 0x00000008056c6171 in zend_do_fcall_common_helper_SPEC () from 
/var/www/libexec/apache22/libphp5.so
#57 0x00000008056b8fb3 in execute () from 
/var/www/libexec/apache22/libphp5.so
#58 0x00000008056c6171 in zend_do_fcall_common_helper_SPEC () from 
/var/www/libexec/apache22/libphp5.so
#59 0x00000008056b8fb3 in execute () from 
/var/www/libexec/apache22/libphp5.so
#60 0x00000008056c6171 in zend_do_fcall_common_helper_SPEC () from 
/var/www/libexec/apache22/libphp5.so
#61 0x00000008056b8fb3 in execute () from 
/var/www/libexec/apache22/libphp5.so
#62 0x00000008056c6171 in zend_do_fcall_common_helper_SPEC () from 
/var/www/libexec/apache22/libphp5.so
#63 0x00000008056b8fb3 in execute () from 
/var/www/libexec/apache22/libphp5.so
#64 0x00000008056c6171 in zend_do_fcall_common_helper_SPEC () from 
/var/www/libexec/apache22/libphp5.so
#65 0x00000008056b8fb3 in execute () from 
/var/www/libexec/apache22/libphp5.so
#66 0x00000008056c6171 in zend_do_fcall_common_helper_SPEC () from 
/var/www/libexec/apache22/libphp5.so
#67 0x00000008056b8fb3 in execute () from 
/var/www/libexec/apache22/libphp5.so
#68 0x00000008056c6171 in zend_do_fcall_common_helper_SPEC () from 
/var/www/libexec/apache22/libphp5.so
#69 0x00000008056b8fb3 in execute () from 
/var/www/libexec/apache22/libphp5.so
#70 0x00000008056c6171 in zend_do_fcall_common_helper_SPEC () from 
/var/www/libexec/apache22/libphp5.so
#71 0x00000008056b8fb3 in execute () from 
/var/www/libexec/apache22/libphp5.so
#72 0x000000080568e113 in zend_call_function () from 
/var/www/libexec/apache22/libphp5.so
#73 0x000000080568f2b6 in call_user_function_ex () from 
/var/www/libexec/apache22/libphp5.so
#74 0x00000008055f81b7 in zif_call_user_func_array () from 
/var/www/libexec/apache22/libphp5.so
#75 0x00000008056c66d2 in zend_do_fcall_common_helper_SPEC () from 
/var/www/libexec/apache22/libphp5.so
#76 0x00000008056b8fb3 in execute () from 
/var/www/libexec/apache22/libphp5.so
#77 0x00000008056c6171 in zend_do_fcall_common_helper_SPEC () from 
/var/www/libexec/apache22/libphp5.so
#78 0x00000008056b8fb3 in execute () from 
/var/www/libexec/apache22/libphp5.so
#79 0x000000080568e113 in zend_call_function () from 
/var/www/libexec/apache22/libphp5.so
#80 0x00000008056ae593 in zend_call_method () from 
/var/www/libexec/apache22/libphp5.so
#81 0x00000008056b5268 in zend_std_call_user_call () from 
/var/www/libexec/apache22/libphp5.so
#82 0x00000008056c66d2 in zend_do_fcall_common_helper_SPEC () from 
/var/www/libexec/apache22/libphp5.so
#83 0x00000008056b8fb3 in execute () from 
/var/www/libexec/apache22/libphp5.so
#84 0x00000008056c6171 in zend_do_fcall_common_helper_SPEC () from 
/var/www/libexec/apache22/libphp5.so
#85 0x00000008056b8fb3 in execute () from 
/var/www/libexec/apache22/libphp5.so
#86 0x00000008056c6171 in zend_do_fcall_common_helper_SPEC () from 
/var/www/libexec/apache22/libphp5.so
#87 0x00000008056b8fb3 in execute () from 
/var/www/libexec/apache22/libphp5.so
#88 0x00000008056c6171 in zend_do_fcall_common_helper_SPEC () from 
/var/www/libexec/apache22/libphp5.so
#89 0x00000008056b8fb3 in execute () from 
/var/www/libexec/apache22/libphp5.so
#90 0x00000008056c6171 in zend_do_fcall_common_helper_SPEC () from 
/var/www/libexec/apache22/libphp5.so
#91 0x00000008056b8fb3 in execute () from 
/var/www/libexec/apache22/libphp5.so
#92 0x00000008056c6171 in zend_do_fcall_common_helper_SPEC () from 
/var/www/libexec/apache22/libphp5.so
#93 0x00000008056b8fb3 in execute () from 
/var/www/libexec/apache22/libphp5.so
#94 0x00000008056c6171 in zend_do_fcall_common_helper_SPEC () from 
/var/www/libexec/apache22/libphp5.so
#95 0x00000008056b8fb3 in execute () from 
/var/www/libexec/apache22/libphp5.so
#96 0x00000008056c6171 in zend_do_fcall_common_helper_SPEC () from 
/var/www/libexec/apache22/libphp5.so
#97 0x00000008056b8fb3 in execute () from 
/var/www/libexec/apache22/libphp5.so
#98 0x00000008056991b3 in zend_execute_scripts () from 
/var/www/libexec/apache22/libphp5.so
#99 0x00000008056552af in php_execute_script () from 
/var/www/libexec/apache22/libphp5.so
#100 0x000000080571e8ca in php_handler () from 
/var/www/libexec/apache22/libphp5.so
#101 0x00000000004361da in ap_run_handler (r=0x80fd660a0) at config.c:157
#102 0x0000000000439412 in ap_invoke_handler (r=0x80fd660a0) at config.c:376
#103 0x000000000044351e in ap_process_request (r=0x80fd660a0) at 
http_request.c:282
#104 0x0000000000440858 in ap_process_http_connection (c=0x80fd53408) at 
http_core.c:190
#105 0x000000000043d0d2 in ap_run_process_connection (c=0x80fd53408) at 
connection.c:43
#106 0x000000000044a174 in process_socket (p=0x80fd53028, 
sock=0x80fd53110, conn_id=6, bucket_alloc=0x80fd5e028, pool=0x80fd51028)
     at peruser.c:1364
#107 0x000000000044b32b in child_main (child_num_arg=Variable 
"child_num_arg" is not available.
) at peruser.c:2211
#108 0x000000000044bae5 in make_child (s=0x801617868, slot=6) at 
peruser.c:2532
---Type <return> to continue, or q <return> to quit---
#109 0x000000000044c0fc in ap_mpm_run (_pconf=Variable "_pconf" is not 
available.
) at peruser.c:2623
#110 0x0000000000423afa in main (argc=3, argv=0x7fffffffea98) at main.c:739

Not sure if these are helpful... I'm just hoping they might give someone 
more knowledgeable a clue.

Regards,
-- 
Dave Steinberg
http://www.geekisp.com/
http://www.steinbergcomputing.com/
http://www.redterror.net/


More information about the Peruser mailing list