From owner-freebsd-arm@FreeBSD.ORG Sun Sep 28 09:55:41 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3EB2DEFF for ; Sun, 28 Sep 2014 09:55:41 +0000 (UTC) Received: from mail-wi0-x229.google.com (mail-wi0-x229.google.com [IPv6:2a00:1450:400c:c05::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C896FC85 for ; Sun, 28 Sep 2014 09:55:40 +0000 (UTC) Received: by mail-wi0-f169.google.com with SMTP id hi2so3050931wib.2 for ; Sun, 28 Sep 2014 02:55:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:message-id:date:reply-to:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=g9FwlLumxtW6DcUPuMxD/ejUxKIwPC3nSl56SHUCyHI=; b=hzHrxTVehj6dmrlwSPFsOoA8mfQomUktUA64wLivLjAcSJkEP8eBq2WfBeEa00/SXU 8I24vLXzREX9AJkPeYw4k+NGfYFPACsbHhVSzpQ0wdf7+rJRi45yIYCWCjIxzTyZOf1H M8eJ7JzcyVDZvVB/BjKavKQWMCofJYqQem1SOCHfsq0ClmGcL+ks5BVEewWF6hjFpOkH qt/gTMtVOkPZ3nGs0NWeUEarLG2LFT3mD5g31OS+SeOAnDpeNjgfZu8vFgzz5vwb10ff kN/Q3xNBn1/aqxG5W6KAheziGvWntm6QGQzFh0SwVdh4WgEyxo1As9nEQWSiRTa5uxBB AjjA== X-Received: by 10.194.250.103 with SMTP id zb7mr36540054wjc.52.1411898138889; Sun, 28 Sep 2014 02:55:38 -0700 (PDT) Received: from [192.168.0.11] (178-83-152-199.dynamic.hispeed.ch. [178.83.152.199]) by mx.google.com with ESMTPSA id hu3sm11526111wjb.17.2014.09.28.02.55.38 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 28 Sep 2014 02:55:38 -0700 (PDT) From: Mattia Rossi X-Google-Original-From: Mattia Rossi Message-ID: <5427DB19.4000304@gmail.com> Date: Sun, 28 Sep 2014 11:55:37 +0200 Reply-To: mattia.rossi.mate@gmail.com User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.0 MIME-Version: 1.0 To: Ronald Klop , freebsd-arm@freebsd.org Subject: Re: Random Kernel Panic on Dreamplug (FS related) References: <542559BC.7090100@gmail.com> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Sep 2014 09:55:41 -0000 On 27/09/14 10:57, Ronald Klop wrote: > On Fri, 26 Sep 2014 14:19:08 +0200, Mattia Rossi > wrote: > >> This might be part of the weird FFS issues the Dreamplug has and >> no-one knows why they're happening. > > I don't know if it is related, but my Sheevaplug also has issues with > ffs while running 11-CURRENT. The fs gets corrupted or something. > Which is not fixed by fsck. Every run of fsck finds more unlinked > files and removes them. Also files which are stable on the fs since > installation like /lib/*. I've had a discussion with Ian Lepore about this, and he actually found out that fsck is broken. > This ffs corruption + panic mostly happened while installing ports on > the first day of operation. > > But, the day before yesterday I compiled with gcc again instead of > clang and it seems to run stable for 2 days now. This is interesting though.. How do I switch to gcc as compiler for world? I'd like to test that, and to see if it's really a clang problem. > > Unfortunately I don't have the backtraces of the crashes anymore. > > NB: running 11-CURRENT from usb-stick with ports mounted via nfs. Well, it's pretty much the same I have, only that the dreamplug has an internal sd card which is attached via usb. I have ports on nfs as well. > > Ronald. > > >> The panic occurred while running nsd-control reload (which should >> simply re-read a config file from disk). I was previously editing >> files without issues. >> >> Result is the following: >> >> vm_fault(0xc10a0000, d0238000, 2, 0) -> 2 >> Fatal kernel mode data abort: 'Permission Fault (P)' >> trapframe: 0xde019898 >> FSR=0000000f, FAR=d0238120, spsr=20000013 >> r0 =d0238120, r1 =00000e60, r2 =00000000, r3 =00000000 >> r4 =00000120, r5 =00000000, r6 =c3f3f6c0, r7 =00001000 >> r8 =c443e880, r9 =00000000, r10=c3d69000, r11=de019a20 >> r12=d0238120, ssp=de0198e8, slr=c0d53828, pc =c0de521c >> >> [ thread pid 21116 tid 100073 ] >> Stopped at memset+0x48: undge 0xa0cc20f8 >> db> >> db> bt >> Tracing pid 21116 tid 100073 td 0xc3e97000 >> db_trace_self() at db_trace_self >> pc = 0xc0dd5418 lr = 0xc094f8a8 (db_hex2dec+0x490) >> sp = 0xde0195a0 fp = 0xde0195b8 >> r10 = 0xc0f5e8c8 >> db_hex2dec() at db_hex2dec+0x490 >> pc = 0xc094f8a8 lr = 0xc094f260 (db_command_loop+0x300) >> sp = 0xde0195c0 fp = 0xde019660 >> r4 = 0x00000000 r5 = 0x00000000 >> r6 = 0x00000000 >> db_command_loop() at db_command_loop+0x300 >> pc = 0xc094f260 lr = 0xc094efb0 (db_command_loop+0x50) >> sp = 0xde019668 fp = 0xde019678 >> r4 = 0xc0e2dfe4 r5 = 0xc0e4402e >> r6 = 0xc0f5e8b4 r7 = 0xc0ef62b8 >> r8 = 0xc0f52754 r9 = 0xc0f52750 >> r10 = 0xc3e97000 >> db_command_loop() at db_command_loop+0x50 >> pc = 0xc094efb0 lr = 0xc09519ec (X_db_symbol_values+0x250) >> sp = 0xde019680 fp = 0xde0197a0 >> r4 = 0x00000000 r5 = 0xc0f5e8c0 >> r6 = 0xc0f52778 >> X_db_symbol_values() at X_db_symbol_values+0x250 >> pc = 0xc09519ec lr = 0xc0b37b08 (kdb_trap+0xc4) >> sp = 0xde0197a8 fp = 0xde0197c8 >> r4 = 0x00000000 r5 = 0x0000000f >> r6 = 0xc0f52778 r7 = 0xc0ef62b8 >> kdb_trap() at kdb_trap+0xc4 >> pc = 0xc0b37b08 lr = 0xc0de7c60 (data_abort_handler+0x7f8) >> sp = 0xde0197d0 fp = 0xde0197e8 >> r4 = 0xde019898 r5 = 0x0000000f >> r6 = 0x600000d3 r7 = 0xd0238120 >> r8 = 0x00000000 r9 = 0xc0f648d4 >> r10 = 0xc3e97000 >> data_abort_handler() at data_abort_handler+0x7f8 >> pc = 0xc0de7c60 lr = 0xc0de7a28 (data_abort_handler+0x5c0) >> sp = 0xde0197f0 fp = 0xde019890 >> r4 = 0xc10a0000 r5 = 0x00000013 >> r6 = 0xde019eb0 r7 = 0x00000002 >> data_abort_handler() at data_abort_handler+0x5c0 >> pc = 0xc0de7a28 lr = 0xc0dd711c (exception_exit) >> sp = 0xde019898 fp = 0xde019a20 >> r4 = 0xffffffff r5 = 0xffff1004 >> r6 = 0xc3f3f6c0 r7 = 0x00001000 >> r8 = 0xc443e880 r9 = 0x00000000 >> r10 = 0xc3d69000 >> exception_exit() at exception_exit >> pc = 0xc0dd711c lr = 0xc0d53828 (ffs_truncate+0xaa8) >> sp = 0xde0198e8 fp = 0xde019a20 >> r0 = 0xd0238120 r1 = 0x00000e60 >> r2 = 0x00000000 r3 = 0x00000000 >> r4 = 0x00000120 r5 = 0x00000000 >> r6 = 0xc3f3f6c0 r7 = 0x00001000 >> r8 = 0xc443e880 r9 = 0x00000000 >> r10 = 0xc3d69000 r12 = 0xd0238120 >> memset() at memset+0x48 >> pc = 0xc0de521c lr = 0xc0d53828 (ffs_truncate+0xaa8) >> sp = 0xde0198e8 fp = 0xde019a20 >> Unwind failure (no registers changed) >> >> The sad thing is, that with fsck broken for the dreamplug, I have to >> re-format the disk, reinstall everything and recreate the config >> files which I didn't manage to copy to a safe place beforehand :-( >> >> Before I do that I'll leave the system in debugging mode for a few >> days, in case someone can help and needs some more information. >> >> Cheers, >> >> Mat >> _______________________________________________ >> freebsd-arm@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-arm >> To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" > _______________________________________________ > freebsd-arm@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"