nnsmith icon indicating copy to clipboard operation
nnsmith copied to clipboard

Help Wanted - How does one generate minimum code examples from NNSmith bug reports

Open talha-ahsan opened this issue 9 months ago • 1 comments

Hi, apologies for this issue, I am working with NNSmith (and Neuri) and have several generated bug reports from fuzzing. However, when looking at bug reports developed as a result of NNSmith like this one here there's a minimal code sample that can be used to trigger and reproduce the bug encountered. However, I can't seem to figure out how to generate such examples utilizing NNSmith. Is there an additional utility, or a technique to do so? I can see the model.pth and pkl files, but would like a nudge or some guidance in how to utilize them to create a reproducible code sample if that makes sense?

Sorry again for the call for help.

talha-ahsan avatar Apr 29 '24 23:04 talha-ahsan

@talha-ahsan Hi, I think that nnsmith.report_syn can generate the crash code

syheliel avatar May 09 '24 01:05 syheliel

Thanks for the issue. @syheliel is right we have nnsmith.report_syn to synthesize a bug report for PyTorch compilers. It's not perfect but should be useful in many cases (at least at the time we develop it). :D

ganler avatar May 17 '24 07:05 ganler

Apologies for the incredibly long delay, I must've missed the notification. I'll start working with report_syn, thank you!

talha-ahsan avatar Jun 20 '24 04:06 talha-ahsan