#20482 [Fbk->Opn]: Segmentation fault in zend_execute_API.c

From: Date: Thu, 28 Nov 2002 14:44:36 +0000
Subject: #20482 [Fbk->Opn]: Segmentation fault in zend_execute_API.c
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-26099@lists.php.net to get a copy of this message
ID: 20482 User updated by: smith@compound.se Reported By: smith@compound.se -Status: Feedback +Status: Open Bug Type: DOM XML related Operating System: RedHat 7.2 kernel 2.4.9-13 PHP Version: 4.4.0-dev New Comment: tor 2002-11-28 klockan 15.00 skrev PHP Bug Database: > Could you please provide the shortest possible example, which > segfaults. I'm willing to investigate into it and hopefully provide a > solution for 4.3, but this will be released soon, so you have to hurry > up :) The problem was not related to PHP. I found out the real reason for this segfault. My PHP module was built with unixODBC 2.2.3 and Freetds (snapshot 20021118). There are some ODBC driver function call related to cursors made within unixODBC. It appears that these functions (badly or not implemented) in Freetds messes up the dynamic memory areas. What I did was to comment out some odbc option calls in the unixODBC code and the problem was solved. This is not the proper way to solve the problem but it helped me for now. I suppose I shold pass this case over to the unixODBC/Freetds people or...? Previous Comments: ------------------------------------------------------------------------ [2002-11-28 08:00:52] chregu@php.net Could you please provide the shortest possible example, which segfaults. I'm willing to investigate into it and hopefully provide a solution for 4.3, but this will be released soon, so you have to hurry up :) chregu ------------------------------------------------------------------------ [2002-11-18 11:08:00] sniper@php.net And also a short example script which can be used to reproduce this would be nice to have here.. :) ------------------------------------------------------------------------ [2002-11-18 11:07:13] sniper@php.net Reclassified as DOM XML bug as the segfault seems to be caused by it. Please provide a backtrace with the CVS snapshot too. ------------------------------------------------------------------------ [2002-11-18 11:01:09] smith@compound.se I just tried the "latest" snapshot (20021118) but it didn't help. Still segmentation fault =-( -- Björn Smith <smith@compound.se> ------------------------------------------------------------------------ [2002-11-18 09:58:13] derick@php.net Please try using this CVS snapshot: http://snaps.php.net/php4-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-latest.zip ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/20482 -- Edit this bug report at http://bugs.php.net/?id=20482&edit=1

« previous php.bugs (#26099) next »