[ECOS] the POSIX test build
Boris V. Guzhov
borg@int.spb.ru
Mon Sep 4 06:34:00 GMT 2000
Hi All!
I tried my posix test for the linux syntetic platform.
I did following:
ecosconfig new linux posix
ecosconfig resolve
ecosconfig tree
make
I have very simple test:
int main()
{
// printf("main()\n")
return 0;
}
In gdb I set break point on "return 0" statement. Then I run it.
Result:
---
(gdb) break 37
Breakpoint 1 at 0x45: file pthread1.c, line 37.
(gdb) run
Starting program: /home/ecostest/work/posix_tests/./pthread1
Program received signal SIGSEGV, Segmentation fault.
0x26e in matchlen (s1=0x5b04 "/",
s2=0x4003cc68 <Address 0x4003cc68 out of bounds>)
at /usr/local/src/ecos/packages/io/fileio/current/src/misc.cxx:192
192 while( s1[len] == s2[len] && s1[len] && s2[len] ) len++;
Current language: auto; currently c++
(gdb)
----
That is the error occurs before the main() call.
How to eliminate this problem?
And there is one more question:
are supported the standart "C" stdio functions (like printf()) in
the posix configuration? When I include the printf() call in my test,
I have the ld error: "undefined reference to 'printf' "
Thanks in advance
--
Boris Guzhov,
St.Petersburg, Russia
More information about the Ecos-discuss
mailing list