dtrace pid provider on entry == Trace/BPT trap process

Andreas Longwitz longwitz at incore.de
Tue Sep 5 11:05:03 UTC 2017


I use FreeBSD 10.3-STABLE r317936 with updated /usr/lib/dtrace/ip.c and
see an issue that in my opinion should have been solved in r269342:

I run a simple program looptest, that loops around a sprintf() call and
want to check this program with

dtrace -n 'pid$target:libc.so.*::entry {@[probefunc] = count();}' -p
$(pgrep looptest)
dtrace: description 'pid$target:libc.so.*::entry ' matched 3863 probes

After some seconds I hit CTRL-C and see

  __vfprintf                                                   741685
  localeconv_l                                                 741685
  memset                                                       741685
  sprintf                                                      741685
  vsprintf                                                     741685
  __sfvwrite                                                  1483369
  memcpy                                                      2225052

and at the same time looptest stops with
   Trace/BPT trap (Speicherabzug geschrieben)
and on the console I see the kernel message
   pid 67550 (looptest), uid 1003: exited on signal 5 (core dumped)

The trap does not occur all the time, but it is no problem to repeat the
trap.


---
Andreas Longwitz



More information about the freebsd-dtrace mailing list