[Bug 220184] clang 4.0.0 segfaults on buildworld

2017-06-25 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220184

--- Comment #18 from Chris Collins  ---
Ok a further update.

After a reboot, the i5 750 machine started getting segfaults again, a few
reboots later I have discovered the behaviour is fairly consistent, where a
rolld o the dice occurs on a reboot, usually if the first buildworld has no
problem I can probably do 3+ in a row with no segfault, but if the first has a
segfault then I will struggle to get just one successful buildworld.

I discovered the LAPIC timer on my laptop is broken, aided by a warning on the
console, when I switched it to i8254 the problem stopped.  I then fresh
installed 11.0 again and discovered on 11.0 it uses i8254 by default but on
11-STABLE it uses LAPIC, when LAPIC is used I see some other odd behaviours
e.g. systat -v 1 will update really slowly.

I then checked on my i5 750 on 11.0 it uses LAPIC by default and seems to work
ok, on 11-STABLE LAPIC has the same issues as the laptop and it defaults to
HPET.  At the time of this post I havent tried a buildworld using a non default
timer, but I am running buildworld now using i8254 on the i5 750 to see what
results I get, I will run many times over multiple reboots.

The VMWare hypervisor has no segfault problems and uses LAPIC by default
working fine on 11.0 and 11-STABLE.

All the current tests are with empty src.conf aside from
'LOADER_ZFS_SUPPORT=YES'' and no CPUTYPE defined to try and simplify the
diagnosis.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-toolchain@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-toolchain
To unsubscribe, send any mail to "freebsd-toolchain-unsubscr...@freebsd.org"


[Bug 220184] clang 4.0.0 segfaults on buildworld

2017-06-25 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220184

--- Comment #19 from Chris Collins  ---
So to confirm as I dont think I written it well, using i8254 on my laptop I
dont get segfaults.  The default timer changed between 11.0 and 11-STABLE.

I also meant "roll of the dice" but typod.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-toolchain@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-toolchain
To unsubscribe, send any mail to "freebsd-toolchain-unsubscr...@freebsd.org"


[Bug 220184] clang 4.0.0 segfaults on buildworld

2017-06-25 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220184

--- Comment #20 from Mark Millard  ---
(In reply to Chris Collins from comments #18 and #19)

Interesting --and non-obvious.

>From what I've read Message Signaled Interrupts (MSI)
from PCI 2.2+ depend on LAPIC, requiring LAPIC to be
enabled.

If LAPIC is not working correctly then MSI might not
work fully correctly either and so should be avoided
in such a context?

(I'm not familiar with the details in this area. Take
the above as hear-say.)

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-toolchain@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-toolchain
To unsubscribe, send any mail to "freebsd-toolchain-unsubscr...@freebsd.org"