perf trace sleep 1 is throwing segmentation fault
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
Medium
|
Chris J Arges | ||
Vivid |
Fix Released
|
Medium
|
Chris J Arges |
Bug Description
[Impact]
Running 'perf trace sleep 1' throws a segmentation fault.
[Test Case]
Install a Ubuntu 15.04 guest VM on Power KVM host on a P8 machine.
Then execute the below command on the same:
root@ubuntu:~# perf trace sleep 1
Segmentation fault (core dumped)
[Fix]
commit 7951722da2963cc
$ git describe 7951722da2963cc
v4.1-rc5-
--
== Comment: #0 - PAVAMAN SUBRAMANIYAM <email address hidden> - 2015-01-12 02:21:16 ==
---Problem Description---
perf trace sleep 1 is throwing segmentation fault
Contact Information = <email address hidden>
---uname output---
Linux ubuntu 3.18.0-8-generic #9-Ubuntu SMP Mon Jan 5 22:52:15 UTC 2015 ppc64le ppc64le ppc64le GNU/Linux
Machine Type = P8
---Debugger---
A debugger is not configured
---Steps to Reproduce---
Install a Ubuntu 15.04 guest VM on Power KVM host on a P8 machine.
Then execute the below command on the same:
root@ubuntu:~# perf trace sleep 1
Segmentation fault (core dumped)
root@ubuntu:~# echo $?
139
root@ubuntu:~# perf trace -v sleep 1
mmap size 67174400B
Problems reading syscall 3 information
Problems reading syscall 11 information
Problems reading syscall 11 information
Problems reading syscall 11 information
Problems reading syscall 11 information
Problems reading syscall 11 information
Problems reading syscall 11 information
Problems reading syscall 11 information
Problems reading syscall 11 information
Problems reading syscall 11 information
Problems reading syscall 11 information
Problems reading syscall 11 information
Problems reading syscall 11 information
Problems reading syscall 11 information
Problems reading syscall 11 information
Problems reading syscall 11 information
Problems reading syscall 0 information
Problems reading syscall 45 information
Problems reading syscall 45 information
Problems reading syscall 33 information
Problems reading syscall 33 information
Problems reading syscall 90 information
Problems reading syscall 90 information
Problems reading syscall 33 information
Problems reading syscall 33 information
Problems reading syscall 5 information
Problems reading syscall 5 information
Problems reading syscall 108 information
Problems reading syscall 108 information
Problems reading syscall 90 information
Problems reading syscall 90 information
Problems reading syscall 6 information
Problems reading syscall 6 information
Problems reading syscall 33 information
Problems reading syscall 33 information
Problems reading syscall 5 information
Problems reading syscall 5 information
Problems reading syscall 3 information
Problems reading syscall 3 information
Problems reading syscall 108 information
Problems reading syscall 108 information
Problems reading syscall 90 information
Problems reading syscall 90 information
Problems reading syscall 90 information
Problems reading syscall 90 information
Problems reading syscall 6 information
Problems reading syscall 6 information
Problems reading syscall 91 information
Problems reading syscall 91 information
Problems reading syscall 45 information
Problems reading syscall 45 information
Problems reading syscall 45 information
Problems reading syscall 45 information
Problems reading syscall 5 information
Problems reading syscall 5 information
Problems reading syscall 108 information
Problems reading syscall 108 information
Problems reading syscall 90 information
Problems reading syscall 90 information
Problems reading syscall 6 information
Problems reading syscall 6 information
Problems reading syscall 162 information
Problems reading syscall 162 information
Segmentation fault (core dumped)
Stack trace output:
no
Oops output:
no
Userspace tool common name: /usr/bin/perf
The userspace tool has the following bit modes: 64-bit
System Dump Info:
The system is not configured to capture a system dump.
Userspace rpm: linux-tools-common
Userspace tool obtained from project website: na
*Additional Instructions for <email address hidden>:
-Post a private note with access information to the machine that the bug is occuring on.
-Attach sysctl -a output output to the bug.
-Attach ltrace and strace of userspace application.
== Comment: #3 - SANDHYA VENUGOPALA <email address hidden> - 2015-01-13 06:00:18 ==
Segmentation Fault happens intermittently. Execute "perf trace sleep 1" multiple times to ensure there is no segmentation fault on the version you are testing.
This failure is seen on the upstream version(3.19) also. GDB output -
root@ubuntu:
Segmentation fault (core dumped)
root@ubuntu:
GNU gdb (Ubuntu 7.8.1-1ubuntu2) 7.8.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "powerpc64le-
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://
Find the GDB manual and other documentation resources online at:
<http://
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./perf...done.
[New LWP 24493]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/powerpc64
Core was generated by `./perf trace sleep 1 '.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 perf_mmap_
193 int head = ACCESS_
(gdb) bt
#0 perf_mmap_
#1 perf_evlist_
#2 0x000000001004318c in trace__run (argv=<optimized out>, argc=<optimized out>, trace=0x3fffdca
#3 cmd_trace (argc=<optimized out>, argv=<optimized out>, prefix=<optimized out>) at builtin-
#4 0x0000000010009328 in run_builtin (p=0x10178210 <commands+504>, argc=3, argv=0x3fffdca3
#5 0x00000000100085c8 in handle_
#6 run_argv (argv=0x3fffdca
#7 main (argc=3, argv=0x3fffdca3
Related branches
tags: | added: architecture-ppc64le bugnameltc-120252 severity-high targetmilestone-inin1504 |
affects: | ubuntu → linux (Ubuntu) |
tags: | added: vivid |
tags: | added: kernel-da-key |
Changed in linux (Ubuntu): | |
assignee: | nobody → Chris J Arges (arges) |
importance: | Undecided → Medium |
assignee: | Chris J Arges (arges) → nobody |
Changed in linux (Ubuntu): | |
status: | New → Confirmed |
Changed in linux (Ubuntu): | |
assignee: | nobody → Chris J Arges (arges) |
status: | Confirmed → In Progress |
Changed in linux (Ubuntu Vivid): | |
assignee: | nobody → Chris J Arges (arges) |
importance: | Undecided → Medium |
status: | New → In Progress |
description: | updated |
Changed in linux (Ubuntu Vivid): | |
status: | In Progress → Fix Committed |
tags: |
added: verification-done-vivid removed: verification-needed-vivid |
Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https:/ /wiki.ubuntu. com/Bugs/ FindRightPackag e. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.
To change the source package that this bug is filed about visit https:/ /bugs.launchpad .net/ubuntu/ +bug/1410673/ +editstatus and add the package name in the text box next to the word Package.
[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]