Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/cgo: C.malloc test fails on dragonfly #17585

Closed
timdarbydotnet opened this issue Oct 25, 2016 · 3 comments
Closed

cmd/cgo: C.malloc test fails on dragonfly #17585

timdarbydotnet opened this issue Oct 25, 2016 · 3 comments
Milestone

Comments

@timdarbydotnet
Copy link

The recent builder logs display:

@rakyll rakyll added this to the Go1.8 milestone Oct 25, 2016
@rakyll
Copy link
Contributor

rakyll commented Oct 25, 2016

/cc @ianlancetaylor

@ianlancetaylor
Copy link
Contributor

I think this is a bug in the Dragonfly libc. When I run this C program on Dragonfly:

#include <stdio.h> 
#include <stdlib.h>

int main() {
  printf("%p\n", malloc((size_t)-1));
}

it prints 0x800455000. It should print 0 or (nil).

@gopherbot
Copy link

CL https://golang.org/cl/32050 mentions this issue.

@golang golang locked and limited conversation to collaborators Oct 25, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants