|
From: Tom H. <to...@co...> - 2005-03-23 17:37:56
|
In message <171...@ma...>
Fabio Margarido <fab...@gm...> wrote:
> I've now upgraded to valgrind2.4.0-rc4 and tried to run my program
> which showed the glibc bugs I'd mentioned before (with 2.2.0) and now
> it shows another error message:
>
> ==7483== Syscall param exit_group(exit_code) contains uninitialised byte(s)
> ==7483== at 0x1B9BACB4: _Exit (in /lib/tls/libc-2.3.4.so)
> ==7483== by 0x1B944E79: __libc_start_main (in /lib/tls/libc-2.3.4.so)
> ==7483== by 0x8048940: ??? (start.S:119)
>
> Just thought I'd mention it...
Did you return a defined value from main? You do know that main
should return int and not void I assume?
The C library should just be passing whatever you returned from
main to the exit_group system call as the exit code, so if it is
undefined that most likely originates in your program. It could
be a bug in libc of course, but that seems unlikely in this case.
Tom
--
Tom Hughes (to...@co...)
http://www.compton.nu/
|