Not present in Solaris also:

bash-2.03# /usr/local/bin/gcc --version
gcc (GCC) 3.2.2
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
 
bash-2.03# uname -a
SunOS Host1 5.8 Generic_108528-18 sun4u sparc SUNW,Sun-Blade-100
bash-2.03# more a.c
int main(void)
 {
 printf("%c","msux"[0xcafebabe]);
 }
 
bash-2.03# /usr/local/bin/gcc -c a.c


On Thu, 2004-01-08 at 18:52, Luke Norman wrote:
> Dan Wilder wrote:
> 
> >You don't need the printf.
> >
> >$ gcc --version
> >2.95.4
> >$ cat gcc-crash.c
> >int main(void)
> >{
> >char a = "msux"[0xcafebabe];
> >}
> >$ gcc gcc-crash.c
> >gcc: Internal compiler error: program cc1 got fatal signal 11
> >
> >  
> >
> $ gcc --version
> gcc (GCC) 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r3, propolice)
> Copyright (C) 2002 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> 
> $ cat gcc-crash.c
> int main(void)
> {
> printf("%c","msux"[0xcafebabe]);
> }
> $ gcc gcc-crash.c
> $ ./a.out
> Segmentation fault
> 
> 
> _______________________________________________
> Full-Disclosure - We believe in it.
> Charter: http://lists.netsys.com/full-disclosure-charter.html
-- 
Noldata TAC <[EMAIL PROTECTED]>
Noldata Ltd.

_______________________________________________
Full-Disclosure - We believe in it.
Charter: http://lists.netsys.com/full-disclosure-charter.html

Reply via email to