NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: troubles using grub-0.97nb8 on amd64



Here's the result of a ktrace on grub
16283      1 ktrace   EMUL  "netbsd"
 16283      1 ktrace   CALL
execve(0x7f7fffffea77,0x7f7fffffe8f8,0x7f7fffffe91
0)
 16283      1 ktrace   NAMI  "/usr/pkg/sbin/grub"
 16283      1 ktrace   NAMI  "/emul/netbsd32/usr/libexec/ld.elf_so"
 16283      1 ktrace   NAMI  "/emul/netbsd32"
 16283      1 ktrace   NAMI  "/emul/netbsd32/usr/libexec/ld.elf_so"
 16283      1 ktrace   RET   execve -1 errno 8 Exec format error
 16283      1 ktrace   CALL
execve(0x7f7ffdbce91b,0x7f7fffffe3b0,0x7f7fffffe91
0)
 16283      1 ktrace   NAMI  "/bin/sh"
 16283      1 ktrace   NAMI  "/libexec/ld.elf_so"
 16283      1 sh       EMUL  "netbsd"
 16283      1 sh       RET   execve JUSTRETURN
 16283      1 sh       CALL  mmap(0,0x8000,3,0x1002,0xffffffff,0,0)
 16283      1 sh       RET   mmap 140187698954240/0x7f7ffdff8000
 16283      1 sh       CALL  open(0x7f7ffde0a83e,0,0x7f7ffde0a83e)
 16283      1 sh       NAMI  "/etc/ld.so.conf"
 16283      1 sh       RET   open -1 errno 2 No such file or directory
 16283      1 sh       CALL  open(0x7f7fffffe140,0,0xfefefefefefeff31)
 16283      1 sh       NAMI  "/lib/libedit.so.2"
 16283      1 sh       RET   open 3
 16283      1 sh       CALL  __fstat30(3,0x7f7fffffe070)
 16283      1 sh       RET   __fstat30 0
 16283      1 sh       CALL  mmap(0,0x1000,1,1,3,0x7f7f00000000,0)
 16283      1 sh       RET   mmap 140187698950144/0x7f7ffdff7000
 16283      1 sh       CALL  munmap(0x7f7ffdff7000,0x1000)
 16283      1 sh       RET   munmap 0
 16283      1 sh       CALL
mmap(0,0x124000,5,0x14000002,3,0x7f7f00000000,0)
 16283      1 sh       RET   mmap 140187694792704/0x7f7ffdc00000
 16283      1 sh       CALL
mmap(0x7f7ffdd1e000,0x2000,3,0x12,3,0x7f7f00000000
,0x1e000)
 16283      1 sh       RET   mmap 140187695964160/0x7f7ffdd1e000
 16283      1 sh       CALL
mmap(0x7f7ffdd20000,0x4000,3,0x1012,0xffffffff,0x7
f7f00000000,0)
 16283      1 sh       RET   mmap 140187695972352/0x7f7ffdd20000
 16283      1 sh       CALL  mprotect(0x7f7ffdc1f000,0xff000,0)
 16283      1 sh       RET   mprotect 0
 16283      1 sh       CALL  close(3)
 16283      1 sh       RET   close 0
 16283      1 sh       CALL  open(0x7f7fffffe140,0,0xfefefeff2f2d6e72)
 16283      1 sh       NAMI  "/lib/libtermcap.so.0"
 16283      1 sh       RET   open 3
 16283      1 sh       CALL  __fstat30(3,0x7f7fffffe070)
 16283      1 sh       RET   __fstat30 0
 16283      1 sh       CALL  mmap(0,0x1000,1,1,3,0x7f7f00000000,0)
 16283      1 sh       RET   mmap 140187698950144/0x7f7ffdff7000
 16283      1 sh       CALL  munmap(0x7f7ffdff7000,0x1000)
 16283      1 sh       RET   munmap 0
 16283      1 sh       CALL
mmap(0,0x103000,5,0x14000002,3,0x7f7f00000000,0)
 16283      1 sh       RET   mmap 140187692695552/0x7f7ffda00000
 16283      1 sh       CALL
mmap(0x7f7ffdb02000,0x1000,3,0x12,3,0x7f7f00000000

,0x2000)
 16283      1 sh       RET   mmap 140187693752320/0x7f7ffdb02000
 16283      1 sh       CALL
mmap(0x7f7ffdb03000,0,3,0x1012,0xffffffff,0x7f7f00
000000,0)
 16283      1 sh       RET   mmap 140187693756416/0x7f7ffdb03000
 16283      1 sh       CALL  mprotect(0x7f7ffda03000,0xff000,0)
 16283      1 sh       RET   mprotect 0
 16283      1 sh       CALL  close(3)
 16283      1 sh       RET   close 0
 16283      1 sh       CALL  open(0x7f7fffffe140,0,0xff31302d6e722d62)
 16283      1 sh       NAMI  "/lib/libc.so.12"
 16283      1 sh       RET   open 3
 16283      1 sh       CALL  __fstat30(3,0x7f7fffffe070)
 16283      1 sh       RET   __fstat30 0
 16283      1 sh       CALL  mmap(0,0x1000,1,1,3,0x7f7f00000000,0)
 16283      1 sh       RET   mmap 140187698950144/0x7f7ffdff7000
 16283      1 sh       CALL  munmap(0x7f7ffdff7000,0x1000)
 16283      1 sh       RET   munmap 0
 16283      1 sh       CALL
mmap(0,0x207000,5,0x14000002,3,0x7f7f00000000,0)
 16283      1 sh       RET   mmap 140187689549824/0x7f7ffd700000
 16283      1 sh       CALL
mmap(0x7f7ffd8eb000,0xb000,3,0x12,3,0x7f7f00000000
,0xeb000)
 16283      1 sh       RET   mmap 140187691560960/0x7f7ffd8eb000
 16283      1 sh       CALL
mmap(0x7f7ffd8f6000,0x11000,3,0x1012,0xffffffff,0x
7f7f00000000,0)
 16283      1 sh       RET   mmap 140187691606016/0x7f7ffd8f6000
 16283      1 sh       CALL  mprotect(0x7f7ffd7eb000,0x100000,0)
 16283      1 sh       RET   mprotect 0
 16283      1 sh       CALL  close(3)
 16283      1 sh       RET   close 0
 16283      1 sh       CALL
__sysctl(0x7f7fffffe7c8,2,0x7f7ffd8fa320,0x7f7ffff
fe7c0,0,0)
 16283      1 sh       RET   __sysctl 0
 16283      1 sh       CALL  issetugid
 16283      1 sh       RET   issetugid 0
 16283      1 sh       CALL  getpid
 16283      1 sh       RET   getpid 16283/0x3f9b, 111/0x6f
 16283      1 sh       CALL
__sysctl(0x7f7fffffe690,2,0x7f7fffffe6ac,0x7f7ffff
fe6a0,0,0)
 16283      1 sh       RET   __sysctl 0
 16283      1 sh       CALL  readlink(0x7f7ffd7d92ec,0x7f7fffffe6c0,0x3f)
 16283      1 sh       NAMI  "/etc/malloc.conf"
 16283      1 sh       RET   readlink -1 errno 2 No such file or directory
 16283      1 sh       CALL  mmap(0,0x1000,3,0x1002,0xffffffff,0,0)
 16283      1 sh       RET   mmap 140187698950144/0x7f7ffdff7000
 16283      1 sh       CALL  break(0x523e20)
 16283      1 sh       RET   break 0
 16283      1 sh       CALL  break(0x524e20)
 16283      1 sh       RET   break 0
 16283      1 sh       CALL  break(0x525000)
 16283      1 sh       RET   break 0
 16283      1 sh       CALL  break(0x526000)
16283      1 sh       RET   break 0
 16283      1 sh       CALL  break(0x527000)
 16283      1 sh       RET   break 0
 16283      1 sh       CALL  geteuid
 16283      1 sh       RET   geteuid 0
 16283      1 sh       CALL  __stat30(0x41a429,0x7f7fffffe740)
 16283      1 sh       NAMI  "."
 16283      1 sh       RET   __stat30 0
 16283      1 sh       CALL  __stat30(0x7f7fffffeb53,0x7f7fffffe6b0)
 16283      1 sh       NAMI  "/usr/pkgsrc/sysutils"
 16283      1 sh       RET   __stat30 0
 16283      1 sh       CALL  open(0x7f7fffffea78,0,0x2f)
 16283      1 sh       NAMI  "/usr/pkg/sbin/grub"
 16283      1 sh       RET   open 3
 16283      1 sh       CALL  fcntl(3,0,0xa)
 16283      1 sh       RET   fcntl 10/0xa
 16283      1 sh       CALL  close(3)
 16283      1 sh       RET   close 0
 16283      1 sh       CALL  fcntl(0xa,2,1)
 16283      1 sh       RET   fcntl 0
 16283      1 sh       CALL  getuid
 16283      1 sh       RET   getuid 0
 16283      1 sh       CALL  geteuid
 16283      1 sh       RET   geteuid 0
 16283      1 sh       CALL  getgid
 16283      1 sh       RET   getgid 0
 16283      1 sh       CALL  getegid
 16283      1 sh       RET   getegid 0
 16283      1 sh       CALL
__sigaction_sigtramp(SIGINT,0,0x7f7fffffe7a0,0x7f7
ffd77a24c,2)
 16283      1 sh       RET   __sigaction_sigtramp 0
 16283      1 sh       CALL
__sigaction_sigtramp(SIGINT,0x7f7fffffe770,0x7f7ff
fffe750,0x7f7ffd77a24c,2)
 16283      1 sh       RET   __sigaction_sigtramp 0
 16283      1 sh       CALL
__sigaction_sigtramp(SIGINT,0,0x7f7fffffe760,0x7f7
ffd77a24c,2)
 16283      1 sh       RET   __sigaction_sigtramp 0
 16283      1 sh       CALL
__sigaction_sigtramp(SIGINT,0x7f7fffffe760,0,0x7f7
ffd77a24c,2)
 16283      1 sh       RET   __sigaction_sigtramp 0
 16283      1 sh       CALL  __sigprocmask14(2,0x7f7fffffe7c0,0)
 16283      1 sh       RET   __sigprocmask14 0
 16283      1 sh       CALL  __sigaction_16283      1 sh       RET   break 0
 16283      1 sh       CALL  break(0x527000)
 16283      1 sh       RET   break 0
 16283      1 sh       CALL  geteuid
 16283      1 sh       RET   geteuid 0
 16283      1 sh       CALL  __stat30(0x41a429,0x7f7fffffe740)
 16283      1 sh       NAMI  "."
 16283      1 sh       RET   __stat30 0
 16283      1 sh       CALL  __stat30(0x7f7fffffeb53,0x7f7fffffe6b0)
 16283      1 sh       NAMI  "/usr/pkgsrc/sysutils"
 16283      1 sh       RET   __stat30 0
 16283      1 sh       CALL  open(0x7f7fffffea78,0,0x2f)
 16283      1 sh       NAMI  "/usr/pkg/sbin/grub"
 16283      1 sh       RET   open 3
 16283      1 sh       CALL  fcntl(3,0,0xa)
 16283      1 sh       RET   fcntl 10/0xa
 16283      1 sh       CALL  close(3)
 16283      1 sh       RET   close 0
 16283      1 sh       CALL  fcntl(0xa,2,1)
 16283      1 sh       RET   fcntl 0
 16283      1 sh       CALL  getuid
 16283      1 sh       RET   getuid 0
 16283      1 sh       CALL  geteuid
 16283      1 sh       RET   geteuid 0
 16283      1 sh       CALL  getgid
 16283      1 sh       RET   getgid 0
 16283      1 sh       CALL  getegid
 16283      1 sh       RET   getegid 0
 16283      1 sh       CALL
__sigaction_sigtramp(SIGINT,0,0x7f7fffffe7a0,0x7f7
ffd77a24c,2)
 16283      1 sh       RET   __sigaction_sigtramp 0
 16283      1 sh       CALL
__sigaction_sigtramp(SIGINT,0x7f7fffffe770,0x7f7ff
fffe750,0x7f7ffd77a24c,2)
 16283      1 sh       RET   __sigaction_sigtramp 0
 16283      1 sh       CALL
__sigaction_sigtramp(SIGINT,0,0x7f7fffffe760,0x7f7
ffd77a24c,2)
 16283      1 sh       RET   __sigaction_sigtramp 0
 16283      1 sh       CALL
__sigaction_sigtramp(SIGINT,0x7f7fffffe760,0,0x7f7
ffd77a24c,2)
 16283      1 sh       RET   __sigaction_sigtramp 0
 16283      1 sh       CALL  __sigprocmask14(2,0x7f7fffffe7c0,0)
 16283      1 sh       RET   __sigprocmask14 0
 16283      1 sh       CALL
__sigaction_sigtramp(SIGQUIT,0,0x7f7fffffe7a0,0x7f
7ffd77a24c,2)
 16283      1 sh       RET   __sigaction_sigtramp 0
 16283      1 sh       CALL
__sigaction_sigtramp(SIGQUIT,0x7f7fffffe770,0x7f7f
ffffe750,0x7f7ffd77a24c,2)
 16283      1 sh       RET   __sigaction_sigtramp 0
 16283      1 sh       CALL  __sigprocmask14(2,0x7f7fffffe7c0,0)
 16283      1 sh       RET   __sigprocmask14 0
 16283      1 sh       CALL
__sigaction_sigtramp(SIGHUP,0,0x7f7fffffe7a0,0x7f7
ffd77a24c,2)

7ffd77a24c,2)
 16283      1 sh       RET   __sigaction_sigtramp 0
 16283      1 sh       CALL
__sigaction_sigtramp(SIGQUIT,0x7f7fffffe770,0x7f7f
ffffe750,0x7f7ffd77a24c,2)
 16283      1 sh       RET   __sigaction_sigtramp 0
 16283      1 sh       CALL  __sigprocmask14(2,0x7f7fffffe7c0,0)
 16283      1 sh       RET   __sigprocmask14 0
 16283      1 sh       CALL
__sigaction_sigtramp(SIGHUP,0,0x7f7fffffe7a0,0x7f7
ffd77a24c,2)16283      1 sh       RET   __sigaction_sigtramp 0
 16283      1 sh       CALL
__sigaction_sigtramp(SIGHUP,0x7f7fffffe770,0x7f7ff
fffe750,0x7f7ffd77a24c,2)
 16283      1 sh       RET   __sigaction_sigtramp 0
 16283      1 sh       CALL  __sigprocmask14(2,0x7f7fffffe7c0,0)
 16283      1 sh       RET   __sigprocmask14 0
 16283      1 sh       CALL
__sigaction_sigtramp(SIGTSTP,0,0x7f7fffffe7a0,0x7f
7ffd77a24c,2)
 16283      1 sh       RET   __sigaction_sigtramp 0
 16283      1 sh       CALL
__sigaction_sigtramp(SIGTSTP,0x7f7fffffe770,0x7f7f
ffffe750,0x7f7ffd77a24c,2)
 16283      1 sh       RET   __sigaction_sigtramp 0
 16283      1 sh       CALL  __sigprocmask14(2,0x7f7fffffe7c0,0)
 16283      1 sh       RET   __sigprocmask14 0
 16283      1 sh       CALL
__sigaction_sigtramp(SIGPIPE,0,0x7f7fffffe7a0,0x7f
7ffd77a24c,2)
 16283      1 sh       RET   __sigaction_sigtramp 0
 16283      1 sh       CALL
__sigaction_sigtramp(SIGPIPE,0x7f7fffffe770,0x7f7f
ffffe750,0x7f7ffd77a24c,2)
 16283      1 sh       RET   __sigaction_sigtramp 0
 16283      1 sh       CALL  __sigprocmask14(2,0x7f7fffffe7c0,0)
 16283      1 sh       RET   __sigprocmask14 0
 16283      1 sh       CALL  read(0xa,0x521fe0,0x3f8)
 16283      1 sh       GIO   fd 10 read 1016 bytes

"\^?ELF\^A\^A\^A\0\0\0\0\0\0\0\0\0\^B\0\^C\0\^A\0\0\0\240\M^S\^D\b4\0\
        \0\0d\M-|\^A\0\0\0\0\0004\0
\0\a\0(\0\^Z\0\^Y\0\^F\0\0\0004\0\0\0004\

\M^@\^D\b4\M^@\^D\b\M-`\0\0\0\M-`\0\0\0\^E\0\0\0\^D\0\0\0\^C\0\0\0\^T\
        \^A\0\0\^T\M^A\^D\b\^T\M^A\^D\b\^W\0\0\0\^W\0\0\0\^D\0\0\0\^A\0\0\0\

\^A\0\0\0\0\0\0\0\0\M^@\^D\b\0\M^@\^D\b\M-<\M-d\^A\0\M-<\M-d\^A\0\^E\

\0\0\0\0\^P\0\0\^A\0\0\0\M-<\M-d\^A\0\M-<t\^F\b\M-<t\^F\b\M-d\^N\0\0\
        \M-|\M-D\0\0\^F\0\0\0\0\^P\0\0\^B\0\0\0\M-P\M-d\^A\0\M-Pt\^F\b\M-Pt\

\^F\b\M-H\0\0\0\M-H\0\0\0\^F\0\0\0\^D\0\0\0\^D\0\0\0,\^A\0\0,\M^A\^D\
        \b,\M^A\^D\b\^X\0\0\0\^X\0\0\0\^D\0\0\0\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\0

\0\0\0\0\0\0\0\b\0\0\0\0\0\0\0\0\0\0\0\^P\0\0\0\0\0\0\0&\0\0\0\^N\0\0\

\0\0\0\0\0(\0\0\0\^Y\0\0\0\0\0\0\0\^D\0\0\0\0\0\0\0\0\0\0\0001\0\0\0\
        \0\0\0\0\^B\0\0\0\"\0\0\0\^E\0\0\0\0\0\0\0\0\0\0\0006\0\0\0\0\0\0\0\

\^C\0\0\0\0\0\0\0\^A\0\0\0\^\\0\0\08\0\0\0.\0\0\0\0\0\0\09\0\0\0-\0\0\
\0:\0\0\0\0\0\0\0\^Z\0\0\0\0\0\0\0#\0\0\0\^W\0\0\0\0\0\0\0004\0\0\0\0\

\0\0\0/\0\0\0+\0\0\0;\0\0\0\0\0\0\0D\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\f\

\0\0\0U\0\0\0\^U\0\0\0L\0\0\0=\0\0\0C\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\
        \0\0\0\M-o\^A\0\0\0\0\0\0\0\0\0\0"
 16283      1 sh       RET   read 1016/0x3f8
 16283      1 sh       CALL  break(0x528000)
 16283      1 sh       RET   break 0
 16283      1 sh       CALL  write(2,0x527000,0x17)
 16283      1 sh       GIO   fd 2 wrote 23 bytes
       "/usr/pkg/sbin/grub: 1: "
 16283      1 sh       RET   write 23/0x17
 16283      1 sh       CALL  write(2,0x527000,0x1d)
 16283      1 sh       GIO   fd 2 wrote 29 bytes
       "Syntax error: \"(\" unexpected
       "
 16283      1 sh       RET   write 29/0x1d
 16283      1 sh       CALL  exit(2)
\0:\0\0\0\0\0\0\0\^Z\0\0\0\0\0\0\0#\0\0\0\^W\0\0\0\0\0\0\0004\0\0\0\0\

\0\0\0/\0\0\0+\0\0\0;\0\0\0\0\0\0\0D\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\f\

\0\0\0U\0\0\0\^U\0\0\0L\0\0\0=\0\0\0C\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\
        \0\0\0\M-o\^A\0\0\0\0\0\0\0\0\0\0"
 16283      1 sh       RET   read 1016/0x3f8
 16283      1 sh       CALL  break(0x528000)
 16283      1 sh       RET   break 0
 16283      1 sh       CALL  write(2,0x527000,0x17)
 16283      1 sh       GIO   fd 2 wrote 23 bytes
       "/usr/pkg/sbin/grub: 1: "
  16283      1 sh       RET   write 23/0x17
 16283      1 sh       CALL  write(2,0x527000,0x1d)
 16283      1 sh       GIO   fd 2 wrote 29 bytes
       "Syntax error: \"(\" unexpected
       "
 16283      1 sh       RET   write 29/0x1d
 16283      1 sh       CALL  exit(2)

this looked  interesting
16283      1 ktrace   RET   execve -1 errno 8 Exec format error
<michael%schmong.org@localhost>
any thoughts on my next move?


On Wed, Jun 11, 2008 at 7:14 PM, Michael Litchard 
<michael%schmong.org@localhost>
wrote:

> I get this error when I try to install grub
>
> /usr/pkg/sbin/grub: 1: Syntax error: "(" unexpected
>
> I have the following libraries installed
>
> netbsd32_compat40-extras-4.0 Additional shared libraries for NetBSD 32-bit
> 4.0 compatibility
> netbsd32_compat40-4.0 Shared libraries for NetBSD 32-bit 4.0  compatability
>
> I use GENERIC, which seems to have the relevant options on.
>
> Could someone help me troubleshoot this problem? This is a showstopper for
> my Xen project.
>
> Michael Litchard


Home | Main Index | Thread Index | Old Index