Bug 674852
Summary: | snmp-agent no longer works with Fedora 14 | ||||||
---|---|---|---|---|---|---|---|
Product: | [Retired] 389 | Reporter: | David Yaffe <dyaffe> | ||||
Component: | snmp | Assignee: | Nathan Kinder <nkinder> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Viktor Ashirov <vashirov> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 1.2.8 | CC: | amsharma, rmeggins | ||||
Target Milestone: | --- | Keywords: | VerifiedUpstream | ||||
Target Release: | --- | ||||||
Hardware: | i686 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | |||||||
: | 681351 (view as bug list) | Environment: | |||||
Last Closed: | 2015-12-07 16:45: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: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 639035, 656390, 679210, 681351 | ||||||
Attachments: |
|
Description
David Yaffe
2011-02-03 14:40:30 UTC
I am unable to reproduce the crash on my fully updated F14 system. Please install the 389-ds-base-debuginfo package and launch ldap-agent-bin manually from gdb. You should be able to generate a stack trace so we can see what is going on. Created attachment 480557 [details]
Simple fix for segfault in ldap-agent-bin
I have also stumbeled on this bug this morning. The bug is caused by uninitialized buflen variable in ldap/servers/snmp/main.c, function load_config().
It's triggered by a call to ldif_read_record, which checks for buflen and reallocates memory if needed. As buflen isn't properly initialized to 0, this means the method randomly (or in my case not so randomly) segfaults while reading dse.ldif configuration of server instance.
I have attached a patch to fix this bug.
Pushed patch contributed by Andrej to master. Thanks for helping by finding the cause of the crash! Counting objects: 11, done. Delta compression using up to 2 threads. Compressing objects: 100% (6/6), done. Writing objects: 100% (6/6), 608 bytes, done. Total 6 (delta 5), reused 0 (delta 0) To ssh://git.fedorahosted.org/git/389/ds.git 6d4566e..9b5d9e6 master -> master |