These are chat archives for derekparker/delve

25th
Nov 2015
Nachi Ueno
@nati
Nov 25 2015 19:37
Hi. Thank for excellent tool! May I ask a question? I'm facing "unexpected fault address" error when I try to debug my project. https://gist.github.com/nati/9166f7a95a8ce0fa5bfd
Alessandro Arzilli
@aarzilli
Nov 25 2015 20:50
@nati: it's definitely a bug, you should post it on the issue tracker
Nachi Ueno
@nati
Nov 25 2015 20:54
@aarzilli Thanks! I got it
Alessandro Arzilli
@aarzilli
Nov 25 2015 20:55
it's a strange problem, delve isn't writing the target's memory during initialization so how is it possible that it's causing it to sigsegv?
as a workaround, if you aren't debugging the startup of your program, you could compile and run it independently and then attach delve to it with dlv attach
maybe it will still crash, maybe not
Nachi Ueno
@nati
Nov 25 2015 20:58
You mean compiling go program using standard go compiler?
issue created: derekparker/delve#302
Alessandro Arzilli
@aarzilli
Nov 25 2015 21:00
yes: go build -gcflags='-N -l' to disable optimizations
Nachi Ueno
@nati
Nov 25 2015 21:00
@aarzilli Thanks! let me try
Alessandro Arzilli
@aarzilli
Nov 25 2015 21:01
you start it manually and then you attach: dlv attach $(pgrep -fn gohan) -- or whatever the program's called
Nachi Ueno
@nati
Nov 25 2015 21:01
Thanks! I could attach the process
Alessandro Arzilli
@aarzilli
Nov 25 2015 21:02
I can't guarantee it won't crash again, I have no idea why it's happening :(
Nachi Ueno
@nati
Nov 25 2015 21:18
it looks like the process get freeze after I attach dlv session.
i've typed "c" in dlv console.. but I got still no luck