On Fri, Oct 5, 2012 at 3:21 AM, Rainer Orth <r...@cebitec.uni-bielefeld.de> wrote: > With the strnlen-related Go failures now gone on Solaris, another issue > crept up: several tests were failing like this: > > throw: /proc/self/exe > > goroutine 4 [running]: > panic during panic > FAIL: log > > This is due to the hardcoded use of /proc/self/exe in libbacktrace, > which doesn't exist on Solaris, and probably is also missing on other > non-Linux OSes. Solaris (since 2.6, it seems) provides getexecname() > instead, which this patch uses.
That reminds me that libgo shouldn't be relying on /proc/self/exe anyhow. I meant to fix that but forgot. This patch fixes it. Bootstrapped and ran Go testsuite on x86_64-unknown-linux-gnu. Committed to mainline. Something like your patch is still a good idea, of course. Ian
foo.patch
Description: Binary data