Opened 9 years ago
Closed 9 years ago
#50195 closed defect (fixed)
net-snmp @5.7.3_3+ssl: snmpd crashes on snmpwalk
Reported by: | mail@… | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.4 |
Keywords: | yosemite elcapitan haspatch | Cc: | |
Port: | net-snmp |
Description
Hi there,
the SNMP daemon crashes after a snmpwalk request like:
snmpwalk -v 2c -c public IPofHost
Attachments (4)
Change History (11)
Changed 9 years ago by mail@…
Attachment: | snmpd_2016-01-03-113022_virts-Mac-3.crash added |
---|
comment:1 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)
Keywords: | yosemite elcapitan added; Yosemite snmpd snmpwalk removed |
---|---|
Owner: | changed from macports-tickets@… to ryandesign@… |
Port: | @5.7.3_3+ssl removed |
Status: | new → assigned |
Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)
Attachment: | patch-agent-mibgroup-mibII-icmp.h.diff added |
---|
Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)
Attachment: | Portfile.diff added |
---|
comment:2 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)
Keywords: | haspatch added |
---|
I've attached what I assume the fix will be but I'd like to confirm that before committing. So either let me know the steps to reproduce the problem, or try the patch and let me know if it fixes the problem.
comment:3 Changed 9 years ago by mail@…
Hi,
I was able to apply the Portfile.diff and I copied the other diff file into the Portfile directory. But I guess i then made the mistake by deinstalling and the run another
sudo port install net-snmp
again.
What then happened was that macports was pulling a new revision (4). That was taking quite long to compile (in comparison to the runs before) and then it worked :-).
Guess you already added the fix to the repo, right?
comment:4 follow-up: 5 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)
I have not committed the fix because I was waiting for you to either confirm that it fixes the problem or to tell me how to test it on my own system.
comment:5 Changed 9 years ago by mail@…
Replying to ryandesign@…:
I have not committed the fix because I was waiting for you to either confirm that it fixes the problem or to tell me how to test it on my own system.
Okay but then it seams that the fix worked for me, right? I guess port took the revision 4 informations from the patches, right?
You can test the setup by creating a snmpd.conf file in /opt/local/etc/snmp/ (file is attached). the you start the sniped daemon
sudo launchctl load -w /Library/LaunchDaemons/org.macports.net-snmp.plist
After this you run
snmpwalk -v 2c -c public IPofHost/localhost
to receive all snmp informations
Regards
Henning
Changed 9 years ago by mail@…
Attachment: | snmpd.conf added |
---|
comment:6 Changed 9 years ago by mail@…
Hello,
i did some more tests and I can confirm that the patches are working.
Thanks again for your work
Henning
comment:7 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Thanks for testing. I'll just commit the patch then. r144201
Looks like this bug. I can imagine what the fix is, but first I would like to be able to reproduce the problem on my system. What do I need to do before I run the command you gave, in order to see the problem?