From owner-freebsd-arm@FreeBSD.ORG Thu Mar 27 13:54:12 2014 Return-Path: Delivered-To: arm@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 73D99C6B for ; Thu, 27 Mar 2014 13:54:12 +0000 (UTC) Received: from smtp.hs-karlsruhe.de (smtp.HS-Karlsruhe.DE [193.196.64.25]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 394092AF for ; Thu, 27 Mar 2014 13:54:12 +0000 (UTC) Received: from iz-wera01.hs-karlsruhe.de ([193.196.65.46]) by smtp.hs-karlsruhe.de with esmtp (Exim 4.80.1) (envelope-from ) id 1WTAl0-004Ooa-Au; Thu, 27 Mar 2014 14:54:10 +0100 X-Mailer: exmh version 2.8.0 04/21/2012 with nmh-1.5 From: Ralf Wenk To: arm@freebsd.org Subject: screen(1) crashes plus weird output for screen -ls Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Date: Thu, 27 Mar 2014 14:54:10 +0100 Message-Id: X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Mar 2014 13:54:12 -0000 Hi, while working with screen(1) it dumps core very often on arm. Using gdb on the core shows (gdb) bt =230 0x2029bc18 in strlen () from /lib/libc.so.7 =231 0x0001e9a4 in ?? () (gdb) as the last function called every time. Interestingly the output of =22screen -ls=22 is a little bit weird an loo= ks There is a screen on: 814.ttyu0.rpi (Attached) -1073746664 Socket =D0=A0=E1 in =B0=F5=FF=BF8=E8. instead of the expected=20 There is a screen on: 814.ttyu0.rpi (Attached) 1 Socket in /tmp/screens/S-root /tmp is a tmpfs. kernel and world are from a fresh checked-out r263766. screen(1) is newly compiled with clang from that version an pk info shows= =5B...=5D Name : screen Version : 4.0.3_14 Installed on : Wed Mar 26 16:07:57 CET 2014 Origin : sysutils/screen Architecture : freebsd:11:armv6:32:el:eabi:softfp =5B...=5D ktrace/kdump verified that the weird =22Socket=22 line(s) are already in = the write(2) buffer. As screen(1) on i386 does not dump core and =22screen -ls=22 shows the ex= pected output I think this is a arm related problem. Ralf