Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite7e1748

Browse files
authored
Fix: remove memory limit on fuzzers (#5763)
Fixes#5566Simply takes off the memory limit on the internal `libfuzzer-sys` whichis set to 2GB of memory. The fuzzer machines run on[m8g.large](https://github.com/vortex-data/vortex/blob/develop/.github/workflows/fuzz.yml?plain=1#L21)which have [8GB of RAM](https://aws.amazon.com/ec2/instance-types/m8g/).Running the fuzzer now:https://github.com/vortex-data/vortex/actions/runs/20285945548Signed-off-by: Connor Tsui <connor.tsui20@gmail.com>
1 parent8eb7e58 commite7e1748

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

‎.github/workflows/fuzz.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
-name:Run fuzzing target
5757
id:fuzz
5858
run:|
59-
RUSTFLAGS="--cfg vortex_nightly" RUST_BACKTRACE=1 cargo +nightly fuzz run --release --debug-assertions file_io -- -max_total_time=7200 2>&1 | tee fuzz_output.log
59+
RUSTFLAGS="--cfg vortex_nightly" RUST_BACKTRACE=1 cargo +nightly fuzz run --release --debug-assertions file_io -- -max_total_time=7200-rss_limit_mb=02>&1 | tee fuzz_output.log
6060
continue-on-error:true
6161
-name:Check for crashes
6262
id:check
@@ -189,7 +189,7 @@ jobs:
189189
-name:Run fuzzing target
190190
id:fuzz
191191
run:|
192-
RUSTFLAGS="--cfg vortex_nightly" RUST_BACKTRACE=1 cargo +nightly fuzz run --release --debug-assertions array_ops -- -max_total_time=7200 2>&1 | tee fuzz_output.log
192+
RUSTFLAGS="--cfg vortex_nightly" RUST_BACKTRACE=1 cargo +nightly fuzz run --release --debug-assertions array_ops -- -max_total_time=7200-rss_limit_mb=02>&1 | tee fuzz_output.log
193193
continue-on-error:true
194194
-name:Check for crashes
195195
id:check

‎.github/workflows/fuzzer-fix-automation.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ jobs:
187187
echo "Attempting to reproduce crash with fuzzer (debug mode)..."
188188
189189
# Run fuzzer with crash file (debug mode, no sanitizer, full backtrace)
190-
RUSTFLAGS="--cfg vortex_nightly" RUST_BACKTRACE=full timeout 30s cargo +nightly fuzz run --dev --sanitizer=none "${{ steps.extract.outputs.target }}" "${{ steps.download.outputs.crash_file_path }}" -- -runs=1 2>&1 | tee crash_reproduction.log
190+
RUSTFLAGS="--cfg vortex_nightly" RUST_BACKTRACE=full timeout 30s cargo +nightly fuzz run --dev --sanitizer=none "${{ steps.extract.outputs.target }}" "${{ steps.download.outputs.crash_file_path }}" -- -runs=1-rss_limit_mb=02>&1 | tee crash_reproduction.log
191191
192192
FUZZ_EXIT_CODE=${PIPESTATUS[0]}
193193
@@ -216,7 +216,7 @@ jobs:
216216
217217
I ran:
218218
\`\`\`bash
219-
cargo +nightly fuzz run --sanitizer=none ${{ steps.extract.outputs.target }} ${{ steps.download.outputs.crash_file_path }} -- -runs=1
219+
cargo +nightly fuzz run --sanitizer=none ${{ steps.extract.outputs.target }} ${{ steps.download.outputs.crash_file_path }} -- -runs=1 -rss_limit_mb=0
220220
\`\`\`
221221
222222
The fuzzer exited with code 0 (success).
@@ -275,7 +275,7 @@ jobs:
275275
- This ensures your work is visible and reviewable even if you hit the turn limit
276276
- Keep fixes minimal - only fix the specific bug
277277
- Follow CLAUDE.md code style guidelines
278-
- **Use `--dev` flag** for faster builds: `cargo +nightly fuzz run --dev --sanitizer=none`
278+
- **Use `--dev` flag** for faster builds: `cargo +nightly fuzz run --dev --sanitizer=none <target> <crash_file> -- -rss_limit_mb=0`
279279
280280
## Fixability Guidelines
281281

‎.github/workflows/report-fuzz-crash.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ jobs:
155155
### Reproduction
156156
157157
```bash
158-
cargo +nightly fuzz run --sanitizer=none $FUZZ_TARGET $FUZZ_TARGET/$CRASH_FILE
158+
cargo +nightly fuzz run -D --sanitizer=none $FUZZ_TARGET $FUZZ_TARGET/$CRASH_FILE -- -rss_limit_mb=0
159159
```
160160
161161
---
@@ -219,12 +219,12 @@ jobs:
219219
2. Reproduce locally:
220220
```bash
221221
# The artifact contains $FUZZ_TARGET/$CRASH_FILE
222-
cargo +nightly fuzz run --sanitizer=none $FUZZ_TARGET $FUZZ_TARGET/$CRASH_FILE
222+
cargo +nightly fuzz run -D --sanitizer=none $FUZZ_TARGET $FUZZ_TARGET/$CRASH_FILE -- -rss_limit_mb=0
223223
```
224224
225225
3. Get full backtrace:
226226
```bash
227-
RUST_BACKTRACE=full cargo +nightly fuzz run --sanitizer=none $FUZZ_TARGET $FUZZ_TARGET/$CRASH_FILE
227+
RUST_BACKTRACE=full cargo +nightly fuzz run -D --sanitizer=none $FUZZ_TARGET $FUZZ_TARGET/$CRASH_FILE -- -rss_limit_mb=0
228228
```
229229
230230
---

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp