-
-
Notifications
You must be signed in to change notification settings - Fork 9.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mimetypes from brew break things on Ubuntu 22.04.5 #18643
Comments
UPD: Confirmed that aliases were the issue: changed to |
Please be aware that the latest version defines |
This likely fixes the issue |
Sounds in part a glib bug but also a regression from 12982a2 |
@Bo98 yeah, it looks like a glib bug and I filed one, but it'd be great if brew avoided triggering it. BTW, just caught another crash for a similar reason #0 0x00007ffff7373aad in cache_alias_lookup (alias=alias@entry=0x7ffff27dcfbc "text/javascript") at ../../../gio/xdgmime/xdgmimecache.c:333
#1 0x00007ffff7373e38 in __gio_xdg_cache_unalias_mime_type (mime=0x7ffff27dcfbc "text/javascript") at ../../../gio/xdgmime/xdgmimecache.c:988
#2 __gio_xdg_cache_mime_type_subclass (mime=mime@entry=0x7ffff27dcfbc "text/javascript", base=base@entry=0x55555569c4d5 "application/x-desktop") at ../../../gio/xdgmime/xdgmimecache.c:911
#3 0x00007ffff7374073 in __gio_xdg_cache_mime_type_subclass (mime=mime@entry=0x7ffff27b51d4 "application/ecmascript", base=base@entry=0x55555569c4d5 "application/x-desktop") at ../../../gio/xdgmime/xdgmimecache.c:971
#4 0x00007ffff7374073 in __gio_xdg_cache_mime_type_subclass (mime=mime@entry=0x7ffff27dcfbc "text/javascript", base=base@entry=0x55555569c4d5 "application/x-desktop") at ../../../gio/xdgmime/xdgmimecache.c:971
#5 0x00007ffff7374073 in __gio_xdg_cache_mime_type_subclass (mime=mime@entry=0x7ffff27b51d4 "application/ecmascript", base=base@entry=0x55555569c4d5 "application/x-desktop") at ../../../gio/xdgmime/xdgmimecache.c:971
#6 0x00007ffff7374073 in __gio_xdg_cache_mime_type_subclass (mime=mime@entry=0x7ffff27dcfbc "text/javascript", base=base@entry=0x55555569c4d5 "application/x-desktop") at ../../../gio/xdgmime/xdgmimecache.c:971
--------------------------------------------------------------------
#87261 0x00007ffff7374073 in __gio_xdg_cache_mime_type_subclass (mime=mime@entry=0x7ffff27b51d4 "application/ecmascript", base=base@entry=0x55555569c4d5 "application/x-desktop") at ../../../gio/xdgmime/xdgmimecache.c:971
#87262 0x00007ffff7374073 in __gio_xdg_cache_mime_type_subclass (mime=mime@entry=0x7ffff27dcfbc "text/javascript", base=base@entry=0x55555569c4d5 "application/x-desktop") at ../../../gio/xdgmime/xdgmimecache.c:971
#87263 0x00007ffff7374073 in __gio_xdg_cache_mime_type_subclass (mime=mime@entry=0x7ffff27b51d4 "application/ecmascript", base=base@entry=0x55555569c4d5 "application/x-desktop") at ../../../gio/xdgmime/xdgmimecache.c:971
#87264 0x00007ffff7374073 in __gio_xdg_cache_mime_type_subclass (mime=0x555556089714 "application/javascript", base=<optimized out>) at ../../../gio/xdgmime/xdgmimecache.c:971
#87265 0x00007ffff73004e6 in __gio_xdg_mime_type_subclass (base=0x55555569c4d5 "application/x-desktop", mime=0x555556089714 "application/javascript") at ../../../gio/xdgmime/xdgmime.c:844
#87266 _gio_xdg_mime_type_subclass (base=0x55555569c4d5 "application/x-desktop", mime=0x555556089714 "application/javascript") at ../../../gio/xdgmime/xdgmime.c:884
#87267 g_content_type_is_a (type=0x555556089714 "application/javascript", supertype=0x55555569c4d5 "application/x-desktop") at ../../../gio/gcontenttype.c:277
#87268 0x0000555555648030 in ()
#87269 0x00005555556625ee in ()
#87270 0x00007ffff79e6ec8 in () at /lib/x86_64-linux-gnu/libgtk-3.so.0
#87271 0x00007ffff7203700 in _g_closure_invoke_va (param_types=0x5555557c4880, n_params=1, args=0x7fffffffc6d0, instance=0x5555561c0150, return_value=<optimized out>, closure=<optimized out>) at ../../../gobject/gclosure.c:893
#87272 g_signal_emit_valist (instance=0x5555561c0150, signal_id=97, detail=<optimized out>, var_args=var_args@entry=0x7fffffffc6d0) at ../../../gobject/gsignal.c:3440
#87273 0x00007ffff7203863 in g_signal_emit (instance=<optimized out>, signal_id=<optimized out>, detail=<optimized out>) at ../../../gobject/gsignal.c:3587
#87274 0x00007ffff79ae734 in () at /lib/x86_64-linux-gnu/libgtk-3.so.0
#87275 0x00007ffff78516b0 in () at /lib/x86_64-linux-gnu/libgtk-3.so.0
#87276 0x00007ffff785255a in gtk_main_do_event () at /lib/x86_64-linux-gnu/libgtk-3.so.0
#87277 0x00007ffff7e7a743 in () at /lib/x86_64-linux-gnu/libgdk-3.so.0
#87278 0x00007ffff7eb1f56 in () at /lib/x86_64-linux-gnu/libgdk-3.so.0
#87279 0x00007ffff70ecd3b in g_main_dispatch (context=0x55555573dca0) at ../../../glib/gmain.c:3419
#87280 g_main_context_dispatch (context=0x55555573dca0) at ../../../glib/gmain.c:4137
#87281 0x00007ffff71422b8 in g_main_context_iterate.constprop.0 (context=context@entry=0x55555573dca0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../glib/gmain.c:4213
#87282 0x00007ffff70ea3e3 in g_main_context_iteration (context=context@entry=0x55555573dca0, may_block=may_block@entry=1) at ../../../glib/gmain.c:4278
#87283 0x00007ffff7311fb5 in g_application_run (application=0x55555573b130, argc=<optimized out>, argv=<optimized out>) at ../../../gio/gapplication.c:2569
#87284 0x0000555555592158 in ()
#87285 0x00007ffff6a29d90 in __libc_start_call_main (main=main@entry=0x555555592050, argc=argc@entry=1, argv=argv@entry=0x7fffffffcbc8) at ../sysdeps/nptl/libc_start_call_main.h:58
#87286 0x00007ffff6a29e40 in __libc_start_main_impl (main=0x555555592050, argc=1, argv=0x7fffffffcbc8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffcbb8) at ../csu/libc-start.c:392
#87287 0x00005555555921d5 in () |
If it is related to the commit, then sadly bug is on Ubuntu's side but they probably can't fix it due to LTS status. There isn't an ideal option here, but I guess we should:
|
Let's avoid setting it if it's breaking things in some configurations. |
brew doctor
outputVerification
brew doctor
output" above saysYour system is ready to brew.
and am still able to reproduce my issue.brew update
twice and am still able to reproduce my issue.brew install wget
. If they do, open an issue at https://github.com/Homebrew/homebrew-core/issues/new/choose instead.brew config
outputWhat were you trying to do (and why)?
My "brew doctor output" doesn't say 'Your system is ready to brew' likely because I renamed brew to linuxbrew, because some Ruby gems try to install libraries through brew when they see it, or even think it's Os X, and it's not what I want.
That said, I wasn't trying to do anything specific when the problem has arisen.
What happened (include all command output)?
After a reboot, all file managers were unable to start, crashing shortly after launch. I found out that's js and json files' previews what causes the problem. With some gdb debugging I got this
And only three of dirs returned by
g_content_type_get_mime_dirs
exist -/home/linuxbrew/.linuxbrew/share/mime /home/vladimir/.local/share/mime /usr/share/mime
, and there is nothing about js in the/home/vladimir/.local/share/mime
.So here is the catch:
brew's definition of
text/javascript
is harmlessso is
application/ecmascript
from ubuntubut the other two create a loop
Maybe it's not detected because brew's version contains
text/javascript
withapplication/javascript
as an alias and ubuntu does the opposite.My
libglib2.0-0
version is2.72.4-0ubuntu2.3
, so it contains this fix, still doesn't workWhat did you expect to happen?
Provide correct mime types definitions
Step-by-step reproduction instructions (by running
brew
commands)The text was updated successfully, but these errors were encountered: