https://bugs.kde.org/show_bug.cgi?id=417452

            Bug ID: 417452
           Summary: s390_insn_store_emit: dst->tag for HRcVec128
           Product: valgrind
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: vex
          Assignee: jsew...@acm.org
          Reporter: m...@klomp.org
                CC: ar...@linux.ibm.com
  Target Milestone: ---

valgrind --tool=none /usr/bin/python3 test.py

==27866== Nulgrind, the minimal Valgrind tool
==27866== Copyright (C) 2002-2017, and GNU GPL'd, by Nicholas Nethercote.
==27866== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info
==27866== Command: /usr/bin/python3 test.py
==27866== 

vex: the `impossible' happened:
   s390_insn_store_emit: unknown dst->tag for HRcVec128
vex storage: T total 555804192 bytes allocated
vex storage: P total 0 bytes allocated

valgrind: the 'impossible' happened:
   LibVEX called failure_exit().

host stacktrace:
==27866==    at 0x800032C8C: show_sched_status_wrk (m_libcassert.c:388)
==27866==    by 0x800032E75: report_and_quit (m_libcassert.c:459)
==27866==    by 0x800033077: vgPlain_core_panic_at (m_libcassert.c:535)
==27866==    by 0x80003309D: vgPlain_core_panic (m_libcassert.c:545)
==27866==    by 0x80004C495: failure_exit (m_translate.c:751)
==27866==    by 0x80010BF79: vpanic (main_util.c:255)
==27866==    by 0x80018817B: s390_insn_store_emit (host_s390_defs.c:8388)
==27866==    by 0x800199483: emit_S390Instr (host_s390_defs.c:11340)
==27866==    by 0x800108F93: LibVEX_Translate (main_main.c:1125)
==27866==    by 0x80004EDC5: vgPlain_translate (m_translate.c:1813)
==27866==    by 0x80001A57D: handle_chain_me (scheduler.c:1167)
==27866==    by 0x80001D515: vgPlain_scheduler (scheduler.c:1516)
==27866==    by 0x800091105: run_a_thread_NORETURN (syswrap-linux.c:103)
==27866==    by 0xFFFFFFFFFFFFFFFF: ???

sched status:
  running_tid=1

Thread 1: status = VgTs_Runnable (lwpid 27866)
==27866==    at 0x4B713F2: PyParser_New (in /usr/lib64/libpython3.6m.so.1.0)
==27866==    by 0x4B5D6F3: PyParser_ParseFileObject (in
/usr/lib64/libpython3.6m.so.1.0)
==27866==    by 0x4B5F471: PyParser_ASTFromFileObject (in
/usr/lib64/libpython3.6m.so.1.0)
==27866==    by 0x4B5FC1D: PyRun_FileExFlags (in
/usr/lib64/libpython3.6m.so.1.0)
==27866==    by 0x4B630EF: PyRun_SimpleFileExFlags (in
/usr/lib64/libpython3.6m.so.1.0)
==27866==    by 0x4D0B409: Py_Main (in /usr/lib64/libpython3.6m.so.1.0)
==27866==    by 0x108CBB: main (in /usr/libexec/platform-python3.6)
client stack range: [0x1FFEFEC000 0x1FFF000FFF] client SP: 0x1FFEFFF700
valgrind stack range: [0x1002D52000 0x1002E51FFF] top usage: 12912 of 1048576

This is in host_s390_defs.c (s390_insn_store_emit):

   if (hregClass(insn->variant.store.src) == HRcVec128) {
      vassert(insn->size == 16);
      switch (dst->tag) {
      case S390_AMODE_B12:
      case S390_AMODE_BX12:
         return s390_emit_VST(buf, r, x, b, d);

      default:
         vpanic("s390_insn_store_emit: unknown dst->tag for HRcVec128");
      }
   }

With some debugging we see that this is S390_AMODE_B20
insn: v-store  %v31,-24(%r4)          16 bytes
dst: -24(%r4)

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to