function of StartRssThread always throw an instance of 'std::system_error'

617 views
Skip to first unread message

yog...@gmail.com

unread,
Aug 4, 2017, 2:34:28 AM8/4/17
to libfuzzer
I build my target in LINUX succ,however I got this when to run it:

terminate called after throwing an instance of 'std:system_error'
what(): Invalid argument
Aborted (core dumped)

then I debug the libfuzzer source file , found the target crash in rss thread detach

static void StartRssThread(Fuzzer *F, size_t RssLimitMb) {
  if (!RssLimitMb) return;
  std::thread T(RssThread, F, RssLimitMb);
  T.detach();
}

then I google this error, found this error come from The thread object is not joinable


why and how can I fix it?

Konstantin Serebryany

unread,
Aug 4, 2017, 11:55:04 AM8/4/17
to yog...@gmail.com, libfuzzer
Hi, 


You can disable this code with the flag -rss_limit_mb=0

If this doesn't help, please provide the exact command lines and versions of the software (kernel, compiler, libFuzzer, etc)



--
You received this message because you are subscribed to the Google Groups "libfuzzer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to libfuzzer+unsubscribe@googlegroups.com.
To post to this group, send email to libf...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/libfuzzer/c6d19e81-f54b-4bd1-b6ae-41465fa0c35d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

yog...@gmail.com

unread,
Aug 5, 2017, 3:11:58 AM8/5/17
to libfuzzer
it works with -rss_limit_mb=0
however it appear when I use jobs flag


jenkins_ci:~/fuzz/build$ ./fuzzer/DTMF_fuzzer
INFO: Seed: 9185234
terminate called after throwing an instance of 'std::system_error'
  what():  Invalid argument
Aborted (core dumped)
jenkins_ci:~/fuzz/build$ ./fuzzer/DTMF_fuzzer -rss_limit_mb=0 -runs=2
INFO: Seed: 1527351542
INFO: -max_len is not provided; libFuzzer will not generate inputs larger than 4096 bytes
INFO: A corpus is not provided, starting from an empty corpus
#0      READ units: 1
#2      INITED cov: 1928 ft: 1927 corp: 1/1b exec/s: 0 rss: 58Mb
#2      DONE   cov: 1928 ft: 1927 corp: 1/1b exec/s: 0 rss: 58Mb
Done 2 runs in 0 second(s)
jenkins_ci:~/fuzz/build$ ./fuzzer/DTMF_fuzzer -rss_limit_mb=0 -runs=2 -jobs=1
terminate called after throwing an instance of 'std::system_error'
  what():  Invalid argument
Aborted (core dumped)
jenkins_ci:~/fuzz/build$ ./fuzzer/DTMF_fuzzer -rss_limit_mb=0 -runs=2 -jobs=2
Running 2 workers

Konstantin Serebryany

unread,
Aug 6, 2017, 11:39:08 AM8/6/17
to yog...@gmail.com, libfuzzer
Looks like your system (or the way you build the code) does not support threads. 
Please provide all possible details (exact command line and versions of OS/compiler/libc)

--kcc 

--
You received this message because you are subscribed to the Google Groups "libfuzzer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to libfuzzer+unsubscribe@googlegroups.com.
To post to this group, send email to libf...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages