#22 -d output file flag doesn't work

closed-fixed
None
5
2011-11-03
2011-11-01
No

Using the -d output file flag (which defines #line directives in output files referring back to the web file) crashes nuweb with a bus error. The problem is in the function write_scrap, in which a scrap's parameters are accessed before it is initialized. This can be fixed by moving the scrap reference @<Insert debugging information if required@> (on line 4643) to two lines later, after reader.scrap and reader.index are initialized.

Discussion

  • Simon Wright

    Simon Wright - 2011-11-03
    • assigned_to: nobody --> simonjwright
     
  • Brendan Lane

    Brendan Lane - 2011-11-03

    I notice now that this is the same as bug 2305145 from 2008, which is reported "fixed". Unfortunately, the bug is still present in the latest version (v1.56).

     
  • Simon Wright

    Simon Wright - 2011-11-03

    Fixed in Release 1.57.

     
  • Simon Wright

    Simon Wright - 2011-11-03
    • status: open --> closed-fixed
     
  • Simon Wright

    Simon Wright - 2011-11-03

    Brendan, 2305145 didn't fix this because the reporter supplied a patch and I assumed that the patch contained everything. Sorry.