Bug #10324 Updated: reproducable seg fault during generic script exec with pgsql and mcrypt
| From: | derick@php.net | Date: | Wed, 04 Jul 2001 08:15:24 +0000 |
| Subject: | Bug #10324 Updated: reproducable seg fault during generic script exec with pgsql and mcrypt | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-58849@lists.php.net to get a copy of this message | ||
ID: 10324
Updated by: derick
Reported By: kpw@jump9.com
Old-Status: Open
Status: Assigned
Bug Type: Reproducible crash
Operating system:
PHP Version: 4.0.6
Assigned To: derick
Comments:
Assigning to myself
Previous Comments:
---------------------------------------------------------------------------
[2001-07-03 22:51:56] kpw@jump9.com
Here's the link to a script that exhibits this problem 100% of the time on my PPC/YellowDog
server as well as a production machine at phpwebhosting.com:
http://www.jump9.com/_testcrypt.txt
I've tried this under several version of php (including the current 4.0.6) as well as with
every available release of libmcrypt (2.4.7-2.4.15) all without effect. Given that I have the same
problem on a production webserver at phpwebhosting as I do on my own homemade PPC linux box I'm
guessing this is real problem...
Any thoughts would be greatly appreciated...
kpw
---------------------------------------------------------------------------
[2001-07-03 11:28:04] kpw@jump9.com
Here's an example:
If encrypt the string "Reed, Phyllis" with the key
"70094cc48e1a23bf6fec60c2db6e4b71" using blowfish in CBC mode mycrypt will seg fault.
However, if I change the string to "Reed,Phyllis" (no space) everything's fine.
Removing a chacter from the end (""Reed, Phylli") doesn't fix the problem
though, so it's apparently not length related.
Very strange indeed...
kpw
---------------------------------------------------------------------------
[2001-07-03 10:48:42] kpw@jump9.com
Hi,
This still seems to be a problem in 4.0.6. I'm pretty sure that it is caused by specific
strings being passed into mycrypt, however, I'm not sure what string characteristics cause the
problem.
kpw
---------------------------------------------------------------------------
[2001-05-27 19:27:02] sniper@php.net
Should be fixed in CVS now. Fix will be in PHP 4.0.6.
If this happens with it too, reopen this bug report.
--Jani
---------------------------------------------------------------------------
[2001-04-14 09:54:47] kpw@jump9.com
here's the back trace (again without db symbols) of the crash when it happens after my script
has completed execution:
Program received signal SIGSEGV, Segmentation fault.
0xfe21138 in chunk_free (ar_ptr=0xfebb380, p=0x101f03d8) at malloc.c:3111
3111 malloc.c: No such file or directory.
(gdb) bt
#0 0xfe21138 in chunk_free (ar_ptr=0xfebb380, p=0x101f03d8) at malloc.c:3111
#1 0xfe20fb0 in __libc_free (mem=0xfebb380) at malloc.c:3023
#2 0xf01121c in ?? () from /etc/apache/libexec/libphp4.so
#3 0x0 in ?? ()
(gdb)
---------------------------------------------------------------------------
The remainder of the comments for this report are too long.
To view the rest of the comments, please
view the bug report online.
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10324&edit=2