🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #309

gcc bug appearing in diff-1.15

#309
From: Rush Record 713-864-1574
Date: Tue, 28 Jul 1992 02:04
395 lines
9943 bytes
I am on a sparc II running SunOS 4.1.1. This bug appears when I
build gnu diff-1.15 specifying the -O2 flag to gcc (version 2.2.2,
compiled by itself).

If I build diff specifying -O, I can compare the two files included
below (saying diff file1 file2) and diff completes successfully;
if I use -O2 when building diff, I get a segmentation fault in
routine 'diag' (saith gdb).

If I remove one line at the end of each file (make them both one
line shorter) the -O2 diff completes successfully.

The files are delimited by %%% strings; these are not part of the
files. (Sorry about their size; I couldn't make them any smaller and
still have it break.)

%%%
~
ANALYZE_ADD
0001
16 30
Graph Creation Menu
Image:@t               ^15

   Graph type:@Highlight    ^ 1
       Format:@Histogram   ^ 2
       Axis 1:@Area        ^ 3
       Axis 2:@Length      ^ 4
    Divisions:I64  ^ 6
   Cumulative?TNo ^ 7
 X-axis units:Umm  ^13
       Y-axis:@Area      ^ 8
 Y-axis logarithmic?TYes^ 9
    Graph width(cm):R15.00^14
   Graph background:CWhite  ^16

:*     CREATE THE GRAPH     ^12

~
ANALYZE_ANALYZE
0001
9 29
Analyze Image
Image:@t               ^ 5

    Basic Calculations?TYes^ 1
 Perimeters/Tortuosity?TYes^ 2
             Roughness?TNo ^ 3
    Neighbor Distances?TNo ^ 6

:*    ANALYZE THE IMAGE    ^ 4

~
ANALYZE_EIGENVECTORS
0001
7 45
Eigenvector File Menu

 Eigenvector file:Ftest                 eig^ 1

:*          SAVE EIGENVECTOR FILE          ^ 2

:*         RECALL EIGENVECTOR FILE         ^ 3

~
ANALYZE_GETIMAGE
0001
9 42
Get Image for Analysis

   Bitmap file:Ftest                   o^ 1
   Vector file:Ftest                   v^ 2    Image type:I0^ 6

           Columns:I1024      ^ 3
              Rows:I1024      ^ 4

:*              READ IMAGE              ^ 5

~
ANALYZE_MODIFY
0001
16 36
Object Highlighting Menu
Image:@t               ^ 9
          Total objects:I49    ^ 8
           % image area:R10.13^ 4
     % constrained area:R10.13^ 5
         Parameter:@Area        ^14
             Units:Umm  ^15
:*     CALCULATE MEAN AND S.D.    ^13
 Mean:R0.0000000^11S.D.:R0.0000000^12
       Highlight color:CRed    ^ 1
      Background color:CWhite  ^18
       Display objects?TYes^16
     Display width(cm):R15.00^10
   Exteriors?TYes^ 2Interiors?TYes^ 3
:*      CLEAR ALL HIGHLIGHTS      ^ 6
:*     REMOVE/RESTORE OBJECTS     ^ 7
:*        REMOVE POLYGONS         ^17
~
ANALYZE_PARAMS
0001
18 73
Object Measurement Display Menu
                          Image:@w5a-6000        ^ 1
                          Measurement units:Umm  ^ 2

                Area:R45.846779   ^ 3 Horizontal position:R7.184719    ^14
              Length:R9.178725    ^ 4   Vertical position:R4.418358    ^15
              Throat:R3.520149    ^ 5   Neighbor distance:R0.000000    ^17
          Elongation:R2.607482    ^ 6    Shape harmonic 2:R0.549906    ^18
         Orientation:R51.101700   ^ 7    Shape harmonic 3:R0.982734    ^19
           Perimeter:R96.515007   ^ 8    Shape harmonic 4:R1.072640    ^20
          Tortuosity:R4.021013    ^ 9    Shape harmonic 5:R1.409345    ^21
           Roughness:R73.657532   ^10    Shape harmonic 6:R1.847580    ^22
               Holes:R1257.000000 ^11    Shape harmonic 7:R2.137636    ^23
              Radius:R8.434576    ^12    Shape harmonic 8:R2.555860    ^24
    Secondary radius:R8.434576    ^13    Shape harmonic 9:R2.762073    ^25
        Pseudoradius:R3.820142    ^16   Shape harmonic 10:R2.641450    ^26
                                     
:                                 EXIT                                 ^27

~
ANALYZE_PCA
0001
5 30
Principal Components Menu
Image:@t               ^ 1

:*          Do PCA          ^ 3
     Standardize?TYes^ 2

~
ANALYZE_SAVE_BITMAP
0001
10 40
Save Bitmap Menu
Image:@t               ^ 4

 Bitmap file:Ftest                   o^ 1

:*         CREATE BITMAP FILE         ^ 2
             Exteriors?TYes^ 6
             Interiors?TYes^ 5

         Run-length encode?TYes^ 3

~
ANALYZE_SAVE_CENTER
0001
11 48
Centerline Conversion Menu

 Original image file:Ftest                   o^ 4

     Centerline file:Ftest                   v^ 1

            Vectorization error:R2.000^ 3

         Maximum segment length:R50.00^ 5

:*          CREATE CENTERLINE IMAGE           ^ 2

~
ANALYZE_SAVE_GRAPH
0001
6 39
Save Graph Menu
Image:@t               ^ 4

 Graph file:Ftest                   x^ 1

:*             SAVE GRAPH            ^ 2

~
ANALYZE_SAVE_RECALL
0001
7 42
Save & Recall Analysis Menu

 Analysis file:Ftest                 ana^ 1

:*          SAVE ANALYSIS FILE          ^ 2

:*         RECALL ANALYSIS FILE         ^ 3

~
ANALYZE_SAVE_SEED
0001
8 40
Save Seed Bitmap Menu
Image:@t               ^ 4

 Bitmap file:Ftest                   o^ 1

:*       CREATE SEED BITMAP FILE      ^ 2

         Run-length encode?TYes^ 3

~
ANALYZE_SAVE_VECTORS
0001
9 41
Vectorization Menu
Image:@t               ^ 4
%%%
~
ANALYZE_ADD
0000
16 30
Graph Creation Menu
Image:@lines           ^15

   Graph type:@Highlight    ^ 1
       Format:@Scatter Plot^ 2
       Axis 1:@Elongation  ^ 3
       Axis 2:@Roughness   ^ 4
    Divisions:I64  ^ 6
   Cumulative?TNo ^ 7
 X-axis units:Umm  ^13
       Y-axis:@Area      ^ 8
 Y-axis logarithmic?TYes^ 9
    Graph width(cm):R15.00^14
   Graph background:CWhite  ^16

:*     CREATE THE GRAPH     ^12

~
ANALYZE_ANALYZE
0000
9 29
Analyze Image
Image:@lines           ^ 5

    Basic Calculations?TYes^ 1
 Perimeters/Tortuosity?TYes^ 2
             Roughness?TYes^ 3
    Neighbor Distances?TNo ^ 6

:*    ANALYZE THE IMAGE    ^ 4

~
ANALYZE_EIGENVECTORS
0000
7 45
Eigenvector File Menu

 Eigenvector file:Ftest                 eig^ 1

:*          SAVE EIGENVECTOR FILE          ^ 2

:*         RECALL EIGENVECTOR FILE         ^ 3

~
ANALYZE_GETIMAGE
0000
9 42
Get Image for Analysis

   Bitmap file:Flines                  o^ 1
   Vector file:Ftest                   v^ 2    Image type:I0^ 6

           Columns:I1967      ^ 3
              Rows:I2372      ^ 4

:*              READ IMAGE              ^ 5

~
ANALYZE_MODIFY
0000
16 36
Object Highlighting Menu
Image:@lines           ^ 9
          Total objects:I0     ^ 8
           % image area:R0.000^ 4
     % constrained area:R0.000^ 5
         Parameter:@Area        ^14
             Units:Umm  ^15
:*     CALCULATE MEAN AND S.D.    ^13
 Mean:R0.000000 ^11S.D.:R0.000000 ^12
       Highlight color:CRed    ^ 1
      Background color:CWhite  ^18
       Display objects?TYes^16
     Display width(cm):R15.00^10
   Exteriors?TYes^ 2Interiors?TYes^ 3
:*      CLEAR ALL HIGHLIGHTS      ^ 6
:*     REMOVE/RESTORE OBJECTS     ^ 7
:*        REMOVE POLYGONS         ^17
~
ANALYZE_PARAMS
0000
18 73
Object Measurement Display Menu
                          Image:@lines           ^ 1
                          Measurement units:Uum  ^ 2

                Area:R1.225000    ^ 3 Horizontal position:R21.275000   ^14
              Length:R1.563059    ^ 4   Vertical position:R17.950001   ^15
              Throat:R0.975329    ^ 5   Neighbor distance:R0.000000    ^17
          Elongation:R1.602597    ^ 6    Shape harmonic 2:R1.210174    ^18
         Orientation:R44.341457   ^ 7    Shape harmonic 3:R1.338371    ^19
           Perimeter:R4.851147    ^ 8    Shape harmonic 4:R1.596230    ^20
          Tortuosity:R1.236435    ^ 9    Shape harmonic 5:R1.598812    ^21
           Roughness:R41.049175   ^10    Shape harmonic 6:R1.823546    ^22
               Holes:R0.000000    ^11    Shape harmonic 7:R2.014676    ^23
              Radius:R27.835735   ^12    Shape harmonic 8:R2.244080    ^24
    Secondary radius:R27.835735   ^13    Shape harmonic 9:R2.377094    ^25
        Pseudoradius:R0.624443    ^16   Shape harmonic 10:R2.340664    ^26
                                     
:                                 EXIT                                 ^27

~
ANALYZE_PCA
0000
5 30
Principal Components Menu
Image:@shellmed        ^ 1

:*          Do PCA          ^ 3
     Standardize?TYes^ 2

~
ANALYZE_SAVE_BITMAP
0000
10 40
Save Bitmap Menu
Image:@t               ^ 4

 Bitmap file:Ftest                   o^ 1

:*         CREATE BITMAP FILE         ^ 2
             Exteriors?TYes^ 6
             Interiors?TYes^ 5

         Run-length encode?TYes^ 3

~
ANALYZE_SAVE_CENTER
0000
11 48
Centerline Conversion Menu

 Original image file:Ftest                   o^ 4

     Centerline file:Ftest                   v^ 1

            Vectorization error:R2.000^ 3

         Maximum segment length:R50.00^ 5

:*          CREATE CENTERLINE IMAGE           ^ 2

~
ANALYZE_SAVE_GRAPH
0000
6 39
Save Graph Menu
Image:@lines           ^ 4

 Graph file:Ftest                   x^ 1

:*             SAVE GRAPH            ^ 2

~
ANALYZE_SAVE_RECALL
0000
7 42
Save & Recall Analysis Menu

 Analysis file:Ftest                 ana^ 1

:*          SAVE ANALYSIS FILE          ^ 2

:*         RECALL ANALYSIS FILE         ^ 3

~
ANALYZE_SAVE_SEED
0000
8 40
Save Seed Bitmap Menu
Image:@t               ^ 4

 Bitmap file:Ftest                   o^ 1

:*       CREATE SEED BITMAP FILE      ^ 2

         Run-length encode?TYes^ 3

~
ANALYZE_SAVE_VECTORS
0000
9 41
Vectorization Menu
Image:@test            ^ 4
%%%
Technical Details
Message-ID: <0095e380.f1584260.921@clio.rice.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!clio.rice.edu!rhr

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!clio.rice.edu!rhr
From: rhr@clio.rice.edu (Rush Record 713-864-1574)
Subject: gcc bug appearing in diff-1.15
Message-ID: <0095e380.f1584260.921@clio.rice.edu>
Sender: gnulists@ai.mit.edu
Organization: Gnus Not Usenet
Distribution: gnu
Date: Tue, 28 Jul 1992 02:04:06 GMT
Approved: bug-gcc@prep.ai.mit.edu
Lines: 396