Skip to content

futex returns ERESTART_RESTARTBLOCK on Ubuntu 9.10 under VMware #420

Closed
@gopherbot

Description

@gopherbot

by manuel.klimek:

Before filing a bug, please check whether it has been fixed since
the latest release: run "hg pull -u" and retry what you did to
reproduce the problem.  Thanks.

What steps will reproduce the problem?
1. build go on kubuntu 9.10 64 bit running on vmware on top of Windows 7
2. go/src/pkg/sync$ while ./6.out ; do true; done

What is the expected output? What do you see instead?
See the attached output.

What is your $GOOS?  $GOARCH?
$ echo $GOOS
linux
$ echo $GOARCH
amd64

Which revision are you using?  (hg identify)
$ hg identify
8f27dd511198 tip

Please provide any additional information below.
The futex kernel call (http://www.google.com/codesearch/p?
hl=en#aWnupsccpa8/trunk/linux-
2.6.31/kernel/futex.c&q=file:futex.c%202.6.31&sa=N&cd=1&ct=rc&l=1802)

returns ERESTART_RESTARTBLOCK.
According to http://www.google.com/codesearch/p?
hl=en#aWnupsccpa8/trunk/linux-
2.6.31/include/linux/errno.h&q=file:futex.c%202.6.31&d=2 this should never 
be encountered by userspace. I didn't understand enough of what's going on 
to be able to decide whether that's a kernel or go bug, so I thought I'd 
let you decide...

Attachments:

  1. go-segfault-futex (1055 bytes)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions