php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57856 Segmentation fault (core dumped)
Submitted: 2007-09-29 07:32 UTC Modified: 2007-10-01 03:10 UTC
From: basim at basim dot co dot uk Assigned:
Status: Not a bug Package: rar (PECL)
PHP Version: 5.2.3 OS: FreeBSD 6.2-RELEASE
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: basim at basim dot co dot uk
New email:
PHP Version: OS:

 

 [2007-09-29 07:32 UTC] basim at basim dot co dot uk
Description:
------------
1) Installed via pecl -v install rar
2) Added extension=rar.so to php.ini at line 597
3) Get "Segmentation fault (core dumped)" at the end of of ALL PHP files, even if they don't use the rar package

Reproduce code:
---------------
$rar_file = rar_open('test.rar') or die("Can't open Rar archive");

$entries = rar_list($rar_file);

foreach ($entries as $entry)
{
  echo 'Filename: ' . $entry->getName() . "\n";
  echo 'Packed size: ' . $entry->getPackedSize() . "\n";
  echo 'Unpacked size: ' . $entry->getUnpackedSize() . "\n";
}

rar_close($rar_file);

Actual result:
--------------
$ php rar.php
Filename: legs.jpg
Packed size: 290808
Unpacked size: 290808
Filename: 10.jpg
Packed size: 186886
Unpacked size: 186886
Segmentation fault (core dumped)
$ 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-09-29 07:35 UTC] basim at basim dot co dot uk
$ php -v
PHP 5.2.3 (cli) (built: Aug 13 2007 15:43:20)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
Segmentation fault (core dumped)
$
 [2007-09-30 10:09 UTC] tony at daylessday dot org
Please provide GDB backtrace.
http://bugs.php.net/bugs-generating-backtrace.php
 [2007-09-30 11:04 UTC] basim at basim dot co dot uk
That page says to look for the last execute() stack which doesn't show in my list provided by bt

(gdb) bt
#0  0x00000000 in ?? ()
#1  0x28b88f1c in __do_global_dtors_aux () from /usr/local/lib/php/20060613/session.so
#2  0x28b8f68c in _fini () from /usr/local/lib/php/20060613/session.so
#3  0x28246558 in tls_dtv_generation () from /libexec/ld-elf.so.1
#4  0x28248558 in ?? () from /libexec/ld-elf.so.1
#5  0xbfbfea58 in ?? ()
#6  0x282297b6 in elf_hash () from /libexec/ld-elf.so.1
#7  0x2822c0a0 in dlclose () from /libexec/ld-elf.so.1
#8  0x08132b04 in zend_hash_apply_deleter ()
#9  0x08132b9f in zend_hash_graceful_reverse_destroy ()
#10 0x081294ec in zend_shutdown ()
#11 0x080f281b in php_module_shutdown ()
#12 0x081a40ff in main ()
 [2007-10-01 03:10 UTC] tony at daylessday dot org
Not PHP or PECL/rar problem.
See http://bugs.php.net/bug.php?id=40148 for more details.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 20:01:28 2024 UTC