LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-04-2019, 08:02 PM   #1
garpu
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 417

Rep: Reputation: 191Reputation: 191
xpdf crash with Current (xpdf 4.02)


After Thursday's upgrade for xpdf, it crashes whenever I try to open a file:

Code:
% ~/knitting xpdf Knit-Pattern-Barcelona-Bolero-60353A.PDF      
xpdf: fccache.c:795: FcCacheFini: Assertion `fcCacheChains[i] == NULL' failed.
zsh: abort      xpdf Knit-Pattern-Barcelona-Bolero-60353A.PDF
Okular's fine. I'm on multilib, as well. No updates, no install-news that I forgot.
 
Old 10-04-2019, 09:21 PM   #2
Poprocks
Member
 
Registered: Sep 2003
Location: Toronto, Canada
Distribution: Slackware
Posts: 470

Rep: Reputation: 246Reputation: 246Reputation: 246
I can reproduce.

This patch might get it to work. Maybe. Anyone wanna test?

Code:
--- xpdf/GlobalParams.cc.orig   2019-10-04 22:18:53.406928421 -0400
+++ xpdf/GlobalParams.cc        2019-10-04 22:19:27.324927127 -0400
@@ -568,7 +568,7 @@
     FcFontSetDestroy(fontSet);
   }

-  FcFini();
+//  FcFini();  FIXME - hack to get this not to crash.
 }
 #endif // HAVE_FONTCONFIG
EDIT: works for me with patch. I'd suggest just rolling back to 4.00 until the xpdf devs fix this upstream in a (hopefully) less hackish fashion.

Last edited by Poprocks; 10-04-2019 at 09:41 PM.
 
Old 10-04-2019, 11:56 PM   #3
Paulo2
Member
 
Registered: Aug 2012
Distribution: Slackware64 -current (started with 13.37(32))
Posts: 484

Rep: Reputation: 178Reputation: 178
I can't reproduce the crash.

I don't know if it is related, but Xpdf doesn't crash on the physical machine Slackware install,
which has AlienBob's qt5 dependencies for VLC 3 installed.

I tested in the VBox clean install (without qt5, it's clean) and the crash happens.
 
Old 10-05-2019, 02:18 AM   #4
Poprocks
Member
 
Registered: Sep 2003
Location: Toronto, Canada
Distribution: Slackware
Posts: 470

Rep: Reputation: 246Reputation: 246Reputation: 246
Interesting. I've got qt5 from alienbob as well and 4.02 crashes here without the patch.

It has something to do, as I understand with a disagreement between libraries accessing fontconfig functions and how memory is being allocated and freed using those functions
 
Old 10-05-2019, 06:28 AM   #5
thim
Member
 
Registered: Nov 2013
Location: Greece
Distribution: Slackware64 current
Posts: 59

Rep: Reputation: 26
Current, vlc, qt5, plasma from alienbob, xpfd 4.0.2 not crashes
 
Old 10-05-2019, 08:38 AM   #6
garpu
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 417

Original Poster
Rep: Reputation: 191Reputation: 191
Quote:
Originally Posted by Paulo2 View Post
I can't reproduce the crash.

I don't know if it is related, but Xpdf doesn't crash on the physical machine Slackware install,
which has AlienBob's qt5 dependencies for VLC 3 installed.

I tested in the VBox clean install (without qt5, it's clean) and the crash happens.
Yeah, I've got AlienBob's qt5 dependencies, qt5, and his build of VLC running just fine. xpdf still crashes on me. I do have fontforge installed for lilypond, could that make a difference?

Lilypond works fine. Oddly enough Frescobaldi crashes for me, which it didn't a few weeks ago or so. Related? (It uses a pdf viewer.)
 
Old 10-05-2019, 08:43 AM   #7
Paulo2
Member
 
Registered: Aug 2012
Distribution: Slackware64 -current (started with 13.37(32))
Posts: 484

Rep: Reputation: 178Reputation: 178
I uninstalled qt5, qt5-webkit and libxkbcommon from the physical machine and xpdf runs ok, desktop is Xfce.

In the virtual machine clean install, running Xfce xpdf crashes, but running KDE it doesn't crash.

(all this -current up-to-date)
 
Old 10-05-2019, 11:47 AM   #8
Poprocks
Member
 
Registered: Sep 2003
Location: Toronto, Canada
Distribution: Slackware
Posts: 470

Rep: Reputation: 246Reputation: 246Reputation: 246
Crashes under XFCE for me too. I'll try with a different WM and on KDE5 on physical hardware and report back
 
Old 10-05-2019, 01:08 PM   #9
Poprocks
Member
 
Registered: Sep 2003
Location: Toronto, Canada
Distribution: Slackware
Posts: 470

Rep: Reputation: 246Reputation: 246Reputation: 246
Doesn't crash under Fluxbox.

I've read that some GDK functions don't properly cleanup their fontconfig calls, and this can cause a FcFini call in an app to clash with that and cause a crash. Usually the solution is just to remove the FcFini call as the patch above has done. I'm curious though and I'm going to test under Fluxbox with some GTK apps running to see if I can reproduce the crash under those circumstances.
 
Old 10-06-2019, 04:56 PM   #10
Poprocks
Member
 
Registered: Sep 2003
Location: Toronto, Canada
Distribution: Slackware
Posts: 470

Rep: Reputation: 246Reputation: 246Reputation: 246
By way of update, I tried to replicate conditions to reproduce the crash by running each component of xfce one at a time. The only program I had running that would ensure the crash was xfce4-session itself. Running xfce4-panel, xfdesktop, and pretty much every process I had running during an xfce4 session but xfce4-session did not cause it to crash.

I have reported this upstream to the xpdf devs.
 
1 members found this post helpful.
Old 10-06-2019, 08:25 PM   #11
garpu
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 417

Original Poster
Rep: Reputation: 191Reputation: 191
Interesting. So switch to something else or wait for a bugfix, then. I'll mark this one closed.
 
Old 10-07-2019, 02:45 PM   #12
Poprocks
Member
 
Registered: Sep 2003
Location: Toronto, Canada
Distribution: Slackware
Posts: 470

Rep: Reputation: 246Reputation: 246Reputation: 246
Quote:
Originally Posted by garpu View Post
Interesting. So switch to something else or wait for a bugfix, then. I'll mark this one closed.
Yep... I'd suggest downgrading - or you could always try my patch and see if it works for you!! Eh?! Eh??!!
 
Old 10-08-2019, 10:28 AM   #13
garpu
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 417

Original Poster
Rep: Reputation: 191Reputation: 191
Am I completely mis-remembering, or was there a repository of older slackware packages? It came into existence around the time of the cairo update that hosed some things, like this past July?

Feh. Built xpdf 4.01.01, which wound up to be faster than trying to find the old package hosted somewhere. xpdf works fine again.

Last edited by garpu; 10-08-2019 at 10:42 AM. Reason: ETA: actually built the thing.
 
Old 10-08-2019, 11:42 AM   #14
Paulo2
Member
 
Registered: Aug 2012
Distribution: Slackware64 -current (started with 13.37(32))
Posts: 484

Rep: Reputation: 178Reputation: 178
Quote:
Originally Posted by garpu View Post
Am I completely mis-remembering, or was there a repository of older slackware packages? It came into existence around the time of the cairo update that hosed some things, like this past July?

Feh. Built xpdf 4.01.01, which wound up to be faster than trying to find the old package hosted somewhere. xpdf works fine again.
Cumulative repository? http://mirrors.slackware.bg/cumulative/
The only problem with previous xpdf package is that it doesn't recognize utf8 characters in the name or path,
4.01.01 works ok with utf8.
 
1 members found this post helpful.
Old 10-08-2019, 11:45 AM   #15
garpu
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 417

Original Poster
Rep: Reputation: 191Reputation: 191
Yes! That's the repository I was thinking of. Still faster to build xpdf--took like a minute.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
crash () { crash|crash& }; crash grob115 Linux - Security 6 05-07-2011 03:06 AM
Crash, Crash, Crash, Crash and You Guessed it Crash! little_penguin SUSE / openSUSE 8 07-04-2005 09:34 AM
Ptinting Current Page in Xpdf?? unixfreak Linux - Newbie 1 08-29-2004 08:52 AM
kde crash, then other crash, now weird problems true_atlantis Linux - Laptop and Netbook 1 04-28-2004 12:01 AM
xmms crash xine crash mplayer crash paledread Linux - Software 9 03-09-2004 07:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration