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
tdfbsd opened this issue Oct 25, 2016 · 3 comments

Comments

@tdfbsd
Copy link

commented Oct 25, 2016

The recent builder logs display:

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

@rakyll

This comment has been minimized.

Copy link
Member

commented Oct 25, 2016

@ianlancetaylor

This comment has been minimized.

Copy link
Contributor

commented Oct 25, 2016

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

This comment has been minimized.

Copy link

commented Oct 25, 2016

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

@gopherbot gopherbot closed this in e24ccfc Oct 25, 2016

@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
4 participants
You can’t perform that action at this time.