Subject: sparc stuck...can't move forward
To: None <port-sparc@netbsd.org, tech-toolchain@netbsd.org>
From: Andrew Brown <atatat@atatdot.net>
List: port-sparc
Date: 12/26/2001 19:08:10
my sparc is stuck.  over time, i've been building everything and
running off periodic snapshots so that i can fall back to a "known
working set" of stuff, but now i seem to be stuck.

when i first tried to build a new-toolchain enabled tree, i constantly
ended up with an nbgroff that dumped core.  working backwards over the
snapshots i have accumulated, i finally found one that worked (ie, as
was not linked to libbfd.so that wasn't in the snapshot), but this
can't build a viable world.

any current kernels i build boot and run fine.  any top level builds i
attempt complete flawlessly, but if i attempt to boot a new working
set, *anything* that's dynamically linked dumps core at it's earliest
opportunity.  ktrace is, luckily, a statically linked binary, so i can
ktrace things.  sed, for example, does this:

# ktrace sed
Segmentation fault - core dumped
# kdump
    19 ktrace   EMUL  "netbsd"
    19 ktrace   RET   ktrace 0
    19 ktrace   CALL  execve(0xeffff6d0,0xeffffc08,0xeffffc10)
    19 ktrace   NAMI  "/sbin/sed"
    19 ktrace   RET   execve -1 errno 2 No such file or directory
    19 ktrace   CALL  execve(0xeffff6d0,0xeffffc08,0xeffffc10)
    19 ktrace   NAMI  "/usr/sbin/sed"
    19 ktrace   RET   execve -1 errno 2 No such file or directory
    19 ktrace   CALL  execve(0xeffff6d0,0xeffffc08,0xeffffc10)
    19 ktrace   NAMI  "/bin/sed"
    19 ktrace   RET   execve -1 errno 2 No such file or directory
    19 ktrace   CALL  execve(0xeffff6d0,0xeffffc08,0xeffffc10)
    19 ktrace   NAMI  "/usr/bin/sed"
    19 ktrace   NAMI  "/usr/libexec/ld.elf_so"
    19 sed      EMUL  "netbsd"
    19 sed      RET   execve JUSTRETURN
    19 sed      PSIG  SIGSEGV SIG_DFL
    19 sed      NAMI  "sed.core"
#

and that's it.  i tried rebuilding ld.elf_so with RTLD_DEBUG and
RTLD_DEBUG_RELOC, but it never emits anything.  help?  ideas?

-- 
|-----< "CODE WARRIOR" >-----|
codewarrior@daemon.org             * "ah!  i see you have the internet
twofsonet@graffiti.com (Andrew Brown)                that goes *ping*!"
andrew@crossbar.com       * "information is power -- share the wealth."