Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 835688 - dev-util/valgrind: fails at runtime on ppc64 (valgrind: m_syswrap/syswrap-main.c:549 (getSyscallArgsFromGuestState): Assertion 'gst->guest_syscall_flag == SC_FLAG' failed.)
Summary: dev-util/valgrind: fails at runtime on ppc64 (valgrind: m_syswrap/syswrap-mai...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC64 Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2022-03-20 17:40 UTC by ernsteiswuerfel
Modified: 2023-05-14 00:46 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log.xz (dovecot-2.3.18:20220320-172644.log.xz,65.64 KB, application/x-xz)
2022-03-20 17:40 UTC, ernsteiswuerfel
Details
emerge --info (file_835688.txt,6.46 KB, text/plain)
2022-03-20 17:41 UTC, ernsteiswuerfel
Details
build.log.xz (ppc64, 2.3.14.1-r2) (dovecot-2.3.14.1-r2:20220329-213926.log.xz,133.52 KB, application/x-xz)
2022-03-29 21:51 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2022-03-20 17:40:33 UTC
Created attachment 767454 [details]
build.log.xz

[...]
for bin in test-lib; do \
  if ! /bin/sh ../../libtool execute /bin/sh ../../run-test.sh ../.. ./$bin; then exit 1; fi; \
done

valgrind: m_syswrap/syswrap-main.c:549 (getSyscallArgsFromGuestState): Assertion 'gst->guest_syscall_fla
g == SC_FLAG' failed.

host stacktrace:
==169670==    at 0x580559E8: ??? (in /usr/libexec/valgrind/memcheck-ppc64be-linux)
==169670==    by 0x58055B87: ??? (in /usr/libexec/valgrind/memcheck-ppc64be-linux)
==169670==    by 0x58055D03: ??? (in /usr/libexec/valgrind/memcheck-ppc64be-linux)
==169670==    by 0x580CEBFF: ??? (in /usr/libexec/valgrind/memcheck-ppc64be-linux)
==169670==    by 0x580C8A67: ??? (in /usr/libexec/valgrind/memcheck-ppc64be-linux)
==169670==    by 0x580CB8FB: ??? (in /usr/libexec/valgrind/memcheck-ppc64be-linux)
==169670==    by 0x5812378F: ??? (in /usr/libexec/valgrind/memcheck-ppc64be-linux)

sched status:
  running_tid=1

Thread 1: status = VgTs_Runnable (lwpid 169670)
==169670==    at 0x492F8B4: getrandom (getrandom.c:29)
==169670==    by 0x1D2E37: random_read (in /var/tmp/portage/net-mail/dovecot-2.3.18/work/dovecot-2.3.18/
src/lib/test-lib)
==169670==    by 0x1D30CF: random_fill (in /var/tmp/portage/net-mail/dovecot-2.3.18/work/dovecot-2.3.18/
src/lib/test-lib)
==169670==    by 0x1D3237: random_init (in /var/tmp/portage/net-mail/dovecot-2.3.18/work/dovecot-2.3.18/
src/lib/test-lib)
==169670==    by 0x1B9843: lib_init (in /var/tmp/portage/net-mail/dovecot-2.3.18/work/dovecot-2.3.18/src
/lib/test-lib)
==169670==    by 0x181353: test_run_named_with_fatals (in /var/tmp/portage/net-mail/dovecot-2.3.18/work/dovecot-2.3.18/src/lib/test-lib)
==169670==    by 0x13680B: main (in /var/tmp/portage/net-mail/dovecot-2.3.18/work/dovecot-2.3.18/src/lib/test-lib)
client stack range: [0x1FFEFFA000 0x1FFF000FFF] client SP: 0x1FFEFFC660
valgrind stack range: [0x1003127000 0x1003226FFF] top usage: 20832 of 1048576
Comment 1 ernsteiswuerfel archtester 2022-03-20 17:41:02 UTC
Created attachment 767455 [details]
emerge --info
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-03-20 18:24:29 UTC
Can you report this upstream if git master fails?
Comment 3 ernsteiswuerfel archtester 2022-03-20 20:01:59 UTC
(In reply to Sam James from comment #2)
> Can you report this upstream if git master fails?
Current git master does not run these valgrind tests. git 2.3.18 shows the same output as here.
Comment 4 ernsteiswuerfel archtester 2022-03-29 21:51:22 UTC
Created attachment 768169 [details]
build.log.xz (ppc64, 2.3.14.1-r2)

2.3.14.1-r2 does not show these valgrind failures. According to the build.log it does not pick up valgrind at all (despite dev-util/valgrind-3.18.1 being installed).
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-04-25 00:06:18 UTC
This looks like a real Valgrind problem we should report to them, but see bug 340791 & bug 807178 for no longer automagically running Valgrind tests in Gentoo for dovecot.

Could you report this upstream to Valgrind?
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-04-25 00:14:00 UTC
(In reply to Sam James from comment #5)
> This looks like a real Valgrind problem we should report to them, but see
> bug 340791 & bug 807178 for no longer automagically running Valgrind tests
> in Gentoo for dovecot.
> 
> Could you report this upstream to Valgrind?

(if you can reproduce it by running valgrind on something simple, like 'valgrind bash').
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-04-25 03:12:17 UTC
meh, I think this might be https://bugs.kde.org/show_bug.cgi?id=398883.
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-14 00:45:59 UTC
I think this is fixed in 3.0.21 by https://sourceware.org/git/?p=valgrind.git;a=commit;h=b4ec6a6ff767098714ffa8c4e3e3081d98fd2d66.