Re: Strange lockups - 5.4 PRERELEASE / BackupPC/ Samba3

From: Robert Watson (rwatson_at_FreeBSD.org)
Date: 03/19/05

  • Next message: Scott Long: "Re: need ISO-image for a new machine install"
    Date: Sat, 19 Mar 2005 14:16:48 +0000 (GMT)
    To: John Pettitt <jpp@cloudview.com>
    
    

    On Thu, 17 Mar 2005, John Pettitt wrote:

    > My home server has been freezing at 1AM every night for the last three
    > days - this tracks with the upgrade from 5.3 to 5.4 PRE - The only cron
    > job running at that time is BackupPC which uses samba3 (smbclient) to
    > backup windows systems.
    >
    > Does anybody know of anything in samba3 or perl 5.8 (BackupPC is a set
    > of perl scripts) that might be causing a lockup. I've got nothing
    > unusual in syslog.
    >
    > Right now I'm rebuilding perl and samba under 5.4 in case there is some
    > weird library thing between the 5.3 and 5.4 that is causing this - we'll
    > see tonight if it works.

    Could you be a bit more specific about the nature of "freeze"? In
    particular, do the following things work:

    - Can you create a telnet session to a TCP port on the system?
    - Can you ping the system from another system?
    - Does the console appear to respond to normal key presses, such as the
      enter key causing a new login prompt?
    - Does pressing the caps lock key cause the caps lock light to change
      state?

    Generally speaking, the first step in debugging system hangs is to compile
    the kernel with debugging symbols and the system debugger (KDB+DDB), as
    well as the BREAK_TO_DEBUGGER option, and then to try to identify what
    kind of hang it is -- are user processes that provide critical services
    wedged, or is the kernel wedged? Does the network stack still operate and
    is the scheduler running? Etc. Once you have a kernel compiled with the
    debugging features turned on, the first thing I'd ask you to do is to see
    if, once it's hung, you can break to the debugger using either
    Ctrl-Alt-Escape on the console, or a serial break on a serial console.

    For somewhat complex reasons, serial consoles can prove to be more
    reliable in debugging hangs, as well as more useful when it comes to being
    able to copy and paste debugging output on a second computer, so if you're
    not currently using a serial console, you might want to switch to one
    while debugging this problem.

    Robert N M Watson

    _______________________________________________
    freebsd-stable@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-stable
    To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"


  • Next message: Scott Long: "Re: need ISO-image for a new machine install"

    Relevant Pages

    • Re: Any way to debug a hard lockup?
      ... > updating just about daily lately) has been locking up hard fairly often, ... > revisions, using as near-identical system settings as possible also, the ... As already has been pointed out by others in this thread, a serial console ... serial port debugging, etc, in the handbook. ...
      (freebsd-current)
    • Re: file system deadlock - the whole story?
      ... On Wed, 19 Jul 2006, Scott Long wrote: ... serial console, so we're good for the debugging side of things ... ... but, since I have a full BIOS serial console working on it, I should be able to get full model # and firmware version, which I take it will help some? ... you feel that that might either help, or at least make debugging easier ... ...
      (freebsd-stable)
    • 5.3-BETA3 serial console
      ... I have a problem while trying to enable the serial console. ... After doing the SIGHUP I get a hardlock. ... Of course, GENERIC runs with all debugging options, nothing changed by ... daily work yet. ...
      (freebsd-current)
    • Re: FreeBSD 5.3 hangs on high network load
      ... > willing to do this again, if you are really interested in debugging, I ... Most kernel panics can be debugged using easily extracted information from ... will drop to the DDB kernel debugger instead of rebooting or hanging. ... you're using a serial console, the output of the debugger will be visible ...
      (freebsd-net)
    • Re: Debugging Runtime Error
      ... > I have been trying without luck to get some information on debugging ... > do not believe that this class object is causing me my problem. ...
      (comp.lang.cpp)

    Loading