[Trac-bugs] [PC-BSD Trac] #1188: DTrace Fails When Not Run in /boot/kernel with Error '...Module is no longer loaded'

PC-BSD trac at pcbsd.org
Sat Jun 21 09:25:46 PDT 2014


#1188: DTrace Fails When Not Run in /boot/kernel with Error '...Module is no
longer loaded'
---------------------------+--------------------------
 Reporter:  boilednut      |      Owner:
     Type:  System Defect  |     Status:  new
 Priority:  major          |  Milestone:
Component:  System Tool    |    Version:  10.0-RELEASE
 Keywords:                 |
---------------------------+--------------------------
 On a fresh install of PC-BSD 10 Release, ''dtrace'' fails with[[BR]][[BR]]

 '''"/usr/lib/dtrace/psinfo.d", line 90: failed to resolve type
 kernel`struct thread * for identifier curthread: Module is no longer
 loaded'''[[BR]]
 [[BR]]
 when run in any directory other than '''/boot/kernel''' -- as demonstrated
 below:

 {{{
 [root at 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 at amd64-builder.pcbsd.org:/usr/obj/usr/src/sys/GENERIC  amd64
 }}}

 {{{
 [root at 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 at 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''.

--
Ticket URL: <http://trac.pcbsd.org/ticket/1188>
PC-BSD <http://trac.pcbsd.org>
PC-BSD Project Management


More information about the Trac-bugs mailing list