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 1909430 - running 'sys' command after ctrl-c causes double-free or corruption
Summary: running 'sys' command after ctrl-c causes double-free or corruption
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: crash
Version: 8.2
Hardware: All
OS: Unspecified
medium
medium
Target Milestone: rc
: 8.0
Assignee: lijiang
QA Contact: xiaoying yan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-12-19 21:45 UTC by John Pittman
Modified: 2021-11-09 22:17 UTC (History)
3 users (show)

Fixed In Version: crash-7.3.0-2.el8
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-09 18:08:37 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2021:4199 0 None None None 2021-11-09 18:08:55 UTC

Description John Pittman 2020-12-19 21:45:47 UTC
Description of problem:

running 'sys' command after ctrl-c causes double-free or corruption

crash> sy
Discard symbol table from `/cores/retrace/repos/kernel/x86_64/usr/lib/debug/lib/modules/3.10.0-1127.19.1.el7.x86_64/vmlinux'? (y or n) ^CEOF [assumed Y]
No symbol file now.

crash> sys
double free or corruption (!prev)
Aborted (core dumped)

Version-Release number of selected component (if applicable):

crash 7.2.7-3.el8

How reproducible:

Every time

Steps to Reproduce:

- Type 'sy'
- Press enter
- ctrl-c
- Type 'sys'
- Press enter

Actual results:

crash crashes

Expected results:

no crash

Comment 2 John Pittman 2020-12-19 22:07:44 UTC
Issue reproduced in upstream crash 7.2.9:

crash> sy
Discard symbol table from `/cores/retrace/repos/kernel/x86_64/usr/lib/debug/lib/modules/3.10.0-1127.19.1.el7.x86_64/vmlinux'? (y or n) ^C
Program received signal SIGINT, Interrupt.
EOF [assumed Y]
No symbol file now.
crash> sys
free(): double free detected in tcache 2

Program received signal SIGABRT, Aborted.
0x00007ffff6a0b70f in raise () from /lib64/libc.so.6
(gdb) bt
#0  0x00007ffff6a0b70f in raise () from /lib64/libc.so.6
#1  0x00007ffff69f5b25 in abort () from /lib64/libc.so.6
#2  0x00007ffff6a4e897 in __libc_message () from /lib64/libc.so.6
#3  0x00007ffff6a54fdc in malloc_printerr () from /lib64/libc.so.6
#4  0x00007ffff6a56d4d in _int_free () from /lib64/libc.so.6
#5  0x00000000006deb55 in parse_exp_in_context (stringptr=0xffffffff, pc=<optimized out>, block=<optimized out>, comma=0, out_subexp=0x4e3e00008180, void_context_p=0) at parse.c:1241
#6  0x0000000001791fd0 in ?? ()
#7  0x0000000001791fd0 in ?? ()
#8  0x000000000093bfc0 in ?? ()
#9  0x0000000000000001 in ?? ()
#10 0x00000000014b80c0 in ?? ()
#11 0x00007fffffffb187 in ?? ()
#12 0x0000000000769ded in execute_command (p=<optimized out>, from_tty=1) at top.c:484
#13 0x000000000068a0c8 in gdb_command_funnel (req=req@entry=0xf9ad60 <shared_bufs>) at symtab.c:5174
#14 0x00000000004fa1bf in gdb_interface (req=req@entry=0xf9ad60 <shared_bufs>) at gdb_interface.c:397
#15 0x00000000004fa932 in gdb_pass_through (cmd=cmd@entry=0x7fffffffb180 "whatis taint_flags", fptr=<optimized out>, flags=flags@entry=0) at gdb_interface.c:332
#16 0x000000000053c388 in get_array_length (s=0x0, s@entry=0x8c860f "taint_flags", two_dim=two_dim@entry=0x0, entry_size=entry_size@entry=0) at symbols.c:8520
#17 0x00000000004d8b66 in show_kernel_taints_v4_10 (verbose=<optimized out>, buf=<optimized out>) at kernel.c:11174
#18 show_kernel_taints (buf=buf@entry=0x7fffffffc3e0 "", verbose=verbose@entry=0) at kernel.c:11219
#19 0x00000000004dda84 in is_livepatch () at kernel.c:5462
#20 0x00000000004ec685 in display_sys_stats () at kernel.c:5525
#21 0x00000000004f793e in cmd_sys () at kernel.c:5439
#22 0x0000000000464249 in exec_command () at main.c:892
#23 0x000000000046447a in main_loop () at main.c:839
#24 0x00000000006b5e13 in captured_command_loop (data=data@entry=0x0) at main.c:258
#25 0x00000000006b464a in catch_errors (func=func@entry=0x6b5e00 <captured_command_loop>, func_args=func_args@entry=0x0, errstring=errstring@entry=0x909619 "", mask=mask@entry=6)
    at exceptions.c:557
#26 0x00000000006b6e06 in captured_main (data=data@entry=0x7fffffffe150) at main.c:1064
#27 0x00000000006b464a in catch_errors (func=func@entry=0x6b60e0 <captured_main>, func_args=func_args@entry=0x7fffffffe150, errstring=errstring@entry=0x909619 "", mask=mask@entry=6)
    at exceptions.c:557
#28 0x00000000006b7117 in gdb_main (args=0x7fffffffe150) at main.c:1079
#29 gdb_main_entry (argc=<optimized out>, argv=argv@entry=0x7fffffffe2b8) at main.c:1099
#30 0x00000000004f9374 in gdb_main_loop (argc=<optimized out>, argc@entry=3, argv=argv@entry=0x7fffffffe2b8) at gdb_interface.c:76
#31 0x0000000000462a47 in main (argc=3, argv=0x7fffffffe2b8) at main.c:720

Comment 13 errata-xmlrpc 2021-11-09 18:08:37 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (crash bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:4199


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