Bug 3053 - random failure with ftrace
Summary: random failure with ftrace
Status: RESOLVED WORKSFORME
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks: 2245
  Show dependency treegraph
 
Reported: 2006-08-15 02:05 UTC by Tom Tromey
Modified: 2007-05-04 18:38 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Tromey 2006-08-15 02:05:05 UTC
On this x86 FC5 box, 'ftrace' will randomly fail:

opsy. ./frysk/bindir/ftrace ../Closer
ftrace.main() Proc.getPid() 1388
ftrace.main() Proc.getPid() /home/tromey/gnu/frysk/build/Closer
Exception in thread "Thread-1" java.lang.NullPointerException
   at frysk.proc.Register.get(ftrace)
   at frysk.proc.LinuxIa32$1.number(ftrace)
   at frysk.proc.Task.notifySyscallEnter(ftrace)
   at frysk.proc.TaskState$SyscallRunning.handleSyscalledEvent(ftrace)
   at frysk.proc.Task.processSyscalledEvent(ftrace)
   at frysk.proc.LinuxHost$PollWaitOnSigChld$2.syscallEvent(ftrace)
   at frysk.sys.Wait.waitAllNoHang(ftrace)
   at frysk.proc.LinuxHost$PollWaitOnSigChld.execute(ftrace)
   at frysk.event.EventLoop.runEventLoop(ftrace)
   at frysk.event.EventLoop.run(ftrace)
Comment 1 Yao Qi 2006-08-15 03:45:15 UTC
Hi, Tom ,
I could not reproduce this problem on my desktop.
Could you post your test case "Close" here? 
Thanks!
Comment 2 Tom Tromey 2006-08-15 15:05:58 UTC
It is very simple:

#include <stdio.h>
#include <unistd.h>

int main()
{
  close(72);
  close(73);
  close(74);
}


Note that the problem is hard to reproduce.
I can't do it reliably... I'd say it fails only once in every 20 runs.
Comment 3 Sami Wagiaalla 2007-05-04 19:38:20 UTC
I cannot reproduce this.
please reopen it if the crash turns up again.