Bug 172416
Summary: | net-snmp causing php segfaults and broken httpd | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Victor Gregorio <contactvictorg> | ||||||||
Component: | net-snmp | Assignee: | Radek Vokál <rvokal> | ||||||||
Status: | CLOSED RAWHIDE | QA Contact: | |||||||||
Severity: | high | Docs Contact: | |||||||||
Priority: | medium | ||||||||||
Version: | 4 | CC: | jorton | ||||||||
Target Milestone: | --- | ||||||||||
Target Release: | --- | ||||||||||
Hardware: | x86_64 | ||||||||||
OS: | Linux | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | 5.3 | Doc Type: | Bug Fix | ||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | Environment: | ||||||||||
Last Closed: | 2006-02-08 09:36:08 UTC | Type: | --- | ||||||||
Regression: | --- | Mount Type: | --- | ||||||||
Documentation: | --- | CRM: | |||||||||
Verified Versions: | Category: | --- | |||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||
Embargoed: | |||||||||||
Attachments: |
|
Description
Victor Gregorio
2005-11-04 05:41:38 UTC
Created attachment 120714 [details]
Strace of segfaulting php
Created attachment 120715 [details]
Strace of broken httpd
I forgot to add: Although php-snmp works initially (fresh install) as root, no sequence of removal, reinstall or recompile allows PHP with snmp support to work again. Hmm, this works on my x86_64 test box, version are same # rpm -q net-snmp php httpd net-snmp-5.2.1.2-fc4.1 php-5.0.4-10.4 httpd-2.0.54-10.2 Jorton, have you already seen this? I don't recall any similar reports, no. Is that backtrace from the "custom compile" or from the stock RPMs? You said "After some use, the CLI begins to segfault.", what do you mean? Simply that after some time, it stopped working? (In reply to comment #5) > I don't recall any similar reports, no. > > Is that backtrace from the "custom compile" or from the stock RPMs? > > You said "After some use, the CLI begins to segfault.", what do you mean? > Simply that after some time, it stopped working? Hello. The backtrace and strace logs are from using Fedora SRC RPMs built with rpmbuild --rebuild. The SRC RPMs are the most recent: httpd-2.0.54-10.2.src.rpm net-snmp-5.2.1.2-fc4.1.src.rpm php-5.0.4-10.4.src.rpm The PHP behaviour is a bit odd, so I will try and give you as much detail as possible. I originally discovered these problems with a custom compiled PHP from PHP.net. I was using Fedora's net-snmp, PHP from PHP.net, Apache from apache.org. I had a root cronjob that would call PHP's CLI for Cacti SNMP polling. It worked OK at first. Root could easily run php, and start httpd. I left this cronjob running for a few hours. In this time, nobody logged into the machine and no RPMs were changed. The system is not on the Internet, so external meddling is unlikely. Suddenly, I noticed that Cacti graphs were no longer being built. I logged back into the system and tried running the previously tested cronjob entry. PHP segfaulted. When I tried to start HTTPD as root, I could not. So, I removed my compiled versions of PHP and Apache. This was easy to do since they were compiled with a custom --prefix. I could not recompile PHP, because make install would fail when running PHP's CLI to install Pear. Again, I removed ALL files associated with my custom compiles: rm -rf /usr/local/apache rm -rf /etc/httpd rm -rf /usr/local/php5 rm -rf /usr/local/src/php* rm -rf /usr/local/src/apache* I then installed HTTPD and PHP using yum. PHP worked perfectly until I installed PHP-SNMP. Then, I experienced the exact same problem--segfaulting PHP and broken HTTPD. To be sure, I uninstalled everything (yum remove snmp* php* httpd*). Rebooted, and installed again using Yum ONLY. No love--same problem: segfaulting PHP. So, I downloaded the SRC RPMs from Fedora and built them. SRC RPMs are all the most recent versions. I removed everything again, and installed the built RPMs (including debug RPMs). Then, I filled this bug report using gdb. This sequence of events happened on two separate systems--both FC4 x86_64. I speculate that this is a problem with the net-snmp lib64 library. The PHP and Apache behaviour are just symptoms. Created attachment 120776 [details]
snmpusm patch for noNameUser
Can you please test the attached patch. I guess it's fixing the issue but I
can't prove it.
I temporarily lost access to the systems that originally experienced this bug--they are being moved. In the meantime, I am building a new system and recreating the bug scenario. Once that is done, I'll patch, test and report my results here. Thank you for the patch. Ok, I believe this is fixed in rawhide |