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 (;;)

Submitted by:  None
Submitted on:  Thu 27 Dec 2007 11:37:03 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Invalid
Privacy: PublicAssigned 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>
Project 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

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 31 Dec 2007 02:53:58 PM UTCtaaStatusNone=>Invalid
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1