php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39529 recode.so dynamic loading causing junk pointer
Submitted: 2006-11-16 09:30 UTC Modified: 2006-11-29 14:59 UTC
From: mediahack at gmail dot com Assigned:
Status: Not a bug Package: Dynamic loading
PHP Version: 5.2.0 OS: FreeBSD 6.1 RELEASE
Private report: No CVE-ID: None
 [2006-11-16 09:30 UTC] mediahack at gmail dot com
Description:
------------
Fresh install of PHP 5.2.0 caused error when running command: php -v. This was fatal and prevented other software from being installed. Here is the error message.



Reproduce code:
---------------
#php -v

Expected result:
----------------
PHP 5.2.0 with Suhosin-Patch 0.9.6.2 (cli) (built: Nov 16 2006 00:40:36) (DEBUG)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies


Actual result:
--------------
PHP 5.2.0 with Suhosin-Patch 0.9.6.2 (cli) (built: Nov 16 2006 00:40:36) (DEBUG)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies
php in free(): error: junk pointer, too high to make sense
Abort (core dumped)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-11-16 09:33 UTC] tony2001@php.net
We do not support third party patches and builds, which likely to change the behaviour of PHP.
Please reopen the report, if you're able to reproduce this problem with stock PHP.
 [2006-11-16 09:37 UTC] mediahack at gmail dot com
Ok, well this is stock from FreeBSD tree. I didn't do anything special. So are you telling me I need to report this to the FreeBSD package maintainer instead?
 [2006-11-16 09:47 UTC] tony2001@php.net
It might be stock from FreeBSD, but this line: "with Suhosin-Patch 0.9.6.2" means it's not stock PHP.
You can also get the latest snapshot @ http://snaps.php.net and try it.
 [2006-11-29 14:59 UTC] bjori@php.net
And make sure you read the docs:

"Crashes and startup problems of PHP may be encountered 
when loading the recode as extension after loading any 
extension of mysql or imap. Loading the recode before 
those extension has proved to fix the problem. This is due 
a technical problem that both the c-client library used by 
imap and recode have their own hash_lookup() function and 
both mysql and recode have their own hash_insert 
function."
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Mar 02 16:01:32 2024 UTC