Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Sep 2004 17:35:46 -0700 (PDT)
From:      Rostislav Krasny <rosti_bsd@yahoo.com>
To:        freebsd-current@freebsd.org
Subject:   snmp.c:231: internal compiler error: Segmentation fault
Message-ID:  <20040907003546.53422.qmail@web14824.mail.yahoo.com>

next in thread | raw e-mail | index | archive | help
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@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040907003546.53422.qmail>