* [Bug c/52411] BUG gcc 4.6.2 Illegal Instruction (core dumped) asterisk
2012-02-28 8:42 [Bug c/52411] New: BUG gcc 4.6.2 Illegal Instruction (core dumped) asterisk evrinoma at gmail dot com
@ 2012-02-28 9:44 ` redi at gcc dot gnu.org
2012-02-28 13:04 ` rguenth at gcc dot gnu.org
` (10 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: redi at gcc dot gnu.org @ 2012-02-28 9:44 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52411
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-02-28 09:39:21 UTC ---
*** Bug 52410 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/52411] BUG gcc 4.6.2 Illegal Instruction (core dumped) asterisk
2012-02-28 8:42 [Bug c/52411] New: BUG gcc 4.6.2 Illegal Instruction (core dumped) asterisk evrinoma at gmail dot com
2012-02-28 9:44 ` [Bug c/52411] " redi at gcc dot gnu.org
@ 2012-02-28 13:04 ` rguenth at gcc dot gnu.org
2012-02-28 13:35 ` evrinoma at gmail dot com
` (9 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-02-28 13:04 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52411
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2012-02-28
Ever Confirmed|0 |1
--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-02-28 12:57:30 UTC ---
Please look at what the illegal instruction is and make sure your CPU has
all features required by your compile. Also nobody is going to download
tarballs, so you need to provide us with a testcase.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/52411] BUG gcc 4.6.2 Illegal Instruction (core dumped) asterisk
2012-02-28 8:42 [Bug c/52411] New: BUG gcc 4.6.2 Illegal Instruction (core dumped) asterisk evrinoma at gmail dot com
2012-02-28 9:44 ` [Bug c/52411] " redi at gcc dot gnu.org
2012-02-28 13:04 ` rguenth at gcc dot gnu.org
@ 2012-02-28 13:35 ` evrinoma at gmail dot com
2012-02-28 13:45 ` evrinoma at gmail dot com
` (8 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: evrinoma at gmail dot com @ 2012-02-28 13:35 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52411
--- Comment #3 from evrinoma at gmail dot com 2012-02-28 13:07:14 UTC ---
gcc-4.7-20120225/configure
--disable-cloog-version-check --enable-cloog-backend=isl --enable-lto
--mandir=/usr/share/man --infodir=/usr/share/info
--with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared
--enable-threads=posix --enable-checking=release --with-system-zlib
--enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object
--enable-languages=c,c++,objc,obj-c++ --disable-dssi --enable-libgcj-multifile
--without-ppl --without-cloog --with-tune=generic --with-arch_32=i686
--build=x86_64-redhat-linux
posix
gcc 4.7.0 20120225 (experimental) (GCC)
similar problem
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/52411] BUG gcc 4.6.2 Illegal Instruction (core dumped) asterisk
2012-02-28 8:42 [Bug c/52411] New: BUG gcc 4.6.2 Illegal Instruction (core dumped) asterisk evrinoma at gmail dot com
` (2 preceding siblings ...)
2012-02-28 13:35 ` evrinoma at gmail dot com
@ 2012-02-28 13:45 ` evrinoma at gmail dot com
2012-02-28 14:33 ` evrinoma at gmail dot com
` (7 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: evrinoma at gmail dot com @ 2012-02-28 13:45 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52411
--- Comment #4 from evrinoma at gmail dot com 2012-02-28 13:38:29 UTC ---
(gdb) r -vvvc
Starting program:
/home/nikolns/bld/aster/gcc-4.7/asterisk-1.8.9.2/main/asterisk -vvvc
[Thread debugging using libthread_db enabled]
[New Thread 0x7ffff7fd9700 (LWP 15132)]
Program received signal SIGILL, Illegal instruction.
0x000000000053e80f in tzload (name=<value optimized out>, sp=0x82bd40,
doextend=1) at stdtime/localtime.c:657
657 static int tzload(const char *name, struct state * const sp, const int
doextend)
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/52411] BUG gcc 4.6.2 Illegal Instruction (core dumped) asterisk
2012-02-28 8:42 [Bug c/52411] New: BUG gcc 4.6.2 Illegal Instruction (core dumped) asterisk evrinoma at gmail dot com
` (3 preceding siblings ...)
2012-02-28 13:45 ` evrinoma at gmail dot com
@ 2012-02-28 14:33 ` evrinoma at gmail dot com
2012-02-28 14:42 ` rguenth at gcc dot gnu.org
` (6 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: evrinoma at gmail dot com @ 2012-02-28 14:33 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52411
--- Comment #5 from evrinoma at gmail dot com 2012-02-28 13:45:16 UTC ---
cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 4
model name : Intel(R) Celeron(R) CPU 3.06GHz
stepping : 9
cpu MHz : 3066.590
cache size : 256 KB
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat
pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm
constant_tsc up pebs bts pni dtes64 monitor ds_cpl tm2 cid cx16 xtpr lahf_lm
bogomips : 6118.58
clflush size : 64
cache_alignment : 128
address sizes : 36 bits physical, 48 bits virtual
power management:
uname -a
Linux IT0917 2.6.32-220.4.2.el6.x86_64 #1 SMP Tue Feb 14 04:00:16 GMT 2012
x86_64 x86_64 x86_64 GNU/Linux
free
total used free shared buffers cached
Mem: 2044416 1971600 72816 0 60636 1615176
-/+ buffers/cache: 295788 1748628
Swap: 2000052 0 2000052
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/52411] BUG gcc 4.6.2 Illegal Instruction (core dumped) asterisk
2012-02-28 8:42 [Bug c/52411] New: BUG gcc 4.6.2 Illegal Instruction (core dumped) asterisk evrinoma at gmail dot com
` (4 preceding siblings ...)
2012-02-28 14:33 ` evrinoma at gmail dot com
@ 2012-02-28 14:42 ` rguenth at gcc dot gnu.org
2012-02-29 12:58 ` evrinoma at gmail dot com
` (5 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-02-28 14:42 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52411
--- Comment #6 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-02-28 14:41:29 UTC ---
(In reply to comment #4)
> (gdb) r -vvvc
> Starting program:
> /home/nikolns/bld/aster/gcc-4.7/asterisk-1.8.9.2/main/asterisk -vvvc
> [Thread debugging using libthread_db enabled]
> [New Thread 0x7ffff7fd9700 (LWP 15132)]
>
> Program received signal SIGILL, Illegal instruction.
> 0x000000000053e80f in tzload (name=<value optimized out>, sp=0x82bd40,
> doextend=1) at stdtime/localtime.c:657
> 657 static int tzload(const char *name, struct state * const sp, const int
> doextend)
That does not show the instuction. Do
(gdb) disassemble 0x000000000053e800,+32
(assuming the crash is still at 0x000000000053e80f when you re-try)
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/52411] BUG gcc 4.6.2 Illegal Instruction (core dumped) asterisk
2012-02-28 8:42 [Bug c/52411] New: BUG gcc 4.6.2 Illegal Instruction (core dumped) asterisk evrinoma at gmail dot com
` (5 preceding siblings ...)
2012-02-28 14:42 ` rguenth at gcc dot gnu.org
@ 2012-02-29 12:58 ` evrinoma at gmail dot com
2012-02-29 13:20 ` mikpe at it dot uu.se
` (4 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: evrinoma at gmail dot com @ 2012-02-29 12:58 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52411
--- Comment #7 from evrinoma at gmail dot com 2012-02-29 12:53:01 UTC ---
gdb) disassemble 0x000000000053e800,+32
Dump of assembler code from 0x53e800 to 0x53e820:
0x000000000053e800 <tzload+3040>: movdqu -0x40(%rcx),%xmm0
0x000000000053e805 <tzload+3045>: prefetcht0 0x190(%rcx)
0x000000000053e80c <tzload+3052>: mov %rcx,%r10
=> 0x000000000053e80f <tzload+3055>: prefetchw 0x1d0(%rdi)
0x000000000053e816 <tzload+3062>: add $0x4,%esi
0x000000000053e819 <tzload+3065>: movaps %xmm0,(%rdi)
0x000000000053e81c <tzload+3068>: movdqu -0x30(%rcx),%xmm0
End of assembler dump.
(gdb)
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/52411] BUG gcc 4.6.2 Illegal Instruction (core dumped) asterisk
2012-02-28 8:42 [Bug c/52411] New: BUG gcc 4.6.2 Illegal Instruction (core dumped) asterisk evrinoma at gmail dot com
` (6 preceding siblings ...)
2012-02-29 12:58 ` evrinoma at gmail dot com
@ 2012-02-29 13:20 ` mikpe at it dot uu.se
2012-02-29 13:34 ` evrinoma at gmail dot com
` (3 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: mikpe at it dot uu.se @ 2012-02-29 13:20 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52411
--- Comment #8 from Mikael Pettersson <mikpe at it dot uu.se> 2012-02-29 13:18:52 UTC ---
(In reply to comment #7)
> gdb) disassemble 0x000000000053e800,+32
> Dump of assembler code from 0x53e800 to 0x53e820:
> 0x000000000053e800 <tzload+3040>: movdqu -0x40(%rcx),%xmm0
> 0x000000000053e805 <tzload+3045>: prefetcht0 0x190(%rcx)
> 0x000000000053e80c <tzload+3052>: mov %rcx,%r10
> => 0x000000000053e80f <tzload+3055>: prefetchw 0x1d0(%rdi)
> 0x000000000053e816 <tzload+3062>: add $0x4,%esi
> 0x000000000053e819 <tzload+3065>: movaps %xmm0,(%rdi)
> 0x000000000053e81c <tzload+3068>: movdqu -0x30(%rcx),%xmm0
> End of assembler dump.
> (gdb)
prefetchw is an AMD 3dnow! instruction, I'm not surprised it SIGILLs on your
Intel Netburst/P4 based machine.
Please ensure you're not using any compilation flags that imply the presence of
an AMD processor.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/52411] BUG gcc 4.6.2 Illegal Instruction (core dumped) asterisk
2012-02-28 8:42 [Bug c/52411] New: BUG gcc 4.6.2 Illegal Instruction (core dumped) asterisk evrinoma at gmail dot com
` (7 preceding siblings ...)
2012-02-29 13:20 ` mikpe at it dot uu.se
@ 2012-02-29 13:34 ` evrinoma at gmail dot com
2012-02-29 13:38 ` evrinoma at gmail dot com
` (2 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: evrinoma at gmail dot com @ 2012-02-29 13:34 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52411
--- Comment #9 from evrinoma at gmail dot com 2012-02-29 13:33:36 UTC ---
okey
i tried build astrisk on OpenSuse 12.1
with gcc
gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib64/gcc/x86_64-suse-linux/4.6/lto-wrapper
Target: x86_64-suse-linux
Configured with: ../configure --prefix=/usr --infodir=/usr/share/info
--mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64
--enable-languages=c,c++,objc,fortran,obj-c++,java,ada
--enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.6
--enable-ssp --disable-libssp --disable-plugin
--with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux'
--disable-libgcj --disable-libmudflap --with-slibdir=/lib64 --with-system-zlib
--enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch
--enable-version-specific-runtime-libs --program-suffix=-4.6
--enable-linux-futex --without-system-libunwind --with-arch-32=i586
--with-tune=generic --build=x86_64-suse-linux
Thread model: posix
gcc version 4.6.2 (SUSE Linux)
The program successful build and program successful start without any errors
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/52411] BUG gcc 4.6.2 Illegal Instruction (core dumped) asterisk
2012-02-28 8:42 [Bug c/52411] New: BUG gcc 4.6.2 Illegal Instruction (core dumped) asterisk evrinoma at gmail dot com
` (8 preceding siblings ...)
2012-02-29 13:34 ` evrinoma at gmail dot com
@ 2012-02-29 13:38 ` evrinoma at gmail dot com
2012-03-02 11:13 ` evrinoma at gmail dot com
2012-03-02 11:18 ` redi at gcc dot gnu.org
11 siblings, 0 replies; 13+ messages in thread
From: evrinoma at gmail dot com @ 2012-02-29 13:38 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52411
--- Comment #10 from evrinoma at gmail dot com 2012-02-29 13:37:09 UTC ---
(In reply to comment #8)
> (In reply to comment #7)
> > gdb) disassemble 0x000000000053e800,+32
> > Dump of assembler code from 0x53e800 to 0x53e820:
> > 0x000000000053e800 <tzload+3040>: movdqu -0x40(%rcx),%xmm0
> > 0x000000000053e805 <tzload+3045>: prefetcht0 0x190(%rcx)
> > 0x000000000053e80c <tzload+3052>: mov %rcx,%r10
> > => 0x000000000053e80f <tzload+3055>: prefetchw 0x1d0(%rdi)
> > 0x000000000053e816 <tzload+3062>: add $0x4,%esi
> > 0x000000000053e819 <tzload+3065>: movaps %xmm0,(%rdi)
> > 0x000000000053e81c <tzload+3068>: movdqu -0x30(%rcx),%xmm0
> > End of assembler dump.
> > (gdb)
>
> prefetchw is an AMD 3dnow! instruction, I'm not surprised it SIGILLs on your
> Intel Netburst/P4 based machine.
>
> Please ensure you're not using any compilation flags that imply the presence of
> an AMD processor.
i saw this
I begin tracing asterisk code
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/52411] BUG gcc 4.6.2 Illegal Instruction (core dumped) asterisk
2012-02-28 8:42 [Bug c/52411] New: BUG gcc 4.6.2 Illegal Instruction (core dumped) asterisk evrinoma at gmail dot com
` (9 preceding siblings ...)
2012-02-29 13:38 ` evrinoma at gmail dot com
@ 2012-03-02 11:13 ` evrinoma at gmail dot com
2012-03-02 11:18 ` redi at gcc dot gnu.org
11 siblings, 0 replies; 13+ messages in thread
From: evrinoma at gmail dot com @ 2012-03-02 11:13 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52411
--- Comment #11 from evrinoma at gmail dot com 2012-03-02 11:13:22 UTC ---
many thanks for help
the asterisk makefile detecting and using incorrect compilation flags
ifeq ($(OSARCH),linux-gnu)
ifeq ($(PROC),x86_64)
# You must have GCC 3.4 to use k8, otherwise use athlon
# PROC=k8
PROC=nocona
#PROC=athlon
endif
i changed parameter PROC on nocona
The program successful build and program successful start without any errors
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/52411] BUG gcc 4.6.2 Illegal Instruction (core dumped) asterisk
2012-02-28 8:42 [Bug c/52411] New: BUG gcc 4.6.2 Illegal Instruction (core dumped) asterisk evrinoma at gmail dot com
` (10 preceding siblings ...)
2012-03-02 11:13 ` evrinoma at gmail dot com
@ 2012-03-02 11:18 ` redi at gcc dot gnu.org
11 siblings, 0 replies; 13+ messages in thread
From: redi at gcc dot gnu.org @ 2012-03-02 11:18 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52411
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution| |INVALID
--- Comment #12 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-03-02 11:17:59 UTC ---
not a gcc bug then
^ permalink raw reply [flat|nested] 13+ messages in thread