Bug 32758 - chromium crashes when clicking in its window
Summary: chromium crashes when clicking in its window
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 9
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-23 10:24 CET by Herman Viaene
Modified: 2024-04-14 11:02 CEST (History)
5 users (show)

See Also:
Source RPM: chromium-browser-stable-120.0.6099.224-1.mga9.tainted.src.rpm
CVE:
Status comment:


Attachments
output dmesg after crash (57.55 KB, text/plain)
2024-01-25 10:21 CET, Herman Viaene
Details
compressed trace file of crash (92.99 KB, application/gzip)
2024-01-26 11:12 CET, Herman Viaene
Details

Description Herman Viaene 2024-01-23 10:24:22 CET
Description of problem:
First ever run of chromium crashes when clicking in its window. All subsequent tries crash immediately, unless deleting ~/.config/chromium


Version-Release number of selected component (if applicable):
120.0.6099.224-1 and earlier

How reproducible:
Instruction from bug 32725:
 run gdb.minimal chromium-browser
> 
> In the prompt of the application type run , and press enter, try to
> reproduce the crash, if you can, in the prompt of gdb type bt , and press
> enter, copy the output to a file and attach the file in the new bug

but trying that:
$ gdb.minimal chromium-browser
GNU gdb (GDB) 12.1-7.mga9 (Mageia release 9)
etc    .... and at the end
"/usr/bin/chromium-browser": not in executable format: file format not recognized
I checked the command properties, is marked as executable???? Help!!!

Steps to Reproduce:
1.
2.
3.
Morgan Leijström 2024-01-23 11:35:18 CET

CC: (none) => chb0, fri

Comment 1 katnatek 2024-01-23 18:05:18 CET
I forgot that is a script the real thing is /usr/lib64/chromium-browser/chrome or  /usr/lib/chromium-browser/chrome

But I not sure if the crash will be produced if you run without the extra options in the script, please test

CC: (none) => j.alberto.vc

Comment 2 Lewis Smith 2024-01-23 21:39:51 CET
This bug is a continuation of 32725 which update has been validated & advisoried, so is due to go out, so that it *can* go out leaving this one problem outstanding. It is only known to Herman at present; the update was widely tested OK.

Source RPM: (none) => chromium-browser-stable-120.0.6099.224-1.mga9.tainted.src.rpm

Comment 3 Herman Viaene 2024-01-24 14:30:05 CET
Chromium does not crash under the debug conditions.
BUT:
when I launch at the CLI:
$ chromium-browser 
immediately crash
I try thereafter without changing anything in the system:
$ /usr/lib64/chromium-browser/chrome
that works perfectly.
Comment 4 Morgan Leijström 2024-01-24 15:13:10 CET
$ which chromium-browser
/usr/bin/chromium-browser

/usr/bin/chromium-browser -> ../../usr/lib64/chromium-browser/chromium-wrapper*

So I guess also a crash if you launch 
/usr/lib64/chromium-browser/chromium-wrapper ?

chromium-wrapper is a bash script that sets variables and launch chrome with some parameters.

Maybe (back up and) edit it so it outputs how it tries to launch chrome.
Maybe the script need be improved to work better on systems like yours.
Comment 5 Dave Hodgins 2024-01-24 15:52:51 CET
Just run in a terminal "bash -x -v /usr/bin/chromium-browser".

Just before all of the gbm_wrapper.cc lines, there will be a line similar to
+ exec -a /usr/bin/chromium-browser /usr/lib64/chromium-browser/chrome --disable-features=AudioServiceOutOfProcess --no-default-browser-check --enable-gpu-rasterization --enable-features=VaapiVideoDecoder,VaapiVideoEncoder @@EXTRA_FLAGS@@ --disk-cache-size=1073741824

That exec line can be copied, pasted into another terminal and then run, 
after closing chromium to ensure only one copy is running at a time.

Remove the parameters one at a time to see which one is triggering the crash.

CC: (none) => davidwhodgins

Comment 6 Herman Viaene 2024-01-24 16:18:40 CET
$ bash -x -v /usr/bin/chromium-browser
#!/usr/bin/bash
#
# Copyright (c) 2009 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

and then a lot of stuff and at the end:

+ exec -a /usr/bin/chromium-browser /usr/lib64/chromium-browser/chrome --disable-features=AudioServiceOutOfProcess --no-default-browser-check --enable-gpu-rasterization --enable-features=VaapiVideoDecoder,VaapiVideoEncoder @@EXTRA_FLAGS@@
[9377:9377:0124/161440.250131:ERROR:policy_logger.cc(156)] :components/enterprise/browser/controller/chrome_browser_cloud_management_controller.cc(161) Cloud management controller initialization aborted as CBCM is not enabled. Please use the `--enable-chrome-browser-cloud-management` command line flag to enable it if you are not using the official Google Chrome build.
[0124/161448.355451:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0124/161448.355999:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0124/161448.356210:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0124/161448.358341:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0124/161448.361768:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0124/161448.371724:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0124/161448.371957:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0124/161448.375630:ERROR:elf_dynamic_array_reader.h(64)] tag not found
Segmentation fault (core dumped)

I guess you did not expect that to happen???
Comment 7 Dave Hodgins 2024-01-24 16:42:13 CET
Cloud management is used when you give control over what's allowed and not
allowed within the browser, to a third party such as a company's it dept.

Try creating a new user, logout, login as the new user, and see if that user
has the same problem.

If it does, then it's some strange config setting somewhere in /etc.
If not, then it's a config for chromium in /home/$USER/.config/chromium.
Comment 8 Morgan Leijström 2024-01-24 17:01:25 CET
I too get that message about cloud management, seems harmless and i think it only wants to tell us of the possibility to enable it.
Comment 9 Herman Viaene 2024-01-24 17:09:51 CET
Brand new user created.
Did cold reboot
At CLI:
$ chromium-browser 
[15748:15748:0124/170632.768913:ERROR:policy_logger.cc(156)] :components/enterprise/browser/controller/chrome_browser_cloud_management_controller.cc(161) Cloud management controller initialization aborted as CBCM is not enabled. Please use the `--enable-chrome-browser-cloud-management` command line flag to enable it if you are not using the official Google Chrome build.
[15793:15793:0124/170658.159745:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!
[0124/170700.604322:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0124/170700.604930:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0124/170700.607390:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0124/170700.611177:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0124/170700.621941:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0124/170700.622309:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0124/170700.627891:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0124/170700.629263:ERROR:elf_dynamic_array_reader.h(64)] tag not found
Segmentation fault (core dumped)

Chromium opens and at first click crashes, at least konsole remains OK.
Comment 10 Morgan Leijström 2024-01-24 17:12:48 CET
I have not read up on how exec works, but using part of that line from your Comment 6, launches chromium for me:

$ /usr/lib64/chromium-browser/chrome --disable-features=AudioServiceOutOfProcess --no-default-browser-check --enable-gpu-rasterization --enable-features=VaapiVideoDecoder,VaapiVideoEncoder @@EXTRA_FLAGS@@

Try omitting some parameters until it works
Comment 11 katnatek 2024-01-24 19:51:45 CET
run chromium-browser
once the crash is produced, run dmesg, copy the output to a file and attach the file
Comment 12 Herman Viaene 2024-01-25 10:21:31 CET
Created attachment 14306 [details]
output dmesg after crash
Comment 13 katnatek 2024-01-25 23:04:26 CET
(In reply to Herman Viaene from comment #12)
> Created attachment 14306 [details]
> output dmesg after crash

Not see anything useful, try with

strace /usr/bin/chromium-browser
Comment 14 Herman Viaene 2024-01-26 11:09:44 CET
$ strace -o tracechromiumcrash.txt /usr/bin/chromium-browser
[19056:19056:0126/110509.999300:ERROR:policy_logger.cc(156)] :components/enterprise/browser/controller/chrome_browser_cloud_management_controller.cc(161) Cloud management controller initialization aborted as CBCM is not enabled. Please use the `--enable-chrome-browser-cloud-management` command line flag to enable it if you are not using the official Google Chrome build.
[0126/110519.961981:ERROR:scoped_ptrace_attach.cc(27)] ptrace: Operation not permitted (1)
Segmentation fault (core dumped)
Chromium crashed before it could open any window, I will try to upload the trace file, it's 1.2Mb.
Comment 15 Herman Viaene 2024-01-26 11:12:06 CET
Created attachment 14310 [details]
compressed trace file of crash
Comment 16 christian barranco 2024-01-27 19:33:22 CET
Hi Herman
Have you tried to remove all flags
exec -a /usr/bin/chromium-browser /usr/lib64/chromium-browser/chrome
Comment 17 katnatek 2024-01-27 23:22:58 CET
(In reply to christian squidf from comment #16)
> Hi Herman
> Have you tried to remove all flags
> exec -a /usr/bin/chromium-browser /usr/lib64/chromium-browser/chrome

He already run directly /usr/lib64/chromium-browser/chrome comment#3
Comment 18 christian barranco 2024-04-05 20:35:10 CEST
Hi. Could you please test with Chrmomium 123, which is now out?
Comment 19 christian barranco 2024-04-13 10:38:49 CEST
Hi Herman, could you try out with Chromium 123? Thanks!

CC: (none) => herman.viaene

Comment 20 Herman Viaene 2024-04-13 11:03:14 CEST
Now out, what do you mean, I don't see it in the core repo, nor in update bugs.
Comment 21 Herman Viaene 2024-04-13 11:16:06 CEST
Found an rpm in rpmfind.net, but installing that one fails since it seems to depend on glibc2.38.
Comment 22 Morgan Leijström 2024-04-13 14:05:07 CEST
Herman, 123 is in our updates repo, by Bug 33056
Comment 23 christian barranco 2024-04-13 14:22:00 CEST
and, more precisely, in Tainted. Thanks.
Comment 24 Herman Viaene 2024-04-14 10:47:37 CEST
Finally found it in Tainted Updates Testing, and this version works OK, so closing.

Status: NEW => RESOLVED
Resolution: (none) => FIXED

Comment 25 christian barranco 2024-04-14 11:02:57 CEST
Thanks Herman

Note You need to log in before you can comment on or make changes to this bug.