[PHP-DEV] Bug #1103: segfault in dbmfetch() or dbmfirstkey)( From: morrilie <email protected>
Date: 01/29/99

From: morrilie <email protected>
Operating system: linux 2.0.36
PHP version: 3.0.6
PHP Bug Type: Reproduceable crash
Bug description: segfault in dbmfetch() or dbmfirstkey)(

 
When compiled as apache 1.3.4 module php 3.0.6 segfaults when trying to
use mentioned functions.
dbmopen(), dbmclose(), dbminsert() work fine.
Compiled with gdbm.
When compiled as standalone binary, problem persists
if I invoke it from cli:
$ php -f somefile.php3
Segmentation fault
but disappears when I invoke it from some kind of a shell script:

 script.sh:
#!/bin/sh
php -f somefile.php3
EOF

$ script.sh
all ok.

Tests run ok. (they're scripts)

Who can explain this?? I'm lost and I need it.

system: linux 2.0.36 / slackware 3.6 p100/16M ram

When tracked with gdb, the bug is that return_value pointer in the
function parameters is 0x5 or 0x6.

--
PHP Development Mailing List   http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe <email protected>
For help: php-dev-help <email protected>