From owner-freebsd-bugs@FreeBSD.ORG Thu Dec 19 21:40:41 2013 Return-Path: Delivered-To: freebsd-bugs@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 ESMTPS id 3EB14F0C for ; Thu, 19 Dec 2013 21:40:41 +0000 (UTC) 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 614611B66 for ; Thu, 19 Dec 2013 21:40:23 +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 rBJLe1uQ007096 for ; Thu, 19 Dec 2013 21:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id rBJLe1aA007095; Thu, 19 Dec 2013 21:40:01 GMT (envelope-from gnats) Date: Thu, 19 Dec 2013 21:40:01 GMT Message-Id: <201312192140.rBJLe1aA007095@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Radim Kolar Subject: RE: bin/184950: swapon aborts on gdbe device X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Radim Kolar List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Dec 2013 21:40:41 -0000 The following reply was made to PR bin/184950; it has been noted by GNATS. From: Radim Kolar To: "bug-followup@freebsd.org" Cc: Subject: RE: bin/184950: swapon aborts on gdbe device Date: Thu, 19 Dec 2013 21:29:17 +0000 <201312172237.rBHMbZtM020615@oldred.freebsd.org>,<201312172240.rBHMe0ER025897@freefall.freebsd.org> MIME-Version: 1.0 --_df5e985d-d703-4564-9361-471c10a1eb63_ Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable it looks like bug in clang compiler. If i compile with standard options and= DEBUG_FLAGS=3D-g then it crashes: bt 0: kill() from libc 1: __stack_chk_fail() from libc.so.7 2: __stack_chk_fail() from libc.so.7 3: swap_on_off() swapon.c:249 4: main swapon.c:186 If i compile it with -O0 -g then it do not crashes. = --_df5e985d-d703-4564-9361-471c10a1eb63_ Content-Type: text/html; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable
it looks like bug in clang compi= ler. If i compile with standard options and DEBUG_FLAGS=3D-g then it crashe= s:

bt

0: kill() from libc
1: __stack_chk_fail() from libc.= so.7
2: __stack_chk_fail() from libc.so.7
3: swap_on_off() swapon.c:2= 49
4: main swapon.c:186

If i compile it with -O0 -g then =3B = it do not crashes.
= --_df5e985d-d703-4564-9361-471c10a1eb63_--