mirror of
https://github.com/php/presentations.git
synced 2026-03-24 07:32:11 +01:00
43 lines
1010 B
XML
43 lines
1010 B
XML
<slide>
|
|
<title>Debugging a core dump</title>
|
|
|
|
<blurb>Make sure you have one first:</blurb>
|
|
|
|
<div effect="fade-out">
|
|
<example>
|
|
derick@whisky:~/docs/debugging-demo $ php gdb1/bug01180.php
|
|
Segmentation fault
|
|
</example>
|
|
|
|
<blurb class="big-centre">☹</blurb>
|
|
</div>
|
|
|
|
<div effect="fade-in">
|
|
<example inline="2">
|
|
derick@whisky:~/docs/debugging-demo $ *ulimit -c 80000*
|
|
derick@whisky:~/docs/debugging-demo $ php gdb1/bug01180.php
|
|
Segmentation fault *(core dumped)*
|
|
</example>
|
|
</div>
|
|
|
|
<div effect="fade-in">
|
|
<blurb>Then start %gdb%:</blurb>
|
|
<example inline="2">
|
|
gdb php core
|
|
</example>
|
|
<example inline="2">
|
|
Core was generated by `php gdb1/bug01180.php'.
|
|
Program terminated with signal *SIGSEGV, Segmentation fault.*
|
|
#0 __strcmp_sse2_unaligned ()
|
|
at ../sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S:32
|
|
32 ../sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: No such file or directory.
|
|
*(gdb)*
|
|
</example>
|
|
</div>
|
|
|
|
<div effect="fade-in">
|
|
<blurb>*The binary needs to match the core dump*</blurb>
|
|
</div>
|
|
|
|
</slide>
|