From owner-freebsd-hackers@freebsd.org Mon Dec 21 19:49:30 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 83E76A4F493 for ; Mon, 21 Dec 2015 19:49:30 +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 DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 662F71347; Mon, 21 Dec 2015 19:49:30 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from ralph.baldwin.cx (c-73-231-226-104.hsd1.ca.comcast.net [73.231.226.104]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 2EDCFB979; Mon, 21 Dec 2015 14:49:29 -0500 (EST) From: John Baldwin To: freebsd-hackers@freebsd.org Cc: Bertram Scharpf , emaste@freebsd.org Subject: Re: lldb crashes hello.c Date: Mon, 21 Dec 2015 11:11:06 -0800 Message-ID: <1822063.F241qPFAvS@ralph.baldwin.cx> User-Agent: KMail/4.14.3 (FreeBSD/10.2-STABLE; KDE/4.14.3; amd64; ; ) In-Reply-To: <20151218190616.GA2284@becker.bs.l> References: <20151218190616.GA2284@becker.bs.l> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Mon, 21 Dec 2015 14:49:29 -0500 (EST) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Dec 2015 19:49:30 -0000 On Friday, December 18, 2015 08:06:16 PM Bertram Scharpf wrote: > Hi, > > I started to play around with LLDB, but it crashes right on the start. > > > user@host ~/sandbox % rake hello > cc -I/usr/local/include -g -O0 -o hello.o -c hello.c > cc -Wl,-L/usr/local/lib -o hello hello.o > user@host ~/sandbox % lldb > (lldb) target create hello > Current executable set to 'hello' (i386). > (lldb) source list > 8 { > 9 printf( "Hello, world!\n"); > 10 return 0; > 11 } > 12 > (lldb) breakpoint set -f hello.c -l 9 > Breakpoint 1: where = hello`main + 31 at hello.c:9, address = 0x080485af > (lldb) process launch > Process 2409 launching > Process 2409 stopped > (lldb) Process 2409 launched: '/usr/home/user/sandbox/hello' (i386) > Process 2409 stopped > * thread #1: tid = 100224, 0x0818188f, stop reason = hardware error > frame #0: 0x0818188f > -> 0x818188f: addb %al, (%eax) > 0x8181891: addb %al, (%eax) > 0x8181893: addb %al, (%eax) > 0x8181895: addb %al, (%eax) > (lldb) lldb doesn't (yet) support running FreeBSD/i386 binaries I believe. -- John Baldwin