[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#458072: cpp-4.1: segmentation fault in cc1 due to infinite loop in error() when using -ftrapv



merge 458072 405065
thanks

On 2007-12-28 19:01:15 +0100, Martin Michlmayr wrote:
> I can reproduce the problem with 4.1.1-21 from stable but not with
> 4.1.2-18 from testing/unstable.  So I think this has been fixed
> upstream (it might be PR30286 but I'm not sure).

I simplified the code and could reproduce the bug with:

void test (void)
{
  int i;
  for(i = 2; i >= 0; i--)
    {
      volatile int j = 0;
    }
}

with "gcc -O2 -ftrapv". This is Debian bug 405065, which I reported
almost a year ago (but that was long enough that I didn't remember
it), and PR29534. This is annoying that this bug hadn't been fixed
for etch.

-- 
Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)



Reply to: