Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 03 Nov 2010 10:40:09 +0200
From:      Andriy Gapon <avg@freebsd.org>
To:        Sergey Kandaurov <pluknet@gmail.com>
Cc:        Dan Allen <danallen46@airwired.net>, FreeBSD-STABLE Mailing List <freebsd-stable@freebsd.org>
Subject:   Re: Fatal trap 18
Message-ID:  <4CD11FE9.8050105@freebsd.org>
In-Reply-To: <AANLkTik0=x6h3YK0F_yrRJ_MGHp9pf8dVubbEwpmAa1y@mail.gmail.com>
References:  <68E248E0-8619-4859-BFFE-1B5F5ABBC51F@airwired.net> <AANLkTik0=x6h3YK0F_yrRJ_MGHp9pf8dVubbEwpmAa1y@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
on 03/11/2010 10:18 Sergey Kandaurov said the following:
> On 3 November 2010 08:30, Dan Allen <danallen46@airwired.net> wrote:
>> FreeBSD 8.1-STABLE sometime after 10/28/2010 has caused a fatal boot error on my Toshiba U205, 1.8 GHz Core Duo laptop.
>>
>> Many times every week I sync with STABLE and build everything.  I have been doing this for years.
>>
>> I sync'd (via csup) and built on 10/28/2010 and everything was fine.
>>
>> Then I sync'd yesterday 11/1/2010 and it crashes on boot.  The diagnostics print out the following:
>>
>> ---
>>
>> Fatal trap 18: integer divide fault while in kernel mode
>>
>> kdb_backtrace
>> panic
>> trap_fatal
>> trap
>> calltrap
>> topo_probe
>> cpu_topo
>> smp_topo
>> sched_setup
>> mi_startup
>>
>> ---
>>
>> I reverted at the loader via boot /boot/kernel.old, resync'd today, rebuilt, and things are still broken.

Right, if you never report the problems you get, the chance that they are fixed
is very slim.

> It's possible in theory to leave cpu_logical as zero in topo_probe_0x4().
> So, it makes sense to add some sort of the check.

Actually - not exactly.

This problem seems to happen only on SMP systems that for some reason run as UP.
E.g. because ACPI and/or APIC are disabled.
Or some other BIOS configuration.
But I am not sure what exactly is the case here.
Verbose dmesg from a working kernel would be helpful.

P.S.
Following the relevant mailing lists sometimes helps to prepare for the future:
http://thread.gmane.org/gmane.os.freebsd.current/128603/focus=128717
http://article.gmane.org/gmane.os.freebsd.stable/72727
-- 
Andriy Gapon



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4CD11FE9.8050105>