Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Oct 2011 08:28:25 GMT
From:      Dietmar Schmidt <dietmar.schmidt@hob.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/161578: strace is not working
Message-ID:  <201110140828.p9E8SPv3037792@red.freebsd.org>
Resent-Message-ID: <201110140830.p9E8UBg5069469@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         161578
>Category:       ports
>Synopsis:       strace is not working
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 14 08:30:11 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Dietmar Schmidt
>Release:        8.2, 9.0-BETA3
>Organization:
>Environment:
FreeBSD X.X.X 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Fri Feb 18 02:24:46 UTC 2011     root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
strace is not working in newer FreeBSD versions.
In 8.0 FreeBSD works as expected.
in 8.2 and 9.0-BETA3 strace does not work. Not sure for 8.1, sorry.

The output of strace is "pread: Device busy" for every syscall?
and  
"PIOCRUN: Input/output error
trouble opening proc file"
at the end of the strace output.

I know about truss and ktrace, but we use strace for compatibility with other unixes/linux.

>How-To-Repeat:
strace ps
strace ls
>Fix:
The error occurs in syscall.c line 1300
if (pread(tcp->pfd_reg, &regs, sizeof(regs), 0) < 0) {

unsure how to fix it.

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201110140828.p9E8SPv3037792>