Skip to content

Instantly share code, notes, and snippets.

# phpunit --colors --no-globals-backup ./midcom/core/privilegeTest.php
PHP Deprecated: midgard.superglobals_compat option is deprecated and might be removed in next release in Unknown on line 0
*** glibc detected *** /usr/bin/php: double free or corruption (fasttop): 0x09980cd8 ***
======= Backtrace: =========
/lib/libc.so.6(+0x6c501)[0x9d1501]
/lib/libc.so.6(+0x6dd70)[0x9d2d70]
/lib/libc.so.6(cfree+0x6d)[0x9d5e5d]
/lib/libglib-2.0.so.0(g_free+0x36)[0xff4486]
/lib/libglib-2.0.so.0(g_strfreev+0x30)[0x100d480]
/usr/lib/php5/20090626+lfs/midgard2.so(zm_startup_midgard2+0xff4)[0xacee14]
MINIT done (pid = 9361)
RINIT
:: midgard_connection::get_instance()
:: ==> instance=0x9878578
[0x98785fc] php_midgard_gobject_new(midgard_connection)
[0x98785fc] <= php_midgard_gobject_new()
[0x9878578] midgard_connection::__construct()
---> midgard_connection_set_loghandler(3)
---> global_loghandler = 3
[0x9878578] --> glib refcount=1
--TEST--
test for creating child objects with guid parent field
--SKIPIF--
<?php if (!extension_loaded("midgard2")) print "skip"; ?>
--INI--
midgard.engine = On
midgard.http = On
midgard.memory_debug = Off
midgard.configuration=
midgard.configuration_file=[[CFG_FILE]]
==14551== Memcheck, a memory error detector
==14551== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==14551== Using Valgrind-3.6.0.SVN-Debian and LibVEX; rerun with -h for copyright info
==14551== Command: lighttpd -D -f /etc/lighttpd/lighttpd.conf
==14551== Parent PID: 5063
==14551==
--14551--
--14551-- Valgrind options:
--14551-- --suppressions=/usr/lib/valgrind/debian-libc6-dbg.supp
--14551-- --tool=memcheck
INSERT INTO `repligard` (`id`, `changed`, `updated`, `realm`, `guid`, `action`, `sitegroup`, `locked`, `author`, `typename`, `lang`, `object_action`, `object_action_date`) VALUES
(0, '2011-03-14 15:43:12', '0000-00-00 00:00:00', '', '633fc6364e4911e09e4261d972b583da83da', 'create', 0, 0, 0, 'openpsa_person', 0, 3, '0000-00-00 00:00:00');
INSERT INTO `person` (`id`, `username`, `password`, `firstname`, `lastname`, `birthdate`, `street`, `postcode`, `city`, `homephone`, `handphone`, `workphone`, `homepage`, `email`, `extra`, `img`, `info`, `topic`, `subtopic`, `department`, `office`, `created`, `creator`, `pgpkey`, `sitegroup`, `metadata_size`, `metadata_creator`, `metadata_created`, `metadata_revisor`, `metadata_revised`, `metadata_revision`, `metadata_approver`, `metadata_approved`, `metadata_locker`, `metadata_locked`, `metadata_owner`, `metadata_authors`, `metadata_schedule_start`, `metadata_schedule_end`, `metadata_hidden`, `metadata_nav_noentry`, `guid`, `metadata_published`, `metadata_imported`, `metada
--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
==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 ()
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/>...
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()