Subject: Re: A gcc process that gets "stuck"?
To: None <ragge@ludd.luth.se>
From: Lars Nordlund <lars.nordlund@hem.utfors.se>
List: port-alpha
Date: 12/21/2004 09:26:15
Tue 2004-12-21 klockan 08:27 +0100 skrev ragge@ludd.luth.se:
> You must use ktruss -i to follow the trace into childrens after fork.

Ok

$ ktruss -i -o ktruss.data gcc -o testa testa.c
^C
(after a minute or so I pressed ctrl-C)

This is the ktruss.data

$ ktruss -f ktruss.data 
  1811 ktruss   emul(netbsd)
  1811 ktruss   execve("/home/lars/bin/gcc", 0x1fffff6f0, 0x1fffff718)
Err#2 ENOENT
  1811 ktruss   execve("/bin/gcc", 0x1fffff6f0, 0x1fffff718) Err#2
ENOENT
  1811 ktruss   execve("/sbin/gcc", 0x1fffff6f0, 0x1fffff718) Err#2
ENOENT
  1811 gcc      emul(netbsd)
  1811 gcc      execve("/usr/bin/gcc", 0x1fffff6f0, 0x1fffff718)
JUSTRETURN
  1811 gcc      mmap(0, 0x8000, 0x3, 0x1002, 0xffffffffffffffff, 0, 0) =
0x160052000
  1811 gcc      open("/etc/ld.so.conf", 0, 0x16003d97c) Err#2 ENOENT
  1811 gcc      open("/usr/lib/libc.so.12", 0, 0)  = 3
  1811 gcc      __fstat13(0x3, 0x1fffff2c0)        = 0
  1811 gcc      mmap(0, 0x2000, 0x1, 0x1, 0x3, 0, 0) = 0x16002c000
  1811 gcc      munmap(0x16002c000, 0x2000)        = 0
  1811 gcc      mmap(0, 0xfa000, 0x5, 0x10000002, 0x3, 0, 0) =
0x160060000
  1811 gcc      mmap(0x160140000, 0xc000, 0x7, 0x12, 0x3, 0, 0xe0000) =
0x160140000
  1811 gcc      mmap(0x16014c000, 0xe000, 0x7, 0x1012,
0xffffffffffffffff, 0, 0) = 0x16014c000
  1811 gcc      close(0x3)                         = 0
  1811 gcc      break(0x12002b448)                 = 0
  1811 gcc      __sigaction_sigtramp(0x2, 0x1fffff610, 0x1fffff630,
0x1600d8258, 0x1) = 0
  1811 gcc      __sigaction_sigtramp(0x2, 0x1fffff610, 0x1fffff630,
0x1600d8258, 0x1) = 0
  1811 gcc      __sigaction_sigtramp(0x1, 0x1fffff610, 0x1fffff630,
0x1600d8258, 0x1) = 0
  1811 gcc      __sigaction_sigtramp(0x1, 0x1fffff610, 0x1fffff630,
0x1600d8258, 0x1) = 0
  1811 gcc      __sigaction_sigtramp(0xf, 0x1fffff610, 0x1fffff630,
0x1600d8258, 0x1) = 0
  1811 gcc      __sigaction_sigtramp(0xf, 0x1fffff610, 0x1fffff630,
0x1600d8258, 0x1) = 0
  1811 gcc      __sigaction_sigtramp(0xd, 0x1fffff610, 0x1fffff630,
0x1600d8258, 0x1) = 0
  1811 gcc      __sigaction_sigtramp(0xd, 0x1fffff610, 0x1fffff630,
0x1600d8258, 0x1) = 0
  1811 gcc      __sigaction_sigtramp(0x14, 0x1fffff610, 0x1fffff630,
0x1600d8258, 0x1) = 0
  1811 gcc      __sysctl(0x1fffff500, 0x2, 0x1fffff510, 0x1fffff538, 0,
0) = 0
  1811 gcc      readlink("/etc/malloc.conf", 0x1fffff580, 0x3f) Err#2
ENOENT
  1811 gcc      mmap(0, 0x2000, 0x3, 0x1002, 0xffffffffffffffff, 0, 0) =
0x16002c000
  1811 gcc      break(0x12002b448)                 = 0
  1811 gcc      break(0x12002d448)                 = 0
  1811 gcc      break(0x12002e000)                 = 0
  1811 gcc      break(0x120030000)                 = 0
  1811 gcc      break(0x120032000)                 = 0
  1811 gcc      break(0x120034000)                 = 0
  1811 gcc      break(0x120036000)                 = 0
  1811 gcc      break(0x120038000)                 = 0
  1811 gcc      break(0x12003a000)                 = 0
  1811 gcc      access("/home/lars/bin/gcc", 0x1)  Err#2 ENOENT
  1811 gcc      access("/bin/gcc", 0x1)            Err#2 ENOENT
  1811 gcc      access("/sbin/gcc", 0x1)           Err#2 ENOENT
  1811 gcc      access("/usr/bin/gcc", 0x1)        = 0
  1811 gcc      open(".", 0, 0)                    = 3
  1811 gcc      chdir("/usr/bin")                  = 0
  1811 gcc      __lstat13("gcc", 0x1ffffec18)      = 0
  1811 gcc      __getcwd(0x1fffff0a8, 0x400)       = 9
  1811 gcc      fchdir(0x3)                        = 0
  1811 gcc      close(0x3)                         = 0
  1811 gcc      access("/usr/bin/", 0x1)           = 0
  1811 gcc      access("/usr/bin/", 0x1)           = 0
  1811 gcc      access("testa.c", 0)               = 0
  1811 gcc      break(0x12003c000)                 = 0
  1811 gcc      access("/usr/bin/../libexec/specs", 0x4) Err#2 ENOENT
  1811 gcc      break(0x12003e000)                 = 0
  1811 gcc      access("/var/tmp/", 0x7)           = 0
  1811 gcc      gettimeofday(0x1ffffead0, 0)       = 0
  1811 gcc      getpid()                           = 1811, 465
  1811 gcc      open("/var/tmp//cckyxGa1.s", 0xa02, 0x180) = 3
  1811 gcc      close(0x3)                         = 0
  1811 gcc      __stat13("/usr/bin/../libexec/cc1", 0x1ffffeaf8) = 0
  1811 gcc      access("/usr/bin/../libexec/cc1", 0x1) = 0
  1811 gcc      fork()                             = 2381
  2381 gcc      emul(netbsd)
  2381 gcc      fork                               = 0
  2381 cc1      emul(netbsd)
  2381 cc1      execve("/usr/bin/../libexec/cc1", 0x120038200,
0x120038000) JUSTRETURN
  2381 cc1      mmap(0, 0x8000, 0x3, 0x1002, 0xffffffffffffffff, 0, 0) =
0x160306000
  2381 cc1      open("/etc/ld.so.conf", 0, 0x16031d97c) Err#2 ENOENT
  2381 cc1      open("/usr/lib/libc.so.12", 0, 0)  = 3
  2381 cc1      __fstat13(0x3, 0x1fffff150)        = 0
  2381 cc1      mmap(0, 0x2000, 0x1, 0x1, 0x3, 0, 0) = 0x16030e000
  2381 cc1      munmap(0x16030e000, 0x2000)        = 0
  2381 cc1      mmap(0, 0xfa000, 0x5, 0x10000002, 0x3, 0, 0) =
0x160340000
  2381 cc1      mmap(0x160420000, 0xc000, 0x7, 0x12, 0x3, 0, 0xe0000) =
0x160420000
  2381 cc1      mmap(0x16042c000, 0xe000, 0x7, 0x1012,
0xffffffffffffffff, 0, 0) = 0x16042c000
  2381 cc1      close(0x3)                         = 0
  2381 cc1      break(0x120368f08)                 = 0
  2381 cc1      __sigaction_sigtramp(0xb, 0x1fffff4d0, 0x1fffff4f0,
0x1603b8258, 0x1) = 0
  2381 cc1      __sigaction_sigtramp(0x4, 0x1fffff4d0, 0x1fffff4f0,
0x1603b8258, 0x1) = 0
  2381 cc1      __sigaction_sigtramp(0xa, 0x1fffff4d0, 0x1fffff4f0,
0x1603b8258, 0x1) = 0
  2381 cc1      __sigaction_sigtramp(0x6, 0x1fffff4d0, 0x1fffff4f0,
0x1603b8258, 0x1) = 0
  2381 cc1      __sigaction_sigtramp(0x8, 0x1fffff4d0, 0x1fffff4f0,
0x1603b8258, 0x1) = 0
  2381 cc1      __sysctl(0x1fffff3a0, 0x2, 0x1fffff3b0, 0x1fffff3d8, 0,
0) = 0
  2381 cc1      readlink("/etc/malloc.conf", 0x1fffff420, 0x3f) Err#2
ENOENT
  2381 cc1      mmap(0, 0x2000, 0x3, 0x1002, 0xffffffffffffffff, 0, 0) =
0x16030e000
  2381 cc1      break(0x120368f08)                 = 0
  2381 cc1      break(0x12036af08)                 = 0
  2381 cc1      break(0x12036c000)                 = 0
  2381 cc1      break(0x12036e000)                 = 0
  2381 cc1      break(0x120370000)                 = 0
  2381 cc1      __sysctl(0x1fffff4b0, 0x2, 0x16042b318, 0x1fffff4c0, 0,
0) = 0
  2381 cc1      mmap(0, 0x2000, 0x3, 0x1002, 0xffffffffffffffff, 0, 0) =
0x160332000
  2381 cc1      break(0x120372000)                 = 0
  2381 cc1      break(0x120374000)                 = 0
  2381 cc1      break(0x120394000)                 = 0
  2381 cc1      break(0x120396000)                 = 0
  2381 cc1      break(0x120398000)                 = 0
  2381 cc1      __sysctl(0x12030ae70, 0x2, 0x1fffff470, 0x1fffff478, 0,
0) = 0
  2381 cc1      getrlimit(0x5, 0x1fffff470)        = 0
  2381 cc1      getrlimit(0x2, 0x1fffff470)        = 0
  2381 cc1      __sysctl(0x12030ae70, 0x2, 0x1fffff470, 0x1fffff478, 0,
0) = 0
  2381 cc1      getrlimit(0x5, 0x1fffff470)        = 0
  2381 cc1      getrlimit(0x2, 0x1fffff470)        = 0
  2381 cc1      break(0x12039a000)                 = 0
  2381 cc1      break(0x12039c000)                 = 0
  2381 cc1      break(0x12039e000)                 = 0
  2381 cc1      break(0x1203a0000)                 = 0
  2381 cc1      break(0x1203a2000)                 = 0
  2381 cc1      break(0x1203a4000)                 = 0
  2381 cc1      break(0x1203a8000)                 = 0
  2381 cc1      mmap(0, 0x20000, 0x3, 0x1002, 0xffffffffffffffff, 0, 0)
= 0x16043a000
  2381 cc1      break(0x1203ac000)                 = 0
  2381 cc1      mmap(0, 0x20000, 0x3, 0x1002, 0xffffffffffffffff, 0, 0)
= 0x16045a000
  2381 cc1      mmap(0, 0x20000, 0x3, 0x1002, 0xffffffffffffffff, 0, 0)
= 0x16047a000
  2381 cc1      break(0x1203ae000)                 = 0
  2381 cc1      break(0x1203b0000)                 = 0
  2381 cc1      __lstat13("/usr/bin", 0x1fffff258) = 0
  2381 cc1      __stat13("/usr/libexec/include", 0x1fffff368) Err#2
ENOENT
  2381 cc1      __stat13("/usr/include", 0x1fffff368) = 0
  2381 cc1      open("testa.c", 0x8000, 0x1b6)     = 3
  2381 cc1      __fstat13(0x3, 0x1203a0220)        = 0
  2381 cc1      read(0x3, 0x120372600, 0x60)       = 96
       "#include <stdio.h>\n#include <stdlib.h>\n\nint\nmain(void)\n{\n
\tprin"
  2381 cc1      close(0x3)                         = 0
  2381 cc1      break(0x1203b2000)                 = 0
  2381 cc1      open("/var/tmp//cckyxGa1.s", 0x601, 0x1b6) = 3
  2381 cc1      __fstat13(0x3, 0x1fffff340)        = 0
  2381 cc1      break(0x1203b4000)                 = 0
  2381 cc1      mmap(0, 0x20000, 0x3, 0x1002, 0xffffffffffffffff, 0, 0)
= 0x16049a000
  2381 cc1      open("/usr/include/stdio.h", 0x8000, 0x1b6) = 4
  2381 cc1      __fstat13(0x4, 0x1203a0320)        = 0
  2381 cc1      break(0x1203b8000)                 = 0
  2381 cc1      read(0x4, 0x1203b4000, 0x3dea)     = 15850
       "/*\t$NetBSD: stdio.h,v 1.53.2.1 2004/07/02 18:13:45 he Exp
$\t*/\n\n/"
  2381 cc1      close(0x4)                         = 0
  2381 cc1      open("/usr/include/sys/ansi.h", 0x8000, 0x1b6) = 4
  2381 cc1      __fstat13(0x4, 0x1203a0420)        = 0
  2381 cc1      read(0x4, 0x1203ad000, 0xa55)      = 2645
       "/*\t$NetBSD: ansi.h,v 1.9 2002/05/12 22:58:48 kleink Exp $\t*/\n
\n/*-"
  2381 cc1      close(0x4)                         = 0
  2381 cc1      open("/usr/include/machine/int_types.h", 0x8000, 0x1b6)
= 4
  2381 cc1      __fstat13(0x4, 0x1203a0520)        = 0
  2381 cc1      break(0x1203ba000)                 = 0
  2381 cc1      read(0x4, 0x1203b8000, 0x98e)      = 2446
       "/* $NetBSD: int_types.h,v 1.6 2003/08/07 16:26:33 agc Exp $ */\n
\n/*-"
  2381 cc1      close(0x4)                         = 0
  2381 cc1      open("/usr/include/sys/cdefs.h", 0x8000, 0x1b6) = 4
  2381 cc1      __fstat13(0x4, 0x1203a0620)        = 0
  2381 cc1      break(0x1203be000)                 = 0
  2381 cc1      read(0x4, 0x1203ba000, 0x297b)     = 10619
       "/*\t$NetBSD: cdefs.h,v 1.51 2004/01/07 19:38:10 martin Exp
$\t*/\n\n/"
  2381 cc1      close(0x4)                         = 0
  2381 cc1      open("/usr/include/machine/cdefs.h", 0x8000, 0x1b6) = 4
  2381 cc1      __fstat13(0x4, 0x1203a0720)        = 0
  2381 cc1      read(0x4, 0x1203a0800, 0xb5)       = 181
       "/* $NetBSD: cdefs.h,v 1.11 1999/03/20 01:40:25 thorpej Exp $
*/\n\n#i"
  2381 cc1      close(0x4)                         = 0
  2381 cc1      open("/usr/include/sys/cdefs_elf.h", 0x8000, 0x1b6) = 4
  2381 cc1      __fstat13(0x4, 0x1203a0820)        = 0
  2381 cc1      read(0x4, 0x1203b8000, 0x11d1)     = 4561
       "/*\t$NetBSD: cdefs_elf.h,v 1.17 2003/10/29 21:56:02 mycroft Exp
$\t*/"
  2381 cc1      close(0x4)                         = 0
  2381 cc1      break(0x1203c0000)                 = 0
  2381 cc1      break(0x1203c2000)                 = 0
  2381 cc1      break(0x1203c4000)                 = 0
  2381 cc1      open("/usr/include/sys/featuretest.h", 0x8000, 0x1b6) =
4
  2381 cc1      __fstat13(0x4, 0x1203a0920)        = 0
  2381 cc1      read(0x4, 0x1203ba000, 0xaf7)      = 2807
       "/*\t$NetBSD: featuretest.h,v 1.7 2003/12/04 12:42:54 keihan Exp
$\t*/"
  2381 cc1      close(0x4)                         = 0
  2381 cc1      open("/usr/include/machine/ansi.h", 0x8000, 0x1b6) = 4
  2381 cc1      __fstat13(0x4, 0x1203a0a20)        = 0
  2381 cc1      read(0x4, 0x1203bc000, 0x104c)     = 4172
       "/* $NetBSD: ansi.h,v 1.17 2003/08/07 16:26:33 agc Exp $ */\n
\n/*-\n *"
  2381 cc1      close(0x4)                         = 0
  2381 cc1      open("/usr/include/sys/null.h", 0x8000, 0x1b6) = 4
  2381 cc1      __fstat13(0x4, 0x1203a0b20)        = 0
  2381 cc1      read(0x4, 0x12039e000, 0x123)      = 291
       "/*\t$NetBSD: null.h,v 1.6 2003/10/24 21:45:09 enami Exp $\t*/\n
\n#ifn"
  2381 cc1      close(0x4)                         = 0
  2381 cc1      mmap(0, 0x20000, 0x3, 0x1002, 0xffffffffffffffff, 0, 0)
= 0x1604ba000
  2381 cc1      mmap(0, 0x20000, 0x3, 0x1002, 0xffffffffffffffff, 0, 0)
= 0x1604da000
$ 
$ ktruss -f ktruss.data  
  1811 ktruss   emul(netbsd)
  1811 ktruss   execve("/home/lars/bin/gcc", 0x1fffff6f0, 0x1fffff718)
Err#2 ENOENT
  1811 ktruss   execve("/bin/gcc", 0x1fffff6f0, 0x1fffff718) Err#2
ENOENT
  1811 ktruss   execve("/sbin/gcc", 0x1fffff6f0, 0x1fffff718) Err#2
ENOENT
  1811 gcc      emul(netbsd)
  1811 gcc      execve("/usr/bin/gcc", 0x1fffff6f0, 0x1fffff718)
JUSTRETURN
  1811 gcc      mmap(0, 0x8000, 0x3, 0x1002, 0xffffffffffffffff, 0, 0) =
0x160052000
  1811 gcc      open("/etc/ld.so.conf", 0, 0x16003d97c) Err#2 ENOENT
  1811 gcc      open("/usr/lib/libc.so.12", 0, 0)  = 3
  1811 gcc      __fstat13(0x3, 0x1fffff2c0)        = 0
  1811 gcc      mmap(0, 0x2000, 0x1, 0x1, 0x3, 0, 0) = 0x16002c000
  1811 gcc      munmap(0x16002c000, 0x2000)        = 0
  1811 gcc      mmap(0, 0xfa000, 0x5, 0x10000002, 0x3, 0, 0) =
0x160060000
  1811 gcc      mmap(0x160140000, 0xc000, 0x7, 0x12, 0x3, 0, 0xe0000) =
0x160140000
  1811 gcc      mmap(0x16014c000, 0xe000, 0x7, 0x1012,
0xffffffffffffffff, 0, 0) = 0x16014c000
  1811 gcc      close(0x3)                         = 0
  1811 gcc      break(0x12002b448)                 = 0
  1811 gcc      __sigaction_sigtramp(0x2, 0x1fffff610, 0x1fffff630,
0x1600d8258, 0x1) = 0
  1811 gcc      __sigaction_sigtramp(0x2, 0x1fffff610, 0x1fffff630,
0x1600d8258, 0x1) = 0
  1811 gcc      __sigaction_sigtramp(0x1, 0x1fffff610, 0x1fffff630,
0x1600d8258, 0x1) = 0
  1811 gcc      __sigaction_sigtramp(0x1, 0x1fffff610, 0x1fffff630,
0x1600d8258, 0x1) = 0
  1811 gcc      __sigaction_sigtramp(0xf, 0x1fffff610, 0x1fffff630,
0x1600d8258, 0x1) = 0
  1811 gcc      __sigaction_sigtramp(0xf, 0x1fffff610, 0x1fffff630,
0x1600d8258, 0x1) = 0
  1811 gcc      __sigaction_sigtramp(0xd, 0x1fffff610, 0x1fffff630,
0x1600d8258, 0x1) = 0
  1811 gcc      __sigaction_sigtramp(0xd, 0x1fffff610, 0x1fffff630,
0x1600d8258, 0x1) = 0
  1811 gcc      __sigaction_sigtramp(0x14, 0x1fffff610, 0x1fffff630,
0x1600d8258, 0x1) = 0
  1811 gcc      __sysctl(0x1fffff500, 0x2, 0x1fffff510, 0x1fffff538, 0,
0) = 0
  1811 gcc      readlink("/etc/malloc.conf", 0x1fffff580, 0x3f) Err#2
ENOENT
  1811 gcc      mmap(0, 0x2000, 0x3, 0x1002, 0xffffffffffffffff, 0, 0) =
0x16002c000
  1811 gcc      break(0x12002b448)                 = 0
  1811 gcc      break(0x12002d448)                 = 0
  1811 gcc      break(0x12002e000)                 = 0
  1811 gcc      break(0x120030000)                 = 0
  1811 gcc      break(0x120032000)                 = 0
  1811 gcc      break(0x120034000)                 = 0
  1811 gcc      break(0x120036000)                 = 0
  1811 gcc      break(0x120038000)                 = 0
  1811 gcc      break(0x12003a000)                 = 0
  1811 gcc      access("/home/lars/bin/gcc", 0x1)  Err#2 ENOENT
  1811 gcc      access("/bin/gcc", 0x1)            Err#2 ENOENT
  1811 gcc      access("/sbin/gcc", 0x1)           Err#2 ENOENT
  1811 gcc      access("/usr/bin/gcc", 0x1)        = 0
  1811 gcc      open(".", 0, 0)                    = 3
  1811 gcc      chdir("/usr/bin")                  = 0
  1811 gcc      __lstat13("gcc", 0x1ffffec18)      = 0
  1811 gcc      __getcwd(0x1fffff0a8, 0x400)       = 9
  1811 gcc      fchdir(0x3)                        = 0
  1811 gcc      close(0x3)                         = 0
  1811 gcc      access("/usr/bin/", 0x1)           = 0
  1811 gcc      access("/usr/bin/", 0x1)           = 0
  1811 gcc      access("testa.c", 0)               = 0
  1811 gcc      break(0x12003c000)                 = 0
  1811 gcc      access("/usr/bin/../libexec/specs", 0x4) Err#2 ENOENT
  1811 gcc      break(0x12003e000)                 = 0
  1811 gcc      access("/var/tmp/", 0x7)           = 0
  1811 gcc      gettimeofday(0x1ffffead0, 0)       = 0
  1811 gcc      getpid()                           = 1811, 465
  1811 gcc      open("/var/tmp//cckyxGa1.s", 0xa02, 0x180) = 3
  1811 gcc      close(0x3)                         = 0
  1811 gcc      __stat13("/usr/bin/../libexec/cc1", 0x1ffffeaf8) = 0
  1811 gcc      access("/usr/bin/../libexec/cc1", 0x1) = 0
  1811 gcc      fork()                             = 2381
  2381 gcc      emul(netbsd)
  2381 gcc      fork                               = 0
  2381 cc1      emul(netbsd)
  2381 cc1      execve("/usr/bin/../libexec/cc1", 0x120038200,
0x120038000) JUSTRETURN
  2381 cc1      mmap(0, 0x8000, 0x3, 0x1002, 0xffffffffffffffff, 0, 0) =
0x160306000
  2381 cc1      open("/etc/ld.so.conf", 0, 0x16031d97c) Err#2 ENOENT
  2381 cc1      open("/usr/lib/libc.so.12", 0, 0)  = 3
  2381 cc1      __fstat13(0x3, 0x1fffff150)        = 0
  2381 cc1      mmap(0, 0x2000, 0x1, 0x1, 0x3, 0, 0) = 0x16030e000
  2381 cc1      munmap(0x16030e000, 0x2000)        = 0
  2381 cc1      mmap(0, 0xfa000, 0x5, 0x10000002, 0x3, 0, 0) =
0x160340000
  2381 cc1      mmap(0x160420000, 0xc000, 0x7, 0x12, 0x3, 0, 0xe0000) =
0x160420000
  2381 cc1      mmap(0x16042c000, 0xe000, 0x7, 0x1012,
0xffffffffffffffff, 0, 0) = 0x16042c000
  2381 cc1      close(0x3)                         = 0
  2381 cc1      break(0x120368f08)                 = 0
  2381 cc1      __sigaction_sigtramp(0xb, 0x1fffff4d0, 0x1fffff4f0,
0x1603b8258, 0x1) = 0
  2381 cc1      __sigaction_sigtramp(0x4, 0x1fffff4d0, 0x1fffff4f0,
0x1603b8258, 0x1) = 0
  2381 cc1      __sigaction_sigtramp(0xa, 0x1fffff4d0, 0x1fffff4f0,
0x1603b8258, 0x1) = 0
  2381 cc1      __sigaction_sigtramp(0x6, 0x1fffff4d0, 0x1fffff4f0,
0x1603b8258, 0x1) = 0
  2381 cc1      __sigaction_sigtramp(0x8, 0x1fffff4d0, 0x1fffff4f0,
0x1603b8258, 0x1) = 0
  2381 cc1      __sysctl(0x1fffff3a0, 0x2, 0x1fffff3b0, 0x1fffff3d8, 0,
0) = 0
  2381 cc1      readlink("/etc/malloc.conf", 0x1fffff420, 0x3f) Err#2
ENOENT
  2381 cc1      mmap(0, 0x2000, 0x3, 0x1002, 0xffffffffffffffff, 0, 0) =
0x16030e000
  2381 cc1      break(0x120368f08)                 = 0
  2381 cc1      break(0x12036af08)                 = 0
  2381 cc1      break(0x12036c000)                 = 0
  2381 cc1      break(0x12036e000)                 = 0
  2381 cc1      break(0x120370000)                 = 0
  2381 cc1      __sysctl(0x1fffff4b0, 0x2, 0x16042b318, 0x1fffff4c0, 0,
0) = 0
  2381 cc1      mmap(0, 0x2000, 0x3, 0x1002, 0xffffffffffffffff, 0, 0) =
0x160332000
  2381 cc1      break(0x120372000)                 = 0
  2381 cc1      break(0x120374000)                 = 0
  2381 cc1      break(0x120394000)                 = 0
  2381 cc1      break(0x120396000)                 = 0
  2381 cc1      break(0x120398000)                 = 0
  2381 cc1      __sysctl(0x12030ae70, 0x2, 0x1fffff470, 0x1fffff478, 0,
0) = 0
  2381 cc1      getrlimit(0x5, 0x1fffff470)        = 0
  2381 cc1      getrlimit(0x2, 0x1fffff470)        = 0
  2381 cc1      __sysctl(0x12030ae70, 0x2, 0x1fffff470, 0x1fffff478, 0,
0) = 0
  2381 cc1      getrlimit(0x5, 0x1fffff470)        = 0
  2381 cc1      getrlimit(0x2, 0x1fffff470)        = 0
  2381 cc1      break(0x12039a000)                 = 0
  2381 cc1      break(0x12039c000)                 = 0
  2381 cc1      break(0x12039e000)                 = 0
  2381 cc1      break(0x1203a0000)                 = 0
  2381 cc1      break(0x1203a2000)                 = 0
  2381 cc1      break(0x1203a4000)                 = 0
  2381 cc1      break(0x1203a8000)                 = 0
  2381 cc1      mmap(0, 0x20000, 0x3, 0x1002, 0xffffffffffffffff, 0, 0)
= 0x16043a000
  2381 cc1      break(0x1203ac000)                 = 0
  2381 cc1      mmap(0, 0x20000, 0x3, 0x1002, 0xffffffffffffffff, 0, 0)
= 0x16045a000
  2381 cc1      mmap(0, 0x20000, 0x3, 0x1002, 0xffffffffffffffff, 0, 0)
= 0x16047a000
  2381 cc1      break(0x1203ae000)                 = 0
  2381 cc1      break(0x1203b0000)                 = 0
  2381 cc1      __lstat13("/usr/bin", 0x1fffff258) = 0
  2381 cc1      __stat13("/usr/libexec/include", 0x1fffff368) Err#2
ENOENT
  2381 cc1      __stat13("/usr/include", 0x1fffff368) = 0
  2381 cc1      open("testa.c", 0x8000, 0x1b6)     = 3
  2381 cc1      __fstat13(0x3, 0x1203a0220)        = 0
  2381 cc1      read(0x3, 0x120372600, 0x60)       = 96
       "#include <stdio.h>\n#include <stdlib.h>\n\nint\nmain(void)\n{\n
\tprin"
  2381 cc1      close(0x3)                         = 0
  2381 cc1      break(0x1203b2000)                 = 0
  2381 cc1      open("/var/tmp//cckyxGa1.s", 0x601, 0x1b6) = 3
  2381 cc1      __fstat13(0x3, 0x1fffff340)        = 0
  2381 cc1      break(0x1203b4000)                 = 0
  2381 cc1      mmap(0, 0x20000, 0x3, 0x1002, 0xffffffffffffffff, 0, 0)
= 0x16049a000
  2381 cc1      open("/usr/include/stdio.h", 0x8000, 0x1b6) = 4
  2381 cc1      __fstat13(0x4, 0x1203a0320)        = 0
  2381 cc1      break(0x1203b8000)                 = 0
  2381 cc1      read(0x4, 0x1203b4000, 0x3dea)     = 15850
       "/*\t$NetBSD: stdio.h,v 1.53.2.1 2004/07/02 18:13:45 he Exp
$\t*/\n\n/"
  2381 cc1      close(0x4)                         = 0
  2381 cc1      open("/usr/include/sys/ansi.h", 0x8000, 0x1b6) = 4
  2381 cc1      __fstat13(0x4, 0x1203a0420)        = 0
  2381 cc1      read(0x4, 0x1203ad000, 0xa55)      = 2645
       "/*\t$NetBSD: ansi.h,v 1.9 2002/05/12 22:58:48 kleink Exp $\t*/\n
\n/*-"
  2381 cc1      close(0x4)                         = 0
  2381 cc1      open("/usr/include/machine/int_types.h", 0x8000, 0x1b6)
= 4
  2381 cc1      __fstat13(0x4, 0x1203a0520)        = 0
  2381 cc1      break(0x1203ba000)                 = 0
  2381 cc1      read(0x4, 0x1203b8000, 0x98e)      = 2446
       "/* $NetBSD: int_types.h,v 1.6 2003/08/07 16:26:33 agc Exp $ */\n
\n/*-"
  2381 cc1      close(0x4)                         = 0
  2381 cc1      open("/usr/include/sys/cdefs.h", 0x8000, 0x1b6) = 4
  2381 cc1      __fstat13(0x4, 0x1203a0620)        = 0
  2381 cc1      break(0x1203be000)                 = 0
  2381 cc1      read(0x4, 0x1203ba000, 0x297b)     = 10619
       "/*\t$NetBSD: cdefs.h,v 1.51 2004/01/07 19:38:10 martin Exp
$\t*/\n\n/"
  2381 cc1      close(0x4)                         = 0
  2381 cc1      open("/usr/include/machine/cdefs.h", 0x8000, 0x1b6) = 4
  2381 cc1      __fstat13(0x4, 0x1203a0720)        = 0
  2381 cc1      read(0x4, 0x1203a0800, 0xb5)       = 181
       "/* $NetBSD: cdefs.h,v 1.11 1999/03/20 01:40:25 thorpej Exp $
*/\n\n#i"
  2381 cc1      close(0x4)                         = 0
  2381 cc1      open("/usr/include/sys/cdefs_elf.h", 0x8000, 0x1b6) = 4
  2381 cc1      __fstat13(0x4, 0x1203a0820)        = 0
  2381 cc1      read(0x4, 0x1203b8000, 0x11d1)     = 4561
       "/*\t$NetBSD: cdefs_elf.h,v 1.17 2003/10/29 21:56:02 mycroft Exp
$\t*/"
  2381 cc1      close(0x4)                         = 0
  2381 cc1      break(0x1203c0000)                 = 0
  2381 cc1      break(0x1203c2000)                 = 0
  2381 cc1      break(0x1203c4000)                 = 0
  2381 cc1      open("/usr/include/sys/featuretest.h", 0x8000, 0x1b6) =
4
  2381 cc1      __fstat13(0x4, 0x1203a0920)        = 0
  2381 cc1      read(0x4, 0x1203ba000, 0xaf7)      = 2807
       "/*\t$NetBSD: featuretest.h,v 1.7 2003/12/04 12:42:54 keihan Exp
$\t*/"
  2381 cc1      close(0x4)                         = 0
  2381 cc1      open("/usr/include/machine/ansi.h", 0x8000, 0x1b6) = 4
  2381 cc1      __fstat13(0x4, 0x1203a0a20)        = 0
  2381 cc1      read(0x4, 0x1203bc000, 0x104c)     = 4172
       "/* $NetBSD: ansi.h,v 1.17 2003/08/07 16:26:33 agc Exp $ */\n
\n/*-\n *"
  2381 cc1      close(0x4)                         = 0
  2381 cc1      open("/usr/include/sys/null.h", 0x8000, 0x1b6) = 4
  2381 cc1      __fstat13(0x4, 0x1203a0b20)        = 0
  2381 cc1      read(0x4, 0x12039e000, 0x123)      = 291
       "/*\t$NetBSD: null.h,v 1.6 2003/10/24 21:45:09 enami Exp $\t*/\n
\n#ifn"
  2381 cc1      close(0x4)                         = 0
  2381 cc1      mmap(0, 0x20000, 0x3, 0x1002, 0xffffffffffffffff, 0, 0)
= 0x1604ba000
  2381 cc1      mmap(0, 0x20000, 0x3, 0x1002, 0xffffffffffffffff, 0, 0)
= 0x1604da000
  1811 gcc      wait4(0xffffffffffffffff, 0x1ffffec70, 0, 0) RESTART
  1811 gcc      SIGINT caught handler=0x12000e110 mask=0x0 code=0x0
  1811 gcc      __sigaction_sigtramp(0x2, 0x1ffffe8c0, 0x1ffffe8e0,
0x1600d8258, 0x1) = 0
  1811 gcc      __stat13("/var/tmp//cckyxGa1.s", 0x1ffffe860) = 0
  1811 gcc      unlink("/var/tmp//cckyxGa1.s")     = 0
  1811 gcc      getpid()                           = 1811, 465
  1811 gcc      kill(0x713, 0x2)                   = 0
  1811 gcc      compat_16___sigreturn14(0x1ffffe910) JUSTRETURN
  1811 gcc      SIGINT SIG_DFL
  2381 cc1      SIGINT SIG_DFL
$ 



It was stuck on the last mmap before I pressed ctrl-C, as can be
indicated from the pid numbers.


	/Lars