php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44770 Core Dump on Fbsd7 - php5-extension recode
Submitted: 2008-04-18 05:03 UTC Modified: 2008-04-18 05:18 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: chargen at gmail dot com Assigned:
Status: Not a bug Package: Recode related
PHP Version: 5.2.5 OS: FreeBSD REL7
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: chargen at gmail dot com
New email:
PHP Version: OS:

 

 [2008-04-18 05:03 UTC] chargen at gmail dot com
Description:
------------
Core dump using PHP 5.2.- FreeBSD ports 20081804 - recode.so

I could reproduce a coredump with the recode.so extension enabled, build from ports

/etc/make.conf

CFLAGS = -O2 -pipe -mtune=nocona -march=nocona
COPTFLAGS = -O2 -pipe -mtune=nocona -march=nocona

ports are from april 18th 2008


Reproduce code:
---------------

CLI result *without* recode.so enabled

ping# php -v
PHP 5.2.5 (cli) (built: Apr 18 2008 04:27:16)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies

reproducing the coredump

(deinstallation- If you`ve already build most of the PHP5-extensions from ports:

rename the extensions .so dir to reinstall
ping# mv /usr/local/lib/php/20060613/ /usr/local/lib/php/20060613_bogus

then

cd /usr/ports/lang/php5-extensions

ping# make deinstall && make config 

enable recode

ping# make clean && make install && rehash

ping# cat /usr/local/etc/php/extensions.ini | grep "recode"

extension=recode.so

ping# php -v
PHP 5.2.5 (cli) (built: Apr 18 2008 04:27:16)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
Segmentation fault (core dumped)

no problems with the others sofar (build on AMD64 arch) , -O2 -pipe

extension=bz2.so
extension=calendar.so
extension=ctype.so
extension=pcre.so
extension=simplexml.so
extension=spl.so
extension=dom.so
extension=fileinfo.so
extension=filter.so
extension=fribidi.so
extension=ftp.so
extension=gd.so
extension=gettext.so
extension=hash.so
extension=iconv.so
extension=json.so
extension=mbstring.so
extension=mcrypt.so
extension=mhash.so
extension=ming.so
extension=mssql.so
extension=mysql.so
extension=mysqli.so
extension=openssl.so
extension=pcntl.so
extension=pdf.so
extension=pdo.so
extension=pdo_sqlite.so
extension=pgsql.so
extension=posix.so
extension=readline.so
extension=recode.so
extension=session.so
extension=sockets.so
extension=sqlite.so
extension=sysvmsg.so
extension=sysvsem.so
extension=sysvshm.so
extension=tokenizer.so
extension=xml.so
extension=wddx.so
extension=xmlreader.so
extension=xmlrpc.so
extension=xmlwriter.so
extension=xsl.so
extension=zip.so
extension=zlib.so

the recode.so crash affects cli with dumps and gives strange results  when apache22 module is enabled

NOTE: reproduced with and without recommended php.ini (php.ini-recommended / php.ini-dist)



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 11:01:30 2024 UTC