svn commit: r191677 - head/usr.bin/du

Bruce Evans brde at optusnet.com.au
Thu Apr 30 09:00:04 UTC 2009


On Thu, 30 Apr 2009, Bruce Evans wrote:

> Testing processes blocked in sleep(100) shows some bugs in truss(1):
> ...
> - under -current, truss with -p is broken.  It now aborts the nanosleep()
>  immediately with EINTR.  ktrace with -p still works correctly.

This seems to be because truss now uses ptrace() instead of procfs, and
ptrace() (PT_ATTACH?) generally aborts sleeps so that debuggers can get
control.

Another bug is that gdb -p is now broken on ref8-{amd64,i386}.freebsd.org:

% GNU gdb 6.1.1 [FreeBSD]
% ...
% Attaching to process 19123
% /scratch/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/solib-svr4.c:1443: internal-error: legacy_fetch_link_map_offsets called without legacy link_map support enabled.
% A problem internal to GDB has been detected,
% further debugging may prove unreliable.
% Quit this debugging session? (y or n)
   [y] [kills process 19123?]
% /scratch/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/solib-svr4.c:1443: internal-error: legacy_fetch_link_map_offsets called without legacy link_map support enabled.
% A problem internal to GDB has been detected,
% further debugging may prove unreliable.
% Create a core file of GDB? (y or n)
   [n]

Bruce


More information about the svn-src-all mailing list