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 1328692 - trace-cmd split -e 1 segment fault on wakeup trace data
Summary: trace-cmd split -e 1 segment fault on wakeup trace data
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: trace-cmd
Version: 6.8
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: John Kacur
QA Contact: Ziqian SUN (Zamir)
URL:
Whiteboard:
Depends On:
Blocks: 1346447
TreeView+ depends on / blocked
 
Reported: 2016-04-20 05:00 UTC by Chunyu Hu
Modified: 2018-11-16 06:03 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
undefined
Clone Of:
Environment:
Last Closed: 2017-03-21 09:33:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:0617 0 normal SHIPPED_LIVE trace-cmd bug fix update 2017-03-21 12:28:07 UTC

Description Chunyu Hu 2016-04-20 05:00:45 UTC
Description of problem:

trace-cmd split -e 1 got segment fault when split wakeup trace data.

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

[root@ibm-x3850x5-02 ~]# rpm -q trace-cmd
trace-cmd-2.2.4-3.el6.x86_64

How reproducible:

Steps to Reproduce:
1. [root@ibm-x3850x5-02 ~]# rpm -q trace-cmd
trace-cmd-2.2.4-3.el6.x86_64

2. trace-cmd record -p wakeup sleep 5
3. trace-cmd split -e 1

Actual results:

segment fault.

Expected results:

should be fixed.

Additional info:
bug1198942

Comment 1 John Kacur 2016-07-21 21:18:51 UTC
gdb) r split -e 1
Starting program: /root/tmp.jkacur/trace-cmd/trace-cmd split -e 1
version = 6
trace-cmd: No such file or directory
  [timer:hrtimer_start] unknown op '{'
  [timer:hrtimer_expire_entry] unknown op '{'
  Error: expected 'field' but read 'print'
  Error: expected 'field' but read 'print'
  Error: expected 'field' but read 'print'
  Error: expected 'field' but read 'print'
  Error: expected 'field' but read 'print'
  Error: expected 'field' but read 'print'
  Error: expected 'field' but read 'print'
  Error: expected 'field' but read 'print'
  Error: expected 'field' but read 'print'
  Error: expected 'field' but read 'print'
  Error: expected 'field' but read 'print'
  Error: expected 'field' but read 'print'
  Error: expected 'field' but read 'print'
  Error: expected 'field' but read 'print'
  Error: expected 'field' but read 'print'
  Error: expected 'field' but read 'print'
  [scsi:scsi_dispatch_cmd_timeout] function scsi_trace_parse_cdb not defined
  [scsi:scsi_dispatch_cmd_start] function scsi_trace_parse_cdb not defined
  [scsi:scsi_dispatch_cmd_error] function scsi_trace_parse_cdb not defined
  [scsi:scsi_dispatch_cmd_done] function scsi_trace_parse_cdb not defined
  [jbd2:jbd2_submit_inode_data] function jbd2_dev_to_name not defined
  [jbd2:jbd2_start_commit] function jbd2_dev_to_name not defined
  [jbd2:jbd2_run_stats] function jbd2_dev_to_name not defined
  [jbd2:jbd2_end_commit] function jbd2_dev_to_name not defined
  [jbd2:jbd2_drop_transaction] function jbd2_dev_to_name not defined
  [jbd2:jbd2_commit_logging] function jbd2_dev_to_name not defined
  [jbd2:jbd2_commit_locking] function jbd2_dev_to_name not defined
  [jbd2:jbd2_commit_flushing] function jbd2_dev_to_name not defined
  [jbd2:jbd2_checkpoint_stats] function jbd2_dev_to_name not defined
  [jbd2:jbd2_checkpoint] function jbd2_dev_to_name not defined
  [ext4:ext4_writepage] function jbd2_dev_to_name not defined
  [ext4:ext4_writeback_write_end] function jbd2_dev_to_name not defined
  [ext4:ext4_write_begin] function jbd2_dev_to_name not defined
  [ext4:ext4_update_reserve_space] function jbd2_dev_to_name not defined
  [ext4:ext4_sync_fs] function jbd2_dev_to_name not defined
  [ext4:ext4_sync_file] function jbd2_dev_to_name not defined
  [ext4:ext4_request_inode] function jbd2_dev_to_name not defined
  [ext4:ext4_request_blocks] function jbd2_dev_to_name not defined
  [ext4:ext4_ordered_write_end] function jbd2_dev_to_name not defined
  [ext4:ext4_mballoc_prealloc] function jbd2_dev_to_name not defined
  [ext4:ext4_mballoc_free] function jbd2_dev_to_name not defined
  [ext4:ext4_mballoc_discard] function jbd2_dev_to_name not defined
  [ext4:ext4_mballoc_alloc] function jbd2_dev_to_name not defined
  [ext4:ext4_mb_release_inode_pa] function jbd2_dev_to_name not defined
  [ext4:ext4_mb_release_group_pa] function jbd2_dev_to_name not defined
  [ext4:ext4_mb_new_inode_pa] function jbd2_dev_to_name not defined
  [ext4:ext4_mb_new_group_pa] function jbd2_dev_to_name not defined
  [ext4:ext4_mb_discard_preallocations] function jbd2_dev_to_name not defined
  [ext4:ext4_journalled_write_end] function jbd2_dev_to_name not defined
  [ext4:ext4_free_inode] function jbd2_dev_to_name not defined
  [ext4:ext4_free_blocks] function jbd2_dev_to_name not defined
  [ext4:ext4_discard_preallocations] function jbd2_dev_to_name not defined
  [ext4:ext4_discard_blocks] function jbd2_dev_to_name not defined
  [ext4:ext4_da_writepages_result] function jbd2_dev_to_name not defined
  [ext4:ext4_da_writepages] function jbd2_dev_to_name not defined
  [ext4:ext4_da_write_pages] function jbd2_dev_to_name not defined
  [ext4:ext4_da_write_end] function jbd2_dev_to_name not defined
  [ext4:ext4_da_write_begin] function jbd2_dev_to_name not defined
  [ext4:ext4_allocate_inode] function jbd2_dev_to_name not defined
  [ext4:ext4_allocate_blocks] function jbd2_dev_to_name not defined
  [ext4:ext4_alloc_da_blocks] function jbd2_dev_to_name not defined

Program received signal SIGSEGV, Segmentation fault.
0x000000000042a0e0 in tracecmd_peek_data (handle=0x653010, cpu=0)
    at /root/tmp.jkacur/trace-cmd/trace-input.c:1415
1415		page = handle->cpu_data[cpu].page;
(gdb) bt
#0  0x000000000042a0e0 in tracecmd_peek_data (handle=0x653010, cpu=0)
    at /root/tmp.jkacur/trace-cmd/trace-input.c:1415
#1  0x000000000042a4fc in tracecmd_read_next_data (handle=0x653010, 
    rec_cpu=0x7fffffffdf40) at /root/tmp.jkacur/trace-cmd/trace-input.c:1538
#2  0x000000000040dea3 in read_record (handle=0x653010, percpu=0, 
    cpu=0x7fffffffdf40) at /root/tmp.jkacur/trace-cmd/trace-split.c:174
#3  0x000000000040e009 in parse_cpu (handle=0x653010, cpu_data=0x103ff80, 
    start=0, end=0, count_limit=1, percpu=0, cpu=-1, type=SPLIT_EVENTS)
    at /root/tmp.jkacur/trace-cmd/trace-split.c:228
#4  0x000000000040e6f0 in parse_file (handle=0x653010, 
    output_file=0xf5c050 "trace.dat.1", start=0, end=0, percpu=0, count=1, 
    type=SPLIT_EVENTS) at /root/tmp.jkacur/trace-cmd/trace-split.c:383
#5  0x000000000040ed5e in trace_split (argc=4, argv=0x7fffffffe1f8)
    at /root/tmp.jkacur/trace-cmd/trace-split.c:536
#6  0x000000000040656a in main (argc=4, argv=0x7fffffffe1f8)
    at /root/tmp.jkacur/trace-cmd/trace-cmd.c:223
(gdb)

Comment 3 John Kacur 2016-09-14 11:05:34 UTC
Fixed in trace-cmd-2.2.4-4 and up

Now if the user attempts the above, the user gets the following message instead of a fault
trace-cmd split does not work with latency traces

Comment 7 errata-xmlrpc 2017-03-21 09:33:34 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, 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://rhn.redhat.com/errata/RHBA-2017-0617.html


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