From nobody Sun Nov 17 17:37:07 2024 X-Original-To: freebsd-stable@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Xryd16xzSz5dB74 for ; Sun, 17 Nov 2024 17:37:25 +0000 (UTC) (envelope-from scf@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xryd15FBrz4gZR; Sun, 17 Nov 2024 17:37:25 +0000 (UTC) (envelope-from scf@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731865045; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=QgQYW3YhTtx2JkiJ8PEAkmAahHIUqkbNFuS90SzT6X4=; b=JN7GbHWxm2d1ws3NJlFhtm6kD0o5klplP/nDzkY3AHOunWl3VsZJYDnVlb6a7MfXpWz8+z 2dqO9ANgPL1WtoSIvlc0fTIISsOPJTT3F/0BkJtzJFZsWNtoTDxmRQlB9qX1cCjWL0O5wP f15zukuOQTSOtD6Ozx/nGq6w4tZ0gxUA+XrKOvl2S37m+z5QZlLBkajN+TZvki/L25AuY3 s3GT/K2bKdAH24IOV0x7Tp9x4y1Q8GnQJemhy6O69Gk8TMpZVdjhqhdSN8ws+ztPTtE1k+ LffdV6rSWuWa2fNzqkIORVKKEPVbrz0qNQR5ymN3/HpnfVJtW2XBcG+s5fsTZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731865045; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=QgQYW3YhTtx2JkiJ8PEAkmAahHIUqkbNFuS90SzT6X4=; b=wSoNjRlxUiniaMzfPVX+6ljfn4sok+CYzOb52hssaEGFvfdKKLdB/TxZu6JpMqVeeJ+/Id kBczePD09pIYPW0w/Q6m8QQXXV9dHegSlIGNdb7a7EZgZ5huUXhXzVrGly6zQI+ixRep78 w/Mpm9Gba6Rqt/Z4HGDOXhba6cd5zcgsvaCF938ICb4TGi4ZwKQSoEit6URWo0vmgCnKG1 UUHKHK/9BMLlex5TThUqFKm86xotonD8wqDmI8KhN8XDIR150am1G9lt71D/T8BRTL6YAv G14r4ddl6yeHUqELHQoI0pkIijybbmNW3avpzy11cJX8p13h1HKW9TjVDme45g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731865045; a=rsa-sha256; cv=none; b=HTR5MAkvNvW0u842hx8IQWwV7DNWvfO/H7Soo0C8TRX5zx04Urj8gPScU5+CuyzurBf0zE oXFxxfh7E81V0Y0Te4zyD2p9AGLRPKI21JgjZE8d8R5SBK/t0XjOzv+CgQN748s35KpAju /GiS5WuLMOPQ7p+/jhyoTV62QBqGs+SK7dFiWY6lJHi+8FrQ4L+BVZ6K+7GrWQkqGe5ikF seCnp576vOY9zD2qZW0OT+RlxQYJP1+AEaNiWm63XJD5ceXFVU5owp4XUKylFZ1iyd3JBN DUGWRPuDlB1uGOn7f4PZqp1A/B/3X156aG1h7/agxRipMnGtuscCMJ2qqYtT/Q== Received: from thor.farley.org (1609341-v107.1360-static.crmlinaa.metronetinc.net [104.254.222.35]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: scf/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4Xryd13Z5BzKNP; Sun, 17 Nov 2024 17:37:25 +0000 (UTC) (envelope-from scf@FreeBSD.org) Date: Sun, 17 Nov 2024 12:37:07 -0500 (EST) From: "Sean C. Farley" To: Philipp Ost cc: "freebsd-stable@freebsd.org" Subject: Re: Firefox and Thunderbird freeze system causing a reboot In-Reply-To: <087cf5ee-186a-41ee-93ed-154588964d41@smo.de> Message-ID: <95d609a3-87ce-7432-d5eb-a59f0d8cbbee@FreeBSD.org> References: <087cf5ee-186a-41ee-93ed-154588964d41@smo.de> List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII On Thu, 7 Nov 2024, Philipp Ost wrote: > Hi everyone, > > I have a curious situation with my system since updating to > 14.2-STABLE on Tuesday, 5.11.'24: both Firefox and Thunderbird cause > the system to freeze which then triggers and automatic reboot. This > doesn't happen immediately, though. It takes at most 2:15 minutes > until this freeze and reboot cycle happens. No user-interaction is > taking place during that time. > > The machine is running FreeBSD 14.2-STABLE > stable/14-n269500-cdffbea57c0d amd64. > Firefox is at version firefox-132.0.1_2,2 and Thunderbird at > thunderbird-128.4.1_1. > > Other gtk3-based programs do not show this behaviour, i.e., Inkscape, > Darktable, GIMP, EOG, Filezilla, Gnumeric. > > I (re-)built both Firefox and Thunderbird with debugging symbols. > Console output of both Firefox and Thunderbird (when being started > from an xterm) can be found here: > philippost.de/firefox-debug-console-output > philippost.de/thunderbird-debug-console-output > > In addition, I tried running them under truss(1), but from skimming > through both logs nothing immediately stood out at what could cause > this. > > Also, there's nothing to be found in the logs at all. > > Did anyone else observed this? How do I go about debugging this? > > I am at a loss at how to proceed and appreaciate any help in trying to > figure this out. I have had my system crash a few times recently and just enabled crash dumps to try to track it down. The only time that I collected a crash dump, I had just started an instance of Firefox and went to the Rocket League subreddit on Reddit when the system froze and eventually rebooted after saving the crash dump. At the time of the crash, I had two Firefox profiles already open and was building something in Poudriere. According to the panic, I received a general protection fault (Trap 9) with ccache. Until it occurs more times, I will not be able to point at anything specific except undervolting. Well, the other possibility is the revision I am running since I did not have the system crash at all prior to updating to it. In my case, I am undervolting the CPU to control temperatures, so that could be the reason. I have actually been applying less undervolting lately due to random programs dying albeit rarely. My environment: - FreeBSD 14.1-STABLE (revision 2ee5293d3a9c) - Intel i7-14700K - ASUS Rog Strix Z790-F WiFi - Nvidia 4070 (driver: 550.127.05) - 128GB memory (running at 4800MHz) - No errors in MemTest86 after multitudes of tests. Various things to consider: - Run MemTest86 on your system for a few passes to make sure your memory is stable. If you undervolt too much, this will fail. However, it could be a sign of bad memory or not enough current to the Memory Controller (MC). The highest level of XMP for my memory will knock the voltage of the MC to a low level causing major system instability. - I doubt it is the act of Firefox or Thunderbird dying that is causing the system to crash. They could be tickling something to cause that such as a driver. - If you have a 13th or 14th Gen Intel CPU, it could have issues due to Intel and/or the motherboard manufacturers not getting the voltage correct[1]. I am concerned for myself on this one. - Check /var/log/messages for any memory errors or core dumps. I got these when I tuned the undervolting too high: kernel: MCA: Bank 0, Status 0x8000004000050005 ... exited on signal ... Run this command: zegrep 'MCA:|exited on signal' /var/log/messages* NOTE: Ignore conftest panics as they happen even with good hardware when building packages. - Check in /var/crash for any panics. That could be why it takes a couple of minutes to reboot; it is writing the panic to disk. - Enable crash dumps in /etc/rc.conf. See rc.conf(5) and dumpon(8) for information. - Update your system BIOS if possible. - Follow PR 281700[2] since that sounds similar. That is about all I can advise at the moment. Hopefully, it gives you more to try. Sean 1. https://community.intel.com/t5/Blogs/Tech-Innovation/Client/Intel-Core-13th-and-14th-Gen-Desktop-Instability-Root-Cause/post/1633239 2. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281700 -- scf@FreeBSD.org