Minimal example crashes with Go 1
Open
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 294
- Forks
- 35
- PR merge metrics
- No merged PRs in 30d
Description
package main
import (
"github.com/mattn/go-gtk/gtk"
"github.com/mattn/go-webkit/webkit"
)
func main() {
gtk.Init(nil)
println("Before crash")
wv := webkit.WebView()
_ = wv
gtk.Main()
}
Crashes with Go1. Amd64 Ubuntu 12.04.
Before crash
runtime: signal received on thread not created by Go.
Segmentation fault (core dumped)
Gdb just shows
GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2) 7.4-2012.04
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.launchpad.net/gdb-linaro/>...
Reading symbols from /home/taruti/go-work/src/bitbucket.org/taruti/webtest/webtest...done.
Loading Go Runtime support.
(gdb) run
Starting program: /home/taruti/go-work/src/bitbucket.org/taruti/webtest/webtest
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffeaba2700 (LWP 30439)]
[New Thread 0x7fffe989c700 (LWP 30440)]
[New Thread 0x7fffe8f9b700 (LWP 30441)]
[New Thread 0x7fffa3ffd700 (LWP 30442)]
[New Thread 0x7fffa37fc700 (LWP 30444)]
[New Thread 0x7fffa2ffb700 (LWP 30445)]
runtime: signal received on thread not created by Go.
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffa3ffd700 (LWP 30442)]
runtime.sigtramp () at /build/buildd/golang-1/src/pkg/runtime/sys_linux_amd64.s:168
168 /build/buildd/golang-1/src/pkg/runtime/sys_linux_amd64.s: No such file or directory.
(gdb) bt
#0 runtime.sigtramp () at /build/buildd/golang-1/src/pkg/runtime/sys_linux_amd64.s:168
#1 0x000000000041631c in runtime.sigtramp () at /build/buildd/golang-1/src/pkg/runtime/sys_linux_amd64.s:182
#2 0x0000000000000000 in ?? ()
(gdb) q
http://code.google.com/p/go/issues/detail?id=3250 is probably related.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the minimal Go example on the stated amd64 Ubuntu environment, then compare the crash and thread behavior with the referenced Go issue 3250. The issue names no repository files or tests; done means the example no longer crashes when creating the WebKit view and reaches gtk.Main().
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, linux, ubuntu
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100