Author: ian
Date: Mon Mar  9 23:40:58 2015
New Revision: 221291

URL: https://gcc.gnu.org/viewcvs?rev=221291&root=gcc&view=rev
Log:
        PR go/65349
runtime: Don't call malloc from __go_file_line callback.

When crashing, we call runtime_printcreatedby which calls
__go_file_line which used to call the Go malloc.  If we are
crashing due to a signal due to heap corruption of some sort,
the GO malloc lock might already be held, leading to a crash
within a crash.  Avoid that by assuming that the libbacktrace
strings will stick around, as we already do in go-callers.c.

Modified:
    trunk/libgo/runtime/go-caller.c

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1429608

Title:
  go tool crashes, can't compile go code on 32bit linux systems

To manage notifications about this bug go to:
https://bugs.launchpad.net/gcc/+bug/1429608/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to