Skip to content

Instantly share code, notes, and snippets.

Created August 2, 2013 21:08
Show Gist options
  • Save anonymous/6143477 to your computer and use it in GitHub Desktop.
Save anonymous/6143477 to your computer and use it in GitHub Desktop.
(gdb) bt
#0 _php_stream_cast (stream=0x0, castas=3, castas@entry=536870915, ret=ret@entry=0x7fff6bd9e26c, show_err=show_err@entry=1)
at /home/rasmus/php-src/main/streams/cast.c:306
#1 0x00000000007785b6 in mysqlnd_stream_array_to_fd_set (conn_array=conn_array@entry=0x2aaaaab598c8, fds=fds@entry=0x7fff6bd9e3e0, max_fd=max_fd@entry=0x7fff6bd9e2cc)
at /home/rasmus/php-src/ext/mysqlnd/mysqlnd.c:1273
#2 0x000000000077b698 in _mysqlnd_poll (r_array=0x2aaaaab55aa0, e_array=0x2aaaaab598c8, dont_poll=dont_poll@entry=0x7fff6bd9e4e8, sec=0, usec=10000,
desc_num=desc_num@entry=0x7fff6bd9e4bc) at /home/rasmus/php-src/ext/mysqlnd/mysqlnd.c:1358
#3 0x00000000006421e9 in zif_mysqli_poll (ht=<optimized out>, return_value=0x2aaaaac67930, return_value_ptr=<optimized out>, this_ptr=<optimized out>,
return_value_used=<optimized out>) at /home/rasmus/php-src/ext/mysqli/mysqli_nonapi.c:800
#4 0x00000000008adb27 in zend_do_fcall_common_helper_SPEC (execute_data=0x2aaaaab229e0) at /home/rasmus/php-src/Zend/zend_vm_execute.h:543
#5 0x000000000086d968 in execute_ex (execute_data=0x2aaaaab229e0) at /home/rasmus/php-src/Zend/zend_vm_execute.h:356
#6 0x00000000007ff869 in zend_execute_scripts (type=type@entry=8, retval=retval@entry=0x0, file_count=file_count@entry=3) at /home/rasmus/php-src/Zend/zend.c:1316
#7 0x000000000079e4ec in php_execute_script (primary_file=primary_file@entry=0x7fff6bda0af0) at /home/rasmus/php-src/main/main.c:2484
#8 0x00000000008b10e3 in do_cli (argc=68, argv=0x20ca6f0) at /home/rasmus/php-src/sapi/cli/php_cli.c:994
#9 0x0000000000446950 in main (argc=68, argv=0x20ca6f0) at /home/rasmus/php-src/sapi/cli/php_cli.c:1378
(gdb) frame 7
#7 0x000000000079e4ec in php_execute_script (primary_file=primary_file@entry=0x7fff6bda0af0) at /home/rasmus/php-src/main/main.c:2484
2484 retval = (zend_execute_scripts(ZEND_REQUIRE TSRMLS_CC, NULL, 3, prepend_file_p, primary_file, append_file_p) == SUCCESS);
(gdb) p *primary_file
$3 = {type = ZEND_HANDLE_MAPPED, filename = 0x20cb220 "/home/rasmus/php-src/ext/mysqli/tests/mysqli_poll_kill.php", opened_path = 0x0, handle = {fd = -1430965208,
fp = 0x2aaaaab53428, stream = {handle = 0x2aaaaab53428, isatty = 0, mmap = {len = 5408, pos = 0, map = 0x2aaaaaad1000,
buf = 0x2aaaaaad1000 <Address 0x2aaaaaad1000 out of bounds>, old_handle = 0x240ccf0, old_closer = 0x814700 <zend_stream_stdio_closer>},
reader = 0x814800 <zend_stream_stdio_reader>, fsizer = 0x814730 <zend_stream_stdio_fsizer>, closer = 0x814780 <zend_stream_mmap_closer>}},
free_filename = 0 '\000'}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment