Opened 5 months ago

Closed 4 months ago

#1188 closed System Defect (deferred)

DTrace Fails When Not Run in /boot/kernel with Error '...Module is no longer loaded'

Reported by: boilednut Owned by: kris
Priority: major Milestone:
Component: System Tool Version: 10.0-RELEASE
Keywords: Cc: trac-bugs@…

Description

On a fresh install of PC-BSD 10 Release, dtrace fails with

"/usr/lib/dtrace/psinfo.d", line 90: failed to resolve type kernel`struct thread * for identifier curthread: Module is no longer loaded

when run in any directory other than /boot/kernel -- as demonstrated below:

[root@thawklap3 /boot/kernel]# uname -a
FreeBSD thawklap3 10.0-RELEASE-p12 FreeBSD 10.0-RELEASE-p12 #0: Wed Jun  4 14:50:48 UTC 2014     root@amd64-builder.pcbsd.org:/usr/obj/usr/src/sys/GENERIC  amd64
[root@thawklap3 /boot/modules]# dtrace -n 'syscall:::entry { @num[execname] = count(); }'
dtrace: invalid probe specifier syscall:::entry { @num[execname] = count(); }: "/usr/lib/dtrace/psinfo.d", line 90: failed to resolve type kernel`struct thread * for identifier curthread: Module is no longer loaded
[root@thawklap3 /boot/kernel]#  dtrace -n 'syscall:::entry { @num[execname] = count(); }'
dtrace: description 'syscall:::entry ' matched 1072 probes
^C

  cat                                                               2
  kactivitymanagerd                                                 2
  akonadi_control                                                   4
  akonadiserver                                                     4
  virtuoso-t                                                        5
  wpa_supplicant                                                    5
  ntpd                                                              6
  upowerd                                                          14
  devd                                                             15
  mysqld                                                           18
  syslogd                                                          20
  hald                                                             31
  hald-addon-storage                                               31
  powerd                                                           36
  date                                                             69
  dtrace                                                           93
  df                                                              103
  zfs                                                             239
  zpool                                                           241
  pc-nettray                                                      246
  grep                                                            256
  sh                                                              345
  kwin                                                            406
  camcontrol                                                      468
  file                                                            549
  glabel                                                          620
  firefox                                                        1016
  pc-mounttray                                                   1488
  kdeinit4                                                       2181
  ifconfig                                                       4247
  Xorg                                                           7286

I have attached truss output from both the working and failing executions of the dtrace; and, I've also attached a kernel module listing from kldstat.

Attachments (3)

loaded_modules.out (3.3 KB) - added by boilednut 5 months ago.
listing of loaded kernel modules
dtrace_fail.out (71.8 KB) - added by boilednut 5 months ago.
truss output from failing execution of dtrace
dtrace_good.out (107.0 KB) - added by boilednut 5 months ago.
truss output from successful execution of dtrace (had to be run in directory /boot/kernel)

Download all attachments as: .zip

Change History (5)

Changed 5 months ago by boilednut

listing of loaded kernel modules

Changed 5 months ago by boilednut

truss output from failing execution of dtrace

Changed 5 months ago by boilednut

truss output from successful execution of dtrace (had to be run in directory /boot/kernel)

comment:1 Changed 5 months ago by joshms

  • Owner set to kris

comment:2 Changed 4 months ago by joshms

  • Resolution set to deferred
  • Status changed from new to closed

ticket migrated. closing.

Note: See TracTickets for help on using tickets.