php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58209 svn_ls function causes segfault
Submitted: 2008-06-02 12:54 UTC Modified: 2008-06-03 20:36 UTC
From: pecl-bugs at flyvy dot com Assigned:
Status: Closed Package: svn (PECL)
PHP Version: 5.2.5 OS: Gentoo Linux
Private report: No CVE-ID: None
 [2008-06-02 12:54 UTC] pecl-bugs at flyvy dot com
Description:
------------
PECL SVN extension causes PHP to seg fault when svn_ls() is passed a HTTP based SVN URL.  (works as expected when passed a local file:/// based URL).

Reproduce code:
---------------
<?php
dl('svn.so');

$ls = svn_ls('http://framework.zend.com/svn/framework');
print_r($ls);
?>

Expected result:
----------------
Array containing the SVN file/directory listing.

Actual result:
--------------
# gdb /usr/sbin/apache2
GNU gdb 6.7.1
...
This GDB was configured as "i686-pc-linux-gnu"...
(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".
...
Starting program: /usr/sbin/apache2 -d /usr/lib/apache2 -f /etc/apache2/httpd.conf -D DYNAMIC_VHOSTS -D SSL -D SSL_DEFAULT_VHOST -D DAV -D DAV_FS -D SVN -D SVN_AUTHZ -D PHP5 -X
(no debugging symbols found)
*above message repeats 16 times*
[Thread debugging using libthread_db enabled]
[New Thread 0x4000 (LWP 15375)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x4000 (LWP 15375)]
0xb778ec19 in svn_auth_set_parameter () from /usr/lib/libsvn_subr-1.so.0
(gdb)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-06-02 13:01 UTC] scottmac@php.net
I'm pretty sure this is fixed in the latest CVS version if you could try.

I'll hopefully do a release later this week once I resolve some final issues in the filesystem functions.
 [2008-06-02 14:37 UTC] pecl-bugs at flyvy dot com
Thanks for the quick response; the CVS version works.  ;-)
 [2008-06-03 20:36 UTC] scottmac@php.net
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.


 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Tue Jul 23 22:01:28 2019 UTC