From owner-freebsd-amd64@FreeBSD.ORG Sun Oct 6 11:30:00 2013 Return-Path: Delivered-To: freebsd-amd64@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id B8CAF1E7 for ; Sun, 6 Oct 2013 11:30:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7F766254C for ; Sun, 6 Oct 2013 11:30:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r96BU0Ko048877 for ; Sun, 6 Oct 2013 11:30:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r96BU04h048875; Sun, 6 Oct 2013 11:30:00 GMT (envelope-from gnats) Resent-Date: Sun, 6 Oct 2013 11:30:00 GMT Resent-Message-Id: <201310061130.r96BU04h048875@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-amd64@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Julian Pidancet Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 1A51B1CD for ; Sun, 6 Oct 2013 11:28:32 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 07F00253E for ; Sun, 6 Oct 2013 11:28:32 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r96BSVUw087064 for ; Sun, 6 Oct 2013 11:28:31 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r96BSVOa087061; Sun, 6 Oct 2013 11:28:31 GMT (envelope-from nobody) Message-Id: <201310061128.r96BSVOa087061@oldred.freebsd.org> Date: Sun, 6 Oct 2013 11:28:31 GMT From: Julian Pidancet To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: amd64/182740: BTX halted on Jetway NF81 motherboard when RAID is enabled X-Mailman-Approved-At: Sun, 06 Oct 2013 11:34:13 +0000 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Oct 2013 11:30:00 -0000 >Number: 182740 >Category: amd64 >Synopsis: BTX halted on Jetway NF81 motherboard when RAID is enabled >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-amd64 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Oct 06 11:30:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Julian Pidancet >Release: 8.2 >Organization: >Environment: >Description: Just got this brand new motherboard with an AMD APU and an AMD chipset. Whenever I try to boot FreeBSD and AHCI or RAID is enabled in the BIOS, I am getting this message: BTX loader 1.00 BTX version is 1.02 int=0000000a err=00000000 efl=00006402 eip=000093e0 eax=534d4150 ebx=00000001 ecx=00000014 edx=534d4150 esi=00000000 edi=00000004 ebp=00000000 esp=0000004e cs=0008 ds=0033 es=0033 fs=0033 gs=0033 ss=0010 cs:eip=cf 83 f8 01 75 1a 16 87-86 1f 1e 0f a1 0f a0 0f a9 b8 00 a0 00 00 03 44-24 0c 8d 60 04 58 ff d0 ss:esp=00 f0 39 e7 00 f0 e3 21-80 ce 2e e8 00 f0 d2 ef 00 f0 00 e0 00 f0 f2 e6-00 f0 6e fe 00 f0 53 ff BTX halted It looks like to me the BTX is taking an "Invalid TSS" exception while executing an iret instruction. >How-To-Repeat: I tried: - Booting from the install cdrom - Booting from an USB install disk - Booting from boot/pxeboot in PXE mode All exhibit the same issue. >Fix: Selecting "Legacy IDE" mode in the BIOS configuration instead of AHCI/RAID. >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-amd64@FreeBSD.ORG Mon Oct 7 00:19:04 2013 Return-Path: Delivered-To: freebsd-amd64@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 321FF77D; Mon, 7 Oct 2013 00:19:04 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 0937926F2; Mon, 7 Oct 2013 00:19:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r970J3Yt025202; Mon, 7 Oct 2013 00:19:03 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r970J3V5025201; Mon, 7 Oct 2013 00:19:03 GMT (envelope-from linimon) Date: Mon, 7 Oct 2013 00:19:03 GMT Message-Id: <201310070019.r970J3V5025201@freefall.freebsd.org> To: info@chantaltenhaken.nl, linimon@FreeBSD.org, freebsd-amd64@FreeBSD.org, gnats-admin@FreeBSD.org From: linimon@FreeBSD.org Subject: Re: junk/182623: cw3DAbS3tX X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Oct 2013 00:19:04 -0000 Synopsis: cw3DAbS3tX State-Changed-From-To: open->closed State-Changed-By: linimon State-Changed-When: Mon Oct 7 00:18:45 UTC 2013 State-Changed-Why: spam Responsible-Changed-From-To: freebsd-amd64->gnats-admin Responsible-Changed-By: linimon Responsible-Changed-When: Mon Oct 7 00:18:45 UTC 2013 Responsible-Changed-Why: http://www.freebsd.org/cgi/query-pr.cgi?pr=182623 From owner-freebsd-amd64@FreeBSD.ORG Mon Oct 7 11:06:41 2013 Return-Path: Delivered-To: freebsd-amd64@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 4A0A682E for ; Mon, 7 Oct 2013 11:06:41 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3744F2828 for ; Mon, 7 Oct 2013 11:06:41 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r97B6fnh077625 for ; Mon, 7 Oct 2013 11:06:41 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r97B6eYl077623 for freebsd-amd64@FreeBSD.org; Mon, 7 Oct 2013 11:06:40 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 7 Oct 2013 11:06:40 GMT Message-Id: <201310071106.r97B6eYl077623@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-amd64@FreeBSD.org Subject: Current problem reports assigned to freebsd-amd64@FreeBSD.org X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Oct 2013 11:06:41 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o amd64/182740 amd64 BTX halted on Jetway NF81 motherboard when RAID is ena o amd64/182686 amd64 bios lost HDD after installing freebsd-9.x o amd64/182568 amd64 FreeBSD 10 Alpha 4 fails installation under Hyper-V o amd64/181358 amd64 Suspend to RAM not working correctly on Lenovo X121e ( o amd64/181357 amd64 LCD Brightness Control not working on Lenovo X121e (AC o amd64/181285 amd64 x11/xorg does not start if Nvidia Optimus is enabled o o amd64/181282 amd64 3h of work on battery on FreeBSD while 10h on Windows o amd64/180862 amd64 [install] Installing FreeBSD 9.1 (AMD64 DVD) and then o amd64/180562 amd64 amdtemp and ACPI not working with motherboard ASUS M5A o amd64/180018 amd64 [panic] System panics when bsnmpd is started o amd64/179556 amd64 FreeBSD 9-1 amd64 - Install freeze on HP Proliant DL58 o amd64/179376 amd64 xhci ehci irq storm o amd64/179288 amd64 unable to install on HP ProLiant DL380p Gen8 with 128G o amd64/179282 amd64 [PATCH] Intel SMAP for FreeBSD-CURRENT o amd64/179038 amd64 instant reboot doesnt even try too install o amd64/178792 amd64 -march=native fails with clang on certain CPU's o amd64/178357 amd64 [patch] export CPU physical and virtual address sizes o amd64/176835 amd64 Fatal trap 12: page fault while in kernel mode o amd64/176474 amd64 kernel panic o amd64/175725 amd64 Audio through USB has not as good hi quality as it has o amd64/175655 amd64 When enabled tty console OS hang during boot o amd64/175370 amd64 kernel panic the rebuild kernel with vimage options in o amd64/175282 amd64 Freebsd 9.1 release amd64, mb Intel D525MW, not worked o amd64/175129 amd64 laptop won't suspend on lid close o amd64/174679 amd64 Intel i5 laptop overheats and shuts down [regression] o amd64/173869 amd64 buildworld breaks with clang o amd64/173680 amd64 9.1rc3 installer hangs at "rootpass" o amd64/173502 amd64 Patch inhibition of warnings that appear in the combin o amd64/173465 amd64 FreeBSD 9.1 restarts in random fashion after upgrade t o amd64/173311 amd64 FreeBSD 9.1 RC2 , 12 servers restart in random fashion o amd64/173235 amd64 Have received two crashes within 1 day after installin o amd64/172926 amd64 [boot] booting hangs after 9.1-RC2 install in 2nd (MBR o amd64/171835 amd64 bsdinstall abort on Dell PowerEdge R420 with PERC H310 o amd64/171814 amd64 [panic] bioq_init or bioq_remove (unsure which) o amd64/171701 amd64 [install] 9.0-rel amd64 installer 'guided' or 'manual' o amd64/171250 amd64 ldd32 cannot find some i386 libraries o amd64/170487 amd64 [boot] Thinkpad X61s cannot boot 9.1-BETA1 o amd64/170351 amd64 [kernel] [patch] amd64: 64-bit process can't always ge o amd64/170115 amd64 Serial boot broken in 9.0 o amd64/168659 amd64 [boot] FreeBSD 9 - Crash upon booting off install CD ( o amd64/167582 amd64 Compile of MySQL NDB Cluster Fails 8.2 AMD64 o amd64/167543 amd64 [kernel] Install FreeBSD can show error message with c o amd64/167393 amd64 [boot] MacBook4,1 hangs on SMP boot o amd64/166639 amd64 [boot] Syscons issue Intel D2700 o amd64/166229 amd64 [boot] Unable to install FreeBSD 9 on Acer Extensa 522 o amd64/165850 amd64 [build] 8.3-RC1 (amd64): world doesn't build with CPUT o amd64/165845 amd64 [build] Unable to build kernel on 8.2-STABLE o amd64/165351 amd64 [boot] Error while installing or booting the freeBSD O o amd64/164773 amd64 [boot] 9.0 amd64 fails to boot on HP DL145 G3 [regress o amd64/164707 amd64 FreeBSD 9 installer does not work with IBM uefi o amd64/164643 amd64 Kernel Panic at 9.0-RELEASE o amd64/164619 amd64 when logged in as root the user and group applications o amd64/164457 amd64 [install] Can't install FreeBSD 9.0 (amd64) on HP Blad o amd64/164301 amd64 [install] 9.0 - Can't install, no DHCP lease o amd64/164136 amd64 after fresh install 8.1 release or 8.2 release the har o amd64/164116 amd64 [boot] FreeBSD 9.0-RELEASE installations mediums fails o amd64/164089 amd64 FreeBSD-9.0-RELEASE-amd64-memstick.img does not boot o amd64/164073 amd64 /etc/rc warning after booting o amd64/164036 amd64 [keyboard] Moused fails on 9_0_RELENG o amd64/163736 amd64 Freebsd 8.2 with MPD5 and about 100 PPPoE clients pani o amd64/163710 amd64 setjump in userboot.so causes stack corruption o amd64/163625 amd64 Install problems of RC3 amd64 on ASRock N68 GE3 UCC o amd64/163568 amd64 hard drive naming o amd64/163285 amd64 when installing gnome2-lite not all dependent packages o amd64/163284 amd64 print manager failed to install correctly o amd64/163114 amd64 no boot on Via Nanao netbook Samsung NC20 o amd64/163092 amd64 FreeBSD 9.0-RC2 fails to boot from raid-z2 if AHCI is o amd64/163048 amd64 normal user cant mount ntfs-3g o amd64/162936 amd64 fails boot and destabilizes other OSes on FreeBSD 9 RC o amd64/162489 amd64 After some time X blanks the screen and does not respo o amd64/162314 amd64 not able to install FreeBSD-8.2-RELEASE-amd64-dvd1 as o amd64/162170 amd64 Unable to install due to freeze at "run_interrupt_driv o amd64/161974 amd64 FreeBSD 9 new installer installs succesful, renders ma o kern/160833 amd64 Keyboard USB doesn't work o amd64/157386 amd64 [powerd] Enabling powerd(8) with default settings on I o amd64/156106 amd64 [boot] boot0 fails to start o amd64/155135 amd64 [boot] Does Not Boot On a Very Standard Hardware o amd64/154957 amd64 [boot] Install boot CD won't boot up - keeps rebooting o amd64/154629 amd64 [panic] Fatal trap 9: general protection fault while i o amd64/153935 amd64 [hang] system hangs while trying to do 'shutdown -h no o amd64/153831 amd64 [boot] CD bootloader won't on Tyan s2912G2nr o amd64/153496 amd64 [hyper-v] [install] Install on Hyper-V leaves corrupt o amd64/153372 amd64 [panic] kernel panic o amd64/153175 amd64 [amd64] Kernel Panic on only FreeBSD 8 amd64 o amd64/152874 amd64 [install] 8.1 install fails where 7.3 works due to lac o amd64/152430 amd64 [boot] HP ProLiant Microserver n36l cannot boot into i o amd64/145991 amd64 [NOTES] [patch] Add a requires line to /sys/amd64/conf o amd64/144405 amd64 [build] [patch] include /usr/obj/lib32 in cleanworld t s amd64/143173 amd64 [ata] Promise FastTrack TX4 + SATA DVD, installer can' p amd64/141413 amd64 [hang] Tyan 2881 m3289 SMDC freeze o amd64/137942 amd64 [pci] 8.0-BETA2 having problems with Asus M2N-SLI-delu o amd64/127640 amd64 [amd64] gcc(1) will not build shared libraries with -f o amd64/115194 amd64 LCD screen remains blank after Dell XPS M1210 lid is c 93 problems total. From owner-freebsd-amd64@FreeBSD.ORG Mon Oct 7 16:17:19 2013 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 90B15B50; Mon, 7 Oct 2013 16:17:19 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 699F42E64; Mon, 7 Oct 2013 16:17:19 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 47BA9B93B; Mon, 7 Oct 2013 12:17:17 -0400 (EDT) From: John Baldwin To: freebsd-amd64@freebsd.org Subject: Re: amd64/182568: FreeBSD 10 Alpha 4 fails installation under Hyper-V Date: Mon, 7 Oct 2013 10:28:39 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.4-CBSD-20130906; KDE/4.5.5; amd64; ; ) References: <201310021045.r92AjOUs063544@oldred.freebsd.org> In-Reply-To: <201310021045.r92AjOUs063544@oldred.freebsd.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201310071028.40117.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Mon, 07 Oct 2013 12:17:17 -0400 (EDT) Cc: Chavdar Ivanov , freebsd-gnats-submit@freebsd.org X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Oct 2013 16:17:19 -0000 On Wednesday, October 02, 2013 6:45:24 am Chavdar Ivanov wrote: > > >Number: 182568 > >Category: amd64 > >Synopsis: FreeBSD 10 Alpha 4 fails installation under Hyper-V > >Confidential: no > >Severity: non-critical > >Priority: low > >Responsible: freebsd-amd64 > >State: open > >Quarter: > >Keywords: > >Date-Required: > >Class: sw-bug > >Submitter-Id: current-users > >Arrival-Date: Wed Oct 02 10:50:00 UTC 2013 > >Closed-Date: > >Last-Modified: > >Originator: Chavdar Ivanov > >Release: FreeBSD 10 Alpha 4 > >Organization: > Delcam Plc > >Environment: > n/a > >Description: > Tried installing FreeBSD-10.0-ALPHA4-amd64-disc1.iso on Hyper-V 2008 R2, Hyper-V 2012 and Hyper-V 2012 R2 (preview) with identical results. The kernel appears not to recognize the CD drive, the message about it does not appear. The last message is as follows: I believe the Hyper-V guys are working on a fix for this. -- John Baldwin From owner-freebsd-amd64@FreeBSD.ORG Mon Oct 7 16:17:22 2013 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 1F693B54; Mon, 7 Oct 2013 16:17:22 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id EBB0F2E67; Mon, 7 Oct 2013 16:17:21 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id E6D34B962; Mon, 7 Oct 2013 12:17:20 -0400 (EDT) From: John Baldwin To: freebsd-amd64@freebsd.org Subject: Re: amd64/182740: BTX halted on Jetway NF81 motherboard when RAID is enabled Date: Mon, 7 Oct 2013 11:47:32 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.4-CBSD-20130906; KDE/4.5.5; amd64; ; ) References: <201310061128.r96BSVOa087061@oldred.freebsd.org> In-Reply-To: <201310061128.r96BSVOa087061@oldred.freebsd.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201310071147.32302.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Mon, 07 Oct 2013 12:17:21 -0400 (EDT) Cc: freebsd-gnats-submit@freebsd.org, Julian Pidancet X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Oct 2013 16:17:22 -0000 On Sunday, October 06, 2013 7:28:31 am Julian Pidancet wrote: > > >Number: 182740 > >Category: amd64 > >Synopsis: BTX halted on Jetway NF81 motherboard when RAID is enabled > >Confidential: no > >Severity: non-critical > >Priority: low > >Responsible: freebsd-amd64 > >State: open > >Quarter: > >Keywords: > >Date-Required: > >Class: sw-bug > >Submitter-Id: current-users > >Arrival-Date: Sun Oct 06 11:30:00 UTC 2013 > >Closed-Date: > >Last-Modified: > >Originator: Julian Pidancet > >Release: 8.2 > >Organization: > >Environment: > >Description: > Just got this brand new motherboard with an AMD APU and an AMD chipset. > > Whenever I try to boot FreeBSD and AHCI or RAID is enabled in the BIOS, I am getting this message: > > BTX loader 1.00 BTX version is 1.02 > int=0000000a err=00000000 efl=00006402 eip=000093e0 > eax=534d4150 ebx=00000001 ecx=00000014 edx=534d4150 > esi=00000000 edi=00000004 ebp=00000000 esp=0000004e > cs=0008 ds=0033 es=0033 fs=0033 gs=0033 ss=0010 > cs:eip=cf 83 f8 01 75 1a 16 87-86 1f 1e 0f a1 0f a0 0f > a9 b8 00 a0 00 00 03 44-24 0c 8d 60 04 58 ff d0 > ss:esp=00 f0 39 e7 00 f0 e3 21-80 ce 2e e8 00 f0 d2 ef > 00 f0 00 e0 00 f0 f2 e6-00 f0 6e fe 00 f0 53 ff > BTX halted > > It looks like to me the BTX is taking an "Invalid TSS" exception while executing an iret instruction. > >How-To-Repeat: > I tried: - Booting from the install cdrom > - Booting from an USB install disk > - Booting from boot/pxeboot in PXE mode > > All exhibit the same issue. > >Fix: > Selecting "Legacy IDE" mode in the BIOS configuration instead of AHCI/RAID. Ok, can you take this patch and use it to build an updated pxeboot and test if it fixes disk access with AHCI enabled? Index: boot/i386/btx/btx/btx.S =================================================================== --- boot/i386/btx/btx/btx.S (revision 247010) +++ boot/i386/btx/btx/btx.S (working copy) @@ -41,6 +41,8 @@ .set PSL_RESERVED_DEFAULT,0x00000002 .set PSL_T,0x00000100 # Trap flag .set PSL_I,0x00000200 # Interrupt enable flag + .set PSL_D,0x00000400 # String instruction direction + .set PSL_NT,0x00004000 # Nested task flag .set PSL_VM,0x00020000 # Virtual 8086 mode flag .set PSL_AC,0x00040000 # Alignment check flag /* @@ -611,8 +613,8 @@ pushl %ds # regs pushl %es pushfl # Save %eflags - cli # Disable interrupts - std # String ops dec + pushl $PSL_RESERVED_DEFAULT|PSL_D # Use clean %eflags with + popfl # string ops dec xorw %ax,%ax # Reset seg movw %ax,%ds # regs movw %ax,%es # (%ss is already 0) @@ -675,6 +677,7 @@ testl $V86F_FLAGS,%edx # User wants flags? jz rret_tramp.3 # No movl MEM_ESPR-0x3c,%eax # Read real mode flags + andl $~(PSL_T|PSL_NT),%eax # Clear unsafe flags movw %ax,-0x08(%esi) # Update user flags (low 16) /* * Return to the user task -- John Baldwin From owner-freebsd-amd64@FreeBSD.ORG Mon Oct 7 16:17:20 2013 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id AE0BEB53; Mon, 7 Oct 2013 16:17:20 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 882C12E65; Mon, 7 Oct 2013 16:17:20 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 97A68B95B; Mon, 7 Oct 2013 12:17:19 -0400 (EDT) From: John Baldwin To: freebsd-amd64@freebsd.org Subject: Re: amd64/182686: bios lost HDD after installing freebsd-9.x Date: Mon, 7 Oct 2013 11:41:27 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.4-CBSD-20130906; KDE/4.5.5; amd64; ; ) References: <201310051418.r95EIgR1088129@oldred.freebsd.org> In-Reply-To: <201310051418.r95EIgR1088129@oldred.freebsd.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Message-Id: <201310071141.27910.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Mon, 07 Oct 2013 12:17:19 -0400 (EDT) Cc: freebsd-gnats-submit@freebsd.org, XXXXXX X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Oct 2013 16:17:20 -0000 On Saturday, October 05, 2013 10:18:42 am XXXXXX wrote: >=20 > >Number: 182686 > >Category: amd64 > >Synopsis: bios lost HDD after installing freebsd-9.x > >Confidential: no > >Severity: serious > >Priority: medium > >Responsible: freebsd-amd64 > >State: open > >Quarter: =20 > >Keywords: =20 > >Date-Required: > >Class: sw-bug > >Submitter-Id: current-users > >Arrival-Date: Sat Oct 05 14:20:00 UTC 2013 > >Closed-Date: > >Last-Modified: > >Originator: =E1=CE=C4=D2=C5=CA > >Release: 9.2 > >Organization: > >Environment: > >Description: > I have installed freebsd-9.1 on my AMD 64 machine it worked well. But I h= ave=20 decided to go on 9.2 version and. I booted from usb, create slice and bsd- partitions on IDE hard drive using gpart and newfs. then i used bsdinstall = to=20 install the system. after installing i make "shutdown -p now". When i turne= d=20 my computer on, BIOS did not detect any hard drive. > Then i installed system on SATA hard drive and have got the same result.= =20 When i connect this SATA drive to windows machine via USB - disk is OK. Aft= er=20 deleting FreeBSD slice and connecting the disk back to AMD64 its BIOS has=20 detected the drive. Did you use GPT? If so, try using MBR instead for partitioning your disk. =2D-=20 John Baldwin From owner-freebsd-amd64@FreeBSD.ORG Mon Oct 7 16:17:26 2013 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 830FBB84; Mon, 7 Oct 2013 16:17:26 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4AF4C2E68; Mon, 7 Oct 2013 16:17:23 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 548DBB980; Mon, 7 Oct 2013 12:17:22 -0400 (EDT) From: John Baldwin To: freebsd-amd64@freebsd.org Subject: Re: kern/182355: [ipf] ipf doesn't compile in 10.0-ALPHA2 Date: Mon, 7 Oct 2013 11:49:15 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.4-CBSD-20130906; KDE/4.5.5; amd64; ; ) References: <201309292146.r8TLkXQc049444@freefall.freebsd.org> In-Reply-To: <201309292146.r8TLkXQc049444@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201310071149.15939.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Mon, 07 Oct 2013 12:17:22 -0400 (EDT) Cc: freebsd-ipf@freebsd.org, Cy Schubert X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Oct 2013 16:17:26 -0000 On Sunday, September 29, 2013 5:46:33 pm linimon@freebsd.org wrote: > Old Synopsis: ipf doesn't compile in 10.0-ALPHA2 > New Synopsis: [ipf] ipf doesn't compile in 10.0-ALPHA2 > > Responsible-Changed-From-To: freebsd-amd64->freebsd-ipf > Responsible-Changed-By: linimon > Responsible-Changed-When: Sun Sep 29 21:45:50 UTC 2013 > Responsible-Changed-Why: > Over to maintainer(s). This is not ipfw, but ipfilter. I think Cy (cc'd) is maintaining ipfilter now. -- John Baldwin From owner-freebsd-amd64@FreeBSD.ORG Mon Oct 7 16:20:01 2013 Return-Path: Delivered-To: freebsd-amd64@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 218A8D1 for ; Mon, 7 Oct 2013 16:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 0D1482ECB for ; Mon, 7 Oct 2013 16:20:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r97GK0Z6075772 for ; Mon, 7 Oct 2013 16:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r97GK0hP075771; Mon, 7 Oct 2013 16:20:00 GMT (envelope-from gnats) Date: Mon, 7 Oct 2013 16:20:00 GMT Message-Id: <201310071620.r97GK0hP075771@freefall.freebsd.org> To: freebsd-amd64@FreeBSD.org Cc: From: John Baldwin Subject: Re: amd64/182686: bios lost HDD after installing freebsd-9.x X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: John Baldwin List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Oct 2013 16:20:01 -0000 The following reply was made to PR amd64/182686; it has been noted by GNATS. From: John Baldwin To: freebsd-amd64@freebsd.org Cc: XXXXXX , freebsd-gnats-submit@freebsd.org Subject: Re: amd64/182686: bios lost HDD after installing freebsd-9.x Date: Mon, 7 Oct 2013 11:41:27 -0400 On Saturday, October 05, 2013 10:18:42 am XXXXXX wrote: >=20 > >Number: 182686 > >Category: amd64 > >Synopsis: bios lost HDD after installing freebsd-9.x > >Confidential: no > >Severity: serious > >Priority: medium > >Responsible: freebsd-amd64 > >State: open > >Quarter: =20 > >Keywords: =20 > >Date-Required: > >Class: sw-bug > >Submitter-Id: current-users > >Arrival-Date: Sat Oct 05 14:20:00 UTC 2013 > >Closed-Date: > >Last-Modified: > >Originator: =E1=CE=C4=D2=C5=CA > >Release: 9.2 > >Organization: > >Environment: > >Description: > I have installed freebsd-9.1 on my AMD 64 machine it worked well. But I h= ave=20 decided to go on 9.2 version and. I booted from usb, create slice and bsd- partitions on IDE hard drive using gpart and newfs. then i used bsdinstall = to=20 install the system. after installing i make "shutdown -p now". When i turne= d=20 my computer on, BIOS did not detect any hard drive. > Then i installed system on SATA hard drive and have got the same result.= =20 When i connect this SATA drive to windows machine via USB - disk is OK. Aft= er=20 deleting FreeBSD slice and connecting the disk back to AMD64 its BIOS has=20 detected the drive. Did you use GPT? If so, try using MBR instead for partitioning your disk. =2D-=20 John Baldwin From owner-freebsd-amd64@FreeBSD.ORG Mon Oct 7 16:20:02 2013 Return-Path: Delivered-To: freebsd-amd64@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 2CE72D2 for ; Mon, 7 Oct 2013 16:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 19BD72ECC for ; Mon, 7 Oct 2013 16:20:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r97GK1DK075779 for ; Mon, 7 Oct 2013 16:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r97GK1vf075778; Mon, 7 Oct 2013 16:20:01 GMT (envelope-from gnats) Date: Mon, 7 Oct 2013 16:20:01 GMT Message-Id: <201310071620.r97GK1vf075778@freefall.freebsd.org> To: freebsd-amd64@FreeBSD.org Cc: From: John Baldwin Subject: Re: amd64/182568: FreeBSD 10 Alpha 4 fails installation under Hyper-V X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: John Baldwin List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Oct 2013 16:20:02 -0000 The following reply was made to PR amd64/182568; it has been noted by GNATS. From: John Baldwin To: freebsd-amd64@freebsd.org Cc: Chavdar Ivanov , freebsd-gnats-submit@freebsd.org Subject: Re: amd64/182568: FreeBSD 10 Alpha 4 fails installation under Hyper-V Date: Mon, 7 Oct 2013 10:28:39 -0400 On Wednesday, October 02, 2013 6:45:24 am Chavdar Ivanov wrote: > > >Number: 182568 > >Category: amd64 > >Synopsis: FreeBSD 10 Alpha 4 fails installation under Hyper-V > >Confidential: no > >Severity: non-critical > >Priority: low > >Responsible: freebsd-amd64 > >State: open > >Quarter: > >Keywords: > >Date-Required: > >Class: sw-bug > >Submitter-Id: current-users > >Arrival-Date: Wed Oct 02 10:50:00 UTC 2013 > >Closed-Date: > >Last-Modified: > >Originator: Chavdar Ivanov > >Release: FreeBSD 10 Alpha 4 > >Organization: > Delcam Plc > >Environment: > n/a > >Description: > Tried installing FreeBSD-10.0-ALPHA4-amd64-disc1.iso on Hyper-V 2008 R2, Hyper-V 2012 and Hyper-V 2012 R2 (preview) with identical results. The kernel appears not to recognize the CD drive, the message about it does not appear. The last message is as follows: I believe the Hyper-V guys are working on a fix for this. -- John Baldwin From owner-freebsd-amd64@FreeBSD.ORG Mon Oct 7 16:20:03 2013 Return-Path: Delivered-To: freebsd-amd64@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 3FC12D3 for ; Mon, 7 Oct 2013 16:20:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 1DDE52ECD for ; Mon, 7 Oct 2013 16:20:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r97GK2cX075785 for ; Mon, 7 Oct 2013 16:20:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r97GK2id075784; Mon, 7 Oct 2013 16:20:02 GMT (envelope-from gnats) Date: Mon, 7 Oct 2013 16:20:02 GMT Message-Id: <201310071620.r97GK2id075784@freefall.freebsd.org> To: freebsd-amd64@FreeBSD.org Cc: From: John Baldwin Subject: Re: amd64/182740: BTX halted on Jetway NF81 motherboard when RAID is enabled X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: John Baldwin List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Oct 2013 16:20:03 -0000 The following reply was made to PR amd64/182740; it has been noted by GNATS. From: John Baldwin To: freebsd-amd64@freebsd.org Cc: Julian Pidancet , freebsd-gnats-submit@freebsd.org Subject: Re: amd64/182740: BTX halted on Jetway NF81 motherboard when RAID is enabled Date: Mon, 7 Oct 2013 11:47:32 -0400 On Sunday, October 06, 2013 7:28:31 am Julian Pidancet wrote: > > >Number: 182740 > >Category: amd64 > >Synopsis: BTX halted on Jetway NF81 motherboard when RAID is enabled > >Confidential: no > >Severity: non-critical > >Priority: low > >Responsible: freebsd-amd64 > >State: open > >Quarter: > >Keywords: > >Date-Required: > >Class: sw-bug > >Submitter-Id: current-users > >Arrival-Date: Sun Oct 06 11:30:00 UTC 2013 > >Closed-Date: > >Last-Modified: > >Originator: Julian Pidancet > >Release: 8.2 > >Organization: > >Environment: > >Description: > Just got this brand new motherboard with an AMD APU and an AMD chipset. > > Whenever I try to boot FreeBSD and AHCI or RAID is enabled in the BIOS, I am getting this message: > > BTX loader 1.00 BTX version is 1.02 > int=0000000a err=00000000 efl=00006402 eip=000093e0 > eax=534d4150 ebx=00000001 ecx=00000014 edx=534d4150 > esi=00000000 edi=00000004 ebp=00000000 esp=0000004e > cs=0008 ds=0033 es=0033 fs=0033 gs=0033 ss=0010 > cs:eip=cf 83 f8 01 75 1a 16 87-86 1f 1e 0f a1 0f a0 0f > a9 b8 00 a0 00 00 03 44-24 0c 8d 60 04 58 ff d0 > ss:esp=00 f0 39 e7 00 f0 e3 21-80 ce 2e e8 00 f0 d2 ef > 00 f0 00 e0 00 f0 f2 e6-00 f0 6e fe 00 f0 53 ff > BTX halted > > It looks like to me the BTX is taking an "Invalid TSS" exception while executing an iret instruction. > >How-To-Repeat: > I tried: - Booting from the install cdrom > - Booting from an USB install disk > - Booting from boot/pxeboot in PXE mode > > All exhibit the same issue. > >Fix: > Selecting "Legacy IDE" mode in the BIOS configuration instead of AHCI/RAID. Ok, can you take this patch and use it to build an updated pxeboot and test if it fixes disk access with AHCI enabled? Index: boot/i386/btx/btx/btx.S =================================================================== --- boot/i386/btx/btx/btx.S (revision 247010) +++ boot/i386/btx/btx/btx.S (working copy) @@ -41,6 +41,8 @@ .set PSL_RESERVED_DEFAULT,0x00000002 .set PSL_T,0x00000100 # Trap flag .set PSL_I,0x00000200 # Interrupt enable flag + .set PSL_D,0x00000400 # String instruction direction + .set PSL_NT,0x00004000 # Nested task flag .set PSL_VM,0x00020000 # Virtual 8086 mode flag .set PSL_AC,0x00040000 # Alignment check flag /* @@ -611,8 +613,8 @@ pushl %ds # regs pushl %es pushfl # Save %eflags - cli # Disable interrupts - std # String ops dec + pushl $PSL_RESERVED_DEFAULT|PSL_D # Use clean %eflags with + popfl # string ops dec xorw %ax,%ax # Reset seg movw %ax,%ds # regs movw %ax,%es # (%ss is already 0) @@ -675,6 +677,7 @@ testl $V86F_FLAGS,%edx # User wants flags? jz rret_tramp.3 # No movl MEM_ESPR-0x3c,%eax # Read real mode flags + andl $~(PSL_T|PSL_NT),%eax # Clear unsafe flags movw %ax,-0x08(%esi) # Update user flags (low 16) /* * Return to the user task -- John Baldwin From owner-freebsd-amd64@FreeBSD.ORG Mon Oct 7 22:38:33 2013 Return-Path: Delivered-To: amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 74572C94; Mon, 7 Oct 2013 22:38:33 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3B48E2AAB; Mon, 7 Oct 2013 22:38:32 +0000 (UTC) Received: from freebsd-current.sentex.ca (localhost [127.0.0.1]) by freebsd-current.sentex.ca (8.14.5/8.14.5) with ESMTP id r97McPUY063884; Mon, 7 Oct 2013 18:38:25 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: (from tinderbox@localhost) by freebsd-current.sentex.ca (8.14.5/8.14.5/Submit) id r97McPSv063875; Mon, 7 Oct 2013 22:38:25 GMT (envelope-from tinderbox@freebsd.org) Date: Mon, 7 Oct 2013 22:38:25 GMT Message-Id: <201310072238.r97McPSv063875@freebsd-current.sentex.ca> X-Authentication-Warning: freebsd-current.sentex.ca: tinderbox set sender to FreeBSD Tinderbox using -f Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Subject: [head tinderbox] failure on amd64/amd64 Precedence: bulk X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Oct 2013 22:38:33 -0000 TB --- 2013-10-07 18:40:22 - tinderbox 2.20 running on freebsd-current.sentex.ca TB --- 2013-10-07 18:40:22 - FreeBSD freebsd-current.sentex.ca 8.3-PRERELEASE FreeBSD 8.3-PRERELEASE #0: Mon Mar 26 13:54:12 EDT 2012 des@freebsd-current.sentex.ca:/usr/obj/usr/src/sys/GENERIC amd64 TB --- 2013-10-07 18:40:22 - starting HEAD tinderbox run for amd64/amd64 TB --- 2013-10-07 18:40:22 - cleaning the object tree TB --- 2013-10-07 18:40:22 - /usr/local/bin/svn stat /src TB --- 2013-10-07 18:40:27 - At svn revision 256119 TB --- 2013-10-07 18:40:28 - building world TB --- 2013-10-07 18:40:28 - CROSS_BUILD_TESTING=YES TB --- 2013-10-07 18:40:28 - MAKEOBJDIRPREFIX=/obj TB --- 2013-10-07 18:40:28 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2013-10-07 18:40:28 - SRCCONF=/dev/null TB --- 2013-10-07 18:40:28 - TARGET=amd64 TB --- 2013-10-07 18:40:28 - TARGET_ARCH=amd64 TB --- 2013-10-07 18:40:28 - TZ=UTC TB --- 2013-10-07 18:40:28 - __MAKE_CONF=/dev/null TB --- 2013-10-07 18:40:28 - cd /src TB --- 2013-10-07 18:40:28 - /usr/bin/make -B buildworld >>> Building an up-to-date make(1) >>> World build started on Mon Oct 7 18:40:37 UTC 2013 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything >>> stage 5.1: building 32 bit shim libraries >>> World build completed on Mon Oct 7 22:29:10 UTC 2013 TB --- 2013-10-07 22:29:10 - generating LINT kernel config TB --- 2013-10-07 22:29:10 - cd /src/sys/amd64/conf TB --- 2013-10-07 22:29:10 - /usr/bin/make -B LINT TB --- 2013-10-07 22:29:10 - cd /src/sys/amd64/conf TB --- 2013-10-07 22:29:10 - /usr/sbin/config -m LINT TB --- 2013-10-07 22:29:10 - building LINT kernel TB --- 2013-10-07 22:29:10 - CROSS_BUILD_TESTING=YES TB --- 2013-10-07 22:29:10 - MAKEOBJDIRPREFIX=/obj TB --- 2013-10-07 22:29:10 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2013-10-07 22:29:10 - SRCCONF=/dev/null TB --- 2013-10-07 22:29:10 - TARGET=amd64 TB --- 2013-10-07 22:29:10 - TARGET_ARCH=amd64 TB --- 2013-10-07 22:29:10 - TZ=UTC TB --- 2013-10-07 22:29:10 - __MAKE_CONF=/dev/null TB --- 2013-10-07 22:29:10 - cd /src TB --- 2013-10-07 22:29:10 - /usr/bin/make -B buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Mon Oct 7 22:29:10 UTC 2013 >>> stage 1: configuring the kernel >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3.1: making dependencies >>> stage 3.2: building everything [...] cc -c -O2 -pipe -fno-strict-aliasing -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -I/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -DGPROF -DGPROF4 -DGUPROF -fno-builtin -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mno-aes -mno-avx -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -Werror -pg /src/sys/dev/cxgbe/t4_sge.c -I/src/sys/dev/cxgbe /src/sys/dev/cxgbe/t4_sge.c:228:12: error: use of undeclared identifier 'cpu_clflush_line_size' pad = max(cpu_clflush_line_size, 16); ^ /src/sys/dev/cxgbe/t4_sge.c:273:9: error: use of undeclared identifier 'cpu_clflush_line_size' len = cpu_clflush_line_size > 64 ? 128 : 64; ^ 2 errors generated. *** Error code 1 Stop. bmake[1]: stopped in /obj/amd64.amd64/src/sys/LINT *** Error code 1 Stop. bmake: stopped in /src *** Error code 1 Stop in /src. TB --- 2013-10-07 22:38:25 - WARNING: /usr/bin/make returned exit code 1 TB --- 2013-10-07 22:38:25 - ERROR: failed to build LINT kernel TB --- 2013-10-07 22:38:25 - 11075.36 user 2371.61 system 14282.78 real http://tinderbox.freebsd.org/tinderbox-head-build-HEAD-amd64-amd64.full From owner-freebsd-amd64@FreeBSD.ORG Tue Oct 8 22:48:51 2013 Return-Path: Delivered-To: amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id BD61EBA5; Tue, 8 Oct 2013 22:48:51 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 90DBA285E; Tue, 8 Oct 2013 22:48:51 +0000 (UTC) Received: from freebsd-current.sentex.ca (localhost [127.0.0.1]) by freebsd-current.sentex.ca (8.14.5/8.14.5) with ESMTP id r98MmisK061563; Tue, 8 Oct 2013 18:48:44 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: (from tinderbox@localhost) by freebsd-current.sentex.ca (8.14.5/8.14.5/Submit) id r98MmiET061559; Tue, 8 Oct 2013 22:48:44 GMT (envelope-from tinderbox@freebsd.org) Date: Tue, 8 Oct 2013 22:48:44 GMT Message-Id: <201310082248.r98MmiET061559@freebsd-current.sentex.ca> X-Authentication-Warning: freebsd-current.sentex.ca: tinderbox set sender to FreeBSD Tinderbox using -f Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Subject: [head tinderbox] failure on amd64/amd64 Precedence: bulk X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Oct 2013 22:48:51 -0000 TB --- 2013-10-08 18:40:20 - tinderbox 2.20 running on freebsd-current.sentex.ca TB --- 2013-10-08 18:40:20 - FreeBSD freebsd-current.sentex.ca 8.3-PRERELEASE FreeBSD 8.3-PRERELEASE #0: Mon Mar 26 13:54:12 EDT 2012 des@freebsd-current.sentex.ca:/usr/obj/usr/src/sys/GENERIC amd64 TB --- 2013-10-08 18:40:20 - starting HEAD tinderbox run for amd64/amd64 TB --- 2013-10-08 18:40:20 - cleaning the object tree TB --- 2013-10-08 18:40:20 - /usr/local/bin/svn stat /src TB --- 2013-10-08 18:40:25 - At svn revision 256158 TB --- 2013-10-08 18:40:26 - building world TB --- 2013-10-08 18:40:26 - CROSS_BUILD_TESTING=YES TB --- 2013-10-08 18:40:26 - MAKEOBJDIRPREFIX=/obj TB --- 2013-10-08 18:40:26 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2013-10-08 18:40:26 - SRCCONF=/dev/null TB --- 2013-10-08 18:40:26 - TARGET=amd64 TB --- 2013-10-08 18:40:26 - TARGET_ARCH=amd64 TB --- 2013-10-08 18:40:26 - TZ=UTC TB --- 2013-10-08 18:40:26 - __MAKE_CONF=/dev/null TB --- 2013-10-08 18:40:26 - cd /src TB --- 2013-10-08 18:40:26 - /usr/bin/make -B buildworld >>> Building an up-to-date make(1) >>> World build started on Tue Oct 8 18:40:35 UTC 2013 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything >>> stage 5.1: building 32 bit shim libraries >>> World build completed on Tue Oct 8 22:29:39 UTC 2013 TB --- 2013-10-08 22:29:39 - generating LINT kernel config TB --- 2013-10-08 22:29:39 - cd /src/sys/amd64/conf TB --- 2013-10-08 22:29:39 - /usr/bin/make -B LINT TB --- 2013-10-08 22:29:39 - cd /src/sys/amd64/conf TB --- 2013-10-08 22:29:39 - /usr/sbin/config -m LINT TB --- 2013-10-08 22:29:39 - building LINT kernel TB --- 2013-10-08 22:29:39 - CROSS_BUILD_TESTING=YES TB --- 2013-10-08 22:29:39 - MAKEOBJDIRPREFIX=/obj TB --- 2013-10-08 22:29:39 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2013-10-08 22:29:39 - SRCCONF=/dev/null TB --- 2013-10-08 22:29:39 - TARGET=amd64 TB --- 2013-10-08 22:29:39 - TARGET_ARCH=amd64 TB --- 2013-10-08 22:29:39 - TZ=UTC TB --- 2013-10-08 22:29:39 - __MAKE_CONF=/dev/null TB --- 2013-10-08 22:29:39 - cd /src TB --- 2013-10-08 22:29:39 - /usr/bin/make -B buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Tue Oct 8 22:29:39 UTC 2013 >>> stage 1: configuring the kernel >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3.1: making dependencies >>> stage 3.2: building everything [...] ^ /src/sys/geom/geom.h:357:8: error: expression result unused [-Werror,-Wunused-value] ("g_free(%p) of live object, type %d", ptr, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /src/sys/geom/geom.h:357:46: error: expression result unused [-Werror,-Wunused-value] ("g_free(%p) of live object, type %d", ptr, ^~~ 3 errors generated. *** Error code 1 Stop. bmake[1]: stopped in /obj/amd64.amd64/src/sys/LINT *** Error code 1 Stop. bmake: stopped in /src *** Error code 1 Stop in /src. TB --- 2013-10-08 22:48:44 - WARNING: /usr/bin/make returned exit code 1 TB --- 2013-10-08 22:48:44 - ERROR: failed to build LINT kernel TB --- 2013-10-08 22:48:44 - 11597.42 user 2407.20 system 14903.60 real http://tinderbox.freebsd.org/tinderbox-head-build-HEAD-amd64-amd64.full From owner-freebsd-amd64@FreeBSD.ORG Wed Oct 9 00:00:01 2013 Return-Path: Delivered-To: freebsd-amd64@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id E0086C5 for ; Wed, 9 Oct 2013 00:00:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C029C2BCA for ; Wed, 9 Oct 2013 00:00:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r99000T8031161 for ; Wed, 9 Oct 2013 00:00:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r990007h031160; Wed, 9 Oct 2013 00:00:00 GMT (envelope-from gnats) Resent-Date: Wed, 9 Oct 2013 00:00:00 GMT Resent-Message-Id: <201310090000.r990007h031160@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-amd64@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Alex Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id CFD6FBE for ; Tue, 8 Oct 2013 23:59:40 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A1BC12BC3 for ; Tue, 8 Oct 2013 23:59:40 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r98NxdEe036578 for ; Tue, 8 Oct 2013 23:59:39 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r98NxdCx036567; Tue, 8 Oct 2013 23:59:39 GMT (envelope-from nobody) Message-Id: <201310082359.r98NxdCx036567@oldred.freebsd.org> Date: Tue, 8 Oct 2013 23:59:39 GMT From: Alex To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: amd64/182843: application crashes when compiled with clang 3.3 X-Mailman-Approved-At: Wed, 09 Oct 2013 00:34:02 +0000 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Oct 2013 00:00:01 -0000 >Number: 182843 >Category: amd64 >Synopsis: application crashes when compiled with clang 3.3 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-amd64 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Oct 09 00:00:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Alex >Release: 9.2-RELEASE (amd64) >Organization: >Environment: FreeBSD srv.mydomain.net 9.2-RELEASE FreeBSD 9.2-RELEASE #2 r255961: Tue Oct 1 16:37:11 EST 2013 root@srv.mydomain.net:/usr/obj/usr/src/sys/custom_xen amd64 >Description: Hi Guys, Posted this to the freebsd-general mailing list. As I have heard nothing, I thought it would be appropriate to file a PR. There seems to be an issue that has cropped up since upgrading from 9.1-RELEASE (amd64) to 9.2-RELEASE (amd64)), in that a port (net-im/jabber) crashes frequently with signal 10 errors frequently (bus error) when built with the version of Clang shipped in 9.2-RELEASE. ----------- pid 1880 (jabberd14), uid 93: exited on signal 10 pid 8368 (jabberd14), uid 93: exited on signal 10 pid 8586 (jabberd14), uid 93: exited on signal 10 pid 9100 (jabberd14), uid 93: exited on signal 10 pid 9198 (jabberd14), uid 93: exited on signal 10 pid 9314 (jabberd14), uid 93: exited on signal 10 pid 24565 (jabberd14), uid 93: exited on signal 10 ---------- I have recompiled this port without Clang (using the base gcc compiler) and it has not crashed once since (sig 10 bus error crashes are gone). Funnily enough, in FreeBSD 9.1-RELEASE, the same port compiled with Clang 3.1 did not crash ever. So it is a reasonable assumption that the issue has to be related to Clang 3.3. I have the following in my /etc/make.conf (for clang building): root@srv:~ # cat /etc/make.conf NO_PROFILE=true CC=clang CXX=clang++ CPP=clang-cpp Whilst building the port with the base compiler is a workaround, it's not a long term solution, since Clang will be the default Compiler in the not so distant future. It appears there is no maintainer for this port? Software= jabber-1.6.1.1_13,1 MAINTAINER= ports@FreeBSD.org COMMENT= XMPP/Jabber server daemon I assume the above email is just a generic email address for ports who do not have a maintainer? I suspect the issue to be compiler specific. >How-To-Repeat: Build the net-im/jabber port using clang. I have the following options enabled for the port 'config': * ipv6 * MySQL So some basic configuration so that the software will run. Crashes can be observed anywhere from 5-10 minutes after starting the software or maybe even 2 hours later. There is no specific event in any log that seems to lead to the crash, it appears to be entirely random. >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-amd64@FreeBSD.ORG Wed Oct 9 01:30:02 2013 Return-Path: Delivered-To: freebsd-amd64@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 9D8E0716 for ; Wed, 9 Oct 2013 01:30:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8BACA2004 for ; Wed, 9 Oct 2013 01:30:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r991U2GG064037 for ; Wed, 9 Oct 2013 01:30:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r991U2EK064036; Wed, 9 Oct 2013 01:30:02 GMT (envelope-from gnats) Date: Wed, 9 Oct 2013 01:30:02 GMT Message-Id: <201310090130.r991U2EK064036@freefall.freebsd.org> To: freebsd-amd64@FreeBSD.org Cc: From: alex@ahhyes.net Subject: Re: amd64/182843: application crashes when compiled with clang 3.3 X-Mailman-Approved-At: Wed, 09 Oct 2013 03:42:29 +0000 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: alex@ahhyes.net List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Oct 2013 01:30:02 -0000 The following reply was made to PR amd64/182843; it has been noted by GNATS. From: alex@ahhyes.net To: Cc: Subject: Re: amd64/182843: application crashes when compiled with clang 3.3 Date: Wed, 09 Oct 2013 12:24:26 +1100 Have run the program in gdb with debugging symbols: --------------- Program received signal SIGILL, Illegal instruction. [Switching to Thread 804407400 (LWP 100136/jabberd14)] 0x0000000804a3ef6d in mod_privacy_end_session (m=0x8047b0e68, arg=0x0) at mod_privacy.cc:1522 1522 mod_privacy_free_current_list_definitions(m->s); ---------- bt -------------- (gdb) bt #0 0x0000000804a3ef6d in mod_privacy_end_session (m=0x8047b0e68, arg=0x0) at mod_privacy.cc:1522 #1 0x0000000804a29ae3 in js_mapi_call2 (si=0x8044dd480, e=2, packet=0x0, user=0x8047f2140, s=0x8045c3800, serialization_node=0x0) at modules.cc:226 #2 0x0000000804a2995d in js_mapi_call (si=0x0, e=2, packet=0x0, user=0x8047f2140, s=0x8045c3800) at modules.cc:177 #3 0x0000000804a2b28c in _js_session_end (arg=0x8045c3800) at sessions.cc:625 #4 0x0000000800874dc5 in mtq_main (arg=0x80451b9a0) at mtq.cc:208 #5 0x0000000802a502fb in pth_spawn_trampoline () from /usr/local/lib/pth/libpth.so.20 #6 0x0000000803d91e49 in makecontext () from /lib/libc.so.7 ----------- bt full -------------- (gdb) bt full #0 0x0000000804a3ef6d in mod_privacy_end_session (m=0x8047b0e68, arg=0x0) at mod_privacy.cc:1522 No locals. #1 0x0000000804a29ae3 in js_mapi_call2 (si=0x8044dd480, e=2, packet=0x0, user=0x8047f2140, s=0x8045c3800, serialization_node=0x0) at modules.cc:226 l = 0x8045c3cb8 m = {si = 0x8044dd480, packet = 0x0, e = 2, user = 0x8047f2140, s = 0x8045c3800, serialization_node = 0x0, additional_result = 0x0} #2 0x0000000804a2995d in js_mapi_call (si=0x0, e=2, packet=0x0, user=0x8047f2140, s=0x8045c3800) at modules.cc:177 No locals. #3 0x0000000804a2b28c in _js_session_end (arg=0x8045c3800) at sessions.cc:625 s = 0x8045c3800 #4 0x0000000800874dc5 in mtq_main (arg=0x80451b9a0) at mtq.cc:208 t = 0x80451b9a0 mpevt = 0x80454f830 c = 0x8045c4570 #5 0x0000000802a502fb in pth_spawn_trampoline () from /usr/local/lib/pth/libpth.so.20 No symbol table info available. #6 0x0000000803d91e49 in makecontext () from /lib/libc.so.7 No symbol table info available. #7 0x0000000000000000 in ?? () No symbol table info available. ------------- info registers --------------- (gdb) info registers rax 0x0 0 rbx 0x0 0 rcx 0x8047f34c0 34435183808 rdx 0x0 0 rsi 0x0 0 rdi 0x804a4f33d 34437657405 rbp 0x8047b0e40 0x8047b0e40 rsp 0x8047b0e20 0x8047b0e20 r8 0x8045c3800 34432890880 r9 0x0 0 r10 0x2601 9729 r11 0x80472ac48 34434362440 r12 0x8047a1000 34434846720 r13 0x804407c00 34431073280 r14 0x80441d9a0 34431162784 r15 0x8047b1000 34434912256 rip 0x804a3ef6d 0x804a3ef6d eflags 0x10202 66050 cs 0x43 67 ss 0x3b 59 ds 0x0 0 es 0x0 0 fs 0x0 0 gs 0x0 0 ----------- disassembly -------------- (gdb) disass mod_privacy_end_session Dump of assembler code for function _ZL23mod_privacy_end_sessionP11mapi_structPv: 0x0000000804a3ef50 <_ZL23mod_privacy_end_sessionP11mapi_structPv+0>: push %rbp 0x0000000804a3ef51 <_ZL23mod_privacy_end_sessionP11mapi_structPv+1>: mov %rsp,%rbp 0x0000000804a3ef54 <_ZL23mod_privacy_end_sessionP11mapi_structPv+4>: sub $0x20,%rsp 0x0000000804a3ef58 <_ZL23mod_privacy_end_sessionP11mapi_structPv+8>: mov %rdi,-0x10(%rbp) 0x0000000804a3ef5c <_ZL23mod_privacy_end_sessionP11mapi_structPv+12>: mov %rsi,-0x18(%rbp) 0x0000000804a3ef60 <_ZL23mod_privacy_end_sessionP11mapi_structPv+16>: mov -0x10(%rbp),%rsi 0x0000000804a3ef64 <_ZL23mod_privacy_end_sessionP11mapi_structPv+20>: mov 0x20(%rsi),%rdi 0x0000000804a3ef68 <_ZL23mod_privacy_end_sessionP11mapi_structPv+24>: callq 0x804a3dc20 <_ZL41mod_privacy_free_current_list_definitionsP14session_struct> 0x0000000804a3ef6d <_ZL23mod_privacy_end_sessionP11mapi_structPv+29>: ud2a End of assembler dump. (gdb) Hope this helps someone! From owner-freebsd-amd64@FreeBSD.ORG Thu Oct 10 16:12:11 2013 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 291D0E28; Thu, 10 Oct 2013 16:12:11 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id F407727EF; Thu, 10 Oct 2013 16:12:10 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 9B7F3B948; Thu, 10 Oct 2013 12:12:08 -0400 (EDT) From: John Baldwin To: Julian Pidancet Subject: Re: amd64/182740: BTX halted on Jetway NF81 motherboard when RAID is enabled Date: Thu, 10 Oct 2013 11:20:40 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.4-CBSD-20130906; KDE/4.5.5; amd64; ; ) References: <201310061128.r96BSVOa087061@oldred.freebsd.org> <201310071147.32302.jhb@freebsd.org> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201310101120.40759.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Thu, 10 Oct 2013 12:12:08 -0400 (EDT) Cc: freebsd-gnats-submit@freebsd.org, freebsd-amd64@freebsd.org X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Oct 2013 16:12:11 -0000 On Wednesday, October 09, 2013 5:21:05 am Julian Pidancet wrote: > On 7 October 2013 16:47, John Baldwin wrote: > > > > > Ok, can you take this patch and use it to build an updated pxeboot and test > > if it fixes disk access with AHCI enabled? > > > > > > That seems to have fixed the issue, thanks. Great, thanks! -- John Baldwin From owner-freebsd-amd64@FreeBSD.ORG Thu Oct 10 16:20:01 2013 Return-Path: Delivered-To: freebsd-amd64@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id CDCC0261 for ; Thu, 10 Oct 2013 16:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id BB73F2898 for ; Thu, 10 Oct 2013 16:20:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r9AGK1mA009916 for ; Thu, 10 Oct 2013 16:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r9AGK1Qo009915; Thu, 10 Oct 2013 16:20:01 GMT (envelope-from gnats) Date: Thu, 10 Oct 2013 16:20:01 GMT Message-Id: <201310101620.r9AGK1Qo009915@freefall.freebsd.org> To: freebsd-amd64@FreeBSD.org Cc: From: John Baldwin Subject: Re: amd64/182740: BTX halted on Jetway NF81 motherboard when RAID is enabled X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: John Baldwin List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Oct 2013 16:20:01 -0000 The following reply was made to PR amd64/182740; it has been noted by GNATS. From: John Baldwin To: Julian Pidancet Cc: freebsd-amd64@freebsd.org, freebsd-gnats-submit@freebsd.org Subject: Re: amd64/182740: BTX halted on Jetway NF81 motherboard when RAID is enabled Date: Thu, 10 Oct 2013 11:20:40 -0400 On Wednesday, October 09, 2013 5:21:05 am Julian Pidancet wrote: > On 7 October 2013 16:47, John Baldwin wrote: > > > > > Ok, can you take this patch and use it to build an updated pxeboot and test > > if it fixes disk access with AHCI enabled? > > > > > > That seems to have fixed the issue, thanks. Great, thanks! -- John Baldwin From owner-freebsd-amd64@FreeBSD.ORG Thu Oct 10 20:07:36 2013 Return-Path: Delivered-To: freebsd-amd64@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 924C0DC2; Thu, 10 Oct 2013 20:07:36 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 68F19292B; Thu, 10 Oct 2013 20:07:36 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r9AK7aQe060106; Thu, 10 Oct 2013 20:07:36 GMT (envelope-from jhb@freefall.freebsd.org) Received: (from jhb@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r9AK7Zs9060105; Thu, 10 Oct 2013 20:07:35 GMT (envelope-from jhb) Date: Thu, 10 Oct 2013 20:07:35 GMT Message-Id: <201310102007.r9AK7Zs9060105@freefall.freebsd.org> To: julian.pidancet@gmail.com, jhb@FreeBSD.org, freebsd-amd64@FreeBSD.org, jhb@FreeBSD.org From: jhb@FreeBSD.org Subject: Re: amd64/182740: BTX halted on Jetway NF81 motherboard when RAID is enabled X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Oct 2013 20:07:36 -0000 Synopsis: BTX halted on Jetway NF81 motherboard when RAID is enabled State-Changed-From-To: open->patched State-Changed-By: jhb State-Changed-When: Thu Oct 10 20:07:02 UTC 2013 State-Changed-Why: Fix committed to HEAD. Responsible-Changed-From-To: freebsd-amd64->jhb Responsible-Changed-By: jhb Responsible-Changed-When: Thu Oct 10 20:07:02 UTC 2013 Responsible-Changed-Why: Fix committed to HEAD. http://www.freebsd.org/cgi/query-pr.cgi?pr=182740 From owner-freebsd-amd64@FreeBSD.ORG Thu Oct 10 20:00:01 2013 Return-Path: Delivered-To: freebsd-amd64@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id EEFF742F for ; Thu, 10 Oct 2013 20:00:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C38A22875 for ; Thu, 10 Oct 2013 20:00:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r9AK01xF057972 for ; Thu, 10 Oct 2013 20:00:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r9AK01E3057971; Thu, 10 Oct 2013 20:00:01 GMT (envelope-from gnats) Date: Thu, 10 Oct 2013 20:00:01 GMT Message-Id: <201310102000.r9AK01E3057971@freefall.freebsd.org> To: freebsd-amd64@FreeBSD.org Cc: From: dfilter@FreeBSD.ORG (dfilter service) Subject: Re: amd64/182740: commit references a PR X-Mailman-Approved-At: Thu, 10 Oct 2013 21:42:29 +0000 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: dfilter service List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Oct 2013 20:00:02 -0000 The following reply was made to PR amd64/182740; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: amd64/182740: commit references a PR Date: Thu, 10 Oct 2013 19:51:45 +0000 (UTC) Author: jhb Date: Thu Oct 10 19:51:38 2013 New Revision: 256293 URL: http://svnweb.freebsd.org/changeset/base/256293 Log: Sanitize the %eflags returned by BIOS routines. Some BIOS routines enter protected mode and may leave protected-mode-specific flags like PSL_NT set when they return to real mode. This can cause a fault when BTX re-enters protected mode after the BIOS mode returns. PR: amd64/182740 Reported by: Julian Pidancet Approved by: re (gjb) MFC after: 1 week Modified: head/sys/boot/i386/btx/btx/btx.S Modified: head/sys/boot/i386/btx/btx/btx.S ============================================================================== --- head/sys/boot/i386/btx/btx/btx.S Thu Oct 10 19:48:43 2013 (r256292) +++ head/sys/boot/i386/btx/btx/btx.S Thu Oct 10 19:51:38 2013 (r256293) @@ -41,6 +41,8 @@ .set PSL_RESERVED_DEFAULT,0x00000002 .set PSL_T,0x00000100 # Trap flag .set PSL_I,0x00000200 # Interrupt enable flag + .set PSL_D,0x00000400 # String instruction direction + .set PSL_NT,0x00004000 # Nested task flag .set PSL_VM,0x00020000 # Virtual 8086 mode flag .set PSL_AC,0x00040000 # Alignment check flag /* @@ -611,8 +613,8 @@ rret_tramp: movw $MEM_ESPR-0x08,%sp # R pushl %ds # regs pushl %es pushfl # Save %eflags - cli # Disable interrupts - std # String ops dec + pushl $PSL_RESERVED_DEFAULT|PSL_D # Use clean %eflags with + popfl # string ops dec xorw %ax,%ax # Reset seg movw %ax,%ds # regs movw %ax,%es # (%ss is already 0) @@ -675,6 +677,7 @@ rret_tramp.1: xorl %ecx,%ecx # Zero testl $V86F_FLAGS,%edx # User wants flags? jz rret_tramp.3 # No movl MEM_ESPR-0x3c,%eax # Read real mode flags + andl $~(PSL_T|PSL_NT),%eax # Clear unsafe flags movw %ax,-0x08(%esi) # Update user flags (low 16) /* * Return to the user task _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"