Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1084)

Issue 5689065: runtime: initialize TLS before thr_new on FreeBSD/amd64 (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 2 months ago by minux1
Modified:
12 years, 2 months ago
Reviewers:
rsc, mikio, adg, dho, golang-dev
CC:
golang-dev
Visibility:
Public.

Description

runtime: initialize TLS before thr_new on FreeBSD/amd64 If not, and a signal arrive just before runtime.thr_start could setup the TLS for m and g, the signal handler will trigger a SIGSEGV, which will in turn trigger yet another SIGSEGV, but this time, SIGSEGV is blocked, so a core dump results. Fixes issue 3017.

Patch Set 1 #

Patch Set 2 : diff -r a194c22248eb https://code.google.com/p/go/ #

Patch Set 3 : diff -r 767b6229d4dc https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -14 lines) Patch
M src/pkg/runtime/sys_freebsd_amd64.s View 1 2 1 chunk +0 lines, -12 lines 0 comments Download
M src/pkg/runtime/thread_freebsd.c View 1 2 1 chunk +10 lines, -2 lines 0 comments Download

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b