You are not logged in.

#1 2017-10-07 13:10:49

Viterzgir
Member
Registered: 2013-11-07
Posts: 43

[SOLVED]Segmentation fault in Glade

Can't run glade after update gtk3. I'm trying to re-compile glade and libglade with no luck. Run glade in terminal giving error Segmentation fault (core dumped).

Last edited by Viterzgir (2017-10-09 12:14:36)

Offline

#2 2017-10-07 14:06:07

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,788
Website

Re: [SOLVED]Segmentation fault in Glade

So what have you done to further diagnose the problem? There is nothing in your post that can help anyone help you.

Please read how to ask smart questions and the step-by-step debugging guide. Post relevant information about the crash, as well as your pacman.log so we can see exactly what was updated.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2017-10-07 14:19:46

Viterzgir
Member
Registered: 2013-11-07
Posts: 43

Re: [SOLVED]Segmentation fault in Glade

Thanks for explanation.
Here is:
pacman.log
https://pastebin.com/r0FvziDn

debug log
https://pastebin.com/3KE3PmGF

Offline

#4 2017-10-07 15:18:33

seth
Member
Registered: 2012-09-03
Posts: 50,012

Re: [SOLVED]Segmentation fault in Glade

libxml2 segfaults parsing some file.
strace glade to see which file that is (seems related to plugins)

Offline

#5 2017-10-07 15:33:20

Viterzgir
Member
Registered: 2013-11-07
Posts: 43

Re: [SOLVED]Segmentation fault in Glade

Offline

#6 2017-10-07 19:23:49

seth
Member
Registered: 2012-09-03
Posts: 50,012

Re: [SOLVED]Segmentation fault in Glade

Ignoring the paste.ubuntu thing ... do you expect us to read it to you?
What do you sense is the problematic file? What happens if you move that out of the way? Is the providing package intact ("pacman -Qh" prints help on queriyin packages)

Offline

#7 2017-10-07 22:03:45

Viterzgir
Member
Registered: 2013-11-07
Posts: 43

Re: [SOLVED]Segmentation fault in Glade

I think this is newbie corner.  Did you have this issue with Glade or not? I can't fix myself and trying to get help, I'am sorry for that.

Offline

#8 2017-10-07 22:07:41

seth
Member
Registered: 2012-09-03
Posts: 50,012

Re: [SOLVED]Segmentation fault in Glade

You *are* getting help, but the newbie corner does not mean you're relieved of using your own brain.
Did you look at the strace? Hint: the interesting part is likely at the end - when the process dies.

Offline

#9 2017-10-07 22:09:03

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,452
Website

Re: [SOLVED]Segmentation fault in Glade

I'm far from an expert at reading strace output - but not totally clueless either.  Yet when I look at that, there isn't a singular obvious file that looks problematic to me.  Admittedly it's pretty damn long, and I didn't read it all: I read the start and the end and quickly skimmed through the rest.  Seth, perhaps you could highlight what is jumping out as obvious to you as it may not be so obvious to others (including me).

The last lang file "sweave.lang" was successfully opened, checked, and closed just like all the others prior to the segfault.  And reading a bit before that where the files are `stat`ed that is the last in the list that it was to check.

Last edited by Trilby (2017-10-07 22:11:09)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Online

#10 2017-10-07 22:18:42

seth
Member
Registered: 2012-09-03
Posts: 50,012

Re: [SOLVED]Segmentation fault in Glade

The strace ends with a segfault while glade is parsing a bunch of language definitions.
Looking at the package, they do not end at "sweave.lang", so it most likely fails parsing either this file, the next one or because it tries to load too much stuff into limited memory.

Taking the potentially critical files out of the way is the next best test (since arch builds lack debug symbols, this is a game of TAE - no magic wisdom) - either things then work ("yeah") or it crashes while reading the next file (which would increasingly smell like some buffer overflow)

Edit: see? I didn't even look at the stats ;-)
There's however no guarantee any of those files has been fully parsed. They've been read, but that's all we know.
Taking a close look at the stat, but I guess one will require a debug build of libxml2 then - or remove the glade extensions and re-add them one-by-one.

Edit #2: so much for "close look" - I cannot download the file w/o a ubuntu account ...

Last edited by seth (2017-10-07 22:27:25)

Offline

#11 2017-10-07 22:42:45

Viterzgir
Member
Registered: 2013-11-07
Posts: 43

Re: [SOLVED]Segmentation fault in Glade

Ok right now I'am downgrading current glade 3.20.1-1 to glade 3.20.0-2 and everything work fine.
Edit# 2 Strace log:
https://www.upload.ee/files/7535897/str … t.txt.html

Offline

#12 2017-10-07 22:48:35

seth
Member
Registered: 2012-09-03
Posts: 50,012

Re: [SOLVED]Segmentation fault in Glade

Since it's getting late: installed glade and gtksourceview3. What I already can say is that the definitions are not parsed in order of the stats.

Offline

#13 2017-10-07 22:52:43

Viterzgir
Member
Registered: 2013-11-07
Posts: 43

Re: [SOLVED]Segmentation fault in Glade

Ok thanks for investigation. I will waiting updates.

Last edited by Viterzgir (2017-10-07 22:57:27)

Offline

#14 2017-10-07 22:57:10

seth
Member
Registered: 2012-09-03
Posts: 50,012

Re: [SOLVED]Segmentation fault in Glade

Next files opened (not happening in your strace) are /usr/share/gtksourceview-3.0/language-specs/language*.rng and (highly suspicious) pan-down-symbolic.svg from the used theme.
If you're not using Adwaita (notably the icon theme) you should use that.

Offline

#15 2017-10-07 22:59:18

Viterzgir
Member
Registered: 2013-11-07
Posts: 43

Re: [SOLVED]Segmentation fault in Glade

I'm trying also with adwaita icon theme same thing.

Offline

#16 2017-10-08 08:43:50

seth
Member
Registered: 2012-09-03
Posts: 50,012

Re: [SOLVED]Segmentation fault in Glade

Pretty sure the stuff is parsed after reading all files.
Try to reproduce it w/ gtksourceview3 uninstalled and see whether that makes a difference.

Before doing that, ensure gtksourceview3 is intact ("pacman -Qkk gtksourceview3")

Offline

#17 2017-10-09 12:14:15

Viterzgir
Member
Registered: 2013-11-07
Posts: 43

Re: [SOLVED]Segmentation fault in Glade

Offline

Board footer

Powered by FluxBB