Re: how to interpret crash?

From: David Magda (dmagda_at_ee.ryerson.ca)
Date: 05/28/04

  • Next message: Daniel O'Connor: "Re: how to interpret crash?"
    Date: Thu, 27 May 2004 20:30:40 -0400
    To: Robert Watson <rwatson@freebsd.org>
    
    

    On May 27, 2004, at 19:55, Robert Watson wrote:

    > you need. If you've cvsup'd and no longer have the source code for the
    > old kernel, regardless of having debugging symbols, you're in a much
    > worse
    > starting point for tracking down the problem.

    I don't pretend to have the knowledge to actually fix a kernel issue.
    :> I would simply want to have a way to provide a useful backtrace for
    developers. Even if I cvsup'd I could always use CVSWeb to look at the
    previous revision.

    > One important reason that the debugging kernel isn't kept around is
    > space
    > considerations: in -CURRENT, a 5mb kernel will generally be
    > accompanied by

    Yes, this is why I suggested a variable in make.conf with an .if
    statement in the Makefiles.

    Searching through the the Makefiles: around line 193 in file
    sys/conf/kern.post.mk you have (from a 5.2.1-p7 system):

    .if defined(DEBUG) && defined(INSTALL_DEBUG)
             ${INSTALL} -p -m 555 -o root -g wheel ${FULLKERNEL}
    ${DESTDIR}${KODIR}
    .else
             ${INSTALL} -p -m 555 -o root -g wheel ${KERNEL_KO}
    ${DESTDIR}${KODIR}
    .endif

    Would changing it to the following work?

    .if defined(DEBUG) && defined(INSTALL_DEBUG)
             ${INSTALL} -p -m 555 -o root -g wheel ${FULLKERNEL}
    ${DESTDIR}${KODIR}
    .else
             ${INSTALL} -p -m 555 -o root -g wheel ${KERNEL_KO}
    ${DESTDIR}${KODIR}
    .if defined(INST_KERNDEBUG)
             ${INSTALL} -p -m 555 -o root -g wheel ${FULLKERNEL}
    ${DESTDIR}${KODIR}
    .endif
    .endif

    I haven't checked how FULLKERNEL is defined.

    _______________________________________________
    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: Daniel O'Connor: "Re: how to interpret crash?"

    Relevant Pages

    • Re: Documentation files in html format?
      ... Linux Kernel Makefiles ... This document describes the Linux kernel Makefiles. ... are used to build the kernel based on the kbuild makefiles. ... foo.o will be built from foo.c or foo.S. ...
      (Linux-Kernel)
    • kbuild: Separate output directory - core patch
      ... # This patch format is intended for GNU patch command version 2.5 or higher. ... # Enable the possibility to build a kernel in a separate output ... +# or the modules are listed in "prepare-all". ...
      (Linux-Kernel)
    • Re: utrace comments
      ... of single-step on machines/configurations where single-step is always ... It is not mentioned in Documentation/CodingStyle, and the existing kernel ... I don not think these kinds of macros are a very good idea. ...
      (Linux-Kernel)
    • [PATCH] Yet another 4GB split patch
      ... This is another 4GB split patch for kernel 2.4.27. ... -static struct page * follow_page(struct mm_struct *mm, unsigned long address, int write) ... extern void __set_fixmap (enum fixed_addresses idx, ...
      (Linux-Kernel)
    • [PATCH 3/3] build system: section garbage collection - main part
      ... Introduce config option DISCARD_UNUSED_SECTIONS. ... # Makefile for the linux kernel. ... + /* .exit.text is discarded at runtime, not link time, to deal with references ...
      (Linux-Kernel)