Re: gcc 2.95.4 seems to be buggy in FreeBSD 4.7-RELEASE!

2002-10-15 Thread Alexander Kabaev

Could you please send me a test case demonstrating the problem? It is
hard to tell what is going wrong without seeing the actual code.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



gcc 2.95.4 seems to be buggy in FreeBSD 4.7-RELEASE!

2002-10-15 Thread Hartmann, O.

Dear Sirs.

While under FreeBSD 4.6.2-pl2 Portland's PGI compiler 4.0 had no
problems compiling several numerical simulations, under FreeBSD 4.7-R
a simpel 'Abort trap' occurs!
The first suspect was the Linuxulator on a P4 machine with FreeBSD 4.7-R,
but logging into a PIII SMP machine showed up no problems. Compiling
there (also FBSD 4.7) and running the program showed no problem!

Then, after a few runs, also those systems on which the small Fortran
program seems to run showed up the same error, out of the blue!

Then I tried to compile the same small programm with the native FBSD 4.7
compiler! And I got the same problem!

Abort trap

This problem is not reproduceable. After a while I can compile it again,
and then not.

Doing a ktrace gives no glue, also truss, which gives:

truss dopptag
process exited before exec'ing

dopptag is a standard f77 program which runs well under Linux SuSE 8.1
and, if it compiles, runs well under FreeBSD.
but this early Abort trap seems to show up a serious error.
Borth, pgf90, pgf77 AND FreeBSD native f77 produces this error!

Please aske me for the Fortran code if you need the code to validate
this behaviour.

this is dmesg output of the failing system (but it fails also on all
othe machines, which have FreeBSD 4.7-RELEASE!):


Copyright (c) 1992-2002 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 4.7-RELEASE #3: Tue Oct 15 17:22:41 CEST 2002
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/MAIL
Timecounter "i8254"  frequency 1193182 Hz
Timecounter "TSC"  frequency 2271852280 Hz
CPU: Pentium 4 (2271.85-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0xf24  Stepping = 4
  
Features=0x3febfbff,ACC>
real memory  = 1073659904 (1048496K bytes)
avail memory = 1041158144 (1016756K bytes)
Preloaded elf kernel "kernel" at 0xc03ba000.
ccd0-3: Concatenated disk drivers
netsmb_dev: loaded
Pentium Pro MTRR support enabled
Using $PIR table, 9 entries at 0xc00f1be0
npx0:  on motherboard
npx0: INT 16 interface
pcib0:  on motherboard
pci0:  on pcib0
pcib1:  at device 1.0 on pci0
pci1:  on pcib1
pci1:  at 0.0 irq 11
pcib2:  at device 30.0 on pci0
pci2:  on pcib2
pci2:  at 4.0 irq 15
pci2:  at 4.1 irq 14
pci2:  at 4.2 irq 4
ahc0:  port 0xb800-0xb8ff mem 0xf500-0xf5000fff 
irq 15 at device 9.0 on pci2
aic7860: Ultra Single Channel A, SCSI Id=7, 3/253 SCBs
fxp0:  port 0xb400-0xb43f mem 
0xf400-0xf40f,0xf480-0xf4800fff irq 14 at device 10.0 on pci2
fxp0: Ethernet address 00:d0:b7:4c:2e:9c
inphy0:  on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
sym0: <1010-33> port 0xb000-0xb0ff mem 0xf300-0xf3001fff,0xf380-0xf38003ff irq 
4 at device 11.0 on pci2
sym0: Symbios NVRAM, ID 7, Fast-80, LVD, parity checking
sym0: open drain IRQ line driver, using on-chip SRAM
sym0: using LOAD/STORE-based firmware.
sym0: handling phase mismatch from SCRIPTS.
sym0: SCAN FOR LUNS disabled for targets 0 1 2 3 4 5 6 8 9 10 11 12 13 14 15.
sym1: <1010-33> port 0xa800-0xa8ff mem 0xf200-0xf2001fff,0xf280-0xf28003ff irq 
10 at device 11.1 on pci2
sym1: Symbios NVRAM, ID 7, Fast-80, SE, parity checking
sym1: open drain IRQ line driver, using on-chip SRAM
sym1: using LOAD/STORE-based firmware.
sym1: handling phase mismatch from SCRIPTS.
isab0:  at device 31.0 on pci0
isa0:  on isab0
pci0:  at 31.1
orm0:  at iomem 
0xc-0xcdfff,0xd-0xd07ff,0xd4000-0xd57ff,0xd8000-0xdbfff on isa0
atkbdc0:  at port 0x60,0x64 on isa0
atkbd0:  irq 1 on atkbdc0
kbd0 at atkbd0
vga0:  at port 0x3c0-0x3df iomem 0xa-0xb on isa0
sc0:  on isa0
sc0: VGA <8 virtual consoles, flags=0x200>
fdc0:  at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
DUMMYNET initialized (011031)
ipfw2 initialized, divert enabled, rule-based forwarding enabled, default to deny, 
logging unlimited
IPsec: Initialized Security Association Processing.
Waiting 3 seconds for SCSI devices to settle
(noperiph:sym0:0:-1:-1): SCSI BUS reset delivered.
Mounting root from ufs:/dev/da0s1a
da0 at sym0 bus 0 target 0 lun 0
da0:  Fixed Direct Access SCSI-3 device
da0: 160.000MB/s transfers (80.000MHz, offset 62, 16bit), Tagged Queueing Enabled
da0: 17501MB (35843670 512 byte sectors: 255H 63S/T 2231C)
da1 at sym0 bus 0 target 1 lun 0
da1:  Fixed Direct Access SCSI-3 device
da1: 160.000MB/s transfers (80.000MHz, offset 62, 16bit), Tagged Queueing Enabled
da1: 17501MB (35843670 512 byte sectors: 255H 63S/T 2231C)
cd0 at ahc0 bus 0 target 4 lun 0
cd0:  Removable CD-ROM SCSI-2 device
cd0: 20.000MB/s transfers (20.000MHz, offset 15)
cd0: Attempt to query device size failed: NOT READY, Medium not present
fxp0: Microcode loaded, int_delay: 1000 usec  bundle_max: 6
fxp0: Microcode loaded, int_delay: 1000 usec  bundle_max: 6
link_elf: symbol splash_register undefined
fxp0: promiscuous mode enabled
fxp0: Microcode loaded, int_