Bug #64836 [Fbk->Asn]: segfault in softmagic.c

From: Date: Wed, 17 Jul 2013 10:25:05 +0000
Subject: Bug #64836 [Fbk->Asn]: segfault in softmagic.c
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-180286@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=64836&edit=1

 ID:                 64836
 User updated by:    r dot biegel at gmx dot at
 Reported by:        r dot biegel at gmx dot at
 Summary:            segfault in softmagic.c
-Status:             Feedback
+Status:             Assigned
 Type:               Bug
 Package:            Unknown/Other Function
 Operating System:   Gentoo Linux
 PHP Version:        5.4.15
 Assigned To:        ab
 Block user comment: N
 Private report:     N

 New Comment:

After downgrading sys-apps/file to 5.11 there are no segfaults anymore. But after upgrading to
5.12-r1 again, there are no sefaults either. So maybe "file" just needed to be recompiled?
I'm not able to reproduce it with any php/file combination for now (php 5.4.16, 5.4.17, 5.5.0).


Previous Comments:
------------------------------------------------------------------------
[2013-07-11 20:48:09] joschi at tollwerk dot de

I can confirm the issue on an x86_64 hardened Gentoo box with both PHP 5.4.17 as well as PHP 5.5.0.
It's not only the TYPO3 upgrade wizard that is failing, but also several TYPO3 backend modules
(probably all the ones involving 
thumbnail generation) as well as the frontend (in my case at least).

As stated above, downgrading sys-apps/file to version 5.11 solves the issue for me as well.

------------------------------------------------------------------------
[2013-07-09 22:09:18] ab@php.net

Thanks staying on this guys. Reading the linked ticket:

"Simply removing (and thus disabling file) /usr/share/misc/magic.mgc "fixes" issues 
with Mediawiki"

That could be a plausible explanation why PHP could fail, not sure about crash. As 
PHP uses a compiled in magic file which is strongly recommended to use (so no 
external file loading). However that explanation wouldn't exactly match with what 
"r dot biegel at gmx dot at" told earlier

"PHP Versions 5.3.25, 5.4.13, 5.4.14, 5.4.15 and 5.5.0_rc2 all segfault for me." 

where by 5.3 didn't become any libmagic upgrades since long. That fact makes me 
really confused, as that would mean even without upgrade the constellation of 
apache svn module and php would cause crash. 5.3 has libmagic 5.11 or older if i 
don't err.

And this is anyway something i can't reproduce compiling all the stuff manually. 
@r.biegel - if downgrading libmagic on your gentoo system works, i would close this 
ticket with the status "mystic" :)

Thanks

------------------------------------------------------------------------
[2013-07-09 08:46:08] sabel at altmuehlnet dot de

https://bugs.gentoo.org/show_bug.cgi?id=471682

Downgrading sys-apps/file to version 5.11 solved the issue for me.

------------------------------------------------------------------------
[2013-07-08 22:09:02] sabel at altmuehlnet dot de

I have the same issue on two different systems with two different applications (ownCloud and
Roundcubemail).
Disabling (removing -D SVN) the svn module fixes the problem...
Any news on that issue?

------------------------------------------------------------------------
[2013-06-10 17:23:14] r dot biegel at gmx dot at

USE=nss doesn't work for me. Seems to be another problem, sorry.

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=64836


-- 
Edit this bug report at https://bugs.php.net/bug.php?id=64836&edit=1


Thread (23 messages)

« previous php.bugs (#180286) next »