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

Issue 7906045: code review 7906045: runtime: correct misplaced right brace in Linux SIGBUS ... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 1 month ago by iant
Modified:
12 years, 1 month ago
Reviewers:
albert.strasheim
CC:
golang-dev, r
Visibility:
Public.

Description

runtime: correct misplaced right brace in Linux SIGBUS handling I'm not sure how to write a test for this. The change in behaviour is that if you somehow get a SIGBUS signal for an address >= 0x1000, the program will now crash rather than calling panic. As far as I know, on x86 GNU/Linux, the only way to get a SIGBUS (rather than a SIGSEGV) is to set the stack pointer to an invalid value.

Patch Set 1 #

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M src/pkg/runtime/os_linux.c View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4
iant
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
12 years, 1 month ago (2013-03-22 22:37:27 UTC) #1
r
LGTM
12 years, 1 month ago (2013-03-22 22:45:49 UTC) #2
iant
*** Submitted as https://code.google.com/p/go/source/detail?r=5290388a2e3f *** runtime: correct misplaced right brace in Linux SIGBUS handling I'm ...
12 years, 1 month ago (2013-03-23 00:32:11 UTC) #3
albert.strasheim
12 years, 1 month ago (2013-03-24 06:26:41 UTC) #4
Message was sent while issue was closed.
On 2013/03/23 00:32:11, iant wrote:
> calling panic.  As far as I know, on x86 GNU/Linux, the only
> way to get a SIGBUS (rather than a SIGSEGV) is to set the
> stack pointer to an invalid value.

FWIW, I think you also get SIGBUS if you mmap a file, remove its associated
block device and try to read from the mapping. Easy to test with a removable USB
device.

Cheers

Albert
Sign in to reply to this message.

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