Bug 12138 - glom 1.22.1 segfaults on startup
Summary: glom 1.22.1 segfaults on startup
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 3
Hardware: All Linux
Priority: Normal critical
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: advisory MGA3-64-OK has_procedure MGA...
Keywords: validated_update
Depends on:
Blocks:
 
Reported: 2013-12-28 20:19 CET by Donny Bay
Modified: 2014-01-21 17:49 CET (History)
5 users (show)

See Also:
Source RPM: glom-1.22.1-5.mga3.src.rpm
CVE:
Status comment:


Attachments

Description Donny Bay 2013-12-28 20:19:00 CET
Description of problem:
glom-1.22.1 seg faults upon start up with gi.repository.Gda error


Version-Release number of selected component (if applicable):
glom-1.22.1-5

How reproducible:
100% on startup from commandline or GUI menu


Steps to Reproduce:
1. Start glom by any means.

This bug can be resolved by taking the following steps:

1) Installing lib64gda-gir5.0, lib64gdata-gir0.0, and lib64gdaui-gir5.0 will fix the gi.repository.Gda error. They are not listed as dependencies before installing the glom RPM, perhaps they should be.

2) The first error goes away, but then there is a libxml error which also causes a seg fault. This is the same bug as reported in Fedora 19:

https://bugzilla.redhat.com/show_bug.cgi?id=1013033

3) Download glom version 1.22.5 from the glom download site, put it into ~rpmbuild/SOURCES, edit the glom.spec file to change the minor version number, and run rpmbuild. The updated package then builds without errors and after installing the new glom rpm, glom started up and functioned normally.



Reproducible: 

Steps to Reproduce:
Thierry Vignaud 2013-12-28 22:09:17 CET

Keywords: (none) => Junior_job
Summary: glom 1.22.1 in Mageia 3 seg faults on startup => glom 1.22.1 segfaults on startup

Manuel Hiebel 2013-12-29 11:38:17 CET

Keywords: (none) => Triaged
Assignee: bugsquad => fundawang

Comment 1 Funda Wang 2013-12-29 16:01:29 CET
glom 1.22.5 was pushed into core/updates_testing, please test. I didn't find any direct references to libgdata and libgdaui in glom, though.
Comment 2 Donny Bay 2013-12-29 20:26:34 CET
Before I installed lib64gda-gir5.0, lib64gdata-gir0.0, and lib64gdaui-gir5.0 I got a boost gi.repository.Gda error like the one mentioned in

https://bugzilla.redhat.com/show_bug.cgi?id=869072

However, the Fedora maintainer states the error is due to lack of introspection support in their glom build for Fedora 19.  I checked the glom.spec for Mageia 3 and it does enable introspection.  I rebuilt the glom RPM from the SRPM just to make certain and the gi.repository.Gda still occurred, but installing the above Gda libs took care of it.

Just tried installing glom-1.22.5 from updates_testing and it seems to work as expected.

If I try installing without lib64gda-gir5.0, lib64gdata-gir0.0, and lib64gdaui-gir5, I get a dependency error about missing typelib(Gda):

% sudo rpm -ivh Mageia/3/x86_64/media/core/updates_testing/glom-1.22.5-1.mga3.x86_64.rpm   
error: Failed dependencies:
	typelib(Gda) is needed by glom-1.22.5-1.mga3.x86_64
Comment 3 Florian Hubold 2013-12-29 22:58:07 CET
(In reply to Funda Wang from comment #1)
> I didn't find any direct references to libgdata and libgdaui in glom, though.

Did you try to run glom?

When lib64gdaui-gir5.0 and lib64gdata-gir0.0 are not installed, glom will still segfault on startup. Here's what it looks like after installation, i've omitted the numerous Gtk-CRITICAL and Gdk-CRITICAL in between as they seem irrelevant:

[doktor5000@Mageia3 ~]$ glom

(process:24395): EvinceDocument-WARNING **: Fehler beim Ãffnen des Ordners »/usr/lib64/evince/4/backends«: Datei oder Verzeichnis nicht gefunden
ERROR:root:Could not find any typelib for Gda
boost::python::import() failed while importing module: gi.repository.Gda
traceback = 0
Glom: Python Error:
ImportError: No module named Gda

Glom: A python import of a module failed: gi.repository.Gda
[snip]
Segmentation fault

[doktor5000@Mageia3 ~]$ up lib64gdata-gir0.0
Um die Abhängigkeiten zu erfüllen, werden die folgenden Pakete installiert:
  Paket                          Version      Release       Arch    
(Medium »Core Release«)
  lib64gdata-gir0.0              0.13.2       2.mga3        x86_64  
  lib64goa-gir1.0                3.6.3        1.mga3        x86_64  
180KB zusätzlicher Speicher werden benötigt
46KB an Paketen werden geholt
Fortfahren mit der Installation der 2 Pakete? (J/n) 


    ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/Mageia/distrib/3/x86_64/media/core/release/lib64goa-gir1.0-3.6.3-1.mga3.x86_64.rpm
    ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/Mageia/distrib/3/x86_64/media/core/release/lib64gdata-gir0.0-0.13.2-2.mga3.x86_64.rpm                                   
lib64goa-gir1.0-3.6.3-1.mga3.x86_64.rpm lib64gdata-gir0.0-0.13.2-2.mga3.x86_64.rpm von /var/cache/urpmi/rpms wird installiert                                          
Vorbereiten ⦠                   #####################################################################################################################################
      1/2: lib64goa-gir1.0       #####################################################################################################################################
      2/2: lib64gdata-gir0.0     #####################################################################################################################################
[doktor5000@Mageia3 ~]$ glom

(process:24543): EvinceDocument-WARNING **: Fehler beim Ãffnen des Ordners »/usr/lib64/evince/4/backends«: Datei oder Verzeichnis nicht gefunden
ERROR:root:Could not find any typelib for Gda
boost::python::import() failed while importing module: gi.repository.Gda
traceback = 0
Glom: Python Error:
ImportError: No module named Gda

Glom: A python import of a module failed: gi.repository.Gda

[snip]
Segmentation fault


[doktor5000@Mageia3 ~]$ up lib64gdaui-gir5.0
Um die Abhängigkeiten zu erfüllen, werden die folgenden Pakete installiert:
  Paket                          Version      Release       Arch    
(Medium »Core Release«)
  lib64gda-gir5.0                5.1.1        2.mga3        x86_64  
  lib64gdaui-gir5.0              5.1.1        2.mga3        x86_64  
185KB zusätzlicher Speicher werden benötigt
50KB an Paketen werden geholt
Fortfahren mit der Installation der 2 Pakete? (J/n) 


    ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/Mageia/distrib/3/x86_64/media/core/release/lib64gda-gir5.0-5.1.1-2.mga3.x86_64.rpm
    ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/Mageia/distrib/3/x86_64/media/core/release/lib64gdaui-gir5.0-5.1.1-2.mga3.x86_64.rpm                                    
                                                                                                                                                                       
lib64gda-gir5.0-5.1.1-2.mga3.x86_64.rpm lib64gdaui-gir5.0-5.1.1-2.mga3.x86_64.rpm von /var/cache/urpmi/rpms wird installiert
Vorbereiten ⦠                   #####################################################################################################################################
      1/2: lib64gda-gir5.0       #####################################################################################################################################
      2/2: lib64gdaui-gir5.0     #####################################################################################################################################



[doktor5000@Mageia3 ~]$ glom

(process:24586): EvinceDocument-WARNING **: Fehler beim Ãffnen des Ordners »/usr/lib64/evince/4/backends«: Datei oder Verzeichnis nicht gefunden
bool GlomBakery::Document::write_to_disk(): m_file_uri is empty.

(glom:24586): glibmm-ERROR **: 
unhandled exception (type std::exception) in signal handler:
what: Error code from xmlParseChunk(): 111

Trace/Breakpoint ausgelöst



So at least it would start now. From the EvinceDocument-WARNING it seems it's also missing a runtime dependency on evince.



Requires should be added on typelib(GData) and typelib(Gdaui) and maybe Suggests on evince. I've no clue about glom, but it will fix the warning.

Status: NEW => ASSIGNED
CC: (none) => doktor5000

Comment 4 Florian Hubold 2013-12-29 23:04:10 CET
@Funda: I've commited the fix for cauldron, shall I ask for a freeze push as otherwise glom will not even start?
Comment 5 Florian Hubold 2013-12-29 23:13:42 CET
@Funda: Fixed a typo and comitted to 3/updates_testing, glom-1.22.5-1.1.mga3 should hit the mirrors soon.

@Donny: Please test again with glom-1.22.5-1.1.mga3, should hit the mirrors soon.
Comment 6 Donny Bay 2014-01-09 20:09:29 CET
I uninstalled

glom-1.22.5-1.mga3
lib64gda-gir5.0-5.1.1-2.mga3.x86_64
lib64gdaui-gir5.0-5.1.1-2.mga3.x86_64

and then tried installing glom-1.22.5-1.1.mga3:


%sudo urpmi glom-1.22.5-1.1.mga3.x86_64.rpm

To satisfy dependencies, the following packages are going to be installed:
  Package                        Version      Release       Arch    
(medium "Core Release (distrib1)")
  lib64gda-gir5.0                5.1.1        2.mga3        x86_64  
  lib64gdaui-gir5.0              5.1.1        2.mga3        x86_64  
(command line)
  glom                           1.22.5       1.1.mga3      x86_64  
13MB of additional disk space will be used.
5MB of packages will be retrieved.

So it appears to report dependencies properly now.

glom starts up and runs properly as in the glom-1.22.5-1.mga3 version.
Comment 7 Florian Hubold 2014-01-13 22:38:16 CET
@QA:

I have uploaded a patched/updated package for Mageia 3.

You can test this by installing glom-1.22.5-1.1.mga3 on a system which doesn't have glom or the newly added dependencies installed already.

Suggested advisory:
========================

Updated glom-1.22.5-1.1.mga3 fixes glom segfaulting at startup, and the Suggests added for evince-backend fixed a warning on glom startup.

========================


For further informations just shoot :)

Keywords: Junior_job, Triaged => (none)
Assignee: fundawang => qa-bugs

user7 2014-01-14 13:42:56 CET

CC: (none) => wassi
Whiteboard: (none) => MGA3-64-OK has_procedure

Comment 8 Lewis Smith 2014-01-19 18:29:18 CET
On MGA3 32-bit real hardware, installed glom from scratch (pulled in 29 pkgs):
# urpmi glom
...
libgda5.0_4                    5.1.1        2.mga3        i586
libgdaui-gir5.0                5.1.1        2.mga3        i586
...
(cyfrwng "Core Updates Testing")
  glom                           1.22.5       1.1.mga3      i586    
  libglom1.22_0                  1.22.5       1.1.mga3      i586    
Bydd 57MB o le ychwanegol ar ddisg yn cael ei ddefnyddio.
bydd 16MB o becynnau yn cael eu hadfer.
Parhau gyda gosod 29 pecyn? (Y/n) y

Once the 29 pkgs installed,
$ glom
bool GlomBakery::Document::write_to_disk(): m_file_uri is empty.
but the graphical Welcome to Glom over main Untitled - Glom windows appeared.
No problem starting Glom from the Development/Databases menu.
So if this suffices as a test, I shall OK it 32-bit.

CC: (none) => lewyssmith
Whiteboard: MGA3-64-OK has_procedure => MGA3-64-OK has_procedure MGA3-32-OK

Comment 9 claire robinson 2014-01-20 09:32:09 CET
Advisory uploaded. Validating.

Could sysadmin please push from 3 core/updates_testing to updates

Thanks

Keywords: (none) => validated_update
Whiteboard: MGA3-64-OK has_procedure MGA3-32-OK => advisory MGA3-64-OK has_procedure MGA3-32-OK
CC: (none) => sysadmin-bugs

Comment 10 Thomas Backlund 2014-01-21 17:49:38 CET
Update pushed:
http://advisories.mageia.org/MGAA-2014-0007.html

Status: ASSIGNED => RESOLVED
CC: (none) => tmb
Resolution: (none) => FIXED


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