This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Infinite loop when excuting "Hello, eCos World!"


Hello,

I compiled "Hello, eCos World!" Sample Appplication and try to execute on Linux,
It print "Hello, eCos World!" and fall in infinite loop.

I chose linux synthetic target (ecosconfig new linux)

This is my development environment.

$ gcc -v
Reading specs from /usr/lib/gcc/i486-linux/3.4.4/specs
Configured with: ../src/configure -v
--enable-languages=c,c++,java,f77,pascal,objc,ada,treelang
--prefix=/usr --libexecdir=/usr/lib
--with-gxx-include-dir=/usr/include/c++/3.4 --enable-shared
--with-system-zlib --enable-nls --without-included-gettext
--program-suffix=- 3.4 --enable-__cxa_atexit
--enable-libstdcxx-allocator=mt --enable-clocale=gnu
--enable-libstdcxx-debug --enable-java-gc=boehm --enable-java-awt=gtk
--disable-werror i486-linux
Thread model: posix
gcc version 3.4.4 20050314 (prerelease) (Debian 3.4.3-13)

$ uname -a
Linux linux 2.4.27-1-386 #1 Fri Sep 3 06:24:46 UTC 2004 i686 GNU/Linux

Is there any solution about this?

The following text is result of strace ./hello.

$ strace ./hello
execve("./hello", ["./hello"], [/* 20 vars */]) = 0
sigprocmask(SIG_SETMASK, [TRAP ABRT KILL USR1 USR2 STKFLT TTIN TTOU
URG XCPU XFSZ VTALRM PROF WINCH PWR SYS RTMIN], NULL) = 0
sigaction(SIGALRM, {0x1000f50, [], SA_RESTORER|SA_NOMASK, 0x1002508},
NULL, 0x804e4cc) = 0
sigaction(SIGIO, {0x1001350, [], SA_RESTORER|SA_NOMASK, 0x1002508},
NULL, 0x804e4cc) = 0
sigaction(SIGILL, {0x10014a0, [], SA_RESTORER|SA_NOMASK, 0x1002508},
NULL, 0x804e4cc) = 0
sigaction(SIGBUS, {0x10014a0, [], SA_RESTORER|SA_NOMASK, 0x1002508},
NULL, 0x804e4cc) = 0
sigaction(SIGFPE, {0x10014a0, [], SA_RESTORER|SA_NOMASK, 0x1002508},
NULL, 0x804e4cc) = 0
sigaction(SIGSEGV, {0x10014a0, [], SA_RESTORER|SA_NOMASK, 0x1002508},
NULL, 0x804e4cc) = 0
sigaction(SIGPIPE, {0x1001880, [], SA_RESTORER|SA_NOMASK, 0x1002508},
NULL, 0x804e4cc) = 0
sigaction(SIGCHLD, {0x10018e0, [],
SA_RESTORER|SA_NOMASK|SA_NOCLDSTOP|SA_NOCLDWAIT, 0x1002508}, NULL,
0x804e4cc) = 0
open("/proc/cpuinfo", O_RDONLY)         = 3
read(3, "processor\t: 0\nvendor_id\t: Genuin"..., 4096) = 372
close(3)                                = 0
gettimeofday({1136857380, 700552}, NULL) = 0
setitimer(ITIMER_REAL, {it_interval={0, 10000}, it_value={0, 10000}}, NULL) = 0
write(1, "Hello, eCos world!\r\n", 20Hello, eCos world!
)  = 20
fdatasync(1)                            = -1 EINVAL (Invalid argument)
select(0, NULL, NULL, NULL, NULL)       = ? ERESTARTNOHAND (To be restarted)
--- SIGALRM (Alarm clock) @ 0 (0) ---
gettimeofday({1136857380, 702898}, NULL) = 0
sigreturn()                             = ? (mask now [TRAP ABRT USR1
USR2 STKFLT TTIN TTOU URG XCPU XFSZ VTALRM PROF WINCH PWR SYS RTMIN])
select(0, NULL, NULL, NULL, NULL)       = ? ERESTARTNOHAND (To be restarted)
--- SIGALRM (Alarm clock) @ 0 (0) ---
gettimeofday({1136857380, 712833}, NULL) = 0
sigreturn()                             = ? (mask now [TRAP ABRT USR1
USR2 STKFLT TTIN TTOU URG XCPU XFSZ VTALRM PROF WINCH PWR SYS RTMIN])
select(0, NULL, NULL, NULL, NULL)       = ? ERESTARTNOHAND (To be restarted)
--- SIGALRM (Alarm clock) @ 0 (0) ---
gettimeofday({1136857380, 722831}, NULL) = 0
sigreturn()                             = ? (mask now [TRAP ABRT USR1
USR2 STKFLT TTIN TTOU URG XCPU XFSZ VTALRM PROF WINCH PWR SYS RTMIN])
select(0, NULL, NULL, NULL, NULL)       = ? ERESTARTNOHAND (To be restarted)
--- SIGALRM (Alarm clock) @ 0 (0) ---
gettimeofday({1136857380, 732825}, NULL) = 0

--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]