probably bug in my building of egcs (please help)
Lou Langholtz
ldl@chpc.utah.edu
Wed Dec 23 14:11:00 GMT 1998
Here's one that I'm lost by. Compiling a trivially simple program that
just does getpwnam(argv[1]) works under the old gcc (2.8.0) on my Power
Mac Linux system but with either the egcs 1.1b, or 1.1.1 gcc that I've
built myself the program just aborts. I've had no problems with any
other calls so far that I've found, just with programs that call to
getpwnam(). gdb shows the following:
(gdb) run root
Starting program: /home/ldl/getpwnam root
Program received signal SIGABRT, Aborted.
0x18052c8 in kill ()
(gdb) where
#0 0x18052c8 in kill ()
#1 0x1805284 in raise ()
#2 0x180040c in abort ()
#3 0x1836878 in __do_global_ctors_aux ()
#4 0x1804270 in __nss_lookup ()
#5 0x180518c in __nss_passwd_lookup ()
#6 0x180378c in __getpwnam_r ()
#7 0x1803660 in getpwnam ()
#8 0x1800200 in main (argc=2, argv=0x7ffffc84) at getpwnam.c:9
#9 0x1800134 in _start ()
(gdb) quit
I figure I must have configure'd my egcs gcc's wrong or perhaps have
screwed up my build of binutils. Any ideas? Please help! The rroot entry
exists just fine and as I've said before the program runs fine with the
old gcc any ways. What did I screw up??? What should I check next???
Thanks to anyone who sends me a clue ;-)
--Lou
More information about the Gcc-bugs
mailing list