Skip to content

Instantly share code, notes, and snippets.

@flack
Created May 9, 2011 08:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flack/962251 to your computer and use it in GitHub Desktop.
Save flack/962251 to your computer and use it in GitHub Desktop.
mgd1 segfault
Code to reproduce:
$mc = new midgard_collector('midgard_article', 'metadata.deleted', false);
$mc->set_offset(12);
Segfault:
Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
(gdb) backtrace
#0 0x00000000 in ?? ()
#1 0xb703e03e in midgard_collector_set_offset (self=0xb82c8a90, offset=12) at src/midgard_collector.c:588
#2 0xb68cff66 in zim_midgard_collector_set_offset (ht=1, return_value=0xb8e0ef28, return_value_ptr=0x0, this_ptr=0xb8daa130,
return_value_used=0) at /tmp/Midgard_AllinOne-8.09.9.99/php5-midgard-8.09.9.99/php_midgard_collector.c:399
#3 0xb78798fe in ?? () from /usr/lib/apache2/modules/libphp5.so
#4 0xb7852bcc in execute () from /usr/lib/apache2/modules/libphp5.so
#5 0xb782bf08 in zend_execute_scripts () from /usr/lib/apache2/modules/libphp5.so
#6 0xb77d119e in php_execute_script () from /usr/lib/apache2/modules/libphp5.so
#7 0xb78c705b in ?? () from /usr/lib/apache2/modules/libphp5.so
#8 0xb7fdc181 in ap_run_handler (r=0xb87f8340) at /build/buildd/apache2-2.2.17/server/config.c:159
#9 0xb7fdc589 in ap_invoke_handler (r=0xb87f8340) at /build/buildd/apache2-2.2.17/server/config.c:377
#10 0xb7fee318 in ap_process_request (r=0xb87f8340) at /build/buildd/apache2-2.2.17/modules/http/http_request.c:282
#11 0xb7feaf78 in ap_process_http_connection (c=0xb87f22e0) at /build/buildd/apache2-2.2.17/modules/http/http_core.c:190
#12 0xb7fe3701 in ap_run_process_connection (c=0xb87f22e0) at /build/buildd/apache2-2.2.17/server/connection.c:43
#13 0xb7ff376a in child_main (child_num_arg=<value optimized out>) at /build/buildd/apache2-2.2.17/server/mpm/prefork/prefork.c:662
#14 0xb7ff3aa1 in make_child (s=<value optimized out>, slot=0) at /build/buildd/apache2-2.2.17/server/mpm/prefork/prefork.c:707
#15 0xb7ff43bf in ap_mpm_run (_pconf=0xb800d0a8, plog=0xb803f170, s=0xb80118e8)
at /build/buildd/apache2-2.2.17/server/mpm/prefork/prefork.c:983
#16 0xb7fc58ea in main (argc=2, argv=0xbffff7d4) at /build/buildd/apache2-2.2.17/server/main.c:741
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment