Hide Forgot
Description of problem: snmpd cannot be executed under valgrind on ppc. I don't know if it is related to bug 665289. # valgrind snmpd valgrind: mmap(0x100000, 131072) failed in UME with error 22 (Invalid argument). valgrind: this can be caused by executables with very large text, data or bss segments. Version-Release number of selected component (if applicable): valgrind-3.5.0-5.el5 net-snmp-5.3.2.2-11.el5
The same issue is with running systemtap on power with _any_ stp script. # hello.stp probe begin { printf("hello, world\n") exit() } The following commands should both produce c source of module, under valgrind stap fails to do so. Actual results: # stap -p3 hello.stp > hello.c # valgrind stap -p3 hello.stp > hello_under_valgrind.c valgrind: mmap(0x100000, 2359296) failed in UME with error 22 (Invalid argument). valgrind: this can be caused by executables with very large text, data or bss segments. # wc hello*c 479 1386 12564 hello.c 0 0 0 hello_under_valgrind.c 479 1386 12564 total Versions: systemtap-1.3-6.el5 both valgrind-3.5.0-1.el5 and valgrind-3.5.0-5.el5
This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Because the affected component is not scheduled to be updated in the current release, Red Hat is unfortunately unable to address this request at this time. Red Hat invites you to ask your support representative to propose this request, if appropriate and relevant, in the next release of Red Hat Enterprise Linux.
I see the same thing with openldap-servers: # valgrind /usr/sbin/slapd ... valgrind: mmap(0x2e9000, 32768) failed in UME with error 22 (Invalid argument). valgrind: this can be caused by executables with very large text, data or bss segments. It behaves quite non-deterministically, hit ratio is around 20%. openldap-servers-2.3.43-12.el5_7.10 valgrind-3.5.0-5.el5
See also https://bugs.kde.org/show_bug.cgi?id=290061 https://bugs.kde.org/show_bug.cgi?id=138424 This may relate to ppc -fpie compilation. The patch in 290061 does not appear as applied to current svn valgrind, so it is possible that devtoolset-generation 3.8.1 valgrind also has this problem.
(In reply to comment #6) > See also > https://bugs.kde.org/show_bug.cgi?id=290061 > https://bugs.kde.org/show_bug.cgi?id=138424 > > This may relate to ppc -fpie compilation. The patch in 290061 does not > appear as applied to current svn valgrind, so it is possible that > devtoolset-generation 3.8.1 valgrind also has this problem. Thanks for finding these. We do carry this in the fedora valgrind.spec: # KDE#263034 - Crash when loading some PPC64 binaries Patch7: valgrind-3.8.1-pie.patch Which also isn't applied upstream yet, but covers a somewhat similar issue. I'll push to see if we can get this upstream and/or the other issues resolved.
As comment #7 says, there is a possible fix in fedora, but this patch is still pending upstream (it is under consideration for valgrind 3.9.0, but RHEL5 is 3.5.0 based).
At this stage of the RHEL lifecycle, a possibly-required rebase of valgrind is not likely.