Date: Sun, 7 Mar 1999 07:51:44 -0800 (PST) From: sanewo@ba2.so-net.ne.jp To: freebsd-gnats-submit@freebsd.org Subject: bin/10462: boot loader panics with "unload" Message-ID: <19990307155144.822D814CDE@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 10462 >Category: bin >Synopsis: boot loader panics with "unload" >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Mar 7 08:00:01 PST 1999 >Closed-Date: >Last-Modified: >Originator: Takanori Saneto >Release: 4.0-CURRENT as of 1999-March-06 >Organization: An individual >Environment: FreeBSD muse 4.0-CURRENT FreeBSD 4.0-CURRENT #43: Sat Mar 6 10:26:23 JST 1999 sanewo@muse:/usr/src/sys/compile/MUSE i386 >Description: On boot loader prompt, "unload" command causes panic and system restarts immediately. >How-To-Repeat: /boot/loader.rc contains: load kernel load -t userconfig_script pnp.conf load -t splash_image_data onsenL8.BMP load splash_bmp autoboot while "autoboot" countdown is in progress, type anything and enter loader prompt mode. On loader prompt, type "unload" and you may see "panic" message. >Fix: I looked into the loader code and found that there is problem with the return value (string) of mod_searchfile(). The string, which is allocated by mod_searchfile(), will be free()ed when mod_searchfile() called next time. "unload" command tries to free() that string (module name) again, and panics. Quick fix will be to stop free()ing in mod_searchfile(). >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990307155144.822D814CDE>