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

Issue 53840043: code review 53840043: syscall: allocate 64 bits of "basep" for Getdirentries (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 3 months ago by r
Modified:
10 years, 3 months ago
Reviewers:
rsc
CC:
rsc, golang-codereviews
Visibility:
Public.

Description

syscall: allocate 64 bits of "basep" for Getdirentries Recent crashes on 386 Darwin appear to be caused by this system call smashing the stack. Phenomenology shows that allocating more data here addresses the probem. The guess is that since the actual system call is getdirentries64, 64 is what we should allocate. Should fix the darwin/386 build.

Patch Set 1 #

Total comments: 1

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -1 line) Patch
M src/pkg/syscall/syscall_bsd.go View 1 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 4
r
Hello rsc (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go
10 years, 3 months ago (2014-01-17 20:59:19 UTC) #1
rsc
LGTM assuming it still works with the suggested edit https://codereview.appspot.com/53840043/diff/1/src/pkg/syscall/syscall_bsd.go File src/pkg/syscall/syscall_bsd.go (right): https://codereview.appspot.com/53840043/diff/1/src/pkg/syscall/syscall_bsd.go#newcode70 src/pkg/syscall/syscall_bsd.go:70: ...
10 years, 3 months ago (2014-01-17 21:01:38 UTC) #2
rsc
I have confirmed in the OS X sources that getdirentries64 is expecting a pointer to ...
10 years, 3 months ago (2014-01-17 21:05:37 UTC) #3
r
10 years, 3 months ago (2014-01-17 21:18:14 UTC) #4
*** Submitted as https://code.google.com/p/go/source/detail?r=6d8511a61827 ***

syscall: allocate 64 bits of "basep" for Getdirentries
Recent crashes on 386 Darwin appear to be caused by this system call
smashing the stack. Phenomenology shows that allocating more data
here addresses the probem.
The guess is that since the actual system call is getdirentries64, 64 is
what we should allocate.

Should fix the darwin/386 build.

R=rsc
CC=golang-codereviews
https://codereview.appspot.com/53840043
Sign in to reply to this message.

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