You are not logged in.

#1 2019-06-20 17:26:22

Daste
Member
Registered: 2019-06-20
Posts: 8

[SOLVED] xdg-open hangs and exits with "terminated by signal SIGSEGV"

Hello. Lately I've been having problems with xdg-open, which just doesn't work. When I use it, it just hangs for a couple minutes and exits with an error. I use the browser vivaldi-snapshot, but the same thing happens when I set firefox as default:

$ xdg-settings set default-web-browser vivaldi-snapshot.desktop
$ xdg-open "https://duckduckgo.com/"
fish: “xdg-open "https://duckduckgo.co…” terminated by signal SIGSEGV (Address boundary error)
$ xdg-settings set default-web-browser firefox.desktop
$ xdg-open "https://duckduckgo.com/"
fish: “xdg-open "https://duckduckgo.co…” terminated by signal SIGSEGV (Address boundary error)

I don't remember when this started happening, but I think it was after some AUR update. (discord + vivaldi-snapshot updated at the same time) I've reinstalled these packages, but it didn't fix my problems.
I've read the xdg-mime, xdg-open and xdg-settings manuals and tried tinkering with them, but nothing seems to fix the problem.

Last edited by Daste (2019-06-20 23:49:12)

Offline

#2 2019-06-20 17:32:57

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: [SOLVED] xdg-open hangs and exits with "terminated by signal SIGSEGV"

Just to take fish out of the equation, does this happen if you try it in a different shell?

Offline

#3 2019-06-20 17:43:11

Daste
Member
Registered: 2019-06-20
Posts: 8

Re: [SOLVED] xdg-open hangs and exits with "terminated by signal SIGSEGV"

Bash:

$ xdg-settings get default-web-browser
vivaldi-snapshot.desktop
$ xdg-open "https://suckless.org"
Segmentation fault (core dumped)

This takes about 3 minutes to run.

Last edited by Daste (2019-06-20 17:45:11)

Offline

#4 2019-06-20 20:06:41

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,500

Re: [SOLVED] xdg-open hangs and exits with "terminated by signal SIGSEGV"

stat /bin/sh

xdg-open is a shell script, if it itself segfaults that means the executing shell segfaults
Also, and since it dumps the core, check coredumpctl on possible details.

Iff /bin/sh is bash, try

bash -x xdg-open "https://suckless.org"

for some debug output.

Offline

#5 2019-06-20 23:33:44

Daste
Member
Registered: 2019-06-20
Posts: 8

Re: [SOLVED] xdg-open hangs and exits with "terminated by signal SIGSEGV"

The "bash -x" sure was a big helper here. I ran xdg-open and it showed some command scanning a directory in ~/.local/share/applications/wine/Programs/Sony/Vegas (not sure what it was exactly) and adding a "/" at the end of the path every time. I removed the directory and everyhing seems to be working as it should be. Sorry, but I am not able to post the output, because it got lost after running the successful xdg-open.

$ time xdg-open "https://suckless.org"
[24068:24087:0621/012354.937857:ERROR:browser_process_sub_thread.cc(221)] Waited 9 ms for network service
Opening in existing browser session.

real    0m0.547s
user    0m0.406s
sys     0m0.199s

Thank you very much for the help! I would never figure this out by myself.

Offline

#6 2019-06-20 23:45:24

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: [SOLVED] xdg-open hangs and exits with "terminated by signal SIGSEGV"

Please remember to mark your thread [SOLVED] (edit the title of your first post).

Offline

Board footer

Powered by FluxBB