Bug 1909430
| Summary: | running 'sys' command after ctrl-c causes double-free or corruption | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | John Pittman <jpittman> |
| Component: | crash | Assignee: | lijiang |
| Status: | CLOSED ERRATA | QA Contact: | xiaoying yan <yiyan> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 8.2 | CC: | cye, lijiang, ruyang |
| Target Milestone: | rc | Keywords: | Triaged |
| Target Release: | 8.0 | Flags: | pm-rhel:
mirror+
|
| Hardware: | All | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | crash-7.3.0-2.el8 | Doc Type: | No Doc Update |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-11-09 18:08:37 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
John Pittman
2020-12-19 21:45:47 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
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 |