From: bruno dot monteiro at atelierlogico dot com Operating system: Mac OS X 10.8.2 PHP version: 5.3.17 Package: Unknown/Other Function Bug Type: Bug Bug description:Malloc error using finfo_open
Description: ------------ I was testing Joomla with K2 and I got this error every time I tried to upload something: php(14200) malloc: *** error for object 0x7fff520566f0: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug Abort trap: 6 The line that is causing the error is: $f = finfo_open(FILEINFO_MIME, "/usr/share/file/magic"); I asked some friends with the same OS version (w/ PHP 5.3.17/5.3.15) and they all have the same problem. Test script: --------------- php -r 'finfo_open(1040, "/usr/share/file/magic");' -- Edit bug report at https://bugs.php.net/bug.php?id=63304&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=63304&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=63304&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=63304&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=63304&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=63304&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=63304&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=63304&r=needscript Try newer version: https://bugs.php.net/fix.php?id=63304&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=63304&r=support Expected behavior: https://bugs.php.net/fix.php?id=63304&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=63304&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=63304&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=63304&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63304&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=63304&r=dst IIS Stability: https://bugs.php.net/fix.php?id=63304&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=63304&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=63304&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=63304&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=63304&r=mysqlcfg