Segmentation fault (core dumped) in PHP -
Segmentation fault (core dumped) in PHP -
ok, i'm running php app on command line on ubuntu, , ends "segmentation fault (core dumped)".
how go here debug it? i'm pretty sure there no memory leak checked get_memory_usage().
edit: alright, explained brendan , ulricht, tried gdb. that's not environment @ sorry oncoming newbie questions.
i ran code under gdb , got segfault. here first 22 lines.
(gdb) bt #0 0x00000000006f5d36 in ?? () #1 0x00000000006f7625 in ?? () #2 0x00000000006f7b68 in zend_parse_parameters () #3 0x0000000000610584 in zif_array_rand () #4 0x00000000006dd9bb in dtrace_execute_internal () #5 0x000000000079da15 in ?? () #6 0x0000000000717748 in execute_ex () #7 0x00000000006dd8b9 in dtrace_execute_ex () #8 0x000000000079e060 in ?? () #9 0x0000000000717748 in execute_ex () #10 0x00000000006dd8b9 in dtrace_execute_ex () #11 0x000000000079e060 in ?? () #12 0x0000000000717748 in execute_ex () #13 0x00000000006dd8b9 in dtrace_execute_ex () #14 0x000000000079e060 in ?? () #15 0x0000000000717748 in execute_ex () #16 0x00000000006dd8b9 in dtrace_execute_ex () #17 0x000000000079e060 in ?? () #18 0x0000000000717748 in execute_ex () #19 0x00000000006dd8b9 in dtrace_execute_ex () #20 0x000000000079e060 in ?? () #21 0x0000000000717748 in execute_ex () #22 0x00000000006dd8b9 in dtrace_execute_ex ()
according https://bugs.php.net/bugs-generating-backtrace.php, should "execute" calls, instead have "execute_ex". same thing?
the next command anyway not homecoming function name (after having done frame 6):
print (char *)(executor_globals.function_state_ptr->function)->common.function_name effort extract component of value not structure.
edit2: i'd appreciate knowing why downvote. think it's valid question , haven't found similar 1 php. if there you're free comment.
there several things pinpoint error, first run executable in gdb:
> gdb /usr/bin/php .... (gdb) run path/to/script
note can load dumped core gdb. other tools finding out cause issue strace , valgrind.
php
Comments
Post a Comment