Bug #17714: MSSQL crash

From: Date: Tue, 11 Jun 2002 21:23:21 +0000
Subject: Bug #17714: MSSQL crash
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-10161@lists.php.net to get a copy of this message
From:             curtis@csummers.org
Operating system: Windows 2000 Server
PHP version:      4.2.1
PHP Bug Type:     MSSQL related
Bug description:  MSSQL crash

PHP is crashing with the following error:

The instruction at "0x77fcb03d" referenced memory at "0x00000000".  The
memory could not be written.

The error occurs when I am accessing data from an array returned from
mssql_fetch_array().

Sample code:

while($objArr = mssql_fetch_array($objRS))
{
print('This one
works:'.nl2br(stripslashes($objArr['field1'])).'<br>');
print('Crashes here
(sometimes):<br>'.nl2br(stripslashes($objArr['field2'])).'<br>');
}

The crash does not always occur. I believe it may depend on the data, but
I can't find any correlation between the data in the database and when it
crashes.

I cannot generate this crash on 4.1.x, but I can with 4.2.0 and 4.2.1.

Here's the point at which it crashes in the php4ts.dll:

-> 1008D772   jmp         1008D781

which jumps to this line:
1008D781   mov         esi,eax

-- 
Edit bug report at http://bugs.php.net/?id=17714&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=17714&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=17714&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=17714&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=17714&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17714&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=17714&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=17714&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=17714&r=submittedtwice
register_globals:    http://bugs.php.net/fix.php?id=17714&r=globals



Thread (7 messages)

« previous php.bugs (#10161) next »