Bug 163019 - many preprocessor lines leads to error_char(): Error buffer overflow
many preprocessor lines leads to error_char(): Error buffer overflow
Status: CLOSED DUPLICATE of bug 162969
Product: Fedora
Classification: Fedora
Component: gcc (Show other bugs)
rawhide
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-07-12 06:39 EDT by Patrice Dumas
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-07-12 06:42:28 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
test case (1.38 KB, text/plain)
2005-07-12 06:41 EDT, Patrice Dumas
no flags Details

  None (edit)
Description Patrice Dumas 2005-07-12 06:39:18 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.7.8) Gecko/20050623 Fedora/1.0.4-5 Firefox/1.0.4

Description of problem:
A simple program leads to  
 Internal Error at (1):
 error_char(): Error buffer overflow
however the program itself doesn't seems to be the culprit, but rather the preprocessor lines as when I remove a preprocessor line the compilation proceed, and there are many warnings that seems to be related with preprocessing.

Here is the code:
      SUBROUTINE SZREAD()
      integer luncz
      luncz = 0
      IF(LUNCZ.NE.0) WRITE(*,*) 'hello'
      END

I attach the file which also has the preprocessor lines

The whole output reads:

[dumas@chapelle bug_reports]$ gfortran -c szread.F -o truc.o
line-map.c: file "/home/dumas/rpmbuild/BUILD/cernlib-2005/2005/src/packlib/cspack/sz/szread.F" left but not entered
line-map.c: file "/home/dumas/rpmbuild/BUILD/cernlib-2005/2005/src/packlib/cspack/sz/szread.F" left but not entered
Warning: /home/dumas/rpmbuild/BUILD/cernlib-2005/2005/src/packlib/cspack/cspack/zmachfix.inc:3: file /home/dumas/rpmbuild/BUILD/cernlib-2005/2005/src/packlib/cspack/cspack/zmach.inc left but not entered
Warning: /home/dumas/rpmbuild/BUILD/cernlib-2005/2005/src/packlib/cspack/cspack/zmachfix.inc:4: file /home/dumas/rpmbuild/BUILD/cernlib-2005/2005/src/packlib/cspack/cspack/pilot.h left but not entered
Warning: /home/dumas/rpmbuild/BUILD/cernlib-2005/2005/src/packlib/cspack/cspack/hcmail.inc:3: file /home/dumas/rpmbuild/BUILD/cernlib-2005/2005/src/packlib/cspack/cspack/czsock.inc left but not entered
Warning: /home/dumas/rpmbuild/BUILD/cernlib-2005/2005/src/packlib/cspack/cspack/czoptd.inc:4: file /home/dumas/rpmbuild/BUILD/cernlib-2005/2005/src/packlib/cspack/cspack/czopts.inc left but not entered
Warning: /home/dumas/rpmbuild/BUILD/cernlib-2005/2005/src/packlib/cspack/cspack/czoptu.inc:8: file /home/dumas/rpmbuild/BUILD/cernlib-2005/2005/src/packlib/cspack/cspack/czopts.inc left but not entered
 In file /home/dumas/rpmbuild/BUILD/cernlib-2005/2005/src/packlib/cspack/cspack/czoptu.inc:5

     Included at /home/dumas/rpmbuild/BUILD/cernlib-2005/2005/src/packlib/cspack/cspack/czoptd.inc:6

     Included at /home/dumas/rpmbuild/BUILD/cernlib-2005/2005/src/packlib/cspack/cspack/czopts.inc:4

     Included at /home/dumas/rpmbuild/BUILD/cernlib-2005/2005/src/packlib/cspack/cspack/hcmail.inc:5

     Included at /home/dumas/rpmbuild/BUILD/cernlib-2005/2005/src/packlib/cspack/cspack/czsock.inc:2

     Included at /home/dumas/rpmbuild/BUILD/cernlib-2005/2005/src/packlib/cspack/cspack/zmachfix.inc:6

     Included at /home/dumas/rpmbuild/BUILD/cernlib-2005/2005/src/packlib/cspack/cspack/zmach.inc:2

     Included at /home/dumas/rpmbuild/BUILD/cernlib-2005/2005/src/packlib/cspack/cspack/pilot.h:3

     Included at /home/dumas/rpmbuild/BUILD/cernlib-2005/2005/src/packlib/cspack/sz/szread.F:3

      IF(LUNCZ.NE.0) WRITE(*,*) 'hello'
             1
 Internal Error at (1):
 error_char(): Error buffer overflow
[dumas@chapelle bug_reports]$


Version-Release number of selected component (if applicable):
gcc-gfortran-4.0.1-2

How reproducible:
Always

Steps to Reproduce:
1.compile the attached file
2.
3.
  

Actual Results:  an error

Expected Results:  a compilation

Additional info:

I think that this was introduced with the latest gfortran version.
Comment 1 Patrice Dumas 2005-07-12 06:41:13 EDT
Created attachment 116643 [details]
test case
Comment 2 Jakub Jelinek 2005-07-12 06:42:28 EDT

*** This bug has been marked as a duplicate of 162969 ***

Note You need to log in before you can comment on or make changes to this bug.