LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-11-2009, 05:48 PM   #1
imraven
LQ Newbie
 
Registered: Jun 2006
Location: SLC, UT
Distribution: Ubuntu
Posts: 21

Rep: Reputation: 15
php https wrapper giving Segmentation fault but not http


friends,

OS: gentoo
PHP: PHP 5.2.8-pl2-gentoo (cli) (built: Mar 11 2009 15:15:20)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies

i've been having an interesting problem today w/ php. i was doing some system updates when my system monitor (written in php) stopped working. php wasn't in the list of things to be updated. i tried running it from command line and sure enough it's giving a Segmentation fault. I've tracked it down to whenever my scripts are making fopen() or file_get_contents(), etc calls to an https url. however, if i make the same request but instead use http it works fine.

gives segfault:
Code:
$id = fopen('https://www.domain.com','r')
works:
Code:
$id = fopen('http://www.domain.com','r')
i've been racking my brain over this one all day. i've since upgraded php and openssl and that didn't resolve it. so i'm doing a complete rebuild of the entire system. emerge -e world. it's almost complete but i have a feeling that's not going to resolve it.

i speculate it has something to do w/ a dependency and hence the complete system rebuild. however, before i did that i noticed that after i had upgraded the package: dev-libs/glib, was when php started to go wonky.

anyway, any help would be appreciated.

brandon
 
Old 03-26-2009, 08:31 AM   #2
Manjunath1847
Member
 
Registered: Mar 2007
Posts: 44

Rep: Reputation: 16
Not sure if this helps. Since http is working and not https, I am sure this is some issue with the openssl. Make sure your php.ini file is configured properly. Also make sure your PHP has all the required extension DLL to perform HTTPS operation.
 
Old 03-27-2009, 03:20 AM   #3
imraven
LQ Newbie
 
Registered: Jun 2006
Location: SLC, UT
Distribution: Ubuntu
Posts: 21

Original Poster
Rep: Reputation: 15
i forgot to post but i already solved it. i had attempted to recompile openssl+php and i made sure the php.ini was proper to no avail. however, when i compared the exact same setup to a different server it was working fine. the only thing that was different was that the other server was running a newer version of the kernel. sure enough when i upgraded the kernel the seg fault went away.



brandon
 
  


Reply

Tags
https, php, segmentation fault, wrapper


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
php core dump with segmentation fault ohcarol *BSD 9 10-14-2008 10:19 AM
PHP 5.2.3 http wrapper issue in current hsrthe4th Slackware 3 08-15-2008 08:40 AM
APT on FEDORA 1 giving SEGMENTATION FAULT prester john Linux - Software 3 03-05-2004 05:10 AM
APT on FEDORA 1 giving SEGMENTATION FAULT prester john Linux - Newbie 0 03-03-2004 11:14 PM
APT on FEDORA 1 giving SEGMENTATION FAULT prester john Fedora 0 03-03-2004 11:11 PM


All times are GMT -5. The time now is 11:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration