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

fuzzit failed to fully upload #3

Closed
kjk opened this issue Aug 2, 2019 · 1 comment
Closed

fuzzit failed to fully upload #3

kjk opened this issue Aug 2, 2019 · 1 comment

Comments

@kjk
Copy link
Contributor

@kjk kjk commented Aug 2, 2019

See the end of https://travis-ci.org/gomarkdown/markdown/builds/566734869

0+++go get -u github.com/dvyukov/go-fuzz/go-fuzz github.com/dvyukov/go-fuzz/go-fuzz-build
501+++go build ./...
502+++go-fuzz-build -libfuzzer -o fuzzer.a .
503+++clang -fsanitize=fuzzer fuzzer.a -o fuzzer
504+++wget -q -O fuzzit https://github.com/fuzzitdev/fuzzit/releases/download/v2.0.0/fuzzit_Linux_x86_64
505+++chmod a+x fuzzit
506+++./fuzzit auth [secure]
5072019/08/02 00:08:18 Authenticating with fuzzit...
5082019/08/02 00:08:25 Authenticated successfully
509+++export TARGET_ID=2n6hO2dQzylLxX5GGhRG
510+++TARGET_ID=2n6hO2dQzylLxX5GGhRG
511+++./fuzzit create job --type --branch master --revision f70ab624d0d8f8512b11f0f19a69e4d44be63130 2n6hO2dQzylLxX5GGhRG ./fuzzer
5122019/08/02 00:08:25 Creating job...
5132019/08/02 00:08:25 Created new job  Wzpy3F5ZLPIb8PA3ma4F
5142019/08/02 00:08:25 stat 2n6hO2dQzylLxX5GGhRG: no such file or directory
515The command "./s/ci_fuzzit.sh" exited with 1.

5142019/08/02 00:08:25 stat 2n6hO2dQzylLxX5GGhRG: no such file or directory seems to be coming from https://github.com/fuzzitdev/fuzzit/blob/master/client/commands.go#L119

fuzzerPath seems to be incorrect.

I think this partially created target also broke admin interface.
https://app.fuzzit.dev/admin/rV95HAc1EM3OKoezzHUe/target/master/Wzpy3F5ZLPIb8PA3ma4F is blank-ish and on the console I get:

TypeError: Cannot read property 'target_name' of null
    at t.value (9.84d4f3dd.chunk.js:1)
    at Oa (3.ca103e70.chunk.js:1)
    at Ra (3.ca103e70.chunk.js:1)
    at Ia (3.ca103e70.chunk.js:1)
    at Go (3.ca103e70.chunk.js:1)
    at Ko (3.ca103e70.chunk.js:1)
    at As (3.ca103e70.chunk.js:1)
    at Rs (3.ca103e70.chunk.js:1)
    at Es (3.ca103e70.chunk.js:1)
    at Zo (3.ca103e70.chunk.js:1)
fo @ 3.ca103e70.chunk.js:1

@kjk
Copy link
Contributor Author

@kjk kjk commented Aug 2, 2019

The root cause of this was was not passing build type to the script. I hardened reference script to guard against this in fuzzitdev/example-go#2

There are lingering issues:

  • target id is passed in a non-standard way (I would expect --target_id flag)
  • the admin interface is still broken for me for this target
@kjk kjk closed this Aug 2, 2019
yevgenypats added a commit that referenced this issue Aug 2, 2019
#8 reverse args CopyFile
#3 validate --type param
#5 go fmt
#2 remove json tags
#6 unportable code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.