Bug 473420 - snmpd is crashing on start
Summary: snmpd is crashing on start
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: 10
Hardware: x86_64
OS: Linux
medium
high
Target Milestone: ---
Assignee: Panu Matilainen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 474144 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-11-28 12:58 UTC by Max Krasilnikov
Modified: 2008-12-07 04:24 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-12-07 04:12:25 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Max Krasilnikov 2008-11-28 12:58:50 UTC
Description of problem:

when starting snmpd it is crashing with segfault.

Version-Release number of selected component (if applicable):

net-snmp-5.4.2.1-1.fc10.x86_64
net-snmp-libs-5.4.2.1-1.fc10.x86_64

How reproducible:

start snmpd.

Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info: In attachement - strace /usr/sbin/snmpd -f > strace.log 2>&1

Comment 1 Göran Uddeborg 2008-11-28 23:33:14 UTC
This happens to me too.  I spent some time debugging, and I'm pretty convinced it is an upstreams bug in the inclusion of RPM header files:

https://sourceforge.net/tracker/index.php?func=detail&aid=2357163&group_id=12694&atid=112694

Assuming you hit the same problem as I do, a workaround is to add "-I -hr_swinst" to the options in /etc/sysconfig/snmpd

Comment 2 Anthony Messina 2008-11-29 16:08:06 UTC
I can confirm the issue. I tried to catch it here: https://admin.fedoraproject.org/updates/F10/FEDORA-2008-10451 but it got puched just after I entered that comment.

Comment 3 Jan Safranek 2008-12-01 09:55:11 UTC
It's fallout of new rpm-4.6. I didn't notice getRpmPath() moved to rpmfileutil.h. The compiler does not find it -> it assumes 'int' is returned -> something very bad happens on x86_64.

Panu, could you add #include<rpmfileutil.h> to rpmmacros.h?

Comment 4 Jindrich Novy 2008-12-01 11:17:34 UTC
Comitted to upstream.

Will be backported soon in F10 and rawhide.

Comment 5 Jan Safranek 2008-12-02 14:01:10 UTC
*** Bug 474144 has been marked as a duplicate of this bug. ***

Comment 6 Fedora Update System 2008-12-02 14:29:59 UTC
rpm-4.6.0-0.rc1.8 has been submitted as an update for Fedora 10.
http://admin.fedoraproject.org/updates/rpm-4.6.0-0.rc1.8

Comment 7 Major Hayden 🤠 2008-12-04 01:41:08 UTC
Would it be possible to have net-snmp rebuilt against rpm-4.6.0-0.rc1.8 and pushed out?

https://admin.fedoraproject.org/updates/rpm-4.6.0-0.rc1.8

Comment 8 Jan Safranek 2008-12-04 08:54:11 UTC
The fixed rpm got to the koji buildroot this night, I'm compiling net-snmp right now. There are processes around and it takes some time to release fixed rpms.

Comment 9 Fedora Update System 2008-12-04 09:10:01 UTC
net-snmp-5.4.2.1-2.fc10 has been submitted as an update for Fedora 10.
http://admin.fedoraproject.org/updates/net-snmp-5.4.2.1-2.fc10

Comment 10 Fedora Update System 2008-12-07 04:12:21 UTC
net-snmp-5.4.2.1-2.fc10 has been pushed to the Fedora 10 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2008-12-07 04:24:31 UTC
rpm-4.6.0-0.rc1.8 has been pushed to the Fedora 10 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.