[xdebug-general] xdebug 2.0.2 and 2.1dev segfaults with php-java-bridge

From: Marcus Mueller <marcus.mueller[@]grintsch.com>
Date: Fri, 01 Feb 2008 14:31:13 +0100

Hello all,

this is my first post to this list, so first of all credit where credit
is due: thanks for your great work with xdebug, Derick.

Here goes my problem though:
when trying to use xdebug in conjunction with php-java-bridge I
experience immediate segfaults, this happens both with PHP as Apache
module and CLI.

Some debugging output using xdebug from cvs:

gdev:~# gdb php
GNU gdb 6.6.90.20070912-debian
Copyright (C) 2007 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 "x86_64-linux-gnu"...
(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run -r "echo('helloworld');"
Starting program: /usr/bin/php -r "echo('helloworld');"
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[New Thread 0x2b7f24ffd6b0 (LWP 21764)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x2b7f24ffd6b0 (LWP 21764)]
0x00002b7f25354205 in add_stack_frame (zdata=0x0, op_array=0xe667a8,
type=2) at /home/sdev/src/archives/xdebug-cvs/xdebug/xdebug.c:1191
1191 if (XDEBUG_LLIST_TAIL(XG(stack))) {
(gdb) bt
#0 0x00002b7f25354205 in add_stack_frame (zdata=0x0, op_array=0xe667a8,
type=2) at /home/sdev/src/archives/xdebug-cvs/xdebug/xdebug.c:1191
#1 0x00002b7f25355281 in xdebug_execute (op_array=0xe667a8) at
/home/sdev/src/archives/xdebug-cvs/xdebug/xdebug.c:1489
#2 0x00002b7f2599aa75 in zm_activate_java () from
/home/sdev/www/php/lib/php/extensions/no-debug-non-zts-20060613/java.so
#3 0x000000000071573c in module_registry_request_startup ()
#4 0x000000000071c1f5 in zend_hash_apply ()
#5 0x00000000006d020a in php_request_startup ()
#6 0x0000000000791008 in main ()
(gdb) list
1186
1187 zend_hash_add(&XG(aggr_calls), aggr_key,
aggr_key_len+1, (void*)&xae, sizeof(xdebug_aggregate_entry),
(void**)&tmp->aggr_entry);
1188 }
1189 }
1190
1191 if (XDEBUG_LLIST_TAIL(XG(stack))) {
1192 function_stack_entry *prev =
XDEBUG_LLIST_VALP(XDEBUG_LLIST_TAIL(XG(stack)));
1193 tmp->prev = prev;
1194 if (XG(profiler_aggregate)) {
1195 if (prev->aggr_entry->call_list) {
(gdb)

Using php-java-bridge or xdebug exclusively causes no such error.

In case you need more information or debugging output please tell me so,
I'd be happy to provide it since this problem has been bugging me for
months, I just couldn't find the time to write to this list and also was
hoping maybe a more current version either of xdebug or pjb would fix it.

If this is known behaviour and pjb is no exception to your warning not
to use it with other Zend extensions such as Zend Optimizer, DBG, APD
etc. please let me know.

Thanks in advance for your help.

Regards
Marcus
Received on Fri Feb 01 2008 - 14:36:20 GMT

This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST