{"action":"created","issue":{"url":"https://api.github.com/repos/dvyukov/go-fuzz/issues/171","repository_url":"https://api.github.com/repos/dvyukov/go-fuzz","labels_url":"https://api.github.com/repos/dvyukov/go-fuzz/issues/171/labels{/name}","comments_url":"https://api.github.com/repos/dvyukov/go-fuzz/issues/171/comments","events_url":"https://api.github.com/repos/dvyukov/go-fuzz/issues/171/events","html_url":"https://github.com/dvyukov/go-fuzz/issues/171","id":272468899,"node_id":"MDU6SXNzdWUyNzI0Njg4OTk=","number":171,"title":"Fuzzing doesn't work (no cgo)","user":{"login":"josselin-c","id":2820724,"node_id":"MDQ6VXNlcjI4MjA3MjQ=","avatar_url":"https://avatars1.githubusercontent.com/u/2820724?v=4","gravatar_id":"","url":"https://api.github.com/users/josselin-c","html_url":"https://github.com/josselin-c","followers_url":"https://api.github.com/users/josselin-c/followers","following_url":"https://api.github.com/users/josselin-c/following{/other_user}","gists_url":"https://api.github.com/users/josselin-c/gists{/gist_id}","starred_url":"https://api.github.com/users/josselin-c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josselin-c/subscriptions","organizations_url":"https://api.github.com/users/josselin-c/orgs","repos_url":"https://api.github.com/users/josselin-c/repos","events_url":"https://api.github.com/users/josselin-c/events{/privacy}","received_events_url":"https://api.github.com/users/josselin-c/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-11-09T07:50:10Z","updated_at":"2018-07-20T08:20:57Z","closed_at":null,"author_association":"NONE","body":"Hello, I have a fuzzing job that doesn't run when it should. At first it was because of CGO but now I have CGO disabled and it still doesn't works. I'm not sure how to debug this. \r\n\r\n## Env\r\n$ go env\r\nGOARCH=\"amd64\"\r\nGOBIN=\"\"\r\nGOEXE=\"\"\r\nGOHOSTARCH=\"amd64\"\r\nGOHOSTOS=\"darwin\"\r\nGOOS=\"darwin\"\r\nGOPATH=\"/Users/joss/projects/go\"\r\nGORACE=\"\"\r\nGOROOT=\"/usr/local/Cellar/go/1.9.2/libexec\"\r\nGOTOOLDIR=\"/usr/local/Cellar/go/1.9.2/libexec/pkg/tool/darwin_amd64\"\r\nGCCGO=\"gccgo\"\r\nCC=\"clang\"\r\nGOGCCFLAGS=\"-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/3g/vj270kpd74374rcl0yv9c5dm0000gn/T/go-build339987089=/tmp/go-build -gno-record-gcc-switches -fno-common\"\r\nCXX=\"clang++\"\r\nCGO_ENABLED=\"1\"\r\nCGO_CFLAGS=\"-g -O2\"\r\nCGO_CPPFLAGS=\"\"\r\nCGO_CXXFLAGS=\"-g -O2\"\r\nCGO_FFLAGS=\"-g -O2\"\r\nCGO_LDFLAGS=\"-g -O2\"\r\nPKG_CONFIG=\"pkg-config\"\r\n\r\n## Description\r\n\r\nFuzzing this code fails:\r\n```\r\npackage fuzz\r\n\r\nimport (\r\n\t_ \"github.com/ethereum/go-ethereum/core\"\r\n)\r\n\r\nfunc Fuzz(data []byte) int {\r\n\treturn 0\r\n}\r\n```\r\nI'm fuzzing using go-ethereum/core version bfdc0fa3622d7c3b421d2f5a6dda5746be41bfde\r\nI've stubbed the crypto/secp256k1 package as follow: https://gist.github.com/josselin-c/9c66bac044e1489c290c37c43250ff28\r\n\r\nI'm building the fuzzing code with cgo disabled: `CGO_ENABLED=0  go-fuzz-build github.com/ethereum/go-ethereum/tests/vmfuzz``\r\n\r\nThe output:\r\n```\r\ngo-fuzz -bin=./fuzz-fuzz.zip -workdir=results\r\n2017/11/09 08:46:09 slaves: 4, corpus: 1 (3s ago), crashers: 0, restarts: 1/0, execs: 0 (0/sec), cover: 0, uptime: 3s\r\n2017/11/09 08:46:12 slaves: 4, corpus: 1 (6s ago), crashers: 0, restarts: 1/0, execs: 0 (0/sec), cover: 0, uptime: 6s\r\n2017/11/09 08:46:15 slaves: 4, corpus: 1 (9s ago), crashers: 0, restarts: 1/0, execs: 0 (0/sec), cover: 0, uptime: 9s\r\n2017/11/09 08:46:18 slaves: 4, corpus: 1 (12s ago), crashers: 0, restarts: 1/0, execs: 0 (0/sec), cover: 0, uptime: 12s\r\n```"},"comment":{"url":"https://api.github.com/repos/dvyukov/go-fuzz/issues/comments/406525854","html_url":"https://github.com/dvyukov/go-fuzz/issues/171#issuecomment-406525854","issue_url":"https://api.github.com/repos/dvyukov/go-fuzz/issues/171","id":406525854,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNjUyNTg1NA==","user":{"login":"dvyukov","id":1095328,"node_id":"MDQ6VXNlcjEwOTUzMjg=","avatar_url":"https://avatars3.githubusercontent.com/u/1095328?v=4","gravatar_id":"","url":"https://api.github.com/users/dvyukov","html_url":"https://github.com/dvyukov","followers_url":"https://api.github.com/users/dvyukov/followers","following_url":"https://api.github.com/users/dvyukov/following{/other_user}","gists_url":"https://api.github.com/users/dvyukov/gists{/gist_id}","starred_url":"https://api.github.com/users/dvyukov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvyukov/subscriptions","organizations_url":"https://api.github.com/users/dvyukov/orgs","repos_url":"https://api.github.com/users/dvyukov/repos","events_url":"https://api.github.com/users/dvyukov/events{/privacy}","received_events_url":"https://api.github.com/users/dvyukov/received_events","type":"User","site_admin":false},"created_at":"2018-07-20T08:20:57Z","updated_at":"2018-07-20T08:20:57Z","author_association":"OWNER","body":"Here is debugging patch that may be useful in future:\r\nhttps://github.com/dvyukov/go-fuzz/commit/80caf482a040d6a0643cc69ed25f28819a16219c\r\n\r\nI don't see how we can create and typecheck C package.\r\nOf https://github.com/golang/go/issues/19109 we need at least support for source-to-source transformation that works."}}
{"actor":{"display_login":"dvyukov"}}