snmp.c:231: internal compiler error: Segmentation fault

From: Rostislav Krasny <rosti_bsd_at_yahoo.com>
Date: Mon, 6 Sep 2004 17:35:46 -0700 (PDT)
Hello all. Please consider following ICE that may happen during 'make
buildworld':

cc -O -pipe 
-I/usr/src/lib/libbsnmp/libbsnmp/../../../contrib/bsnmp/lib
-DHAVE_ERR_H -DHAVE_GETADDRINFO -DHAVE_STRLCPY -Wsystem-headers -Wall
-Wno-format-y2k -W -Wstrict-prototypes -Wmissing-prototypes
-Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch
-Wshadow -Wcast-align -Wchar-subscripts -Winline -Wnested-externs
-Wredundant-decls -c
/usr/src/lib/libbsnmp/libbsnmp/../../../contrib/bsnmp/lib/snmp.c
/usr/src/lib/libbsnmp/libbsnmp/../../../contrib/bsnmp/lib/snmp.c: In
function `snmp_parse_pdus_hdr':
/usr/src/lib/libbsnmp/libbsnmp/../../../contrib/bsnmp/lib/snmp.c:231:
internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
*** Error code 1

Stop in /usr/src/lib/libbsnmp/libbsnmp.
*** Error code 1

Stop in /usr/src/lib/libbsnmp.
*** Error code 1

Stop in /usr/src/lib.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.


This is a fresh FreeBSD 5.3-BETA3 installed through FTP from
ftp.freebsd.org:
> uname -a
FreeBSD localhost 5.3-BETA3 FreeBSD 5.3-BETA3 #0: Sat Sep  4 12:07:48
UTC 2004     root_at_harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC 
i386

The hardware is Pentium MMX 200MHz CPU, Intel 430TX chipset and 128Mb
of RAM.

> grep snmp.c,v snmp.c
 * $Begemot: bsnmp/lib/snmp.c,v 1.38 2004/08/06 08:46:53 brandt Exp $

I tried reproducing that ICE manually. I made a new empty directory,
copied the snmp.c file there and made following script:
> cat run.sh
#!/bin/sh
cc -O -pipe 
-I/usr/src/lib/libbsnmp/libbsnmp/../../../contrib/bsnmp/lib
-DHAVE_ERR_H -DHAVE_GETADDRINFO -DHAVE_STRLCPY -Wsystem-headers -Wall
-Wno-format-y2k -W -Wstrict-prototypes -Wmissing-prototypes
-Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch
-Wshadow -Wcast-align -Wchar-subscripts -Winline -Wnested-externs
-Wredundant-decls -c snmp.c

Running this script many times may reproduce the ICE in about 30-50% of
runnings. For example:

> ./run.sh
> ./run.sh
snmp.c: In function `snmp_parse_pdus_hdr':
snmp.c:231: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
> ./run.sh
> ./run.sh
> rm *.o
> ./run.sh
> ./run.sh
> ./run.sh
snmp.c: In function `snmp_parse_pdus_hdr':
snmp.c:231: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
> ./run.sh
snmp.c: In function `snmp_parse_pdus_hdr':
snmp.c:231: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
> ./run.sh
> ./run.sh
> ./run.sh
snmp.c: In function `snmp_parse_pdus_hdr':
snmp.c:231: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

Anytime the ICE is happening it is always in the 231's line of snmp.c
There is no core dump file after the ICE.


		
_______________________________
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush
Received on Mon Sep 06 2004 - 22:35:46 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:10 UTC