Using strace 4.5.1 from the port, if you try to strace a program from the command line, it hangs. $ strace ls .... (nothing happens) However, attaching to an already running process works fine. Bizarrely enough, the following also works: $ strace -o /dev/null strace ls How-To-Repeat: See above.
In message <200401300622.i0U6MDvw019935@mercury.lan>, Nate Eldredge writes: > > >Number: 62377 I am unable to recreate this problem under -CURRENT. Cheers, -- Cy Schubert <Cy.Schubert@komquats.com> http://www.komquats.com/ BC Government . FreeBSD UNIX Cy.Schubert@osg.gov.bc.ca . cy@FreeBSD.org http://www.gov.bc.ca/ . http://www.FreeBSD.org/
On Fri, 6 Feb 2004, Cy Schubert wrote: > In message <200401300622.i0U6MDvw019935@mercury.lan>, Nate Eldredge writes: > > > > >Number: 62377 > > I am unable to recreate this problem under -CURRENT. Extremely mysterious. I upgraded to 5.2-RELEASE and rebuilt strace, and it's still broken. Stranger yet: strace strace ls: breaks truss strace ls: works running strace under stock gdb 5.2.1 breaks running strace under gdb 5.3 (from port) works -- Nate Eldredge nge@cs.hmc.edu
And now I'm really confused. If I add `printf("");' as the first non-declaration line of `main' in strace, it works. When I take it out, it breaks again. Something very bizzare is going on. On Sat, 7 Feb 2004, Nate Eldredge wrote: > On Fri, 6 Feb 2004, Cy Schubert wrote: > > > In message <200401300622.i0U6MDvw019935@mercury.lan>, Nate Eldredge writes: > > > > > > >Number: 62377 > > > > I am unable to recreate this problem under -CURRENT. > > Extremely mysterious. I upgraded to 5.2-RELEASE and rebuilt strace, and > it's still broken. > > Stranger yet: > > strace strace ls: breaks > > truss strace ls: works > > running strace under stock gdb 5.2.1 breaks > > running strace under gdb 5.3 (from port) works > > -- > Nate Eldredge > nge@cs.hmc.edu > -- Nate Eldredge nge@cs.hmc.edu
Hi, On Thu, Jan 29, 2004 at 10:22:13PM -0800, Nate Eldredge wrote: > > >Number: 62377 > >Category: ports > >Synopsis: strace hangs when running programs from command line > >Confidential: no > >Severity: serious > >Priority: medium > >Responsible: freebsd-ports-bugs > >State: open Could you please investigate this PR with submitter ? -Kirill
State Changed From-To: open->feedback Asked maintainer to investigate it with submitter.
Adding to audit trail from email from maintainer: Subject: Re: FreeBSD ports Problem Reports for ports you maintain Date: Wednesday 20 October 2004 06:30 pm From: Alex Semenyaka <alex@semenyaka.ru> I could not reproduce the problem described since May 2004. Strace is frequently used by me so I hope that the problem does not exist anymore and was inspired by the changes in the kernel code. SY, Alex ------------------------------------------------------- To submitter: does the problem still persist in 5.3R?
Happened to me too, with 5.2.1 and 5.3. Attached patch fixes the problem. I didn't test on 4.x systems. -- .-. .-. Yes, I am an agent of Satan, but my duties are largely (_ \ / _) ceremonial. | | dave@fly.srk.fer.hr
State Changed From-To: feedback->closed Patch committed, Nate said it fixed this issue in private email.