Paul Eggert wrote:
[for power_darwin-local]
Why does pinky dump core? What does ktrace say for it?
Well, for starters...
(gdb) run
Starting program: /home/install/gnu/power_darwin/bin/pinky
Reading symbols for shared libraries +.. done
Reading symbols for shared libraries . done
[snip many repetitions of the above]
Reading symbols for shared libraries . done
Login Name TTY Idle When Where
Program received signal EXC_BAD_ACCESS, Could not access memory.
0x90007260 in strlen ()
(gdb) bt
#0 0x90007260 in strlen ()
#1 0x9000d1d8 in strdup ()
#2 0x0000393c in canon_host_r (host=0xfffffffc <Address 0xfffffffc out
of bounds>, cherror=0x8248) at canon-host.c:74
#3 0x00002df8 in print_entry (utmp_ent=0x0) at pinky.c:305
#4 0x0000342c in scan_entries (n=1, utmp_buf=0x18013d4, argc_names=0,
argv_names=0xbffffb20) at pinky.c:476
#5 0x000034c4 in short_pinky (filename=0x796c "/var/run/utmp",
argc_names=25170900, argv_names=0xbffffb20) at pinky.c:494
#6 0x000038a4 in main (argc=1, argv=0xbffffb1c) at pinky.c:622
(gdb)
Honestly I have never used pinky so I don't really care. (WAG:
print_entry is missing a check for NULL?) I'll take a look at some of
the others with ktrace (hmm, why does the test that wants strace not
know about ktrace?).
--
Matthew
Download. Untar. Configure. Make. Install. Lather. Rinse. Repeat.
_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils