!VRULIdgoKmKPzJZzjj:nixos.org

Nix Package Manager development

854 Members
For people hacking on Nix: https://github.com/NixOS/nix Nix maintainers can be reached here.179 Servers

Load older messages


SenderMessageTime
9 Oct 2025
@fzakaria:one.ems.hostfzakariacool ill take a look23:44:10
@fzakaria:one.ems.hostfzakariamaybe file bugs worst case23:44:14
@fzakaria:one.ems.hostfzakaria(I'll make sure they repro)23:44:22
@fzakaria:one.ems.hostfzakariathey're all kind of similar23:45:52
@fzakaria:one.ems.hostfzakariainteresting23:45:53
@lovesegfault:matrix.orglovesegfaultthe big issue with the current fuzzing work is i cannot seem to get good coverage, even after I added the dictionary, which helped23:54:46
@lovesegfault:matrix.orglovesegfaultand i don't know if it's my fault or of that's just how it is23:54:57
@lovesegfault:matrix.orglovesegfaulti suspect the corpus sucks and needs to be made better23:55:07
10 Oct 2025
@fzakaria:one.ems.hostfzakariamaybe there's more instrumentation to help guide it better?00:02:48
@fzakaria:one.ems.hostfzakariaor yea just feed it tons of derivations00:02:59
@fzakaria:one.ems.hostfzakarialike 1000s00:03:02
@fzakaria:one.ems.hostfzakaria
nix eval -f ./id:000000,sig:11,src:000046,time:6573454,execs:92972154,op:havoc,rep:2 
error: memory exhausted
       at /home/fmzakari/Downloads/nix-eval-crashes/id:000000,sig:11,src:000046,time:6573454,execs:92972154,op:havoc,rep:2:1:9999:
00:03:04
@fzakaria:one.ems.hostfzakaria memory exhausted interesting since it's a bunch of exclamation marks 00:03:31
@fzakaria:one.ems.hostfzakariaRedacted or Malformed Event00:07:49
@fzakaria:one.ems.hostfzakariaon recent versions that was fixed... I think your test harness might be too broad in what it's caatching00:10:25
@fzakaria:one.ems.hostfzakaria
/nix/store/9d3ypgdl7h4i7xr4ld7bl745f7fwkz66-nix-2.32.0pre20251006_dirty/bin/nix eval -f id:000000,sig:11,src:000064,time:13566614,execs:193156749,op:havoc,rep:2
error:
       … while evaluating the file '/home/fmzakari/Downloads/nix-eval-crashes/id:000000,sig:11,src:000064,time:13566614,execs:193156749,op:havoc,rep:2':

       … in the argument of the not operator
         at /home/fmzakari/Downloads/nix-eval-crashes/id:000000,sig:11,src:000064,time:13566614,execs:193156749,op:havoc,rep:2:1:5287:

00:10:38
@fzakaria:one.ems.hostfzakaria That seems like an acceptable error in eval 00:10:58
@lovesegfault:matrix.orglovesegfaulthmmm00:21:29
@lovesegfault:matrix.orglovesegfaultmaybe the harness is borked somehow?00:21:36
@fzakaria:one.ems.hostfzakariaI think i remember reviewing and you are catching Error or std::exception00:21:50
@fzakaria:one.ems.hostfzakariamaybe those are normal ? I thought fuzzing is only looking for things that cause SIGSEGV00:22:39
@fzakaria:one.ems.hostfzakaria unless you set AFL_CRASH_EXITCODE='-1' 00:23:23
@fzakaria:one.ems.hostfzakaria(or something)00:23:27
@fzakaria:one.ems.hostfzakaria(or special catching for MSAN/ASAN)00:24:12
@fzakaria:one.ems.hostfzakaria

Note that in nearly all cases you can never reach full coverage. A lot of functionality is usually dependent on exclusive options that would need individual fuzzing campaigns each with one of these options set. E.g., if you fuzz a library to convert image formats and your target is the png to tiff API, then you will not touch any of the other library APIs and features.

00:25:11
@lovesegfault:matrix.orglovesegfaultyeah. i've seen coverage go up to ~35% so maybe it's good?00:26:02
@lovesegfault:matrix.orglovesegfaulthonggfuzz seemed to do better, maybe I should rescue that work00:26:17
@lovesegfault:matrix.orglovesegfaultI had another branch that used honggfuzz instead of afl++00:26:30
@lovesegfault:matrix.orglovesegfaultthe UI was much nicer00:26:34
@fzakaria:one.ems.hostfzakariahmm01:40:55

Show newer messages


Back to Room ListRoom Version: 6