|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #60226 segfault when calling setCAPath
Submitted: 2011-11-05 22:03 UTC Modified: 2011-11-07 10:41 UTC
From: glen at delfi dot ee Assigned: felipe (profile)
Status: Closed Package: oauth (PECL)
PHP Version: 5.3.8 OS: PLD Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
27 - 5 = ?
Subscribe to this entry?

 [2011-11-05 22:03 UTC] glen at delfi dot ee
$ cat tests/setCAPath.php 

$o = $oauth->setCAPath('/etc/certs/ca-certificates.crt');
error_log("set path: $o");

this program causes segfault:

Program received signal SIGSEGV, Segmentation fault.
0x404d3afa in memcpy () from /lib/tls/
(gdb) bt
#0  0x404d3afa in memcpy () from /lib/tls/
#1  0x4018e635 in _estrndup () from /usr/lib/
#2  0x41a9be2e in zim_oauth_setCAPath (ht=18, return_value=0x405b9628, 
return_value_ptr=0x0, this_ptr=0x10, return_value_used=1, tsrm_ls=0x405bb0e8)
    at /home/glen/rpm/pld/BUILD/php-pecl-oauth-1.2.2/oauth.c:2125
#3  0x401c80df in execute () from /usr/lib/
#4  0x401c772c in execute () from /usr/lib/
#5  0x401a9fe5 in zend_execute_scripts () from /usr/lib/
#6  0x40162aa9 in php_execute_script () from /usr/lib/
#7  0x0804b70d in main ()


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-11-06 13:43 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: felipe
 [2011-11-06 13:43 UTC]
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at

 For Windows:
Thank you for the report, and for helping us make PHP better.

 [2011-11-07 10:41 UTC] glen at delfi dot ee
svn link (for reference):
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sun Dec 03 05:01:30 2023 UTC