Public issue detail

Crash in ivlpp: SEGV) si_code: SEGV_MAPERR at __vfprintf_internal -> ___fprintf_chk -> __libc_start_call_main -> __libc…

Top frame: __vfprintf_internal [libc.so.6]

highpackage: iverilogsource: iverilogscore: 98reports: 1patch attempt ready

Last seen: 2026-09-20 02:02 UTC. Public JSON: /v1/issues/01a0ba9b-266e-77c2-b73d-4063ad886ae9

Pull-request-ready diff

This is the current best public patch attempt for the issue. The downloadable `.patch` now includes a short cover letter so it reads like something you could send upstream with `git am`. If you only want the raw diff, grab the `.diff` instead.

best patchcreated: 2026-09-19 16:35 UTCvalidation: ready

Patch proposal created locally. Review it and submit it upstream if it looks correct.

Suggested subject

ivlpp: initialize output before opening input

Commit message.

Initialize the preprocessor output stream before opening the first input file. This lets the existing error path report an unreadable source normally instead of passing a null stream to `fprintf()`.

Add a focused check requiring exit status 1 for a missing input, ensuring signal termination fails the test.

Problem. Top frame: __vfprintf_internal [libc.so.6].

How this patch connects to the issue.

Fixer collected an `ivlpp` SIGSEGV whose stack ended in `__vfprintf_internal`. The recorded binary addresses map to `reset_lexor()` calling `early_exit()` before `yyout`, the lexer output stream, was initialized.

The change in `ivlpp/lexor.lex` initializes `yyout` before opening the first input. The change in `ivlpp/Makefile.in` extends `make check` with a missing-input regression that requires exit status 1, rejecting future signal-based failures. The expected effect is that an unreadable first source produces the existing diagnostic and a clean error exit instead of crashing.

The original temporary inputs were unavailable, but the same failure path was independently reproduced with a missing source. This refinement addresses the review finding by explicitly connecting both shipped files to the issue.

Files touched

  • ivlpp/Makefile.in
  • ivlpp/lexor.lex

Validation

  • Fixer marked this proposal `ready` on 2026-09-19 16:35 UTC.
  • The underlying issue cluster has 1 report(s) and was last seen 2026-09-20 02:02 UTC.
  • The published diff touches ivlpp/Makefile.in, ivlpp/lexor.lex.
  • `./configure && make -j2 && make check` — passed from the workspace root.
  • `make -C ivlpp check` — passed.
  • Reproduction:.
  • Before the patch, the equivalent check produced SIGSEGV and exit 139.
  • After the patch, it printed the missing-file and preprocessor-error diagnostics and exited 1.
  • `git diff --check` — passed.
  • Only the two listed files are modified.
  • The patch targets upstream `master`. The subsystem uses standard `stdio`; no relevant local I/O wrapper was found, while `ivl_alloc.h` only wraps allocation.
diff --git a/ivlpp/Makefile.in b/ivlpp/Makefile.in
index 2fa327d..4acfbd5 100644
--- a/ivlpp/Makefile.in
+++ b/ivlpp/Makefile.in
@@ -52,6 +52,7 @@ O = main.o lexor.o
 all: ivlpp@EXEEXT@
 
 check: all
+	@./ivlpp@EXEEXT@ ivlpp-missing-input > /dev/null 2>&1; test $$? -eq 1
 
 clean:
 	rm -f *.o lexor.c ivlpp@EXEEXT@
diff --git a/ivlpp/lexor.lex b/ivlpp/lexor.lex
index 9094368..a24e92e 100644
--- a/ivlpp/lexor.lex
+++ b/ivlpp/lexor.lex
@@ -2360,6 +2360,8 @@ void reset_lexor(FILE* out, char* paths[])
     struct include_stack_t* isp;
     struct include_stack_t* tail = 0;
 
+    yyout = out;
+
     isp = malloc(sizeof(struct include_stack_t));
     isp->next = 0;
     isp->path = strdup(paths[0]);
@@ -2383,8 +2385,6 @@ void reset_lexor(FILE* out, char* paths[])
 	}
     }
 
-    yyout = out;
-
     yyrestart(isp->file);
 
     assert(istack == 0);

Technical snapshot

Fixer kept the most informative crashing thread and shows the top stack frames below.

Crashing thread stack trace

  • Process: ivlpp
  • Signal: SEGV) si_code: SEGV_MAPERR
  • Kernel: 7.2.0-nucat720
  • Distribution: debian
__vfprintf_internal
___fprintf_chk
n/a
__libc_start_call_main
__libc_start_main_impl

Worker outcome summary

This issue has 1 recorded worker attempt. Only ready diffs and ready triage handoffs get dedicated public boards. Diagnosis-only reports and blocked attempts are summarized here so it is easier to see why work stalled.

1 ready patch attempts

No ready triage handoffs, diagnosis-only reports, failed patch attempts, explained impossible attempts, or other attempt states.

Published attempts

ready patch attempt

patch

Patch proposal created locally. Review it and submit it upstream if it looks correct.

state: readycreated: 2026-09-19 16:35 UTCvalidation: ready
Published session

Prompt

## Plan Pass

You are planning a fixer patch before any edits happen.

Read the evidence bundle at `./evidence.json`. The prepared workspace is `./workspace` and it was acquired via `debian-source`. The original pre-edit snapshot is available at `./source` if you need to inspect it.

Validation expectation: try the project-level build/test entrypoint from the workspace root before reporting only a focused leaf compile. Detected candidate(s): `./configure && make`. If the project-level command fails because dependencies or generated files are missing, include the exact command and failure reason in `## Validation`, then run the narrowest relevant compile/test that is still reproducible from a clean checkout.

Upstream-style expectation: before planning or editing, check for contribution/style docs (`CONTRIBUTING`, `HACKING`, `README-hacking`, `README.md`, `docs/`, `dev-docs/`) and scan the touched subsystem for local helpers. If the project has wrappers for file IO, path-relative IO, process spawning, memory allocation, logging, locking, or platform compatibility, prefer those wrappers over generic libc/std APIs. For public upstream review, prepare the final patch against the upstream default integration branch, usually `master` or `main`; use installed or stable source trees for reproduction/backport validation, not as the default merge-request base unless the contribution docs explicitly say to target a stable branch. Do not invent a reproducer or user-visible failure that is not in the evidence bundle; if the evidence is profiler-only or indirect, describe it as a targeted mitigation or stop with a diagnosis instead of presenting a speculative patch as a confirmed bug fix. In the plan and final validation, name any such helper, convention, branch-base choice, or evidence limit you found, or say that no relevant local helper was found. Treat this as a `iverilog` upstream patch, not just a Debian-local workaround.

Codex subagent/fan-out expectation: for any non-trivial investigation, do not keep all checking in the lead context. Proactively spawn bounded leaf subagents for independent source inspection, duplicate/upstream search, implementation sanity checks, and verification while the lead owns integration. Use the newest available mini model for read-only scouts, and use `gpt-5.3-codex-spark` aggressively for tiny coding, test, and verification leaves even when the lead model is `gpt-5.5`. Pass model names explicitly when spawning. Keep subagents as leaves: tell them not to spawn their own agents, not to run recursive `codex review`, not to perform public/external/destructive actions, and not to duplicate the same live-state operation. Merge their evidence into the final patch/report instead of merely saying a subagent looked. Inspect the relevant code, nearby callers, project contribution docs, and local helper/compat APIs, but do not edit files in this pass.

Return a short markdown plan with these exact sections:

## Problem
## Evidence Confidence
## Proposed Subject
## Patch Plan
## Risks
## Validation

Classify `## Evidence Confidence` as exactly one of `reproduced`, `observed`, or `inferred`. Use `inferred` only for a no-patch diagnosis/report plan unless you can name the extra evidence you will collect before editing; inferred source patches are blocked by Fixer because they are not pull-request-ready. For `observed` source-patch plans, plan to say in the final `## Issue Connection` that the failure was observed by Fixer and not independently reproduced. If the plan touches authentication, authorization, credentials, cryptography, sandboxing, permissions, timing/throttling behavior, or PostgreSQL database-core behavior such as dynamic library resolution, extension loading, transaction semantics, locking, planner/executor behavior, catalog changes, or storage changes, treat it as high-risk: do not plan a source patch unless validation can reproduce the behavior and analyze the semantic impact; otherwise plan a no-patch diagnosis/report. The plan must explain how the proposed code change addresses the observed issue evidence, call out any prior Fixer patch that should be improved or replaced, reject awkward control flow such as avoidable `goto` if there is a cleaner bounded alternative, name any local helper APIs or maintainer conventions the patch should follow, and keep the intended maintainer-facing explanation clear enough that someone unfamiliar with the local complaint wording can still follow the fix. In `## Validation`, name the reproducible configure/build/test entrypoint you will try from the workspace root before any focused leaf compile or smoke check, and include one bounded independent reproduction attempt for the collected failure signal when it is safe and cheap. Do not plan to claim `reproduced` unless that reproduction command or test can actually show the failure.

## Patch Pass

You are working on a bounded fixer proposal.

Read the evidence bundle at `./evidence.json`. The prepared workspace is `./workspace` and it was acquired via `debian-source`. Produce the smallest reasonable patch for the target repository, keep the change upstreamable, prefer the clearest control flow available, and do not keep avoidable `goto` when a simpler structure would read better. Before introducing new file, process, allocation, locking, networking, or platform APIs, inspect nearby code and project contribution docs for existing helpers or compatibility wrappers and use those local patterns unless you can explain why they do not fit. Validate from a reproducible workspace-root entrypoint before falling back to focused leaf commands; if a build or test cannot run, report the exact command, the exact blocker, and any narrower check you ran instead. During validation, also try one bounded independent reproduction of the collected failure signal when it is safe and cheap, such as a failing test, smoke command, perf/strace comparison, or before/after runtime check. Only use `reproduced` if that command or test actually reproduced the failure; otherwise keep `observed` and report the reproduction blocker. The final explanation must connect the observed issue evidence to the actual code change, not just paraphrase the diff. Write like a maintainer is going to read the patch mail cold: explain the bug in plain language, define subsystem-specific jargon the first time you need it, and make the causal story obvious. Explicitly classify evidence confidence as `reproduced`, `observed`, or `inferred`: `reproduced` means you reproduced the failure locally; `observed` means Fixer has direct crash/log/trace evidence but you did not independently reproduce it; `inferred` means the source patch is not pull-request-ready, so do not leave a source diff unless you first gather stronger observed/reproduced evidence; otherwise return a no-patch diagnosis/report. For any source-changing `observed` patch, say explicitly in `## Issue Connection` that the failure was observed by Fixer and not independently reproduced. Security-sensitive areas such as authentication, authorization, credentials, cryptography, sandboxing, permissions, and timing/throttling behavior need reproduced evidence plus explicit security-impact analysis before leaving a source diff; otherwise return a no-patch diagnosis/report for human review. If you introduce non-obvious state translation, index remapping, or backend split logic, add a short source comment that explains the invariant being preserved.

Validation expectation: try the project-level build/test entrypoint from the workspace root before reporting only a focused leaf compile. Detected candidate(s): `./configure && make`. If the project-level command fails because dependencies or generated files are missing, include the exact command and failure reason in `## Validation`, then run the narrowest relevant compile/test that is still reproducible from a clean checkout.

Upstream-style expectation: before planning or editing, check for contribution/style docs (`CONTRIBUTING`, `HACKING`, `README-hacking`, `README.md`, `docs/`, `dev-docs/`) and scan the touched subsystem for local helpers. If the project has wrappers for file IO, path-relative IO, process spawning, memory allocation, logging, locking, or platform compatibility, prefer those wrappers over generic libc/std APIs. For public upstream review, prepare the final patch against the upstream default integration branch, usually `master` or `main`; use installed or stable source trees for reproduction/backport validation, not as the default merge-request base unless the contribution docs explicitly say to target a stable branch. Do not invent a reproducer or user-visible failure that is not in the evidence bundle; if the evidence is profiler-only or indirect, describe it as a targeted mitigation or stop with a diagnosis instead of presenting a speculative patch as a confirmed bug fix. In the plan and final validation, name any such helper, convention, branch-base choice, or evidence limit you found, or say that no relevant local helper was found. Treat this as a `iverilog` upstream patch, not just a Debian-local workaround.

Codex subagent/fan-out expectation: for any non-trivial investigation, do not keep all checking in the lead context. Proactively spawn bounded leaf subagents for independent source inspection, duplicate/upstream search, implementation sanity checks, and verification while the lead owns integration. Use the newest available mini model for read-only scouts, and use `gpt-5.3-codex-spark` aggressively for tiny coding, test, and verification leaves even when the lead model is `gpt-5.5`. Pass model names explicitly when spawning. Keep subagents as leaves: tell them not to spawn their own agents, not to run recursive `codex review`, not to perform public/external/destructive actions, and not to duplicate the same live-state operation. Merge their evidence into the final patch/report instead of merely saying a subagent looked. 

Keep the change narrowly scoped and summarize validation clearly.

In every authoring pass, your final response must start with `Subject: <single-line git commit subject>` and then include these markdown sections exactly:

## Commit Message
A short upstream-friendly explanation of what changed and why. Write it in plain language that a maintainer can follow without local complaint context. If you use subsystem jargon, define it immediately.

## Evidence Confidence
Exactly one word: `reproduced`, `observed`, or `inferred`. Use `reproduced` only when you reproduced the failure locally with a command or test, and include that command/test in `## Validation`. Use `observed` when Fixer has direct crash/log/trace evidence but you did not independently reproduce it. If `## Git Add Paths` lists source files for an `observed` patch, `## Issue Connection` must explicitly say the failure was observed by Fixer and not independently reproduced. Security-sensitive source changes touching authentication, authorization, credentials, cryptography, sandboxing, permissions, or timing/throttling behavior require reproduced evidence and explicit security-impact analysis. PostgreSQL database-core source changes touching dynamic library resolution, extension loading, transaction semantics, locking, planner/executor behavior, catalog changes, or storage changes require reproduced evidence plus explicit semantic-impact analysis. Otherwise list `None` under `## Git Add Paths` and write a no-patch diagnosis/report. Use `inferred` for profiler/strace/indirect evidence; inferred responses may be no-patch diagnoses or reports, but inferred source patches are not pull-request-ready until stronger evidence is gathered.

## Issue Connection
Write this as maintainer-facing patch mail, not as local Fixer notes. Cover four things explicitly in readable sentences: the user-visible symptom or the exact collected signal, the code-level cause or the cautious inference from evidence, the specific change you made, and the expected effect. Do not invent a reproducer, command line, crash, or user-visible failure that is not present in the evidence bundle. If the evidence is direct-but-not-reproduced, say it was observed by Fixer and not independently reproduced. If the evidence is indirect and you did not gather stronger evidence, do not leave a source diff; write a no-patch diagnosis/report instead. Include an explicit effect sentence such as `The expected effect is ...`, `This should reduce ...`, or `This prevents ...` for source patches. If the logic is non-obvious in code, mention that you added a short explanatory comment.

## Git Add Paths
List the repo-relative paths that belong in the final patch, one per line. Use `None` only when you intentionally made no source changes. Include intentionally new files, and do not list generated build artifacts.

## Validation
List the checks you ran, or say clearly that you could not run them. Include the independent reproduction command/test and result when `## Evidence Confidence` is `reproduced`; if reproduction was attempted but blocked, name the exact blocker and keep confidence at `observed` or `inferred`.

Before editing, read the plan at `./plan-output.txt` and follow it unless the code proves part of it wrong. If you change course, say so explicitly in the final write-up instead of silently drifting from the plan.

## Review Pass 1

You are reviewing a freshly generated fixer patch.

Read the evidence bundle at `./evidence.json`. The prepared workspace is `./workspace` and it was acquired via `debian-source`. Review the first patch pass. The original pre-edit snapshot is available at `./source` for diffing. The workspace currently changes these repo-relative paths: ivlpp/Makefile.in, ivlpp/lexor.lex. Verify that `## Git Add Paths` matches this exact set and that `## Issue Connection` explains every shipped functional file.

Upstream-style expectation: before planning or editing, check for contribution/style docs (`CONTRIBUTING`, `HACKING`, `README-hacking`, `README.md`, `docs/`, `dev-docs/`) and scan the touched subsystem for local helpers. If the project has wrappers for file IO, path-relative IO, process spawning, memory allocation, logging, locking, or platform compatibility, prefer those wrappers over generic libc/std APIs. For public upstream review, prepare the final patch against the upstream default integration branch, usually `master` or `main`; use installed or stable source trees for reproduction/backport validation, not as the default merge-request base unless the contribution docs explicitly say to target a stable branch. Do not invent a reproducer or user-visible failure that is not in the evidence bundle; if the evidence is profiler-only or indirect, describe it as a targeted mitigation or stop with a diagnosis instead of presenting a speculative patch as a confirmed bug fix. In the plan and final validation, name any such helper, convention, branch-base choice, or evidence limit you found, or say that no relevant local helper was found. Treat this as a `iverilog` upstream patch, not just a Debian-local workaround.

Validation expectation: try the project-level build/test entrypoint from the workspace root before reporting only a focused leaf compile. Detected candidate(s): `./configure && make`, `make` and, if available, `make check`. If the project-level command fails because dependencies or generated files are missing, include the exact command and failure reason in `## Validation`, then run the narrowest relevant compile/test that is still reproducible from a clean checkout.

Codex subagent/fan-out expectation: for any non-trivial investigation, do not keep all checking in the lead context. Proactively spawn bounded leaf subagents for independent source inspection, duplicate/upstream search, implementation sanity checks, and verification while the lead owns integration. Use the newest available mini model for read-only scouts, and use `gpt-5.3-codex-spark` aggressively for tiny coding, test, and verification leaves even when the lead model is `gpt-5.5`. Pass model names explicitly when spawning. Keep subagents as leaves: tell them not to spawn their own agents, not to run recursive `codex review`, not to perform public/external/destructive actions, and not to duplicate the same live-state operation. Merge their evidence into the final pat

[truncated 15009 bytes]

Response

## Plan Pass

## Problem

`ivlpp` crashes while reporting an unreadable first input file. `reset_lexor()` calls `early_exit()` before initializing `yyout`; `early_exit()` then passes the null stream to `fprintf()`.

## Evidence Confidence

reproduced

Both Debian 13.0-2 and the workspace build exit with SIGSEGV/status 139 for a missing first source. The recorded addresses map to `reset_lexor()` → `early_exit()` → `fprintf()`, matching the evidence stack. The original temporary inputs are unavailable, so their precise contents cannot be replayed.

## Proposed Subject

ivlpp: initialize the output stream before opening input

## Patch Plan

- Prepare the upstream patch against `master`, as required by the contributor guide; use Debian 13.0 only for reproduction/backport validation.
- In `ivlpp/lexor.lex`, assign `yyout` at the start of `reset_lexor()`, before `open_input_file()` can invoke `early_exit()`. Remove the later redundant assignment.
- Add a focused `ivlpp` regression that supplies a nonexistent first source and requires a normal error exit rather than a signal.
- Keep the existing `stdio` error/output convention. No relevant I/O wrapper exists; `ivl_alloc.h` only covers allocation and is not applicable.
- Use straight-line initialization—no new `goto` or special-case suppression.
- No prior Fixer patch exists to replace or revise.

## Risks

The change affects only early initialization. It preserves `early_exit()`’s intended diagnostic summary on the caller-provided output stream. The regression should check the exact exit class so any nonzero result, including another signal, cannot pass accidentally.

## Validation

- From a clean upstream-style tree, run `./configure && make`, followed by `make check`. Both commands succeed on the current baseline.
- Run the focused `ivlpp` check through `make -C ivlpp check`.
- Repeat the bounded reproduction with `ivlpp -L -F/dev/null -p<temporary-output> <nonexistent-source>` and verify exit status 1, the missing-file diagnostic, and no SIGSEGV. Baseline status is 139.

## Patch Pass

Subject: ivlpp: initialize output before opening input

## Commit Message

Initialize the preprocessor output stream before opening the first input file. This lets the existing error path report an unreadable source normally instead of passing a null stream to `fprintf()`.

Add a focused check requiring exit status 1 for a missing input; signal termination therefore fails the test.

## Evidence Confidence

reproduced

## Issue Connection

Fixer collected an `ivlpp` SIGSEGV whose stack ended in `__vfprintf_internal`. The recorded binary addresses map to `reset_lexor()` calling `early_exit()` before `yyout`, the lexer output stream, was initialized.

The patch moves the existing `yyout` assignment ahead of the first input-file open. The expected effect is that an unreadable first source produces the existing diagnostic and clean error exit instead of crashing.

The original temporary inputs were unavailable, but the same failure path was independently reproduced with a missing source. This follows the planned fix without changing course.

## Git Add Paths

ivlpp/lexor.lex  
ivlpp/Makefile.in

## Validation

- `./configure && make -j2` — passed from the workspace root.
- `make check` — passed, including the new regression.
- `make -C ivlpp check` — passed independently.
- Reproduction:
  `./ivlpp/ivlpp -L -F/dev/null -p/tmp/fixer-419288-repro/fixed-precomp /tmp/fixer-419288-repro/fixed-missing.v`
  - Before patch: SIGSEGV, exit 139.
  - After patch: missing-file diagnostic and exit 1.
- `git diff --check` — passed.
- Patch targets upstream `master`, as directed by the contributor guide. The subsystem uses standard `stdio`; no relevant local I/O wrapper was found. No generated files are included.

## Review Pass 1

RESULT: fix-needed

## Findings

- `## Git Add Paths` correctly matches `ivlpp/Makefile.in` and `ivlpp/lexor.lex`, but `## Issue Connection` explains only the lexer initialization change. Add that `ivlpp/Makefile.in` extends `make check` with a missing-input regression requiring exit status 1, so future signal-based failures are rejected.

The code change itself is sound; `./configure && make -j2 && make check`, the focused regression, and the before/after reproduction all pass.

## Refinement Pass 1

Subject: ivlpp: initialize output before opening input

## Commit Message

Initialize the preprocessor output stream before opening the first input file. This lets the existing error path report an unreadable source normally instead of passing a null stream to `fprintf()`.

Add a focused check requiring exit status 1 for a missing input, ensuring signal termination fails the test.

## Evidence Confidence

reproduced

## Issue Connection

Fixer collected an `ivlpp` SIGSEGV whose stack ended in `__vfprintf_internal`. The recorded binary addresses map to `reset_lexor()` calling `early_exit()` before `yyout`, the lexer output stream, was initialized.

The change in `ivlpp/lexor.lex` initializes `yyout` before opening the first input. The change in `ivlpp/Makefile.in` extends `make check` with a missing-input regression that requires exit status 1, rejecting future signal-based failures. The expected effect is that an unreadable first source produces the existing diagnostic and a clean error exit instead of crashing.

The original temporary inputs were unavailable, but the same failure path was independently reproduced with a missing source. This refinement addresses the review finding by explicitly connecting both shipped files to the issue.

## Git Add Paths

ivlpp/Makefile.in  
ivlpp/lexor.lex

## Validation

- `./configure && make -j2 && make check` — passed from the workspace root.
- `make -C ivlpp check` — passed.
- Reproduction:
  `./ivlpp/ivlpp -L -F/dev/null -p/tmp/fixer-419288-repro/refine-precomp /tmp/fixer-419288-repro/refine-missing.v`
  - Before the patch, the equivalent check produced SIGSEGV and exit 139.
  - After the patch, it printed the missing-file and preprocessor-error diagnostics and exited 1.
- `git diff --check` — passed.
- Only the two listed files are modified.
- The patch targets upstream `master`. The subsystem uses standard `stdio`; no relevant local I/O wrapper was found, while `ivl_alloc.h` only wraps allocation.

## Review Pass 2

RESULT: ok

The refinement addresses the prior finding: `## Git Add Paths` exactly matches both modified files, and `## Issue Connection` now explains both the lexer initialization fix and the Makefile regression. Root build/tests and the missing-input reproduction pass.

Diff

diff --git a/ivlpp/Makefile.in b/ivlpp/Makefile.in
index 2fa327d..4acfbd5 100644
--- a/ivlpp/Makefile.in
+++ b/ivlpp/Makefile.in
@@ -52,6 +52,7 @@ O = main.o lexor.o
 all: ivlpp@EXEEXT@
 
 check: all
+	@./ivlpp@EXEEXT@ ivlpp-missing-input > /dev/null 2>&1; test $$? -eq 1
 
 clean:
 	rm -f *.o lexor.c ivlpp@EXEEXT@
diff --git a/ivlpp/lexor.lex b/ivlpp/lexor.lex
index 9094368..a24e92e 100644
--- a/ivlpp/lexor.lex
+++ b/ivlpp/lexor.lex
@@ -2360,6 +2360,8 @@ void reset_lexor(FILE* out, char* paths[])
     struct include_stack_t* isp;
     struct include_stack_t* tail = 0;
 
+    yyout = out;
+
     isp = malloc(sizeof(struct include_stack_t));
     isp->next = 0;
     isp->path = strdup(paths[0]);
@@ -2383,8 +2385,6 @@ void reset_lexor(FILE* out, char* paths[])
 	}
     }
 
-    yyout = out;
-
     yyrestart(isp->file);
 
     assert(istack == 0);