Re: general protection in 2.0.30

Doug Ledford (dledford@dialnet.net)
Wed, 23 Apr 1997 03:36:46 -0500


--------

> > Are you perchance using ppp as a module? It looks like the crash
> > happened inside the ppp line discpline, which was loaded as a module.
> > Does this match with your system configuration?
>
> Yes.
>
> > If so, try compiling ppp into the kernel, instead of using it as a
> > module.
>
> Does the static limit on ppp devices still exist with ppp compiled into
> the kernel? This is mainly why I compiled it as a module. We have 32
> ports on one box and 64 on another.

Nope. Will do 256 ppp devices compiled into the kernel or as a module.

>
> > Given that you have a dedicated dialup server, it's a really good idea
> > just in general
>
> Why?

Because memory management and a few other things can change when code is
compiled as a module, and can break if not done right.

>
> > and it'll help with the debugging process.
>
> Yes, but isn't there *any* way to get debugging info from modules? :-/

Given one of several situations, then, yes, you can get debugging info from
your modules. First, if you load the modules before you start recent versions
of klogd that automatically do address translation, then klogd will pick up on
the modules and their addresses and map EIP pointers in that space to the
proper functions. Second, if the machine doesn't completely go down, then you
can cat /proc/ksyms | sort and hunt for the addresses in question. Another
way to accomplish this is to manually load your modules at boot time with the
-m flag to insmod, which will generate a module map on stdout, this can then
be saved to do address lookups later. I've also found that modules loaded
*very* early in the uptime of your machine, and not unloaded, frequently
(read, 98% + of the time) get mapped into the same addresses from boot to
boot, so you can (with a lesser degree of certainty) try to hunt up addresses
from a previous boot and crash on your current boot.

-- 
*****************************************************************************
* Doug Ledford                      *   Unix, Novell, Dos, Windows 3.x,     *
* dledford@dialnet.net    873-DIAL  *     WfW, Windows 95 & NT Technician   *
*   PPP access $14.95/month         *****************************************
*   Springfield, MO and surrounding * Usenet news, e-mail and shell account.*
*   communities.  Sign-up online at * Web page creation and hosting, other  *
*   873-9000 V.34                   * services available, call for info.    *
*****************************************************************************