[all-commits] [llvm/llvm-project] e825c2: [lldb] Fix Recognizer/assert.test with glibc-2.33....

Jan Kratochvil via All-commits all-commits at lists.llvm.org
Thu Jul 1 00:16:23 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e825c244b6063344ae726600d6a1225a05788dfa
      https://github.com/llvm/llvm-project/commit/e825c244b6063344ae726600d6a1225a05788dfa
  Author: Jan Kratochvil <jan.kratochvil at redhat.com>
  Date:   2021-07-01 (Thu, 01 Jul 2021)

  Changed paths:
    M lldb/source/Target/AssertFrameRecognizer.cpp

  Log Message:
  -----------
  [lldb] Fix Recognizer/assert.test with glibc-2.33.9000-31.fc35.x86_64

While on regular Linux system (Fedora 34 GA, not updated):

* thread #1, name = '1', stop reason = hit program assert
    frame #0: 0x00007ffff7e242a2 libc.so.6`raise + 322
    frame #1: 0x00007ffff7e0d8a4 libc.so.6`abort + 278
    frame #2: 0x00007ffff7e0d789 libc.so.6`__assert_fail_base.cold + 15
    frame #3: 0x00007ffff7e1ca16 libc.so.6`__assert_fail + 70
  * frame #4: 0x00000000004011bd 1`main at assert.c:7:3

On Fedora 35 pre-release one gets:

* thread #1, name = '1', stop reason = signal SIGABRT
  * frame #0: 0x00007ffff7e48ee3 libc.so.6`pthread_kill at GLIBC_2.2.5 + 67
    frame #1: 0x00007ffff7dfb986 libc.so.6`raise + 22
    frame #2: 0x00007ffff7de5806 libc.so.6`abort + 230
    frame #3: 0x00007ffff7de571b libc.so.6`__assert_fail_base.cold + 15
    frame #4: 0x00007ffff7df4646 libc.so.6`__assert_fail + 70
    frame #5: 0x00000000004011bd 1`main at assert.c:7:3

I did not write a testcase as one needs the specific glibc. An
artificial test would just copy the changed source.

Reviewed By: mib

Differential Revision: https://reviews.llvm.org/D105133




More information about the All-commits mailing list