Subject: Re: strange ld.so error
To: None <netbsd-help@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: netbsd-help
Date: 10/07/1998 08:45:57
In article <XFMail.981006184757.root@garbled.net> root@garbled.net writes:
>
>#  Tim Rightnour wrote:
># > 
># > I'm writing some code (which possibly has pointer errors) and when I run
># > it, I
># > get:
># > 
># > /usr/libexec/ld.so: Call to binder from unknown location: 0x4007a4b4
>
>So with a suggestion from someone, I compiled it staticly, and fed it to ktrace:
>
> 16373 ktrace   RET   ktrace 0
> 16373 ktrace   CALL  execve(0xefbfdbbb,0xefbfdb30,0xefbfdb44)
> 16373 ktrace   NAMI  "./dsh"
> 16373 dsh      EMUL  "netbsd"
> 16373 dsh      RET   execve JUSTRETURN
> 16373 dsh      CALL  __sysctl(0xefbfd838,0x2,0xa954,0xefbfd840,0,0)
> 16373 dsh      RET   __sysctl 0
> 16373 dsh      CALL  break(0xa988)
> 16373 dsh      RET   break 0
> 16373 dsh      CALL  break(0xaffc)
> 16373 dsh      RET   break 0
> 16373 dsh      CALL  break(0xbffc)
> 16373 dsh      RET   break 0
> 16373 dsh      PSIG  SIGSEGV SIG_DFL
> 16373 dsh      NAMI  "dsh.core"
>
>Hrmm.. is ktrace just not showing me the last call made before it SIGSEGV's or
>am I going nuts here?  (that is the *whole* output of ktrace)

You did some malloc, and then you trashed memory. Why don't you compile
with -g and use gdb on it?

christos