Opened 8 years ago

Closed 7 years ago

#1547 closed defect (fixed)

Segfault when calling count_unchecked() on midcom_core_collector

Reported by: flack Owned by: piotras
Priority: blocker Milestone: 8.09.9 Ragnaroek
Component: Midgard Core Version: 8.09 Ragnaroek
Keywords: Cc:

Description

I tried to change the midcom_core_collector::count() calls in org.maemo.brainstorm/style/index.php to count_unchecked() (which runs midgard_collector::count() directly). This resulted in the following backtrace:

Program received signal SIGSEGV, Segmentation fault.
0x008a1898 in midgard_query_builder_count (builder=0xb042b950) at src/query_builder.c:412
412     src/query_builder.c: No such file or directory.
        in src/query_builder.c
(gdb) backtrace
#0  0x008a1898 in midgard_query_builder_count (builder=0xb042b950) at src/query_builder.c:412
#1  0x00f51361 in zim_midgard_query_builder_count (ht=0, return_value=0xb0f0a154, return_value_ptr=0x0, this_ptr=0xb0f09c34, return_value_used=1)
    at /tmp/Midgard_AllinOne-8.09.6.1/php5-midgard-8.09.6.1/query_builder.c:401
#2  0xb7c8f3a6 in ?? () from /usr/lib/apache2/modules/libphp5.so
#3  0xb7c8aeab in execute () from /usr/lib/apache2/modules/libphp5.so
#4  0xb7c8ec59 in ?? () from /usr/lib/apache2/modules/libphp5.so
#5  0xb7c8aeab in execute () from /usr/lib/apache2/modules/libphp5.so
#6  0xb7c95cba in ?? () from /usr/lib/apache2/modules/libphp5.so
#7  0xb7c8aeab in execute () from /usr/lib/apache2/modules/libphp5.so
#8  0xb7c8ec59 in ?? () from /usr/lib/apache2/modules/libphp5.so
#9  0xb7c8aeab in execute () from /usr/lib/apache2/modules/libphp5.so
#10 0xb7c8ec59 in ?? () from /usr/lib/apache2/modules/libphp5.so
#11 0xb7c8aeab in execute () from /usr/lib/apache2/modules/libphp5.so
#12 0xb7c8ec59 in ?? () from /usr/lib/apache2/modules/libphp5.so
#13 0xb7c8aeab in execute () from /usr/lib/apache2/modules/libphp5.so
#14 0xb7c8ec59 in ?? () from /usr/lib/apache2/modules/libphp5.so
#15 0xb7c8aeab in execute () from /usr/lib/apache2/modules/libphp5.so
#16 0xb7c8ec59 in ?? () from /usr/lib/apache2/modules/libphp5.so
#17 0xb7c8aeab in execute () from /usr/lib/apache2/modules/libphp5.so
#18 0xb7c8ec59 in ?? () from /usr/lib/apache2/modules/libphp5.so
#19 0xb7c8aeab in execute () from /usr/lib/apache2/modules/libphp5.so
#20 0xb7c8ec59 in ?? () from /usr/lib/apache2/modules/libphp5.so
#21 0xb7c8aeab in execute () from /usr/lib/apache2/modules/libphp5.so
#22 0xb7c65384 in zend_execute_scripts () from /usr/lib/apache2/modules/libphp5.so
#23 0xb7c1a106 in php_execute_script () from /usr/lib/apache2/modules/libphp5.so
#24 0xb7cdbd73 in ?? () from /usr/lib/apache2/modules/libphp5.so
#25 0x0067df61 in ap_run_handler () from /usr/sbin/apache2
#26 0x00681d3f in ap_invoke_handler () from /usr/sbin/apache2
#27 0x006915b8 in ap_process_request () from /usr/sbin/apache2
#28 0x0068e128 in ?? () from /usr/sbin/apache2
#29 0x006867d1 in ap_run_process_connection () from /usr/sbin/apache2
#30 0x00696ad1 in ?? () from /usr/sbin/apache2
#31 0x00696db1 in ?? () from /usr/sbin/apache2
#32 0x0069753f in ap_mpm_run () from /usr/sbin/apache2
#33 0x00668a92 in main () from /usr/sbin/apache2

Change History (2)

comment:1 Changed 7 years ago by indeyets

  • Priority changed from major to blocker

segfault = blocker

comment:2 Changed 7 years ago by piotras

  • Resolution set to fixed
  • Status changed from new to closed

(In [26414]) Work around midgard_collector count being not implemented. Fix #1547

Note: See TracTickets for help on using tickets.