Bug 244053 - `dtrace -c` causes program dumps core after somewhere between (r357694, r357701]
Summary: `dtrace -c` causes program dumps core after somewhere between (r357694, r357701]
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-dtrace mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-11 22:14 UTC by Li-Wen Hsu
Modified: 2020-02-16 08:55 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Li-Wen Hsu freebsd_committer 2020-02-11 22:14:17 UTC
root@:~ # uname -a
FreeBSD  13.0-CURRENT FreeBSD 13.0-CURRENT #0 r357694: Sun Feb  9 12:40:40 UTC 2020     root@FreeBSD-head-amd64-build.jail.ci.FreeBSD.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC  amd64
root@:~ # dtrace -n 'syscall:::entry { @[execname, probefunc] = count(); }' -c "echo hello"
dtrace: description 'syscall:::entry ' matched 1130 probes
dtrace: buffer size lowered to 1m
dtrace: aggregation size lowered to 1m
hello
dtrace: pid 825 has exited

  dtrace                                              close                                                             1
  dtrace                                              fstat                                                             1
  dtrace                                              open                                                              1
  dtrace                                              thr_exit                                                          1
  echo                                                cap_enter                                                         1
  echo                                                exit                                                              1
  echo                                                mmap                                                              1
  echo                                                mprotect                                                          1
  echo                                                writev                                                            1
  dtrace                                              _umtx_op                                                          2
  dtrace                                              mmap                                                              3
  echo                                                cap_fcntls_limit                                                  3
  echo                                                cap_ioctls_limit                                                  3
  echo                                                cap_rights_limit                                                  3
  dtrace                                              wait4                                                             4
  dtrace                                              __sysctl                                                          5
  dtrace                                              write                                                             6
  echo                                                sigprocmask                                                       7
  dtrace                                              sigaction                                                        10
  dtrace                                              __sysctlbyname                                                   17
  dtrace                                              sigprocmask                                                      20
  dtrace                                              ptrace                                                           22
  dtrace                                              ioctl                                                            41



root@:~ # uname -a
FreeBSD  13.0-CURRENT FreeBSD 13.0-CURRENT #0 r357701: Sun Feb  9 13:32:35 UTC 2020     root@FreeBSD-head-amd64-build.jail.ci.FreeBSD.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC  amd64
root@:~ # dtrace -n 'syscall:::entry { @[execname, probefunc] = count(); }' -c "echo hello"
dtrace: failed to control pid 800: process died from signal 11
root@:~ # dtrace -n 'syscall:::entry { @[execname, probefunc] = count(); }' -c "ls /"
dtrace: failed to control pid 790: process died from signal 11
root@:~ # lldb /usr/lib/debug/bin/ls.debug -c ls.core 
(lldb) target create "/usr/lib/debug/bin/ls.debug" --core "ls.core"
Core file '/root/ls.core' (x86_64) was loaded.
(lldb) bt
* thread #1, name = 'ls', stop reason = signal SIGSEGV
  * frame #0: 0x0000000000000000
Comment 1 commit-hook freebsd_committer 2020-02-11 22:21:49 UTC
A commit references this bug:

Author: lwhsu
Date: Tue Feb 11 22:21:22 UTC 2020
New revision: 357780
URL: https://svnweb.freebsd.org/changeset/base/357780

Log:
  Temporarily skip sys.geom.class.multipath.failloop.failloop in CI

  This case uses `dtrace -c` but it has some issues at the moment

  PR:		244053
  Sponsored by:	The FreeBSD Foundation

Changes:
  head/tests/sys/geom/class/multipath/failloop.sh