greenjambi

Analysing Apache Crash Core Dump

Oct 4th, 2016
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.14 KB | None | 0 0
  1. # gdb /usr/sbin/apache2 CoreDump
  2. GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
  3. Copyright (C) 2014 Free Software Foundation, Inc.
  4. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
  5. This is free software: you are free to change and redistribute it.
  6. There is NO WARRANTY, to the extent permitted by law. Type "show copying"
  7. and "show warranty" for details.
  8. This GDB was configured as "x86_64-linux-gnu".
  9. Type "show configuration" for configuration details.
  10. For bug reporting instructions, please see:
  11. <http://www.gnu.org/software/gdb/bugs/>.
  12. Find the GDB manual and other documentation resources online at:
  13. <http://www.gnu.org/software/gdb/documentation/>.
  14. For help, type "help".
  15. Type "apropos word" to search for commands related to "word"...
  16. Reading symbols from /usr/sbin/apache2...Reading symbols from /usr/lib/debug//usr/sbin/apache2...done.
  17. done.
  18. [New LWP 21622]
  19. [Thread debugging using libthread_db enabled]
  20. Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
  21. Core was generated by `/usr/sbin/apache2 -k restart'.
  22. Program terminated with signal SIGSEGV, Segmentation fault.
  23. #0 _zend_mm_free_int (heap=0x7f85a40bb810, p=0xffffffff) at /build/php5-i8TFRg/php5-5.5.9+dfsg/Zend/zend_alloc.c:2075
  24. 2075 /build/php5-i8TFRg/php5-5.5.9+dfsg/Zend/zend_alloc.c: No such file or directory.
  25. (gdb) trace
  26. Tracepoint 1 at 0x7f859f261a48: file /build/php5-i8TFRg/php5-5.5.9+dfsg/Zend/zend_alloc.c, line 2075.
  27. (gdb) trace full
  28. Function "full" not defined.
  29. Make tracepoint pending on future shared library load? (y or [n]) n
  30. (gdb) backtrace
  31. #0 _zend_mm_free_int (heap=0x7f85a40bb810, p=0xffffffff) at /build/php5-i8TFRg/php5-5.5.9+dfsg/Zend/zend_alloc.c:2075
  32. #1 0x00007f859f27e33d in destroy_op_array (op_array=0x7f85a4c16b58) at /build/php5-i8TFRg/php5-5.5.9+dfsg/Zend/zend_opcode.c:408
  33. #2 0x00007f859f296608 in zend_hash_destroy (ht=0x7f85a4c01ed0) at /build/php5-i8TFRg/php5-5.5.9+dfsg/Zend/zend_hash.c:560
  34. #3 0x00007f859f27dffc in destroy_zend_class (pce=<optimized out>) at /build/php5-i8TFRg/php5-5.5.9+dfsg/Zend/zend_opcode.c:300
  35. #4 0x00007f859f294fc5 in zend_hash_apply_deleter (ht=ht@entry=0x7f85a3cc7050, p=p@entry=0x7f85a4577100) at /build/php5-i8TFRg/php5-5.5.9+dfsg/Zend/zend_hash.c:650
  36. #5 0x00007f859f296b09 in zend_hash_reverse_apply (ht=0x7f85a3cc7050, apply_func=apply_func@entry=0x7f859f278f50 <clean_non_persistent_class>) at /build/php5-i8TFRg/php5-5.5.9+dfsg/Zend/zend_hash.c:804
  37. #6 0x00007f859f279753 in shutdown_executor () at /build/php5-i8TFRg/php5-5.5.9+dfsg/Zend/zend_execute_API.c:303
  38. #7 0x00007f859f288ad2 in zend_deactivate () at /build/php5-i8TFRg/php5-5.5.9+dfsg/Zend/zend.c:935
  39. #8 0x00007f859f22988d in php_request_shutdown (dummy=dummy@entry=0x0) at /build/php5-i8TFRg/php5-5.5.9+dfsg/main/main.c:1808
  40. #9 0x00007f859f339def in php_apache_request_dtor (r=<optimized out>) at /build/php5-i8TFRg/php5-5.5.9+dfsg/sapi/apache2handler/sapi_apache2.c:507
  41. #10 php_handler (r=<optimized out>) at /build/php5-i8TFRg/php5-5.5.9+dfsg/sapi/apache2handler/sapi_apache2.c:679
  42. #11 0x00007f85a389ebe0 in ap_run_handler (r=0x7f85a3970660) at config.c:169
  43. #12 0x00007f85a389f129 in ap_invoke_handler (r=r@entry=0x7f85a3970660) at config.c:439
  44. #13 0x00007f85a38b41bc in ap_internal_redirect (new_uri=<optimized out>, r=<optimized out>) at http_request.c:648
  45. #14 0x00007f859d40ccfc in handler_redirect (r=0x7f85a39740a0) at mod_rewrite.c:5063
  46. #15 0x00007f85a389ebe0 in ap_run_handler (r=0x7f85a39740a0) at config.c:169
  47. #16 0x00007f85a389f129 in ap_invoke_handler (r=r@entry=0x7f85a39740a0) at config.c:439
  48. #17 0x00007f85a38b46fa in ap_process_async_request (r=r@entry=0x7f85a39740a0) at http_request.c:317
  49. #18 0x00007f85a38b49d4 in ap_process_request (r=r@entry=0x7f85a39740a0) at http_request.c:363
  50. #19 0x00007f85a38b1472 in ap_process_http_sync_connection (c=0x7f85a3981290) at http_core.c:190
  51. #20 ap_process_http_connection (c=0x7f85a3981290) at http_core.c:231
  52. #21 0x00007f85a38a8250 in ap_run_process_connection (c=0x7f85a3981290) at connection.c:41
  53. #22 0x00007f85a38a8638 in ap_process_connection (c=c@entry=0x7f85a3981290, csd=<optimized out>) at connection.c:202
  54. #23 0x00007f859fc63767 in child_main (child_num_arg=child_num_arg@entry=5) at prefork.c:704
  55. #24 0x00007f859fc639a6 in make_child (s=0x7f85a3aa9de0, slot=slot@entry=5) at prefork.c:800
  56. #25 0x00007f859fc640f9 in prefork_run (_pconf=<optimized out>, plog=<optimized out>, s=<optimized out>) at prefork.c:1051
  57. #26 0x00007f85a38858ae in ap_run_mpm (pconf=0x7f85a3ad1028, plog=0x7f85a3aa5028, s=0x7f85a3aa9de0) at mpm_common.c:96
  58. #27 0x00007f85a387f046 in main (argc=3, argv=0x7ffd2d20ed88) at main.c:777
  59. (gdb) backtrace full
  60. #0 _zend_mm_free_int (heap=0x7f85a40bb810, p=0xffffffff) at /build/php5-i8TFRg/php5-5.5.9+dfsg/Zend/zend_alloc.c:2075
  61. mm_block = <optimized out>
  62. next_block = <optimized out>
  63. size = <optimized out>
  64. #1 0x00007f859f27e33d in destroy_op_array (op_array=0x7f85a4c16b58) at /build/php5-i8TFRg/php5-5.5.9+dfsg/Zend/zend_opcode.c:408
  65. literal = <optimized out>
  66. end = <optimized out>
  67. i = 0
  68. #2 0x00007f859f296608 in zend_hash_destroy (ht=0x7f85a4c01ed0) at /build/php5-i8TFRg/php5-5.5.9+dfsg/Zend/zend_hash.c:560
  69. p = 0x7f85a4c16d20
  70. q = 0x7f85a4c17c90
  71. #3 0x00007f859f27dffc in destroy_zend_class (pce=<optimized out>) at /build/php5-i8TFRg/php5-5.5.9+dfsg/Zend/zend_opcode.c:300
  72. ce = 0x7f85a4c01ea8
  73. #4 0x00007f859f294fc5 in zend_hash_apply_deleter (ht=ht@entry=0x7f85a3cc7050, p=p@entry=0x7f85a4577100) at /build/php5-i8TFRg/php5-5.5.9+dfsg/Zend/zend_hash.c:650
  74. retval = <optimized out>
  75. #5 0x00007f859f296b09 in zend_hash_reverse_apply (ht=0x7f85a3cc7050, apply_func=apply_func@entry=0x7f859f278f50 <clean_non_persistent_class>) at /build/php5-i8TFRg/php5-5.5.9+dfsg/Zend/zend_hash.c:804
  76. result = 1
  77. p = 0x7f85a4dad7f0
  78. q = 0x7f85a4577100
  79. #6 0x00007f859f279753 in shutdown_executor () at /build/php5-i8TFRg/php5-5.5.9+dfsg/Zend/zend_execute_API.c:303
  80. __orig_bailout = 0x0
  81. __bailout = {{__jmpbuf = {140211885753664, -3662792806756303837, 140211951961696, 140211953479584, 0, 140211952030352, -3613503973399512029, -3662792885447082973}, __mask_was_saved = 0, __saved_mask = {__val = {14783951080942550051, 4294967296, 0,
  82. 140209207377920, 140211877452521, 140209207377920, 140211877452521, 140211955432464, 140211962419232, 140211965599160, 1, 140211885752120, 140211885753400, 140211953479584, 140211877607166, 140211885753312}}}}
  83. #7 0x00007f859f288ad2 in zend_deactivate () at /build/php5-i8TFRg/php5-5.5.9+dfsg/Zend/zend.c:935
  84. No locals.
  85. #8 0x00007f859f22988d in php_request_shutdown (dummy=dummy@entry=0x0) at /build/php5-i8TFRg/php5-5.5.9+dfsg/main/main.c:1808
  86. report_memleaks = 1 '\001'
  87. #9 0x00007f859f339def in php_apache_request_dtor (r=<optimized out>) at /build/php5-i8TFRg/php5-5.5.9+dfsg/sapi/apache2handler/sapi_apache2.c:507
  88. No locals.
  89. #10 php_handler (r=<optimized out>) at /build/php5-i8TFRg/php5-5.5.9+dfsg/sapi/apache2handler/sapi_apache2.c:679
  90. ctx = 0x7f85a3971c50
  91. conf = <optimized out>
  92. brigade = 0x7f85a3978b98
  93. bucket = <optimized out>
  94. rv = <optimized out>
  95. parent_req = 0x0
  96. #11 0x00007f85a389ebe0 in ap_run_handler (r=0x7f85a3970660) at config.c:169
  97. pHook = 0x7f85a3a08850
  98. n = 3
  99. rv = 0
  100. #12 0x00007f85a389f129 in ap_invoke_handler (r=r@entry=0x7f85a3970660) at config.c:439
  101. handler = <optimized out>
  102. p = <optimized out>
  103. result = <optimized out>
  104. old_handler = 0x7f85a3a3eac8 "application/x-httpd-php"
  105. ignore = <optimized out>
  106. #13 0x00007f85a38b41bc in ap_internal_redirect (new_uri=<optimized out>, r=<optimized out>) at http_request.c:648
  107. new = 0x7f85a3970660
  108. access_status = <optimized out>
  109. #14 0x00007f859d40ccfc in handler_redirect (r=0x7f85a39740a0) at mod_rewrite.c:5063
  110. No locals.
  111. #15 0x00007f85a389ebe0 in ap_run_handler (r=0x7f85a39740a0) at config.c:169
  112. pHook = 0x7f85a3a08878
  113. n = 4
  114. rv = 0
  115. #16 0x00007f85a389f129 in ap_invoke_handler (r=r@entry=0x7f85a39740a0) at config.c:439
  116. handler = <optimized out>
  117. p = <optimized out>
  118. result = <optimized out>
  119. old_handler = 0x7f859d4151e9 "redirect-handler"
  120. ignore = <optimized out>
  121. #17 0x00007f85a38b46fa in ap_process_async_request (r=r@entry=0x7f85a39740a0) at http_request.c:317
  122. access_status = 0
  123. #18 0x00007f85a38b49d4 in ap_process_request (r=r@entry=0x7f85a39740a0) at http_request.c:363
  124. bb = <optimized out>
  125. b = <optimized out>
  126. c = 0x7f85a3981290
  127. rv = <optimized out>
  128. #19 0x00007f85a38b1472 in ap_process_http_sync_connection (c=0x7f85a3981290) at http_core.c:190
  129. r = 0x7f85a39740a0
  130. cs = 0x0
  131. ---Type <return> to continue, or q <return> to quit---
  132. csd = 0x7f85a39810a0
  133. mpm_state = 1
  134. #20 ap_process_http_connection (c=0x7f85a3981290) at http_core.c:231
  135. No locals.
  136. #21 0x00007f85a38a8250 in ap_run_process_connection (c=0x7f85a3981290) at connection.c:41
  137. pHook = 0x7f85a3a08de8
  138. n = 1
  139. rv = 0
  140. #22 0x00007f85a38a8638 in ap_process_connection (c=c@entry=0x7f85a3981290, csd=<optimized out>) at connection.c:202
  141. rc = <optimized out>
  142. #23 0x00007f859fc63767 in child_main (child_num_arg=child_num_arg@entry=5) at prefork.c:704
  143. current_conn = 0x7f85a3981290
  144. csd = 0x7f85a39810a0
  145. thd = 0x7f85a39830a0
  146. osthd = 140211953440640
  147. ptrans = 0x7f85a3981028
  148. allocator = 0x7f85a3e9cae0
  149. status = <optimized out>
  150. i = <optimized out>
  151. lr = <optimized out>
  152. pollset = 0x7f85a3983158
  153. sbh = 0x7f85a3983150
  154. bucket_alloc = 0x7f85a397d028
  155. last_poll_idx = 1
  156. lockfile = <optimized out>
  157. #24 0x00007f859fc639a6 in make_child (s=0x7f85a3aa9de0, slot=slot@entry=5) at prefork.c:800
  158. pid = 0
  159. #25 0x00007f859fc640f9 in prefork_run (_pconf=<optimized out>, plog=<optimized out>, s=<optimized out>) at prefork.c:1051
  160. status = 0
  161. pid = {pid = 20067, in = 0x7f85a38bf648, out = 0xa, err = 0x7f85a2f90ff6 <find_entry+134>}
  162. child_slot = 5
  163. exitwhy = APR_PROC_EXIT
  164. processed_status = 0
  165. index = <optimized out>
  166. remaining_children_to_start = 2
  167. rv = <optimized out>
  168. #26 0x00007f85a38858ae in ap_run_mpm (pconf=0x7f85a3ad1028, plog=0x7f85a3aa5028, s=0x7f85a3aa9de0) at mpm_common.c:96
  169. pHook = 0x7f85a3a09240
  170. n = 0
  171. rv = 0
  172. #27 0x00007f85a387f046 in main (argc=3, argv=0x7ffd2d20ed88) at main.c:777
  173. c = 0 '\000'
  174. showcompile = 0
  175. showdirectives = 0
  176. confname = 0x7f85a38bec07 "apache2.conf"
  177. def_server_root = 0x7f85a38bebfa "/etc/apache2"
  178. temp_error_log = 0x0
  179. error = <optimized out>
  180. process = 0x7f85a3ad3118
  181. pconf = 0x7f85a3ad1028
  182. plog = 0x7f85a3aa5028
  183. ptemp = 0x7f85a3a7d028
  184. pcommands = 0x7f85a3aaf028
  185. opt = 0x7f85a3aaf118
  186. rv = <optimized out>
  187. mod = 0x7f85a3ae0160 <ap_prelinked_modules+64>
  188. opt_arg = 0x7f85a3ad3028 "(p\255\243\205\177"
  189. signal_server = <optimized out>
Add Comment
Please, Sign In to add comment