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=0x3febfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,b28,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: math processor on motherboard
npx0: INT 16 interface
pcib0: Host to PCI bridge on motherboard
pci0: PCI bus on pcib0
pcib1: PCI to PCI bridge (vendor=8086 device=2532) at device 1.0 on pci0
pci1: PCI bus on pcib1
pci1: ATI model 5046 graphics accelerator at 0.0 irq 11
pcib2: Intel 82801BA/BAM (ICH2) Hub to PCI bridge at device 30.0 on pci0
pci2: PCI bus on pcib2
pci2: NEC uPD 9210 USB controller at 4.0 irq 15
pci2: NEC uPD 9210 USB controller at 4.1 irq 14
pci2: USB controller at 4.2 irq 4
ahc0: Adaptec 2940A Ultra SCSI adapter 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: Intel Pro 10/100B/100+ Ethernet 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: i82555 10/100 media interface 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: Intel 82801BA/BAM (ICH2) PCI to LPC bridge at device 31.0 on pci0
isa0: ISA bus on isab0
pci0: Unknown PCI ATA controller at 31.1
orm0: Option ROMs at iomem 
0xc-0xcdfff,0xd-0xd07ff,0xd4000-0xd57ff,0xd8000-0xdbfff on isa0
atkbdc0: Keyboard controller (i8042) at port 0x60,0x64 on isa0
atkbd0: AT Keyboard irq 1 on atkbdc0
kbd0 at atkbd0
vga0: Generic ISA VGA at port 0x3c0-0x3df iomem 0xa-0xb on isa0
sc0: System console on isa0
sc0: VGA 8 virtual consoles, flags=0x200
fdc0: NEC 72065B or clone 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: IBM DDYS-T18350N S96H 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 

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