-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash when using Delve debugger #369
Comments
Got exactly the same problem, if you found a fix please tell us 😉 Edit is this related to #272? |
@Eun It probably is. Golang on non-Linux (eg OSX, Windows) seems to be er... missing some important debug information which delve needs. Apparently this is being fixed for Go 1.9, but doesn't really help us much now. 😦 As a thought, JetBrains has some delve binaries available with short term fixes applied which might help: https://bintray.com/jetbrains/golang/delve No guarantees though. 😁 (They're bundled with Gogland, if that's your kind of thing) |
@justinclift For me go 1.9 does not fix the problem. Also jetbrains has only linux and mac binaries. So no fix for windows... |
@Eun Gah. I was really looking forward to 1.9 fixing much of our debugging issues. 😦 With the Jetbrains provided Delve binaries, when I unzip any of the recent ones they definitely include a Windows version. eg: https://bintray.com/jetbrains/golang/delve/0.11.359#files/com/jetbrains/delve/0.11.359 In that .zip file, it has three subdirectories with delve executables:
Is it different for you? |
@justinclift You are right, I somehow used the old 0.6.65 version... 😮 Edit: but it makes no diffrence: 😢
Also: |
@Eun Do you have a simple reproducer for the crash? The Jetbrains people were asking (via email) the other day when I mentioned it to them. I haven't gotten around to making a simple crash causer yet. If you have a simple code listing handy with reliably causes the crash, we can point the JetBrains people at it for investigation. |
@justinclift a.go:
launch.json:
Operating system is Windows 10 x64 (1607) Hopefully this helps somehow... |
Ahhh, that is a good sample. 😄 For me, trying it out on OSX 10.11.6, running Go 1.8, it errors out with the following when trying to debug:
When running it normally, the output (as expected) is:
There's a bug report with that kind of error on the Gogland issue tracker already, so I'll add your example code in there and see if they're up for resolving it. It might turn out it needs to be reported on the delve issue tracker as well (unsure). |
@Eun I've added your reproducer to the Gogland issue about the problem. The error I'm seeing appears to be a problem with mattn's driver + OSX + Delve. So, that's blocking me from even getting it compiled in Debug mode on OSX. 😦 |
@Eun Out of curiosity, does that reproducer still crash for you when changing it to gwenn/gosqlite driver? eg from:
to:
For me, it runs and debugs fine. |
If this is still active can you compile on OSX with the tag |
Close due no activity. |
I have c crash while debugging with Delve (VS Code).
I updated the go-sqllite yesterday, and after that i've got a crash on both my PC (2 systems with windows - crash). Linux is OK. I have same GOPATH folder for them all.
Debug log is:
Exception 0xc0000005 0x8 0xa8c148 0xa8c148
PC=0xa8c148
signal arrived during external code execution
Error is from here (bold selection):
//package sql:
// Close closes the database, releasing any open resources.
//
// It is rare to Close a DB, as the DB handle is meant to be
// long-lived and shared between many goroutines.
func (db *DB) Close() error {
db.mu.Lock()
if db.closed { // Make DB.Close idempotent
db.mu.Unlock()
return nil
}
close(db.openerCh)
var err error
fns := make([]func() error, 0, len(db.freeConn))
for _, dc := range db.freeConn {
fns = append(fns, dc.closeDBLocked())
}
db.freeConn = nil
db.closed = true
for _, req := range db.connRequests {
close(req)
}
db.mu.Unlock()
for _, fn := range fns {
err1 := fn()
if err1 != nil {
err = err1
}
}
return err
}
The text was updated successfully, but these errors were encountered: