Skip to content

Instantly share code, notes, and snippets.

@jbq
Created March 30, 2020 08:52
Show Gist options
  • Save jbq/0a13c8b2f5b4aa5f7cdcd97e32d800f5 to your computer and use it in GitHub Desktop.
Save jbq/0a13c8b2f5b4aa5f7cdcd97e32d800f5 to your computer and use it in GitHub Desktop.
root@694f1d8be5af:/tmp# gdb apache2 core.694f1d8be5af.apache2.1585557682
GNU gdb (Debian 7.12-6) 7.12.0.20161007-git
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from apache2...Reading symbols from /usr/lib/debug/.build-id/2b/79fb6f931a0e0899e42559b7043e0bcf4bfbed.debug...done.
done.
[New LWP 24]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `apache2 -DFOREGROUND'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 upb_fielddef_index (f=f@entry=0x0) at /tmp/pear/temp/protobuf/upb.c:3346
3346 /tmp/pear/temp/protobuf/upb.c: No such file or directory.
(gdb) bt
#0 upb_fielddef_index (f=f@entry=0x0) at /tmp/pear/temp/protobuf/upb.c:3346
#1 0x00007faf14550c05 in slot_memory (layout=layout@entry=0x561b8ed5efd0, storage=storage@entry=0x7faefdbf2300, field=field@entry=0x0) at /tmp/pear/temp/protobuf/storage.c:583
#2 0x00007faf145511b3 in layout_set (layout=0x561b8ed5efd0, header=0x7faefd6b87e0, field=0x0, val=0x7faf14a1a450) at /tmp/pear/temp/protobuf/storage.c:858
#3 0x00007faf1efdb190 in ZEND_ASSIGN_OBJ_SPEC_UNUSED_CONST_OP_DATA_CV_HANDLER () from /usr/lib/apache2/modules/libphp7.so
#4 0x00007faf1eff840b in execute_ex () from /usr/lib/apache2/modules/libphp7.so
#5 0x00007faf1efff2c4 in zend_execute () from /usr/lib/apache2/modules/libphp7.so
#6 0x00007faf1ef4e203 in zend_execute_scripts () from /usr/lib/apache2/modules/libphp7.so
#7 0x00007faf1eee92a8 in php_execute_script () from /usr/lib/apache2/modules/libphp7.so
#8 0x00007faf1f001432 in php_handler () from /usr/lib/apache2/modules/libphp7.so
#9 0x0000561b8e6efd60 in ap_run_handler (r=r@entry=0x7faf23407110) at config.c:170
#10 0x0000561b8e6f02f6 in ap_invoke_handler (r=r@entry=0x7faf23407110) at config.c:434
#11 0x0000561b8e70709c in ap_internal_redirect (new_uri=<optimized out>, r=<optimized out>) at http_request.c:765
#12 0x00007faf15bbfb0d in handler_redirect (r=0x7faf2340e0a0) at mod_rewrite.c:5195
#13 0x0000561b8e6efd60 in ap_run_handler (r=r@entry=0x7faf2340e0a0) at config.c:170
#14 0x0000561b8e6f02f6 in ap_invoke_handler (r=r@entry=0x7faf2340e0a0) at config.c:434
#15 0x0000561b8e707db3 in ap_process_async_request (r=0x7faf2340e0a0) at http_request.c:436
#16 0x0000561b8e707ec0 in ap_process_request (r=r@entry=0x7faf2340e0a0) at http_request.c:471
#17 0x0000561b8e7040fd in ap_process_http_sync_connection (c=0x7faf23416290) at http_core.c:210
#18 ap_process_http_connection (c=0x7faf23416290) at http_core.c:251
#19 0x0000561b8e6f9bd0 in ap_run_process_connection (c=c@entry=0x7faf23416290) at connection.c:42
#20 0x0000561b8e6fa120 in ap_process_connection (c=c@entry=0x7faf23416290, csd=<optimized out>) at connection.c:226
#21 0x00007faf1fc5b6bf in child_main (child_num_arg=child_num_arg@entry=0, child_bucket=child_bucket@entry=0) at prefork.c:723
#22 0x00007faf1fc5b934 in make_child (s=0x7faf235a84a0, slot=slot@entry=0) at prefork.c:825
#23 0x00007faf1fc5b9a2 in startup_children (number_to_start=5) at prefork.c:843
#24 0x00007faf1fc5c823 in prefork_run (_pconf=<optimized out>, plog=0x7faf235a3028, s=0x7faf235a84a0) at prefork.c:1006
#25 0x0000561b8e6d30fe in ap_run_mpm (pconf=0x7faf235d6028, plog=0x7faf235a3028, s=0x7faf235a84a0) at mpm_common.c:94
#26 0x0000561b8e6cbcfd in main (argc=<optimized out>, argv=<optimized out>) at main.c:783
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment