[xdebug-dev] Bug 0000023: core dump with xdebug-current (2003-10-19 19:12 GMT)

From: <xdebug-dev[@]lists.xdebug.org>
Date: Wed, 15 Sep 2004 10:07:17 +0200

The following bug has been RESOLVED.
======================================================================
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000023
======================================================================
Reporter: rehsack
Handler: derick
======================================================================
Project: Xdebug
Bug ID: 23
Category: Usage problems
Reproducibility: unable to duplicate
Severity: crash
Priority: normal
Status: resolved
Operating System: FreeBSD 5-CURRENT, gcc 3.3.1
PHP Version: 4.3.3
Xdebug Version: 1.3.0rc2
Resolution: unable to duplicate
======================================================================
Date Submitted: 2003-10-19 21:14 CEST
Last Modified: 2004-09-15 10:07 CEST
======================================================================
Summary: core dump with xdebug-current (2003-10-19 19:12 GMT)
Description:
When PHP is running with current xdebug enabled, xdebug crashs in in
xdebug_llist_count (l=0x0) at
/usr/ports/devel/php-xdebug/work/xdebug-1.2.0/xdebug_llist.c:168
======================================================================

----------------------------------------------------------------------
 rehsack - 2003-10-19 21:15 CEST
----------------------------------------------------------------------
Sorry, wrong category: it's the xdebug.so php module.

----------------------------------------------------------------------
 derick - 2003-10-20 10:11 CEST
----------------------------------------------------------------------
A few questions:

1. What is xdebug-current?
2. What are your xdebug php.ini settings (see phpinfo() output)
3. How does the script look like that crashes (ie, did you use any
xdebug_*() functions?)

----------------------------------------------------------------------
 rehsack - 2003-10-20 10:25 CEST
----------------------------------------------------------------------
1) I have named the 'cvs up' got xdebug-current. Because it's no release
   nor rc, ...
   It's just the current development state
2) php_info() - your just kidding, hm? xdebug make it crash on start.

cat /usr/local/etc/php.ini
--- SNIP
[xdebug]
xdebug.remote_host=statler.muppets.liwing.de
;xdebug.remote_enable=on
xdebug.auto_profile=on
xdebug.output_dir=/var/www/data/globals/xdebug
xdebug.auto_profile_mode=8
; Auto Profile Modes:
; XDEBUG_PROFILER_LBL (0) default
; XDEBUG_PROFILER_CPU (1)
; XDEBUG_PROFILER_NC (2)
; XDEBUG_PROFILER_FS_AV (3)
; XDEBUG_PROFILER_FS_SUM (4)
; XDEBUG_PROFILER_FS_NC (5)
; XDEBUG_PROFILER_SD_LBL (6)
; XDEBUG_PROFILER_SD_CPU (7)
; XDEBUG_PROFILER_SD_NC (8)
--- SNAP
--- SNIP
zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20020429/xdebug.so
--- SNAP

3) No, I just want to get some profile output. The backtrace of the dump
you
   could see, couldn't you?

----------------------------------------------------------------------
 derick - 2003-10-20 10:59 CEST
----------------------------------------------------------------------
Yeah, I saw the backtrace. Hmm, I'm not sure about the current CVS HEAD, as
I'm hacking in the new protocol so it doesn't actually compile at all for
me atm. Can please try the xdebug_1_3 branch in CVS and see if that works?

----------------------------------------------------------------------
 rehsack - 2003-10-21 18:50 CEST
----------------------------------------------------------------------
Hm do you have a download url so I can update the port?

----------------------------------------------------------------------
 derick - 2003-10-25 15:05 CEST
----------------------------------------------------------------------
http://www.xdebug.org/download.php/xdebug-1.3.0rc1.tgz

----------------------------------------------------------------------
 derick - 2003-10-25 15:18 CEST
----------------------------------------------------------------------
hmm, I do think you'd need to try the xdebug_1_3 branch in CVS though, as
there were some fixes related to crashes since I released rc1

----------------------------------------------------------------------
 rehsack - 2003-11-01 13:54 CET
----------------------------------------------------------------------
This modification prevents it from crashing:

--- BEGIN patch-xdebug_llist.c
Index: xdebug_llist.c
===================================================================
RCS file: /repository/xdebug/xdebug_llist.c,v
retrieving revision 1.4
diff -u -u -r1.4 xdebug_llist.c
--- xdebug_llist.c 20 Feb 2003 14:30:54 -0000 1.4
+++ xdebug_llist.c 1 Nov 2003 12:42:55 -0000
@@ -165,7 +165,7 @@
  
 size_t xdebug_llist_count(xdebug_llist *l)
 {
- return l->size;
+ return ( NULL != l ) ? l->size : 0;
 }
--- END patch-xdebug_llist.c

----------------------------------------------------------------------
 derick - 2003-11-07 16:32 CET
----------------------------------------------------------------------
It might fix this, but it's not the solution to the problem.
xdebug_llist_count() should not be called in the first place if the list
doesn't exist.

----------------------------------------------------------------------
 rehsack - 2003-11-13 12:19 CET
----------------------------------------------------------------------
I know, but I didn't have the time to do the groundwork which will be
needed here.
Do you have any other idea how I can support you to find the real bug and
fix it?

----------------------------------------------------------------------
 derick - 2003-12-07 22:25 CET
----------------------------------------------------------------------
Updated Category, Severity and Reproducibility

----------------------------------------------------------------------
 rehsack - 2004-02-18 15:55 CET
----------------------------------------------------------------------
sorry for delay in checking my bugs - I'm very busy at the moment. I'll
give it a shot in next few weeks

----------------------------------------------------------------------
 derick - 2004-09-15 10:07 CEST
----------------------------------------------------------------------
I'm going to mark this bug as resolved, as I'm still unable to duplicate
it. If you have more information about it, feel free to reopen it.

Derick

Bug History
Date Modified Username Field Change
======================================================================
2003-10-19 21:14rehsack New Bug
2003-10-19 21:15rehsack Bugnote Added: 0000027
2003-10-20 10:11derick Bugnote Added: 0000028
2003-10-20 10:11derick Status new => feedback
2003-10-20 10:25rehsack Bugnote Added: 0000029
2003-10-20 10:59derick Bugnote Added: 0000030
2003-10-21 18:50rehsack Bugnote Added: 0000032
2003-10-25 15:05derick Bugnote Added: 0000036
2003-10-25 15:18derick Bugnote Added: 0000037
2003-10-30 11:44rehsack Bug Monitored: rehsack
2003-11-01 13:54rehsack Bugnote Added: 0000040
2003-11-07 16:32derick Bugnote Added: 0000049
2003-11-13 12:19rehsack Bugnote Added: 0000059
2003-12-07 22:25derick Bugnote Added: 0000076
2003-12-07 22:25derick Category Debug client (console) => Usage problems
2003-12-07 22:25derick Reproducibility always => unable to duplicate
2003-12-07 22:25derick Severity block => crash
2004-02-18 15:55rehsack Bugnote Added: 0000097
2004-09-15 10:07derick Bugnote Added: 0000191
2004-09-15 10:07derick Assigned To => derick
2004-09-15 10:07derick Resolution open => unable to duplicate
2004-09-15 10:07derick Status feedback => resolved
======================================================================
Received on Wed Sep 15 2004 - 10:07:22 BST

This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:02 BST