From owner-freebsd-hackers@freebsd.org Fri May 15 18:00:21 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6167D2FC438; Fri, 15 May 2020 18:00:21 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49Nx5c4jDFz4D5y; Fri, 15 May 2020 18:00:20 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id 04FI06HK083425 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Fri, 15 May 2020 21:00:10 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua 04FI06HK083425 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id 04FI06Id083424; Fri, 15 May 2020 21:00:06 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Fri, 15 May 2020 21:00:06 +0300 From: Konstantin Belousov To: freebsd@sysctl.cz Cc: Freebsd hackers , owner-freebsd-hackers@freebsd.org Subject: Re: Debug linux binary with enable linux emulation Message-ID: <20200515180006.GD46537@kib.kiev.ua> References: <24f30eaa0597d79ddadc10d6f993f2a0@sysctl.cz> <20200511115656.GF68906@kib.kiev.ua> <67eed7f18b68f67ff04f628c4c367535@sysctl.cz> <20200512174935.GK68906@kib.kiev.ua> <0fd224d0e4bc643ec8980f2cd71d87c2@sysctl.cz> <20200515164530.GC46537@kib.kiev.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FORGED_GMAIL_RCVD,FREEMAIL_FROM, NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on tom.home X-Rspamd-Queue-Id: 49Nx5c4jDFz4D5y X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=gmail.com (policy=none); spf=softfail (mx1.freebsd.org: 2001:470:d5e7:1::1 is neither permitted nor denied by domain of kostikbel@gmail.com) smtp.mailfrom=kostikbel@gmail.com X-Spamd-Result: default: False [-2.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; FREEMAIL_FROM(0.00)[gmail.com]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; HAS_XAW(0.00)[]; R_SPF_SOFTFAIL(0.00)[~all:c]; IP_SCORE_FREEMAIL(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; IP_SCORE(0.00)[ip: (-3.06), ipnet: 2001:470::/32(-4.10), asn: 6939(-3.15), country: US(-0.05)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:6939, ipnet:2001:470::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; FREEMAIL_ENVFROM(0.00)[gmail.com]; DMARC_POLICY_SOFTFAIL(0.10)[gmail.com : No valid SPF, No valid DKIM,none] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 May 2020 18:00:21 -0000 On Fri, May 15, 2020 at 07:41:36PM +0200, freebsd@sysctl.cz wrote: > Dne 2020-05-15 18:45, Konstantin Belousov napsal: > > On Fri, May 15, 2020 at 06:22:54PM +0200, freebsd@sysctl.cz wrote: > > > i have now 12.1 p5 generic kernel and cannot replicate this kernel > > > panic. > > > M.F. > > And what was the version where it occurred ? > > _______________________________________________ > > freebsd-hackers@freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > > To unsubscribe, send any mail to > > "freebsd-hackers-unsubscribe@freebsd.org" > > Version was FreeBSD 12.1-RELEASE-p3 GENERIC There were no relevant changes between -p3 and -p5, even more, there were no even possibly related changes. I suspect either you have some module with wrong KBI loaded, or your kernel was corrupted, or the issue is racy enough that it is harder to reproduce now. Perhaps try HEAD kernel ? Again, enable INVARIANTS and debugging symbols. > > Architecture: amd64 > Architecture Version: 2 > Dump Length: 1202487296 > Blocksize: 512 > Compression: none > Dumptime: Sun May 10 19:44:37 2020 > Hostname: > Magic: FreeBSD Kernel Dump > Version String: FreeBSD 12.1-RELEASE-p3 GENERIC > Panic String: page fault > Dump Parity: 3631849229 > Bounds: 2 > > May 10 19:43:33 kernel: pid 19891 (Discord), jid 0, uid 1001: exited on > signal 5 (core dumped) > May 10 19:43:35 kernel: pid 23929 (Discord), jid 0, uid 1001: exited on > signal 5 (core dumped) > May 10 19:45:17 syslogd: kernel boot file is /boot/kernel/kernel > May 10 19:45:17 kernel: > May 10 19:45:17 syslogd: last message repeated 1 times > May 10 19:45:17 kernel: Fatal trap 12: page fault while in kernel mode > May 10 19:45:17 kernel: cpuid = 3; apic id = 03 > May 10 19:45:17 kernel: fault virtual address = 0x18 > May 10 19:45:17 kernel: fault code = supervisor read data, page > not present > May 10 19:45:17 kernel: instruction pointer = 0x20:0xffffffff82f5b682 > May 10 19:45:17 kernel: stack pointer = 0x28:0xfffffe00691fd980 > May 10 19:45:17 kernel: frame pointer = 0x28:0xfffffe00691fd9e0 > May 10 19:45:17 kernel: code segment = base 0x0, limit 0xfffff, > type 0x1b > May 10 19:45:17 kernel: = DPL 0, pres 1, long 1, > def32 0, gran 1 > May 10 19:45:17 kernel: processor eflags = interrupt enabled, resume, > IOPL = 0 > May 10 19:45:17 kernel: current process = 17392 (fish) > May 10 19:45:17 kernel: trap number = 12 > May 10 19:45:17 kernel: panic: page fault > May 10 19:45:17 kernel: cpuid = 3 > May 10 19:45:17 kernel: time = 1589132677 > May 10 19:45:17 kernel: KDB: stack backtrace: > May 10 19:45:17 kernel: #0 0xffffffff80c1d2f7 at kdb_backtrace+0x67 > May 10 19:45:17 kernel: #1 0xffffffff80bd062d at vpanic+0x19d > May 10 19:45:17 kernel: #2 0xffffffff80bd0483 at panic+0x43 > May 10 19:45:17 kernel: #3 0xffffffff810a7dcc at trap_fatal+0x39c > May 10 19:45:17 kernel: #4 0xffffffff810a7e19 at trap_pfault+0x49 > May 10 19:45:17 kernel: #5 0xffffffff810a740f at trap+0x29f > May 10 19:45:17 kernel: #6 0xffffffff81081bdc at calltrap+0x8 > May 10 19:45:17 kernel: #7 0xffffffff82f503d1 at linux_thread_detach+0x21 > May 10 19:45:17 kernel: #8 0xffffffff80be5acf at thread_suspend_check+0x41f > May 10 19:45:17 kernel: #9 0xffffffff80c32ed9 at ast+0x3b9 > May 10 19:45:17 kernel: #10 0xffffffff810850e9 at doreti_ast+0x1f > May 10 19:45:17 kernel: Uptime: 2h56m24s > May 10 19:45:17 kernel: Dumping 1146 out of 8042 > MB:..2%..12%..21%..31%..41%..51%..62%..72%..81%..91%---<>--- > May 10 19:45:17 kernel: Copyright (c) 1992-2019 The FreeBSD Project. > May 10 19:45:17 kernel: Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, > 1991, 1992, 1993, 1994 > May 10 19:45:17 kernel: The Regents of the University of California. > All rights reserved. > May 10 19:45:17 kernel: FreeBSD is a registered trademark of The FreeBSD > Foundation. > May 10 19:45:17 kernel: FreeBSD 12.1-RELEASE-p3 GENERIC amd64 > May 10 19:45:17 kernel: FreeBSD clang version 8.0.1 (tags/RELEASE_801/final > 366581) (based on LLVM 8.0.1) > May 10 19:45:17 kernel: VT(vga): resolution 640x480 > May 10 19:45:17 kernel: CPU: Intel(R) Core(TM) i7-2670QM CPU @ 2.20GHz > (2195.07-MHz K8-class CPU) > May 10 19:45:17 kernel: Origin="GenuineIntel" Id=0x206a7 Family=0x6 > Model=0x2a Stepping=7 > May 10 19:45:17 kernel: Features=0xbfebfbff > May 10 19:45:17 kernel: Features2=0x1fbae3bf > May 10 19:45:17 kernel: AMD Features=0x28100800 > May 10 19:45:17 kernel: AMD Features2=0x1 > May 10 19:45:17 kernel: XSAVE Features=0x1 > May 10 19:45:17 kernel: VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID