[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: setting date stops networking?



On Tue, Dec 10, 2002 at 11:21:21AM +0100, Alfred M. Szmidt wrote:
> Could you please debug it?  And give us an back trace?  Also, be more
> specifc in your bugg reports, please tell us what you typed.

Here is my first debug attempt.


Script started on Wed Dec 11 13:00:36 2002
hurd:~/date/coreutils-4.5.3/build-tree/coreutils-4.5.3/src# ssh andika@research
andika@research's password: 
Linux research 2.5.47 #1 Thu Nov 14 14:06:31 WIT 2002 i686 unknown

andika@research:~$ ssh root@hurd
Last login: Wed Dec 11 13:00:55 2002 from research
hurd:~# cd date/coreutils-4.5.3/build-tree/coreutils-4.5.3/src/

hurd:~/date/coreutils-4.5.3/build-tree/coreutils-4.5.3/src# gdb date
gdb: Symbol `emacs_ctlx_keymap' has different size in shared object, consider re-linking
GNU gdb 2002-04-01-cvs
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-gnu"...
(gdb) directory ../lib
Source directories searched: /root/date/coreutils-4.5.3/build-tree/coreutils-4.5.3/src/../lib:$cdir:$cwd
(gdb) set args 11100908
(gdb) break 464
Breakpoint 1 at 0x8049907: file date.c, line 464.
(gdb) run
Starting program: /root/date/coreutils-4.5.3/build-tree/coreutils-4.5.3/src/date 11100908

Breakpoint 1, main (argc=1, argv=0x1017b08) at date.c:464
464           if (set_date)
(gdb) s
468               if (settime (&when) != 0)
(gdb) s
settime (ts=0x1017b08) at settime.c:32
32        if (clock_settime (CLOCK_REALTIME, ts) == 0)
(gdb) s
Connection to research closed.
hurd:~/date/coreutils-4.5.3/build-tree/coreutils-4.5.3/src# exit
exit

Script done on Sun Nov 10 09:10:21 2002

At that point, I'm not sure how I can do a backtrace, because session is
disconnected.

I have installed libc0.3-dbg which contains clock_settime with 
debug info, but not sure how to to force usage of those libraries. 
Should I put relevant files from /usr/lib/debug/* in place of /usr/lib/* ? 
Or there is a command in gdb to use /usr/lib/debug files instead
of /usr/lib?

-- andika



Reply to: