From owner-freebsd-current Mon Jan 25 14:48:05 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA25312 for freebsd-current-outgoing; Mon, 25 Jan 1999 14:47:06 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from whistle.com (s205m131.whistle.com [207.76.205.131]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA25297; Mon, 25 Jan 1999 14:47:01 -0800 (PST) (envelope-from archie@whistle.com) Received: (from smap@localhost) by whistle.com (8.7.5/8.6.12) id OAA15365; Mon, 25 Jan 1999 14:47:01 -0800 (PST) Received: from bubba.whistle.com( 207.76.205.7) by whistle.com via smap (V2.0) id xma015363; Mon, 25 Jan 99 14:46:33 -0800 Received: (from archie@localhost) by bubba.whistle.com (8.8.7/8.6.12) id OAA18293; Mon, 25 Jan 1999 14:46:33 -0800 (PST) From: Archie Cobbs Message-Id: <199901252246.OAA18293@bubba.whistle.com> Subject: Same module loaded twice? To: current@freebsd.org, hackers@freebsd.org Date: Mon, 25 Jan 1999 14:46:33 -0800 (PST) X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@freebsd.org Precedence: bulk X-Loop: FreeBSD.ORG In the output below, notice there are two modules named "ng_sync_sr" loaded in the "kernel" object (due to a typo), and moreover there's a "netgraph" module loaded in both the "kernel" object and the "netgraph.ko" object.. $ kldstat -v Id Refs Address Size Name 1 4 0xf0100000 1be82c kernel Contains modules: Id Name 1 rootbus 2 netgraph 3 ng_sync_sr 4 ng_sync_sr 5 ufs 6 nfs 7 msdos 8 procfs 9 cd9660 10 ipfw 11 if_tun 12 if_sl 13 if_ppp 14 if_loop 15 shell 16 execgzip 17 elf 18 aout 2 1 0xf07f1000 3000 ng_socket.ko Contains modules: Id Name 20 ng_socket 3 2 0xf07f5000 4000 netgraph.ko Contains modules: Id Name 19 netgraph Why and how does the linker allow this? It seems like: - When the kernel was compiled, the ng_sync_sr conflict should have caused a failure - When the netgraph.ko was kldloaded, there should have been an error from the conflicting module names Curiously, -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message