Bug 665289
| Summary: | snmpd crashes on ppc64 when executed under valgrind | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Karel Srot <ksrot> |
| Component: | valgrind | Assignee: | Dodji Seketeli <dodji> |
| Status: | CLOSED ERRATA | QA Contact: | qe-baseos-tools-bugs |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | 6.0 | CC: | ebachalo, jakub, jan.kratochvil, mfranc, pmuller, tcapek |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | ppc64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
When the snmpd tool was executed under valgrind on the 64-bit PowerPC architecture, it terminated unexpectedly. This bug has been fixed and the "valgrind /usr/sbin/snmpd" command now works as expected.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-05-19 13:58:15 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: | |||
|
Description
Karel Srot
2010-12-23 06:16:46 UTC
Reassigning to valgrind, I am not able to get stack trace or any other useful data from the core dump nor gdb. Feel free to return it back to me, if you can find the root cause of the 'Bus error'. It looks like the crash is due to Valgrind trying to load the snmpd executable to address 0x108000. The problem is that the vDSO is loaded at address 0x100000 and it takes at least two memory pages. The ppc64 system I reproduced the issue on has a page size of 64K. Valgrind overwrites the vDSO, I believe. Loading the executable at an address that leaves enough room for vDSO seems to do the trick. The patch is at http://people.redhat.com/dseketel/valgrind/valgrind-3.5.0-vdso-ppc.patch, the resulting RPMs and the SRPM are at http://people.redhat.com/dseketel/rpms/valgrind. I haven't verified this with upstream yet, but could you please verify if you still see an issue and maybe verify that nothing regresses as far as you can tell? If nothing it doesn't break anything I'll submit this upstream. Hi, I can confirm the fix. Thank you. valgrind-3.5.0-19.el6.ppc64, net-snmp-5.5-27.el6_0.1.ppc64: "valgrind /usr/sbin/snmpd" works as expected valgrind-3.5.0-18.el6.ppc64, net-snmp-5.5-27.el6_0.1.ppc64: # "valgrind /usr/sbin/snmpd" Bus error (core dumped) Thanks Karel. I have submitted the patch upstream https://bugs.kde.org/show_bug.cgi?id=263034
Technical note added. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
New Contents:
When the snmpd tool was executed under valgrind on the 64-bit PowerPC architecture, it terminated unexpectedly. This bug has been fixed and the "valgrind /usr/sbin/snmpd" command now works as expected.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2011-0665.html |