You are not logged in.

#1 2024-01-20 11:14:22

PeerK
Member
Registered: 2020-06-24
Posts: 24

Firefox crashes on all pacman updates

Hi all,

for a some months my firefox instances crash, when I update my computers (pacman -Syyu, laptop & pc).

I wonder, if this is normal for arch/firefox or if this might be a problem of my installation - and where to start to look for the reason.

% inxi -SI
System:
Host: hog4 Kernel: 6.7.0-arch3-1 arch: x86_64 bits: 64 Desktop: KDE Plasma
v: 5.27.10 Distro: Arch Linux
Info:
Processes: 401 Uptime: 1d 17h 24m Memory: total: 16 GiB note: est.
available: 14.97 GiB used: 9.97 GiB (66.6%) Shell: Zsh inxi: 3.3.31

Any idea anyone?
Thanks & kind regards,

Peer

Offline

#2 2024-01-20 13:59:29

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,957

Re: Firefox crashes on all pacman updates

pacman -Syyu

Don't use double y by default, it is only needed in very special cases.

I wonder, if this is normal for arch/firefox or if this might be a problem of my installation

The second one .

Are you running pacman -Syu while firefox is active ?

Last edited by Lone_Wolf (2024-01-20 13:59:53)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2024-01-20 15:03:33

seth
Member
Registered: 2012-09-03
Posts: 51,560

Re: Firefox crashes on all pacman updates

More of https://bbs.archlinux.org/viewtopic.php … 2#p2126702 ?
Do you have a backtrace for FF?

Offline

#4 2024-01-22 20:50:01

Bevan
Member
Registered: 2009-09-08
Posts: 100

Re: Firefox crashes on all pacman updates

It's been the same for me since a couple of months. It seems to be triggered by one of the libalpm hooks. It could be 30-update-mime-database.hook but I'm not sure. I was never able to reproduce the crash manually running this or other hooks.

Offline

#5 2024-01-22 21:04:34

seth
Member
Registered: 2012-09-03
Posts: 51,560

Re: Firefox crashes on all pacman updates

Did you see the link and attempt to

sudo touch /etc/systemd/do-not-udevadm-trigger-on-update

?

Offline

#6 2024-01-22 21:30:19

Bevan
Member
Registered: 2009-09-08
Posts: 100

Re: Firefox crashes on all pacman updates

seth wrote:

Did you see the link and attempt to

sudo touch /etc/systemd/do-not-udevadm-trigger-on-update

?

I cannot reproduce the crash calling `/usr/share/libalpm/scripts/systemd-hook udev-reload` but it's still worth a try. I'll report back but it may take weeks or even months to determine if this fixes the issue or not.

Offline

#7 2024-01-27 11:53:41

PeerK
Member
Registered: 2020-06-24
Posts: 24

Re: Firefox crashes on all pacman updates

Sorry, was out of business for some days ..

Lone_Wolf wrote:
pacman -Syyu

Don't use double y by default, it is only needed in very special cases.

Usually I used it for command-recall: "ctrl-r" yy

I am going to change it now, thank you for the hint!

Lone_Wolf wrote:

I wonder, if this is normal for arch/firefox or if this might be a problem of my installation

The second one .

Are you running pacman -Syu while firefox is active ?

Yes: In the past, I have not observed an interaction between pacman and other running programs - except pacman ;-)

Kind regards,
Peer

Offline

#8 2024-01-27 12:21:25

PeerK
Member
Registered: 2020-06-24
Posts: 24

Re: Firefox crashes on all pacman updates

seth wrote:

More of https://bbs.archlinux.org/viewtopic.php … 2#p2126702 ?
Do you have a backtrace for FF?

Actually, I don't know, how to generate a backtrace. Do you know a handy How-To for the creation?

Kind regards,
Peer

Last edited by PeerK (2024-01-27 12:25:49)

Offline

#9 2024-01-27 12:23:54

PeerK
Member
Registered: 2020-06-24
Posts: 24

Re: Firefox crashes on all pacman updates

Bevan wrote:
seth wrote:

Did you see the link and attempt to

sudo touch /etc/systemd/do-not-udevadm-trigger-on-update

?

I cannot reproduce the crash calling `/usr/share/libalpm/scripts/systemd-hook udev-reload` but it's still worth a try. I'll report back but it may take weeks or even months to determine if this fixes the issue or not.

Same here:

sudo /usr/share/libalpm/scripts/systemd-hook udev-reload

does not crash FF.

Kind regards,
Peer

Offline

#10 2024-01-27 15:14:08

seth
Member
Registered: 2012-09-03
Posts: 51,560

Re: Firefox crashes on all pacman updates

https://wiki.archlinux.org/title/Core_d … _core_dump
You could still just put the file there and see whether FF still crashes on updates - it's a race condition and by nature not guaranteed to be triggered by a synthetic reload.

Offline

#11 2024-03-13 15:02:24

iliakats
Member
Registered: 2024-03-13
Posts: 5

Re: Firefox crashes on all pacman updates

I'm having the same issue. It's crashing not only on updates, but also when a package is removed. For example, today I uninstalled some packages, and Firefox crashed. This time the only hook that was executed was the update-mime-database one, so I think it's safe to say that this is the culprit. As far as I can tell, the hook is only triggered when the contents of the mime database actually change, so presumably Firefox is crashing due to the cache changing. Manually running the hook without the changes to the mime database does not trigger a crash.

Offline

#12 2024-03-13 15:31:40

seth
Member
Registered: 2012-09-03
Posts: 51,560

Re: Firefox crashes on all pacman updates

Do you get a coredump?
If this is half-wise reliable, what if you remove the PKGSYSTEM_ENABLE_FSYNC=0 environment from the hook?
(This will most likely slow the process down considerably, though)

Offline

#13 2024-03-13 15:55:18

iliakats
Member
Registered: 2024-03-13
Posts: 5

Re: Firefox crashes on all pacman updates

Do you get a coredump?

It's doesn't appear in

coredumpctl list

, so I guess not.

It's not 100% reproducible. I couldn't reproduce it just now. But I have to say that I rarely turn off my computer, I tend to use suspend-to-disk or suspend-to-ram, and only do a full reboot after a system upgrade (usually once every 1-3 months). I'll try to reproduce after waking from suspend later, in case that has something to do with it.

Offline

#14 2024-03-13 16:05:57

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,397

Re: Firefox crashes on all pacman updates

If the update touches something firefox needs, then it is normal it complains, happens here too, but never bothered.
Doesn't just restart the browser after the update finished work?


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#15 2024-03-13 17:09:13

iliakats
Member
Registered: 2024-03-13
Posts: 5

Re: Firefox crashes on all pacman updates

The package I removed was completely unrelated to Firefox (it was openmpi). And yes, one can restart Firefox after the update, but it is very annoying to have it crash when installing/removing unrelated packages.

Offline

#16 2024-03-13 17:12:50

seth
Member
Registered: 2012-09-03
Posts: 51,560

Re: Firefox crashes on all pacman updates

openmpi doesn't seem to have any mime entries, though?

Offline

#17 2024-03-14 07:49:48

iliakats
Member
Registered: 2024-03-13
Posts: 5

Re: Firefox crashes on all pacman updates

True, looks like I was mistaken, it's the update-desktop-database.hook, which gets triggered by hwloc (a dependency of openmpi). I was confused because the command line output reads "Updating the desktop file MIME type cache...". This is the pacman.log:

[2024-03-13T15:45:31+0100] [PACMAN] Running 'pacman -R -s -c -n --config /etc/pacman.conf -- openmpi'
[2024-03-13T15:45:32+0100] [ALPM] transaction started
[2024-03-13T15:45:32+0100] [ALPM] removed openmpi (5.0.2-6)
[2024-03-13T15:45:32+0100] [ALPM] removed prrte (3.0.4-3)
[2024-03-13T15:45:32+0100] [ALPM] removed openucx (1.15.0-2)
[2024-03-13T15:45:32+0100] [ALPM] removed openpmix (4.2.9-1)
[2024-03-13T15:45:32+0100] [ALPM] removed libfabric (1.20.0-1)
[2024-03-13T15:45:32+0100] [ALPM] removed hwloc (2.10.0-1)
[2024-03-13T15:45:33+0100] [ALPM] transaction completed
[2024-03-13T15:45:33+0100] [ALPM] running '30-systemd-update.hook'...
[2024-03-13T15:45:33+0100] [ALPM] running 'update-desktop-database.hook'...

I could not reproduce the crash right after waking from suspend, I will observe further.

Offline

#18 2024-03-14 08:30:17

seth
Member
Registered: 2012-09-03
Posts: 51,560

Re: Firefox crashes on all pacman updates

Did you already https://bbs.archlinux.org/viewtopic.php … 9#p2145689 - because that's notorious for crashing stuff™ during the update and what you see in the terminal when your FF window disappears is only mildly indicative of the cause.

Offline

#19 2024-03-18 08:31:02

iliakats
Member
Registered: 2024-03-13
Posts: 5

Re: Firefox crashes on all pacman updates

Not yet. But that relates to reloading udev rules, which is done by 30-systemd-udev-reload.hook. As far as I can tell, the only thing that 30-systemd-update.hook does is execute touch -c /usr.

Offline

#20 2024-03-18 08:53:45

seth
Member
Registered: 2012-09-03
Posts: 51,560

Re: Firefox crashes on all pacman updates

Yes, I simply don't put any trust the log to be complete there in some form of heisencrash.
You could try to use "--verbose" instead of "--quiet" in /usr/share/libalpm/hooks/update-desktop-database.hook and see whether that narrows down the trigger.

Offline

#21 2024-03-18 23:34:55

mountaintrek
Member
Registered: 2024-02-01
Posts: 18

Re: Firefox crashes on all pacman updates

PeerK wrote:

...
for a some months my firefox instances crash, when I update my computers (pacman -Syyu, laptop & pc).
...

1. At a minimum, when updating, I would not have any GUI open. If you want to go to the next level, only do an update on a tty.

2. Check the system log.

# Look for when you began the install and then firefox.
journalctl -b

# To narrow it down a bit:
journalctl --since '2024-03-18 18:00:00' --until '2024-03-18 19:30:00' 

3. Look for posts in this forum that mention **do-not-udevadm-trigger-on-update**.  It resides in /usr/share/libalpm/scripts/systemd-hook.  Perhaps there was something updated or some action occurred and udev took action that affected systemd, all bets are off --- end result,  terminate applications.

On a side note, I always reboot after an upgrade because system files were updated and it just takes a minute.  Just prior to the reboot I do some of the following:

- Review the pacman output. I capture the output of the command
- sudo pacman -Fy
- sudo DIFFPROG=meld pacdiff

Last edited by mountaintrek (2024-03-18 23:35:59)

Offline

#22 2024-04-20 18:59:04

PeerK
Member
Registered: 2020-06-24
Posts: 24

Re: Firefox crashes on all pacman updates

Hi all,

I don't know, if the bug was fixed or if a dependency, that might have caused the error, has been removed.

But as far as I remember, I do not observe any FF-crashes during update processes for many weeks now.

So I am wondering to close the thread. I will wait for a week or so. Maybe someone knows more and could possible write a line, if it was fixed.

Kind regards,
Peer

Offline

#23 2024-04-20 20:33:32

seth
Member
Registered: 2012-09-03
Posts: 51,560

Re: Firefox crashes on all pacman updates

Did you ever add /etc/systemd/do-not-udevadm-trigger-on-update ?

Offline

Board footer

Powered by FluxBB