From: Operating system: PLD Linux PHP version: 5.3.8 Package: oauth Bug Type: Bug Bug description:segfault when calling setCAPath
Description: ------------ $ cat tests/setCAPath.php <?php $oauth = new OAuth('1', '2', OAUTH_SIG_METHOD_HMACSHA1, OAUTH_AUTH_TYPE_URI); $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/libc.so.6 (gdb) bt #0 0x404d3afa in memcpy () from /lib/tls/libc.so.6 #1 0x4018e635 in _estrndup () from /usr/lib/libphp_common-5.2.17.so #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/libphp_common-5.2.17.so #4 0x401c772c in execute () from /usr/lib/libphp_common-5.2.17.so #5 0x401a9fe5 in zend_execute_scripts () from /usr/lib/libphp_common-5.2.17.so #6 0x40162aa9 in php_execute_script () from /usr/lib/libphp_common-5.2.17.so #7 0x0804b70d in main () (gdb) -- Edit bug report at https://bugs.php.net/bug.php?id=60226&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=60226&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=60226&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=60226&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=60226&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=60226&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=60226&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=60226&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=60226&r=needscript Try newer version: https://bugs.php.net/fix.php?id=60226&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=60226&r=support Expected behavior: https://bugs.php.net/fix.php?id=60226&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=60226&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=60226&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=60226&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=60226&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=60226&r=dst IIS Stability: https://bugs.php.net/fix.php?id=60226&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=60226&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=60226&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=60226&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=60226&r=mysqlcfg