FS#40795 - [xdg-utils] kde-open segfaults when opening an URL if set to open with firefox

Attached to Project: Arch Linux
Opened by Marc Cousin (cousinm) - Wednesday, 11 June 2014, 09:40 GMT
Last edited by Andreas Radke (AndyRTR) - Monday, 21 July 2014, 14:52 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andreas Radke (AndyRTR)
Andrea Scarpino (BaSh)
Sven-Hendrik Haase (Svenstaro)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 12
Private No

Details

Description:
kde-open segfaults when opening an URL, if "Open http and https URLs" is set as "in the following browser", with "firefox" for instance. Worked until I upgraded to kde 4.13.2 this morning. kde-open segfaults only with URLs. If I put "Open http and https URLs" back to "in an application based on the contents of the URL", kde-open doesn't segfault anymore.

$ pacman -Qo /usr/bin/kde-open
/usr/bin/kde-open is owned by kdebase-runtime 4.13.2-1

I can provide a core dump if necessary, but I don't have the debug symbols for now.
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Monday, 21 July 2014, 14:52 GMT
Reason for closing:  Fixed
Additional comments about closing:  1.1.0.git20140630-1
Comment by Miro (disponiblekonto) - Thursday, 12 June 2014, 08:57 GMT
I can confirm this as well. The problem seems to be --noninteractive.

$ kde-open http://google.com
# works as expected

$ kde-open --noninteractive http://google.com
QWidget: Cannot create a QWidget when no GUI is being used
Aborted (core dumped)


kde-open --noninteractive is used by xdg-open
$ xdg-open http://google.com
Widget: Cannot create a QWidget when no GUI is being used
/usr/bin/xdg-open: line 513: 6612 Aborted (core dumped) kde-open --noninteractive "$1"


Default browser is firefox.
$ grep BrowserApplication .kde4/share/config/kdeglobals
BrowserApplication[$e]=!/usr/bin/firefox

$ xdg-mime query default x-scheme-handler/http
firefox.desktop
Comment by André Fettouhi (A.Fettouhi) - Friday, 13 June 2014, 08:19 GMT
Can confirm this also happens when opening urls in turpial and Skype.
Comment by Nicholas (Chawoosh) - Monday, 16 June 2014, 10:51 GMT
Yes, I've the same on one of my computer. Home comp works fine, work comp coredump with url from Skype.
Comment by Marc Cousin (cousinm) - Wednesday, 25 June 2014, 12:26 GMT
Hi, is this an upstream bug ? Has it been already filed ?
Comment by Timothy Redaelli (tredaelli) - Wednesday, 25 June 2014, 12:34 GMT
As a workaround just edit /usr/bin/xdg-open and remove the --noninteractive option from kde-open
Comment by Sven-Hendrik Haase (Svenstaro) - Friday, 27 June 2014, 17:24 GMT
Guys, please file an upstream bug report. I'd do it but I don't have enough info as it is. You can easily provide the info.
Comment by joschi (joschi) - Friday, 27 June 2014, 17:32 GMT
I opened a bug report upstream at https://bugs.kde.org/show_bug.cgi?id=336117

Please add your backtraces to the report if you can produce them.
Comment by Andrea Scarpino (BaSh) - Friday, 18 July 2014, 07:08 GMT
Andreas this has been reverted, could you update the package or apply the single commit? Thanks

http://cgit.freedesktop.org/xdg/xdg-utils/commit/scripts/xdg-open.in?id=8369f878c08b435ecd5523b4c49eff36348c4bae

Loading...