RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 953840 - valgrind core dumps when running snmptrapd on s390x
Summary: valgrind core dumps when running snmptrapd on s390x
Keywords:
Status: CLOSED DUPLICATE of bug 881893
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: valgrind
Version: 6.5
Hardware: s390x
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Mark Wielaard
QA Contact: qe-baseos-tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-04-19 09:53 UTC by Karel Srot
Modified: 2013-04-19 11:53 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-04-19 11:53:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Karel Srot 2013-04-19 09:53:54 UTC
Description of problem:

# valgrind -v --leak-check=yes /usr/sbin/snmptrapd -Lsd -p /var/run/snmptrapd.pid -f 
==3043== Memcheck, a memory error detector
==3043== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
==3043== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info
==3043== Command: /usr/sbin/snmptrapd -Lsd -p /var/run/snmptrapd.pid -f
==3043== 
--3043-- Valgrind options:
--3043--    -v
--3043--    --leak-check=yes
--3043-- Contents of /proc/version:
--3043--   Linux version 2.6.32-358.el6.s390x (mockbuild.bos.redhat.com) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC) ) #1 SMP Tue Jan 29 12:06:31 EST 2013
--3043-- Arch and hwcaps: S390X, s390x-ldisp-eimm-gie-dfp-fgx-stfle-etf2-etf3
--3043-- Page sizes: currently 4096, max supported 4096
--3043-- Valgrind library directory: /usr/lib64/valgrind
--3043-- Reading syms from /usr/sbin/snmptrapd
--3043--   Considering /usr/lib/debug/.build-id/47/4d29917f3607c7ff3a64134975a81c87db86c5.debug ..
--3043--   .. build-id is valid
--3043-- Reading syms from /usr/lib64/valgrind/memcheck-s390x-linux
--3043--    object doesn't have a dynamic symbol table
--3043-- Reading syms from /lib64/ld-2.12.so
--3043-- Scheduler: using generic scheduler lock implementation.
--3043-- Reading suppressions file: /usr/lib64/valgrind/default.supp
==3043== embedded gdbserver: reading from /tmp/vgdb-pipe-from-vgdb-to-3043-by-root-on-ibm-z10-07.rhts.eng.bos.redhat.com
==3043== embedded gdbserver: writing to   /tmp/vgdb-pipe-to-vgdb-from-3043-by-root-on-ibm-z10-07.rhts.eng.bos.redhat.com
==3043== embedded gdbserver: shared mem   /tmp/vgdb-pipe-shared-mem-vgdb-3043-by-root-on-ibm-z10-07.rhts.eng.bos.redhat.com
==3043== 
==3043== TO CONTROL THIS PROCESS USING vgdb (which you probably
==3043== don't want to do, unless you know exactly what you're doing,
==3043== or are doing some strange experiment):
==3043==   /usr/lib64/valgrind/../../bin/vgdb --pid=3043 ...command...
==3043== 
==3043== TO DEBUG THIS PROCESS USING GDB: start GDB like this
==3043==   /path/to/gdb /usr/sbin/snmptrapd
==3043== and then give GDB the following command
==3043==   target remote | /usr/lib64/valgrind/../../bin/vgdb --pid=3043
==3043== --pid is optional if only one valgrind process is running
==3043== 
--3043-- Reading syms from /usr/lib64/valgrind/vgpreload_core-s390x-linux.so
--3043-- Reading syms from /usr/lib64/valgrind/vgpreload_memcheck-s390x-linux.so
--3043-- Reading syms from /usr/lib64/libnetsnmptrapd.so.20.0.0
--3043--   Considering /usr/lib/debug/.build-id/3d/2ceaddb8a2033ba75272c1936ecb0915d089b8.debug ..
--3043--   .. build-id is valid
--3043-- Reading syms from /usr/lib64/libnetsnmpmibs.so.20.0.0
--3043--   Considering /usr/lib/debug/.build-id/f2/490f3a3abecc5c22c0f9cbee5279d5795fbdec.debug ..
--3043--   .. build-id is valid
--3043-- Reading syms from /usr/lib64/libnetsnmphelpers.so.20.0.0
--3043--   Considering /usr/lib/debug/.build-id/05/7c5a9d804cbe5ad0f564b85f2e0deae83468b2.debug ..
--3043--   .. build-id is valid
--3043-- Reading syms from /usr/lib64/librpm.so.1.0.0
--3043--    object doesn't have a symbol table
--3043-- Reading syms from /usr/lib64/librpmio.so.1.0.0
--3043--    object doesn't have a symbol table
--3043-- Reading syms from /lib64/libpopt.so.0.0.0
--3043--    object doesn't have a symbol table
--3043-- Reading syms from /lib64/libz.so.1.2.3
--3043--    object doesn't have a symbol table
--3043-- Reading syms from /usr/lib64/libnetsnmpagent.so.20.0.0
--3043--   Considering /usr/lib/debug/.build-id/87/99dc743cc594dd3aabe6747694e901acec3f3d.debug ..
--3043--   .. build-id is valid
--3043-- Reading syms from /lib64/libwrap.so.0.7.6
--3043--    object doesn't have a symbol table
--3043-- Reading syms from /usr/lib64/libnetsnmp.so.20.0.0
--3043--   Considering /usr/lib/debug/.build-id/57/cf75cf1f4e328bda65df6ab58f498e4ec48324.debug ..
--3043--   .. build-id is valid
--3043-- Reading syms from /usr/lib64/perl5/CORE/libperl.so
--3043--    object doesn't have a symbol table
--3043-- Reading syms from /lib64/libresolv-2.12.so
--3043-- Reading syms from /lib64/libnsl-2.12.so
--3043-- Reading syms from /lib64/libdl-2.12.so
--3043-- Reading syms from /lib64/libm-2.12.so
--3043-- Reading syms from /lib64/libcrypt-2.12.so
--3043-- Reading syms from /lib64/libutil-2.12.so
--3043-- Reading syms from /lib64/libpthread-2.12.so
--3043-- Reading syms from /lib64/libc-2.12.so
--3043-- Reading syms from /usr/lib64/libcrypto.so.1.0.0
--3043--    object doesn't have a symbol table
--3043-- Reading syms from /usr/lib64/libnss3.so
--3043--    object doesn't have a symbol table
--3043-- Reading syms from /lib64/libbz2.so.1.0.4
--3043--    object doesn't have a symbol table
--3043-- Reading syms from /usr/lib64/libelf-0.152.so
--3043--    object doesn't have a symbol table
--3043-- Reading syms from /usr/lib64/liblzma.so.0.0.0
--3043--    object doesn't have a symbol table
--3043-- Reading syms from /usr/lib64/liblua-5.1.so
--3043--    object doesn't have a symbol table
--3043-- Reading syms from /lib64/libselinux.so.1
--3043--    object doesn't have a symbol table
--3043-- Reading syms from /lib64/libcap.so.2.16
--3043--    object doesn't have a symbol table
--3043-- Reading syms from /lib64/libacl.so.1.1.0
--3043--    object doesn't have a symbol table
--3043-- Reading syms from /lib64/libdb-4.7.so
--3043--    object doesn't have a symbol table
--3043-- Reading syms from /lib64/librt-2.12.so
--3043-- Reading syms from /lib64/libgcc_s-4.4.7-20120601.so.1
--3043--    object doesn't have a symbol table
--3043-- Reading syms from /lib64/libfreebl3.so
--3043--    object doesn't have a symbol table
--3043-- Reading syms from /usr/lib64/libnssutil3.so
--3043--    object doesn't have a symbol table
--3043-- Reading syms from /lib64/libplc4.so
--3043--    object doesn't have a symbol table
--3043-- Reading syms from /lib64/libplds4.so
--3043--    object doesn't have a symbol table
--3043-- Reading syms from /lib64/libnspr4.so
--3043--    object doesn't have a symbol table
--3043-- Reading syms from /lib64/libattr.so.1.1.0
--3043--    object doesn't have a symbol table
--3043-- REDIR: 0x503496c (rindex) redirected to 0x480b5b0 (rindex)
--3043-- REDIR: 0x502f270 (malloc) redirected to 0x480a1bc (malloc)
--3043-- REDIR: 0x5033cf8 (index) redirected to 0x480b6bc (index)
--3043-- REDIR: 0x502ee08 (calloc) redirected to 0x48089bc (calloc)
--3043-- REDIR: 0x503486c (strncpy) redirected to 0x480bf54 (strncpy)
==3043== Source and destination overlap in strncpy(0x4c7e389, 0x4c7e389, 64)
==3043==    at 0x480C01C: strncpy (mc_replace_strmem.c:476)
==3043==    by 0x4C2C6D7: snmp_log_syslogname (string3.h:121)
==3043==    by 0x4C2C711: snmp_enable_syslog_ident (snmp_logging.c:687)
==3043==    by 0x4C2CDAB: snmp_log_options (snmp_logging.c:422)
==3043==    by 0x10C989: main (snmptrapd.c:839)
==3043== 
--3043-- REDIR: 0x503023c (free) redirected to 0x4809a14 (free)
--3043-- REDIR: 0x5035f08 (memmove) redirected to 0x480dfd8 (memmove)
--3043-- REDIR: 0x5039714 (strchrnul) redirected to 0x480e4f0 (strchrnul)
--3043-- REDIR: 0x503474c (strncmp) redirected to 0x480c224 (strncmp)
--3043-- REDIR: 0x5035390 (strstr) redirected to 0x480e7e4 (strstr)
--3043-- REDIR: 0x5035b34 (memchr) redirected to 0x480c544 (memchr)
--3043-- REDIR: 0x5036484 (strcasecmp) redirected to 0x480f32c (strcasecmp)
--3043-- REDIR: 0x5036510 (strncasecmp) redirected to 0x480f1bc (strncasecmp)
--3043-- REDIR: 0x50395f4 (rawmemchr) redirected to 0x480e534 (rawmemchr)
vex s390->IR: unimplemented insn: B93E 0002
==3043== valgrind: Unrecognised instruction at address 0x51c201c.
==3043==    at 0x51C201C: sha1_block_data_order (in /usr/lib64/libcrypto.so.1.0.0)
==3043==    by 0x51C10DF: SHA1_Update (in /usr/lib64/libcrypto.so.1.0.0)
==3043==    by 0x521D6AF: ??? (in /usr/lib64/libcrypto.so.1.0.0)
==3043== Your program just tried to execute an instruction that Valgrind
==3043== did not recognise.  There are two possible reasons for this.
==3043== 1. Your program has a bug and erroneously jumped to a non-code
==3043==    location.  If you are running Memcheck and you just saw a
==3043==    warning about a bad jump, it's probably your program's fault.
==3043== 2. The instruction is legitimate but Valgrind doesn't handle it,
==3043==    i.e. it's Valgrind's fault.  If you think this is the case or
==3043==    you are not sure, please let us know and we'll try to fix it.
==3043== Either way, Valgrind will now raise a SIGILL signal which will
==3043== probably kill your program.
==3043== 
==3043== Process terminating with default action of signal 4 (SIGILL): dumping core
==3043==  Illegal opcode at address 0x51C201C
==3043==    at 0x51C201C: sha1_block_data_order (in /usr/lib64/libcrypto.so.1.0.0)
==3043==    by 0x51C10DF: SHA1_Update (in /usr/lib64/libcrypto.so.1.0.0)
==3043==    by 0x521D6AF: ??? (in /usr/lib64/libcrypto.so.1.0.0)
==3043== 
==3043== HEAP SUMMARY:
==3043==     in use at exit: 86,725 bytes in 1,667 blocks
==3043==   total heap usage: 1,806 allocs, 139 frees, 105,362 bytes allocated
==3043== 
==3043== Searching for pointers to 1,667 not-freed blocks
==3043== Checked 1,744,592 bytes
==3043== 
==3043== LEAK SUMMARY:
==3043==    definitely lost: 0 bytes in 0 blocks
==3043==    indirectly lost: 0 bytes in 0 blocks
==3043==      possibly lost: 0 bytes in 0 blocks
==3043==    still reachable: 86,725 bytes in 1,667 blocks
==3043==         suppressed: 0 bytes in 0 blocks
==3043== Reachable blocks (those to which a pointer was found) are not shown.
==3043== To see them, rerun with: --leak-check=full --show-reachable=yes
==3043== 
==3043== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 16 from 4)
==3043== 
==3043== 1 errors in context 1 of 1:
==3043== Source and destination overlap in strncpy(0x4c7e389, 0x4c7e389, 64)
==3043==    at 0x480C01C: strncpy (mc_replace_strmem.c:476)
==3043==    by 0x4C2C6D7: snmp_log_syslogname (string3.h:121)
==3043==    by 0x4C2C711: snmp_enable_syslog_ident (snmp_logging.c:687)
==3043==    by 0x4C2CDAB: snmp_log_options (snmp_logging.c:422)
==3043==    by 0x10C989: main (snmptrapd.c:839)
==3043== 
--3043-- 
--3043-- used_suppression:     16 U1004-ARM-_dl_relocate_object
==3043== 
==3043== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 16 from 4)
Illegal instruction (core dumped)


valgrind-3.8.1-3.2.el6.s390x
net-snmp-5.5-44.el6_4.1.s390x


Core dump has 34 MBs, sorry for not attaching it. Also, I cannot get a reasonable bt because of missing valgrind debuginfo packages.

Comment 1 Mark Wielaard 2013-04-19 11:53:12 UTC

*** This bug has been marked as a duplicate of bug 881893 ***


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