From owner-freebsd-bugs Fri Aug 30 4:20:12 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3824237B400 for ; Fri, 30 Aug 2002 04:20:03 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8372843E77 for ; Fri, 30 Aug 2002 04:20:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7UBK2JU015670 for ; Fri, 30 Aug 2002 04:20:02 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7UBK2m4015669; Fri, 30 Aug 2002 04:20:02 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F337937B400 for ; Fri, 30 Aug 2002 04:19:13 -0700 (PDT) Received: from milla.ask33.net (milla.ask33.net [217.197.166.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7675343E42 for ; Fri, 30 Aug 2002 04:19:13 -0700 (PDT) (envelope-from nick@milla.ask33.net) Received: by milla.ask33.net (Postfix, from userid 1001) id 597EB3ABD40; Fri, 30 Aug 2002 13:19:38 +0200 (CEST) Message-Id: <20020830111938.597EB3ABD40@milla.ask33.net> Date: Fri, 30 Aug 2002 13:19:38 +0200 (CEST) From: Pawel Jakub Dawidek Reply-To: Pawel Jakub Dawidek To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/42198: Kernel panics or system hangs up with big SC_HISTORY_SIZE and VESA. Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 42198 >Category: kern >Synopsis: Kernel panics or system hangs up with big SC_HISTORY_SIZE and VESA. >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Aug 30 04:20:02 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Pawel Jakub Dawidek >Release: FreeBSD 4.6-STABLE i386 >Organization: Private >Environment: System: FreeBSD milla.ask33.net 4.6-STABLE FreeBSD 4.6-STABLE #9: Wed Jul 31 21:18:46 CEST 2002 root@milla.ask33.net:/usr/obj/usr/src/sys/MILLA i386 >Description: There are some serious problems with big values of SC_HISTORY_SIZE and VESA video driver. Kernel panics when we are trying to load vesa.ko module and SC_HISTORY_SIZE is big or system hangs up when SC_HISTORY_SIZE is big and VESA is compiled in kernel. >How-To-Repeat: There are two ways: 1. Compile kernel with big (for example 5000) SC_HISTORY_SZIE and without VESA. Then reboot machine and do # kldload vesa Kernel sould panic. 2. Compile kernel with big (for example 5000) SC_HISTORY_SIZE and with VESA support, then reboot machine and: # vidcontrol 132x60 then: # cat few times. When history buffer fills up system will hangs up. But there is a chance that those are two diffrent bugs. >Fix: I don't know exactly. Backtrace after panic shows lncintr_sc() function from /sys/i386/isa/if_lnc.c. But I don't think secound problem (with system hangs up) is there. Problem could be here (from /sys/dev/syscons/schistory.c): #define SC_MAX_HISTORY_SIZE (1000 * MAXCONS * NSC) NSC is as I suppose number of chars per line. But where it is defined? I can't grep it. And there is a chance that this is to less for 132 chars per line, because maybe somewhere buffer size is counted as number_of_lines * x_console_size and we got overflow. But I could be wrong:) >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message