← Back to team overview

kernel-packages team mailing list archive

[Bug 1410673] Comment bridged from LTC Bugzilla

 

------- Comment From pavsubra@xxxxxxxxxx 2015-07-10 16:12 EDT-------
I have installed Ubuntu 15.04 ISO as a PKVM guest on P8 Hardware.
Then upgraded the guest VM to the latest kernel and rebooted the guest VM.

root@ubuntu:~# apt-get update
root@ubuntu:~# apt-get dist-upgrade

root@ubuntu:~# uname -a
Linux ubuntu 3.19.0-23-generic #24-Ubuntu SMP Tue Jul 7 20:49:14 UTC 2015 ppc64le ppc64le ppc64le GNU/Linux
root@ubuntu:~# cat /etc/issue
Ubuntu 15.04 \n \l

root@ubuntu:~# cat /etc/os-release
NAME="Ubuntu"
VERSION="15.04 (Vivid Vervet)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 15.04"
VERSION_ID="15.04"
HOME_URL="http://www.ubuntu.com/";
SUPPORT_URL="http://help.ubuntu.com/";
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/";

The test scenario is executed again and it is successful without any
issues.

root@ubuntu:~# perf trace sleep 1
0.221 ( 0.221 ms): read(fd: 5<pipe:[12702]>, buf: 0x3fffffc1caaf, count: 1               ) = 1
0.983 ( 0.157 ms): execve(filename: 0x3fffffc1c974, argv: 0x3fffffc1fe40, envp: 0x1002a6209f0) = -2
1.295 ( 0.011 ms): execve(filename: 0x3fffffc1c964, argv: 0x3fffffc1fe40, envp: 0x1002a6209f0) = -2
1.462 ( 0.011 ms): execve(filename: 0x3fffffc1c97b, argv: 0x3fffffc1fe40, envp: 0x1002a6209f0) = -2
1.629 ( 0.011 ms): execve(filename: 0x3fffffc1c97c, argv: 0x3fffffc1fe40, envp: 0x1002a6209f0) = -2
1.803 ( 0.011 ms): execve(filename: 0x3fffffc1c981, argv: 0x3fffffc1fe40, envp: 0x1002a6209f0) = -2
1.986 ( 0.011 ms): execve(filename: 0x3fffffc1c982, argv: 0x3fffffc1fe40, envp: 0x1002a6209f0) = -2
2.176 ( 0.010 ms): execve(filename: 0x3fffffc1c985, argv: 0x3fffffc1fe40, envp: 0x1002a6209f0) = -2
2.944 ( 0.114 ms): brk(                                                                  ) = 0x100287c0000
3.252 ( 0.131 ms): access(filename: 0x3fffb3d3faa8                                       ) = -1 ENOENT No such file or directory
3.427 ( 0.010 ms): access(filename: 0x3fffb3d3ea28, mode: R                              ) = -1 ENOENT No such file or directory
3.732 ( 0.147 ms): open(filename: 0x3fffb3d40a30, flags: CLOEXEC                         ) = 3
3.892 ( 0.002 ms): fstat(fd: 3</etc/ld.so.cache>, statbuf: 0x3fffd4590320                ) = 0
4.188 ( 0.298 ms):  ... [continued]: mmap()) = 0x3fffb3ce0000
4.346 ( 0.002 ms): close(fd: 3</etc/ld.so.cache>                                         ) = 0
4.606 ( 0.009 ms): access(filename: 0x3fffb3d3faa8                                       ) = -1 ENOENT No such file or directory
4.774 ( 0.011 ms): open(filename: 0x3fffb3d641e8, flags: CLOEXEC                         ) = 3
4.971 ( 0.016 ms): read(fd: 3</lib/powerpc64le-linux-gnu/libc-2.21.so>, buf: 0x3fffd4590528, count: 832) = 832
5.148 ( 0.002 ms): fstat(fd: 3</lib/powerpc64le-linux-gnu/libc-2.21.so>, statbuf: 0x3fffd4590340) = 0
5.334 ( 0.013 ms): mmap(arg0: 0, arg1: 1925664, arg2: 5, arg3: 2050, arg4: 3, arg5: 0    ) = 0x3fffb3b00000
5.523 ( 0.013 ms): mmap(arg0: 70367465701376, arg1: 131072, arg2: 3, arg3: 2066, arg4: 3, arg5: 1769472) = 0x3fffb3cc0000
5.716 ( 0.002 ms): close(fd: 3</lib/powerpc64le-linux-gnu/libc-2.21.so>                  ) = 0
5.960 ( 0.141 ms): mprotect(start: 0x3fffb3cc0000, len: 65536, prot: READ                ) = 0
5.994 ( 0.012 ms): mprotect(start: 0x3fffb3d50000, len: 65536, prot: READ                ) = 0
6.130 ( 0.119 ms): munmap(addr: 0x3fffb3ce0000, len: 42137                               ) = 0
6.376 ( 0.174 ms): brk(                                                                  ) = 0x100287c0000
6.403 ( 0.009 ms): brk(brk: 0x100287f0000                                                ) = 0x100287f0000
6.435 ( 0.010 ms): open(filename: 0x3fffb3c9c7f8, flags: CLOEXEC                         ) = 3
6.452 ( 0.002 ms): fstat(fd: 3</usr/lib/locale/locale-archive>, statbuf: 0x3fffb3cd26f8  ) = 0
6.485 ( 0.011 ms): mmap(arg0: 0, arg1: 2919792, arg2: 1, arg3: 2, arg4: 3, arg5: 0       ) = 0x3fffb3830000
6.506 ( 0.002 ms): close(fd: 3</usr/lib/locale/locale-archive>                           ) = 0
1006.659 (1000.102 ms): nanosleep(rqtp: 0x3fffd45911a8                                        ) = 0
1006.718 ( 0.004 ms): close(fd: 1                                                           ) = 0
1006.759 ( 0.003 ms): close(fd: 2                                                           ) = 0
1006.808 ( 0.000 ms): exit_group(
root@ubuntu:~# echo $?
0

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1410673

Title:
  perf trace sleep 1 is throwing segmentation fault

Status in linux package in Ubuntu:
  In Progress
Status in linux source package in Vivid:
  Fix Committed

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 7951722da2963cc1f1a7831a37aa2311ac927056

  $ git describe  7951722da2963cc1f1a7831a37aa2311ac927056 
  v4.1-rc5-310-g7951722

  --

  == Comment: #0 - PAVAMAN SUBRAMANIYAM <pavsubra@xxxxxxxxxx> - 2015-01-12 02:21:16 ==
  ---Problem Description---
  perf trace sleep 1 is throwing segmentation fault

  Contact Information = pavsubra@xxxxxxxxxx

  ---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 pavsubra@xxxxxxxxxx:
  -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 <vsandhya@xxxxxxxxxx> - 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:~/linux/tools/perf# ./perf trace sleep 1
  Segmentation fault (core dumped)
  root@ubuntu:~/linux/tools/perf# gdb ./perf core
  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://gnu.org/licenses/gpl.html>
  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-linux-gnu".
  Type "show configuration" for configuration details.
  For bug reporting instructions, please see:
  <http://www.gnu.org/software/gdb/bugs/>.
  Find the GDB manual and other documentation resources online at:
  <http://www.gnu.org/software/gdb/documentation/>.
  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/powerpc64le-linux-gnu/libthread_db.so.1".
  Core was generated by `./perf trace sleep 1 '.
  Program terminated with signal SIGSEGV, Segmentation fault.
  #0  perf_mmap__read_head (mm=0x3fff95730058) at util/evlist.h:193
  193		int head = ACCESS_ONCE(pc->data_head);
  (gdb) bt
  #0  perf_mmap__read_head (mm=0x3fff95730058) at util/evlist.h:193
  #1  perf_evlist__mmap_read (evlist=0x1000f851e70, idx=<optimized out>) at util/evlist.c:638
  #2  0x000000001004318c in trace__run (argv=<optimized out>, argc=<optimized out>, trace=0x3fffdca33668) at builtin-trace.c:2123
  #3  cmd_trace (argc=<optimized out>, argv=<optimized out>, prefix=<optimized out>) at builtin-trace.c:2601
  #4  0x0000000010009328 in run_builtin (p=0x10178210 <commands+504>, argc=3, argv=0x3fffdca36800) at perf.c:341
  #5  0x00000000100085c8 in handle_internal_command (argv=0x3fffdca36800, argc=3) at perf.c:400
  #6  run_argv (argv=0x3fffdca36220, argcp=0x3fffdca3622c) at perf.c:444
  #7  main (argc=3, argv=0x3fffdca36800) at perf.c:559

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1410673/+subscriptions