Bug 15138 - unison: Attempting to select a location via GUI causes a segfault on default KDE install
Summary: unison: Attempting to select a location via GUI causes a segfault on default ...
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 5
Hardware: All Linux
Priority: Normal major
Target Milestone: ---
Assignee: Malo Deniélou
QA Contact:
URL:
Whiteboard: MGA4TOO
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-26 23:50 CET by Hoyt Duff
Modified: 2017-07-19 18:41 CEST (History)
4 users (show)

See Also:
Source RPM: unison 2.40.102-5.mga5
CVE:
Status comment:


Attachments

Description Hoyt Duff 2015-01-26 23:50:04 CET
Using 2.40.102-3.mga4 (behavior also present using 2.40.102-5.mga5) on 64-bit architecture.

Using the GUI configuration screen "Directory Selection", trying to select a directory results in a segfault.

[hoyt@titan]$ unison -debug all
Xlib:  extension "RANDR" missing on display ":0.0".

(unison:16431): Gtk-CRITICAL **: gtk_tree_model_filter_get_value: assertion 'GTK_TREE_MODEL_FILTER (model)->priv->stamp == iter->stamp' failed

(unison:16431): GLib-GObject-WARNING **: gtype.c:4215: type id '0' is invalid

(unison:16431): GLib-GObject-WARNING **: can't peek value table for type '<invalid>' which is not currently referenced
Segmentation fault (core dumped)


This is similar to behavior reported at 
http://caml.inria.fr/mantis/view.php?id=6621

I was unable to duplicate this on my 32-bit machine (it works as it should), but the 32-bit package also segfaults on the 64-bit machine.
Hoyt Duff 2015-01-26 23:50:51 CET

Source RPM: (none) => 2.40.102-3.mga4

Comment 1 David Walser 2015-01-27 14:51:17 CET
What package is this report for?

Source RPM: 2.40.102-3.mga4 => (none)

Hoyt Duff 2015-01-27 16:04:18 CET

Source RPM: (none) => unison 2.40.102-3.mga4

Comment 2 Hoyt Duff 2015-01-27 16:04:41 CET
(In reply to David Walser from comment #1)
> What package is this report for?

My apologies. unison 2.40.102-3.mga4
David Walser 2015-01-27 18:15:58 CET

Assignee: bugsquad => pmdenielou

Comment 3 Morgan Leijström 2015-02-06 17:03:42 CET
Confirming on updated cauldron 64 bit unison 2.40.102-5.mga5
(I have not tried unison for years but wanted it now.)

In terminal:
--------8<---------
bash-4.3$ unison
Gtk-Message: Failed to load module "canberra-gtk-module"

(unison:12370): Gtk-CRITICAL **: gtk_tree_model_filter_get_value: assertion 'GTK_TREE_MODEL_FILTER (model)->priv->stamp == iter->stamp' failed

(unison:12370): GLib-GObject-WARNING **: gtype.c:4221: type id '0' is invalid

(unison:12370): GLib-GObject-WARNING **: can't peek value table for type '<invalid>' which is not currently referenced
Segmenteringsfel
---------->8---------

What happens graphically is it asks in a popup for a profile and as i have none before I click new, new popup i enter name and description, next, try to select a folder - bam!

CC: (none) => fri

Comment 4 Morgan Leijström 2015-02-06 17:49:02 CET
Both crash for me on same 64 bit cauldron system.
Oh, above was for i386, below is for 64 bit, sorry for the confusion.


In terminal:
--------8<---------
bash-4.3$ unison

(unison:15814): Gtk-WARNING **: Kan inte hitta temamotorn i "module_path": "oxygen-gtk",

(unison:15814): Gtk-WARNING **: Kan inte hitta temamotorn i "module_path": "oxygen-gtk",

(unison:15814): Gtk-CRITICAL **: gtk_tree_model_filter_get_value: assertion 'GTK_TREE_MODEL_FILTER (model)->priv->stamp == iter->stamp' failed

(unison:15814): GLib-GObject-WARNING **: gtype.c:4221: type id '0' is invalid

(unison:15814): GLib-GObject-WARNING **: can't peek value table for type '<invalid>' which is not currently referenced
Segmenteringsfel

Swedish "Kan inte hitta temamotorn" = "can not find theme engine"
But i do have oxygen-gtk installed.
Morgan Leijström 2015-02-15 12:07:40 CET

Summary: Attempting to select a location via teh GUI causes a segfault => unison: Attempting to select a location via GUI causes a segfault

Comment 5 Richard Clayton 2015-06-22 21:57:45 CEST
Solution/workaround here:

https://forums.mageia.org/en/viewtopic.php?f=7&t=9900 

Changing gtk theme to 'use my KDE style in GTK applications' under applications heading in System Settings

CC: (none) => richard

Comment 6 Morgan Leijström 2015-06-23 07:21:45 CEST
Ah, thanks Richard
I installed gtk-qt-engine but i took a while until i found what you describe.
- I use swedish language.
It is in KDE settings, second row named here (translated) "Common look and behaviour", icon "Program look"
There on left it is section icon "GTK Styles and Fonts"  (swedish translation is missing for the item, and the settings in it is half translated)

In there the top setting is "GTK styles", and radio button was set to "use another style" but its dropdown was set to an empty alternative.

So what is the bug here?
Maybe unison should fail more gracefully, but maybe mageia KDE should have better default setting, and maybe include module gtk-qt-engine in task-KDE, or gtk apps packages suggest it?

Version: 4 => 5
Hardware: x86_64 => All
Summary: unison: Attempting to select a location via GUI causes a segfault => unison: Attempting to select a location via GUI causes a segfault on default KDE install
Source RPM: unison 2.40.102-3.mga4 => unison 2.40.102-5.mga5
Whiteboard: (none) => MGA4TOO
Severity: critical => major

Comment 7 Morgan Leijström 2015-06-23 08:05:55 CEST
Unison seem to work but this is not a clean fix.

1) Starting unison from terminal i see it spits a lot of lines like:

(unison:14339): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

(unison:14339): Gdk-CRITICAL **: IA__gdk_pixmap_foreign_new_for_display: assertion '(anid != 0)' failed

2) When making a profile i assume there should be dropdown boxes for some selection, and whenit ask if one unit is a FAT type there is nothing i can click to toggle the selection.



Oh, BTW do NOT try the button "Install Scrollbar Fix" in the "Firefox and Thunderbird" section of the gtk settings described in previous post - they fail to launch now...  (that is of course another bug, i just want to warn here)
Comment 8 Richard Clayton 2015-06-23 08:18:04 CEST
Have a look at my post on Mageia forums, I've posted a fix for the Thunderbird/Firefox problem.
Comment 9 Morgan Leijström 2015-06-23 10:44:55 CEST
Ah yes sorry it was not the "Install Scrollbar Fix", but the "GTK styles" need to get reverted to (for me) i.e Qt4 or oxygen-gtk for firefox to work.

For now i uninstalled gtk-qt-engine, lib64gtk-qt-engine, gtk-qt-kcm

We can instead of unison use FreeFileSync / synkron / krusader / luckybackup

I see the stable unison version at http://www.cis.upenn.edu/~bcpierce/unison/ is 2.48.3, and in changelog i see:

 "Incorporated a patch from Christopher Zimmermann to replace the Uprintf module (which doesn't work with OCaml 4.02, causing Unison to crash) with equivalent functionality from the standard library. "

Maybe that is the culprit?  If someone tries it, please report here.
Glen Ogilvie 2015-08-25 11:00:35 CEST

CC: (none) => nelg

Comment 10 Hoyt Duff 2017-07-19 18:41:31 CEST
Problem fixed as of Mageia6.

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


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