* Core dump on hello world.
@ 2009-09-14 4:44 Jerry DeLisle
2009-09-14 6:23 ` R: " Marco Atzeri
2009-09-14 8:30 ` Dave Korn
0 siblings, 2 replies; 6+ messages in thread
From: Jerry DeLisle @ 2009-09-14 4:44 UTC (permalink / raw)
To: cygwin
I first noticed this when trying to build and run gfortran 4.5 for my
development work on cygwin 1.7. This is on WinNT running in VirtualBox.
With 4.5, I get no output at all. With gfortran distributed with Cygwin
I get the following. Am I configured wrong?
Regards,
Jerry
$ cat hello.f90
program hello
print *, "Hello World!"
end program hello
$ gfortran-4.exe hello.f90
$ ./a.exe
Illegal instruction (core dumped)
gdb says:
(gdb) r
Starting program: /home/jerry/prs/test/a.exe
[New thread 162.0xa9]
[New thread 162.0x8e]
Program received signal SIGILL, Illegal instruction.
set_fpu () at ./fpu-target.h:80
80 ./fpu-target.h: No such file or directory.
in ./fpu-target.h
(gdb) bt
#0 set_fpu () at ./fpu-target.h:80
#1 0x004057ff in init ()
at
/gnu/gcc/package/gcc4-4.3.2-2/src/gcc-4.3.2/libgfortran/runtime/main.c:15
5
#2 0x61004eb9 in __main () from /usr/bin/cygwin1.dll
#3 0x004011a3 in main (argc=Cannot access memory at address 0x9
)
at /gnu/gcc/package/gcc4-4.3.2-2/src/gcc-4.3.2/libgfortran/fmain.c:11
(gdb)
and cygcheck -c :
Cygwin Package Information
Package Version Status
_update-info-dir 00829-1 OK
alternatives 1.3.30c-10 OK
autoconf 7-10 OK
autoconf2.1 2.13-10 OK
autoconf2.5 2.64-10 OK
automake 4-10 OK
automake1.10 1.10.2-10 OK
automake1.11 1.11-10 OK
automake1.4 1.4p6-10 OK
automake1.5 1.5-10 OK
automake1.6 1.6.3-11 OK
automake1.7 1.7.9-10 OK
automake1.8 1.8.5-10 OK
automake1.9 1.9.6-10 OK
base-cygwin 2.0-1 OK
base-files 3.8-4 OK
base-passwd 3.1-1 OK
bash 3.2.49-23 OK
binutils 2.19.51-1 OK
bison 2.3-1 OK
bzip2 1.0.5-10 OK
coreutils 7.0-2 OK
crypt 1.1-1 OK
csih 0.9.1-1 OK
cygrunsrv 1.34-1 OK
cygutils 1.4.0-1 OK
cygwin 1.7.0-61 OK
cygwin-doc 1.5-1 Incomplete
dash 0.5.5.1-2 OK
dejagnu 20021217-2 OK
diffutils 2.8.7-1 OK
editrights 1.01-2 OK
expat 2.0.1-1 OK
expect 20030128-1 OK
findutils 4.5.4-1 OK
flex 2.5.35-1 OK
gawk 3.1.7-1 OK
gcc-core 3.4.4-999 OK
gcc-g++ 3.4.4-999 OK
gcc-g77 3.4.4-999 OK
gcc-mingw-core 20050522-1 OK
gcc-mingw-g++ 20050522-1 OK
gcc-mingw-g77 20050522-1 OK
gcc-tools-autoconf 2.59-10 OK
gcc-tools-automake 1.9.6-10 OK
gcc4 4.3.2-2 OK
gcc4-core 4.3.2-2 OK
gcc4-fortran 4.3.2-2 OK
gcc4-g++ 4.3.2-2 OK
gdb 6.8-2 OK
gettext 0.17-11 OK
gettext-devel 0.17-11 OK
gmp 4.3.1-3 OK
grep 2.5.3-1 OK
groff 1.19.2-2 OK
gzip 1.3.12-2 OK
ipc-utils 1.0-1 OK
less 429-1 OK
libapr1 1.3.8-2 OK
libaprutil1 1.3.9-2 OK
libbz2_1 1.0.5-10 OK
libdb4.2 4.2.52.5-2 OK
libdb4.5 4.5.20.2-2 OK
libexpat1 2.0.1-1 OK
libexpat1-devel 2.0.1-1 OK
libffi4 4.3.2-2 OK
libgcc1 4.3.2-2 OK
libgdbm4 1.8.3-20 OK
libgettextpo0 0.17-11 OK
libgfortran3 4.3.2-2 OK
libgmp-devel 4.3.1-3 OK
libgmp3 4.3.1-3 OK
libgmpxx4 4.3.1-3 OK
libgomp1 4.3.2-2 OK
libiconv2 1.13-10 OK
libintl2 0.12.1-3 OK
libintl3 0.14.5-1 OK
libintl8 0.17-11 OK
liblzma1 4.999.9beta-10 OK
libmpc-devel 0.6-1 OK
libmpc1 0.6-1 OK
libmpfr-devel 2.4.1-4 OK
libmpfr1 2.4.1-4 OK
libncurses8 5.5-10 OK
libncurses9 5.7-14 OK
libneon27 0.28.3-1 OK
libopenldap2_3_0 2.3.43-1 OK
libpcre0 7.9-1 OK
libpopt0 1.6.4-4 OK
libpq5 8.2.11-1 OK
libreadline6 5.2.14-12 OK
libreadline7 6.0.3-2 OK
libsasl2 2.1.19-3 OK
libserf0_0 0.3.0-2 OK
libsigsegv0 2.6-1 OK
libsqlite3_0 3.6.2-1 OK
libssp0 4.3.2-2 OK
libstdc++6 4.3.2-2 OK
libstdc++6-devel 4.3.2-2 OK
libwrap0 7.6-20 OK
login 1.10-10 OK
m4 1.4.13-2 OK
make 3.81-2 OK
man 1.6e-1 OK
mingw-runtime 3.16-1 OK
minires 1.02-1 OK
mpfr 2.4.1-4 OK
openssh 5.2p1-4 OK
openssl 0.9.8k-2 OK
patch 2.5.8-9 OK
perl 5.10.0-5 OK
rebase 3.0.1-1 OK
run 1.1.12-10 OK
rxvt 20050409-21 OK
sed 4.1.5-2 OK
subversion 1.6.5-2 OK
tar 1.22-1 OK
tcltk 20080420-1 OK
termcap 20050421-1 OK
terminfo 5.7_20090228-10 OK
terminfo0 5.5_20061104-10 OK
texinfo 4.13-3 OK
tzcode 2008h-1 OK
unzip 6.0-10 OK
vim 7.2.148-1 OK
w32api 3.13-1 OK
wget 1.11.4-4 OK
which 2.20-2 OK
xz 4.999.9beta-10 OK
zlib 1.2.3-10 OK
zlib-devel 1.2.3-10 OK
zlib0 1.2.3-10 OK
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 6+ messages in thread
* R: Core dump on hello world.
2009-09-14 4:44 Core dump on hello world Jerry DeLisle
@ 2009-09-14 6:23 ` Marco Atzeri
2009-09-14 8:30 ` Dave Korn
1 sibling, 0 replies; 6+ messages in thread
From: Marco Atzeri @ 2009-09-14 6:23 UTC (permalink / raw)
To: cygwin, Jerry DeLisle
--- Lun 14/9/09, Jerry DeLisle ha scritto:
> Da: Jerry DeLisle
> Oggetto: Core dump on hello world.
> A: cygwin@cygwin.com
> Data: Lunedì 14 settembre 2009, 06:45
> I first noticed this when trying to
> build and run gfortran 4.5 for my development work on cygwin
> 1.7. This is on WinNT running in VirtualBox.
>
> With 4.5, I get no output at all. With gfortran
> distributed with Cygwin I get the following. Am I
> configured wrong?
>
> Regards,
>
> Jerry
>
> $ cat hello.f90
> program hello
> print *, "Hello World!"
> end program hello
>
> $ gfortran-4.exe hello.f90
>
> $ ./a.exe
> Illegal instruction (core dumped)
>
I can not reproduce on cygwin 1-7
$ gfortran-4.exe hello.f90 -o hello
$ ./hello.exe
Hello World!
Regards
Marco
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Core dump on hello world.
2009-09-14 4:44 Core dump on hello world Jerry DeLisle
2009-09-14 6:23 ` R: " Marco Atzeri
@ 2009-09-14 8:30 ` Dave Korn
2009-09-14 8:47 ` Dave Korn
1 sibling, 1 reply; 6+ messages in thread
From: Dave Korn @ 2009-09-14 8:30 UTC (permalink / raw)
To: cygwin
Jerry DeLisle wrote:
> gdb says:
> (gdb) r
> Starting program: /home/jerry/prs/test/a.exe
> [New thread 162.0xa9]
> [New thread 162.0x8e]
>
> Program received signal SIGILL, Illegal instruction.
> set_fpu () at ./fpu-target.h:80
> 80 ./fpu-target.h: No such file or directory.
> in ./fpu-target.h
> (gdb) bt
> #0 set_fpu () at ./fpu-target.h:80
Need an actual $eip value here, and the contents of your /proc/cpuinfo please.
cheers,
DaveK
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Core dump on hello world.
2009-09-14 8:30 ` Dave Korn
@ 2009-09-14 8:47 ` Dave Korn
2009-09-14 8:50 ` Dave Korn
0 siblings, 1 reply; 6+ messages in thread
From: Dave Korn @ 2009-09-14 8:47 UTC (permalink / raw)
To: Dave Korn; +Cc: cygwin
Dave Korn wrote:
> Jerry DeLisle wrote:
>
>> gdb says:
>> (gdb) r
>> Starting program: /home/jerry/prs/test/a.exe
>> [New thread 162.0xa9]
>> [New thread 162.0x8e]
>>
>> Program received signal SIGILL, Illegal instruction.
>> set_fpu () at ./fpu-target.h:80
>> 80 ./fpu-target.h: No such file or directory.
>> in ./fpu-target.h
>> (gdb) bt
>> #0 set_fpu () at ./fpu-target.h:80
>
> Need an actual $eip value here, and the contents of your /proc/cpuinfo please.
Nah, hang on, I'll give the psychic debugging a go. <places hand to
forehead, covering eyes, waves other hand out in front of me in a
mystical-looking way> I'm getting something.... the spirits are talking... or
maybe it's just the beer... and they tell me: The problem is that the CPUID
instruction in your virtual machine is returning some kind of bogus output
that's leading set_fpu() to believe the CPU supports SSE, but the emulation in
fact does not, and it blows up here:
> 0x697826c4 <set_fpu+164>: stmxcsr -0x14(%ebp)
cheers,
DaveK
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Core dump on hello world.
2009-09-14 8:47 ` Dave Korn
@ 2009-09-14 8:50 ` Dave Korn
2009-09-15 1:45 ` Jerry DeLisle
0 siblings, 1 reply; 6+ messages in thread
From: Dave Korn @ 2009-09-14 8:50 UTC (permalink / raw)
To: Dave Korn; +Cc: cygwin
Dave Korn wrote:
> Nah, hang on, I'll give the psychic debugging a go. <places hand to
> forehead, covering eyes, waves other hand out in front of me in a
> mystical-looking way> I'm getting something.... the spirits are talking... or
> maybe it's just the beer... and they tell me: The problem is that the CPUID
> instruction in your virtual machine is returning some kind of bogus output
> that's leading set_fpu() to believe the CPU supports SSE, but the emulation in
> fact does not, and it blows up here:
>
>> 0x697826c4 <set_fpu+164>: stmxcsr -0x14(%ebp)
Also, is your CPU a VIA by any chance, maybe a C7?
cheers,
DaveK
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Core dump on hello world.
2009-09-14 8:50 ` Dave Korn
@ 2009-09-15 1:45 ` Jerry DeLisle
0 siblings, 0 replies; 6+ messages in thread
From: Jerry DeLisle @ 2009-09-15 1:45 UTC (permalink / raw)
To: cygwin
On 09/14/2009 02:04 AM, Dave Korn wrote:
> Dave Korn wrote:
>
>> Nah, hang on, I'll give the psychic debugging a go.<places hand to
>> forehead, covering eyes, waves other hand out in front of me in a
>> mystical-looking way> I'm getting something.... the spirits are talking... or
>> maybe it's just the beer... and they tell me: The problem is that the CPUID
>> instruction in your virtual machine is returning some kind of bogus output
>> that's leading set_fpu() to believe the CPU supports SSE, but the emulation in
>> fact does not, and it blows up here:
>>
>>> 0x697826c4<set_fpu+164>: stmxcsr -0x14(%ebp)
>
> Also, is your CPU a VIA by any chance, maybe a C7?
>
No, its an AMD Phenom II. However, your hints were correct. I disabled
the VirtualBox System::VT-x/AMD-V features and the problem goes away.
What Crystal Balls you have!
:)
Jerry
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-09-15 1:45 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-14 4:44 Core dump on hello world Jerry DeLisle
2009-09-14 6:23 ` R: " Marco Atzeri
2009-09-14 8:30 ` Dave Korn
2009-09-14 8:47 ` Dave Korn
2009-09-14 8:50 ` Dave Korn
2009-09-15 1:45 ` Jerry DeLisle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).