Skip to content

Instantly share code, notes, and snippets.

Program received signal SIGSEGV, Segmentation fault.
0x00000070 in ?? ()
(gdb) backtrace
#0 0x00000070 in ?? ()
#1 0x00cdd184 in midgard_query_builder_get_object_select (builder=0x983a0a0, select_type=0) at src/query_builder.c:763
#2 0x00cdd37d in midgard_core_qb_set_object_from_query (builder=0x983a0a0, select_type=0, nobject=0x0) at src/query_builder.c:914
#3 0x00cdf61f in midgard_query_builder_execute_or_count (builder=0x983a0a0, holder=0x9763d30, select_type=0)
at src/query_builder.c:592
#4 0x00cdf98d in midgard_query_builder_execute (builder=0x983a0a0, n_objects=0xbfffcd5c) at src/query_builder.c:638
#5 0x00c937bd in zim_midgard_query_builder_execute (ht=0, return_value=0x997fd80, return_value_ptr=0x0, this_ptr=0x973d0e0,
[New Thread 0xb7c4fb70 (LWP 3176)]
[Thread 0xb7c4fb70 (LWP 3176) exited]
**
midgard-core:ERROR:src/midgard_core_object.c:396:_nodes2object: assertion failed: (object)
Program received signal SIGABRT, Aborted.
0x0012e416 in __kernel_vsyscall ()
(gdb) backtrace
#0 0x0012e416 in __kernel_vsyscall ()
#1 0x0065a941 in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
==3231== Memcheck, a memory error detector
==3231== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==3231== Using Valgrind-3.6.0.SVN-Debian and LibVEX; rerun with -h for copyright info
==3231== Command: /usr/bin/php /usr/bin/phpunit /home/sonic/Dokumente/workspace/openpsa/test/org/openpsa/projects/workflowTest.php
==3231== Parent PID: 3944
==3231==
--3231--
--3231-- Valgrind options:
--3231-- --suppressions=/usr/lib/valgrind/debian-libc6-dbg.supp
--3231-- -v
@flack
flack / gist:853054
Created March 3, 2011 16:37
midgard-core segfault
==11094== Memcheck, a memory error detector
==11094== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==11094== Using Valgrind-3.6.0.SVN-Debian and LibVEX; rerun with -h for copyright info
==11094== Command: /usr/bin/php /usr/bin/phpunit /home/sonic/Dokumente/workspace/openpsa/test/org/openpsa/projects/workflowTest.php
==11094== Parent PID: 4142
==11094==
--11094--
--11094-- Valgrind options:
--11094-- --suppressions=/usr/lib/valgrind/debian-libc6-dbg.supp
--11094-- -v
RINIT
:: midgard_connection::get_instance()
:: ==> instance=0x96ed2e0
[0x96ed2e0] midgard_connection::__construct()
[0x96ed364] php_midgard_gobject_new(midgard_connection)
[0x96ed364] <= php_midgard_gobject_new()
---> midgard_connection_set_loghandler(3)
---> global_loghandler = 3
[0x96ed2e0] --> glib refcount=1
[0x96ed2e0] <= midgard_connection::__construct()
[New Thread 0xb7c4fb70 (LWP 13733)]
[Thread 0xb7c4fb70 (LWP 13733) exited]
**
midgard-core:ERROR:src/midgard_core_object.c:396:_nodes2object: assertion failed: (object)
Program received signal SIGABRT, Aborted.
0x0012e416 in __kernel_vsyscall ()
(gdb) backtrace
#0 0x0012e416 in __kernel_vsyscall ()
#1 0x0065a941 in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
gdb /usr/sbin/apache2
GNU gdb (GDB) 7.2-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
==17475== Memcheck, a memory error detector
==17475== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==17475== Using Valgrind-3.6.0.SVN-Debian and LibVEX; rerun with -h for copyright info
==17475== Command: /usr/bin/php -d midgard.valgrind_friendly=On /usr/bin/phpunit --colors --no-globals-backup --coverage-html ../coverage ./org/openpsa/contacts/roleTest.php
==17475== Parent PID: 13532
==17475==
==17475== Conditional jump or move depends on uninitialised value(s)
==17475== at 0x407E611: inflateReset2 (in /lib/libz.so.1.2.3.4)
==17475== by 0x407E6EC: inflateInit2_ (in /lib/libz.so.1.2.3.4)
==17475== by 0x4078A46: ??? (in /lib/libz.so.1.2.3.4)
Program received signal SIGSEGV, Segmentation fault.
0x0832bf35 in ?? ()
(gdb) backtrace
#0 0x0832bf35 in ?? ()
#1 0x0832bf18 in ?? ()
#2 0x0832c589 in gc_collect_cycles ()
#3 0x0832cbd5 in gc_zval_possible_root ()
#4 0x08300451 in _zval_ptr_dtor ()
#5 0x0831a3f4 in zend_hash_destroy ()
#6 0x0830cbf6 in _zval_dtor_func ()
--TEST--
test for setting/getting values of parameters
--SKIPIF--
<?php if (!extension_loaded("midgard2")) print "skip"; ?>
--INI--
midgard.engine = On
midgard.http = On
midgard.memory_debug = Off
midgard.configuration=
midgard.configuration_file=./tests/test.cfg