Skip to content

Segfault with midgard.http = Off #120

@flack

Description

@flack

Moved here from #116. This happens unconditionally on all requests I make against this particular Apache vhost (another vhost on the same machine works normally):

Program received signal SIGSEGV, Segmentation fault.
0x00007fffea95c473 in __midgard_query_select_set_property (object=0x555555a58fa0, 
    property_id=<optimized out>, value=0x7fffffffb630, pspec=<optimized out>)
    at src/midgard_query_select.c:1021
1021                            if (config->priv->dbtype == MIDGARD_DB_TYPE_SQLITE)
(gdb) backtrace
#0  0x00007fffea95c473 in __midgard_query_select_set_property (object=0x555555a58fa0, 
    property_id=<optimized out>, value=0x7fffffffb630, pspec=<optimized out>)
    at src/midgard_query_select.c:1021
#1  0x00007fffea6e386c in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#2  0x00007fffea95a2a7 in _midgard_query_executor_constructor (type=93824997545984, 
    n_construct_properties=2, construct_properties=0x555555f7f0a0)
    at src/midgard_query_executor.c:155
#3  0x00007fffea95c347 in _midgard_query_select_constructor (type=93824997545984, 
    n_construct_properties=2, construct_properties=0x555555f7f0a0)
    at src/midgard_query_select.c:947
#4  0x00007fffea6e4ce1 in g_object_newv () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#5  0x00007fffea6e54d0 in g_object_new_valist ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#6  0x00007fffea6e5804 in g_object_new () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#7  0x00007fffea95ea42 in midgard_query_select_new (mgd=<optimized out>, storage=<optimized out>)
    at src/midgard_query_select.c:51
#8  0x00007fffea983af8 in midgard_core_query_get_object (mgd=mgd@entry=0x555555a65e40, 
    classname=classname@entry=0x7fffdc0fb370 "openpsa_person", 
    object=object@entry=0x7fffffffba10, async=async@entry=0, error=error@entry=0x7fffffffba18, 
    property=<optimized out>) at src/midgard_core_query.c:2506
#9  0x00007fffea9418ef in midgard_object_new (mgd=mgd@entry=0x555555a65e40, 
    name=name@entry=0x7fffdc0fb370 "openpsa_person", value=value@entry=0x555555f78eb0)
    at src/midgard_object.c:2501
#10 0x00007fffeabe8539 in init_php_midgard_object_from_id (objid=<optimized out>, 
    php_classname=0x7fffdc0fb370 "openpsa_person", instance=0x555555f63d60)
    at /home/sonic/workspace/midgard-php5/php_midgard_object.c:66
#11 zif__midgard_php_object_constructor (ht=<optimized out>, return_value=<optimized out>, 
    return_value_ptr=<optimized out>, this_ptr=0x555555f63d60, return_value_used=<optimized out>)
    at /home/sonic/workspace/midgard-php5/php_midgard_object.c:105
#12 0x00007ffff3bb9557 in ?? () from /usr/lib/apache2/modules/libphp5.so
#13 0x00007ffff3b79378 in execute_ex () from /usr/lib/apache2/modules/libphp5.so
#14 0x00007ffff3b0c029 in zend_execute_scripts () from /usr/lib/apache2/modules/libphp5.so
#15 0x00007ffff3aaac3c in php_execute_script () from /usr/lib/apache2/modules/libphp5.so
#16 0x00007ffff3bbc822 in ?? () from /usr/lib/apache2/modules/libphp5.so
#17 0x00005555555a9d40 in ap_run_handler ()
#18 0x00005555555aa34b in ap_invoke_handler ()
#19 0x00005555555c012a in ap_process_async_request ()
#20 0x00005555555c03ff in ap_process_request ()
#21 0x00005555555bc7a5 in ?? ()
#22 0x00005555555b32a0 in ap_run_process_connection ()
#23 0x00007ffff4485738 in ?? () from /usr/lib/apache2/modules/mod_mpm_prefork.so
#24 0x00007ffff4485942 in ?? () from /usr/lib/apache2/modules/mod_mpm_prefork.so
#25 0x00007ffff4486859 in ?? () from /usr/lib/apache2/modules/mod_mpm_prefork.so
#26 0x000055555559003e in ap_run_mpm ()
#27 0x000055555558943a in main ()

This only happens when midgard.http is set to Off, but independently of whether xdebug is enabled or not. It might be a separate issues, but I really couldn't say

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions