From: Ron F. <rj...@sk...> - 2001-11-01 23:33:08
|
On Thu, Nov 01, 2001 at 06:13:18PM -0500, Robert Dege wrote: > [root@goku /root]# gcc -O0 -g -Wall -static -o getpwuid getpwuid.c > [root@goku /root]# ./getpwuid 0 > name for uid: root > [root@goku /root]# ./getpwuid 1842 > Segmentation fault > > Unfortunately, it still generates the same error. This feels so odd. I > wonder if this could be the result of a RedHat bug, instead of a generic > Open Source bug. Lord knows they love to meddle with the packages. It's clearly not tripwire, since this little test app, which I wrote outside of the context of tripwire code. Now, that doesn't help you much, because the problem is still there. On my debian system, getpwuid lives in libc.a (and the shared object counterpart). So that would tell me that it's a problem with your installed libc. But that doesn't really make sense to me. getpwuid must be relying on some other system service(s) which might have bugs. But I am not that familiar with how getpwuid is coded. I wish I could help more -- but all I can do is say sour things like "this is one of the reasons I won't run Red Hat -- they muck with too many things and I have had nothing but problems with their distro's.." -- and that isn't at all helpful, now is it... rjf& |