Go to http://localhost:6067/debug/pprof/profile with a browser/curl/etc, it 
should display a more useful error message.

On Tuesday, February 7, 2017 at 8:51:47 AM UTC-8, Jason E. Aten wrote:
>
>
>
> On Tue, Feb 7, 2017 at 10:38 AM, Jason E. Aten <> wrote:
>
>> On Tue, Feb 7, 2017 at 10:12 AM, Jason E. Aten <> wrote:
>>
>>> If anyone can supply information on the mystery runtime._ExternalCode 
>>> that would be super helpful. 
>>>
>>> I'm not linking in any cgo libraries. (beyond what the runtime does 
>>> automatically for dns). Err... so actually there are some C libs... what is 
>>> the magic phrase for not linking any C .so?
>>>
>>> [jaten@biggie bin]$ ldd vhaline
>>>         linux-vdso.so.1 =>  (0x00007ffecfd3c000)
>>>         libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f2a6b5dc000)
>>>         libc.so.6 => /lib64/libc.so.6 (0x00007f2a6b21b000)
>>>         /lib64/ld-linux-x86-64.so.2 (0x00007f2a6b808000)
>>> [jaten@biggie bin]$ 
>>>
>>
>> I'm not having any luck building with CGO_ENABLED=0 under go1.7.4.... 
>> linux/amd64. I'm getting "go install net: open 
>> /usr/local/go/pkg/linux_amd64/net.a: permission". Context:
>>
>> [jaten@biggie vhaline]$ make
>> cd vhaline && go install && cd ../cmd/vhaline && go install
>> go install net: open /usr/local/go/pkg/linux_amd64/net.a: permission 
>> denied
>> make: *** [build] Error 1
>> [jaten@biggie vhaline]$ ls -al /usr/local/go/pkg/linux_amd64/net.a
>> -rw-r-xr-x 1 root root 1007434 Dec  1 21:17 
>> /usr/local/go/pkg/linux_amd64/net.a
>> [jaten@biggie vhaline]$ file /usr/local/go/pkg/linux_amd64/net.a
>> /usr/local/go/pkg/linux_amd64/net.a: current ar archive
>> [jaten@biggie vhaline]$ ar x /usr/local/go/pkg/linux_amd64/net.a
>> [jaten@biggie vhaline]$ ls -alFtrh|tail
>>                                                             
>> -rw-rw-r--  1 jaten jaten  121 Feb  7 03:30 Makefile
>> drwxrwxr-x  2 jaten jaten    6 Feb  7 04:35 go1.8rc3.prof/
>> -rw-rw-r--  1 jaten jaten    0 Feb  7 04:36 cpu-profile.85518
>> -rw-rw-r--  1 jaten jaten    0 Feb  7 04:36 cpu-profile.85524
>> drwxrwxr-x  8 jaten jaten 4.0K Feb  7 15:09 .git/
>> drwxrwxr-x  5 jaten jaten 4.0K Feb  7 15:25 vhaline/
>> -rw-r--r--  1 jaten jaten  19K Feb  7 16:27 __.PKGDEF
>> -rw-r--r--  1 jaten jaten 947K Feb  7 16:27 _go_.o
>> -rw-r--r--  1 jaten jaten  19K Feb  7 16:27 _all.o
>> drwxrwxr-x  6 jaten jaten 4.0K Feb  7 16:27 ./
>> [jaten@biggie vhaline]$ env|grep CGO
>> CGO_ENABLED=0
>> [jaten@biggie vhaline]$   
>>
>
> hmm... the profiling instructions from the blog post
>
> https://blog.golang.org/profiling-go-programs
>
> doesn't seem to work for go1.7.4/amd64:
>
> [jaten@biggie 1.7.4]$ go tool pprof 
> http://localhost:6067/debug/pprof/profile                                     
>             
>
> Fetching profile from http://localhost:6067/debug/pprof/profile               
>                                                 
>
> Please wait... 
> (30s)                                                                         
>                                  
>
> server response: 500 Internal Server 
> Error                                                                         
>            
>
> [jaten@biggie 1.7.4]$   
>
>  
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to