buggrep - Bugs: bug #21898, bc 1.06: Segmentation fault when...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #21898: bc 1.06: Segmentation fault when using for (;;)

Submitter:  None
Submitted:  Thu 27 Dec 2007 11:37:03 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Invalid
Privacy:  Public Assigned to:  None
Open/Closed:  Closed

Fri 22 Mar 2013 02:00:48 PM UTC, comment #2: 

I was looking for the patch to bc-1.06 that fixed the math library segmentation fault. Found it a couple of days back on linuxfromscratch.org, I think, don't find it now. But I'm betting this was the same issue:

bc/load.c, line 159

  program_counter save_adr;

should be

  static program_counter save_adr;

Joel Rees <reiisi>
Mon 31 Dec 2007 02:53:58 PM UTC, comment #1: 

This is a grep bug tracking site. Please report bc bugs by email to bug-bc [AT] gnu [DOT] org.

Tony Abou-Assaleh <taa>
Group administrator
Thu 27 Dec 2007 11:37:03 AM UTC, original submission:  

Regarding bc 1.06,
the use of the for (;;) syntax (for loops with a condition in the middle) is the apparent cause of a segmentation fault.

Here is a 'minimal' test program:

n=1
for (;;) {
  if (n>3) break
  n++
}

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by reiisi (Posted a comment)
  • -email is unavailable- added by taa (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2007-12-31 taa StatusNone Invalid
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code