Segmentation fault (SIGSEGV) while running 'trace-cmd extract -B'

Solution In Progress - Updated -

Issue

  • Segmentation fault (SIGSEGV) while running trace-cmd extract -B command.
# trace-cmd extract -B foo 
Segmentation fault (core dumped)

# coredumpctl
TIME                         PID UID GID SIG     COREFILE EXE                  SIZE
Fri 2022-03-25 06:11:39 EDT 2518   0   0 SIGSEGV present  /usr/bin/trace-cmd 134.3K

# coredumpctl debug
           PID: 2518 (trace-cmd)
           UID: 0 (root)
           GID: 0 (root)
        Signal: 11 (SEGV)
     Timestamp: Fri 2022-03-25 06:11:39 EDT (1min 10s ago)
  Command Line: trace-cmd extract -B foo
    Executable: /usr/bin/trace-cmd
 Control Group: /user.slice/user-0.slice/session-2.scope
          Unit: session-2.scope
         Slice: user-0.slice
       Session: 2
     Owner UID: 0 (root)
       Boot ID: 1b26b921788e4a41af9dfae842b215ad
    Machine ID: c354fd2b92734e9b969afd6f3d40a77a
      Hostname: lenovo-rd230-01.gsslab.pek2.redhat.com
       Storage: /var/lib/systemd/coredump/core.trace-cmd.0.1b26b921788e4a41af9dfae842b215ad.2518.1648203099000000.zst (present)
     Disk Size: 134.3K
       Message: Process 2518 (trace-cmd) of user 0 dumped core.

                Module linux-vdso.so.1 with build-id 7d38950ddd869d2ff668dbb811031895471c0655
                Module ld-linux-x86-64.so.2 with build-id 335bb3411b415bb8b8986236e1da00d551bf1f93
                Module libc.so.6 with build-id d2e164a76fcfc12a7dceb2b36f8ad899d397e631
                Module libtracefs.so.1 with build-id eac7c05becd336d27a231138e6d3e6cfcd1d5df0
                Module libtraceevent.so.1 with build-id ebca42a84011ced5544375edc690b3649776806a
                Module trace-cmd with build-id 618cbb9a4fddd908a5b783e6569dcde686e77ec0
                Stack trace of thread 2518:
                #0  0x00007f76eb06503a __strlen_sse2 (libc.so.6 + 0x3703a)
                #1  0x000055e83d20c892 tracecmd_add_buffer_option (trace-cmd + 0x35892)
                #2  0x000055e83d1eb63f record_data (trace-cmd + 0x1463f)
                #3  0x000055e83d1ee4fb trace_extract (trace-cmd + 0x174fb)
                #4  0x000055e83d1e324d main (trace-cmd + 0xc24d)
                #5  0x00007f76eb072e50 __libc_start_call_main (libc.so.6 + 0x44e50)
                #6  0x00007f76eb072efc __libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x44efc)
                #7  0x000055e83d1e3285 _start (trace-cmd + 0xc285)
                ELF object binary architecture: AMD x86-64

Environment

  • Red Hat Enterprise Linux release 9.0 (Plow)
  • trace-cmd

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content