LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 07-07-2016, 11:21 AM   #1
Paulo2
Member
 
Registered: Aug 2012
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 928

Rep: Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515
pod2html (from stock Perl Slackware 14.2) segmentation fault


I'm running Slackware64 14.2 up to date.
I have wireshark installed from SBo since Slackware 14.1,
but it isn't running now due to libgnutls version.
Code:
# wireshark
wireshark: error while loading shared libraries: libgnutls.so.28: cannot open shared object file: No such file or directory

Rebuilding wireshark stopped with pod2html error
Code:
checking for pod2html... /usr/bin/pod2html
/bin/sh: line 4: 13305 Falha de segmentação  /usr/bin/pod2html --title="The Wireshark Network Analyzer 2.0.4" --css=../docbook/ws.css --noindex asn2deb.pod > asn2deb.html

Others pod2* from Perl 5.22.2 are running ok, just pod2html shows segmentation fault.
Code:
$ pod2html 
Falha de segmentação
I reinstalled Perl but didn't help, the error persist.
Thanks in advance for any idea
 
Old 07-07-2016, 11:24 AM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
remove any third-party perl packages you have built/installed with 14.1 (beside what you can already find between the stock slackware packages) and rebuild them all with perl-5.22: perl-5.18 and perl 5.22 are not binary compatible.

Last edited by ponce; 07-07-2016 at 11:44 AM.
 
Old 07-07-2016, 04:49 PM   #3
Paulo2
Member
 
Registered: Aug 2012
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 928

Original Poster
Rep: Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515
Thanks for the answer and excuse me for delay, I was recovering from a system break and other minor tasks.

I did this, 'grep -il perl' entire /var/log/packages and then check against
a list of Slackware native packages, the result was
Code:
apache-ant-1.9.7-noarch-1alien
elementary-xfce-0.7-noarch-1_SBo
gcc-java-5.3.0_multilib-x86_64-3alien
gtksourceview3-3.8.2-x86_64-1_SBo
locale-gettext-1.05-x86_64-3_SBo
mlt-6.0.0-x86_64-1_SBo
vlc-2.2.2-x86_64-2alien
wxPython-2.8.12.1-x86_64-2_SBo
I removed all of those packages, including the multilib set (when I broke the system)
since there was one multilib package listed, then reinstalled perl-5.22.2, but still pod2html shows seg fault.

I don't have any third-party packages with [Pp]erl in the name.
I have a lot of packages that don't have any mention to Perl, from Alienbob, SBo, Slacky, Apache OpenOffice.
Do you think it is necessary remove all packages?
 
Old 07-07-2016, 10:52 PM   #4
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
if they are packages built on/for 14.1 it would be a good idea to remove and install the same ones but built on/for 14.2, yes.

if you want to look for packages containing perl modules you can grep in /var/log/packages like this
Code:
grep -E 'usr\/share\/perl5|usr\/lib64\/perl5' /var/log/packages/*
but this doesn't give any assurance that you haven't installed any perl binaries in /usr/bin or even something from source in /usr/local
 
Old 07-08-2016, 09:15 AM   #5
CTM
Member
 
Registered: Apr 2004
Distribution: Slackware
Posts: 308

Rep: Reputation: 287Reputation: 287Reputation: 287
pod2html is a Perl script: it shouldn't segfault when you run it, even if non-binary-compatible Perl modules are in your PERL5LIB (you'll usually get a stack trace from AutoLoader when it attempts to load them in that case). What does "file /usr/bin/pod2html" give you?

Code:
/usr/bin/pod2html: Perl script, ASCII text executable
 
Old 07-08-2016, 06:25 PM   #6
Paulo2
Member
 
Registered: Aug 2012
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 928

Original Poster
Rep: Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515
ponce, I reinstalled all packages that your grep listed, I think all are Slackware stock
Code:
# grep -El 'usr\/share\/perl5|usr\/lib64\/perl5' /var/log/packages/*
/var/log/packages/git-2.9.0-x86_64-1
/var/log/packages/imagemagick-6.9.4_9-x86_64-1
/var/log/packages/irssi-0.8.19-x86_64-1
/var/log/packages/libproxy-0.4.12-x86_64-1
/var/log/packages/linuxdoc-tools-0.9.69-x86_64-5
/var/log/packages/net-snmp-5.7.3-x86_64-3
/var/log/packages/obexftp-0.24-x86_64-1
/var/log/packages/perl-5.22.2-x86_64-1
/var/log/packages/perlkde-4.14.3-x86_64-2
/var/log/packages/perlqt-4.14.3-x86_64-2
/var/log/packages/pilot-link-0.12.5-x86_64-10
/var/log/packages/samba-4.4.5-x86_64-1_slack14.2
/var/log/packages/subversion-1.9.4-x86_64-1
I recompiled and reinstalled all SBo packages too, reboot, but didn't work.


CTM, "file" shows that it is a script, and perl itself is working.
But the segfault remains. All others pod2* are working, I can run all with --help without problem.
Code:
# pod2html 
Falha de segmentação
root@claudio-pcbash~# which pod2html
/usr/bin/pod2html
root@claudio-pcbash~# file /usr/bin/pod2
pod2html   pod2man    pod2texi   pod2text   pod2usage  
root@claudio-pcbash~# file /usr/bin/pod2html
/usr/bin/pod2html: a /usr/bin/perl script, ASCII text executable
root@claudio-pcbash~# perl --version

This is perl 5, version 22, subversion 2 (v5.22.2) built for x86_64-linux-thread-multi

Copyright 1987-2015, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
There are more third-party packages, I will download or rebuild new versions to 14.2 and see what happens.

So far just wireshark didn't compile.
I was trying to run it to see some network suspicious activity.
 
Old 07-09-2016, 04:52 AM   #7
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
yes, pod2html is an ascii file, but in the end it uses a perl module
Code:
use Pod::Html;
this, in turn, uses other perl modules: from /usr/share/perl5/Pod/Html.pm
Code:
use Carp;
use Config;
use Cwd;
use File::Basename;
use File::Spec;
use File::Spec::Unix;
use Getopt::Long;
use Pod::Simple::Search;
if Paulo2 has, for example, installed/updated some of them via CPAN when he was using a previous version of the perl interpreter there's no assurance that there are not binary leftovers from previous versions of perl...
 
Old 07-09-2016, 12:39 PM   #8
Paulo2
Member
 
Registered: Aug 2012
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 928

Original Poster
Rep: Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515
This problem seems difficult to find, I don't remember if I installed something of perl.
I installed Slackware 14.1 (this one that I upgraded to 14.2) just a few months after release,
so this installation has two years and a few months.

I solved wireshark problem by building it in another partition with Slackware -current (that I keep
to see how -current works), and wireshark is working without problems now.
Thanks ponce and CTM for help.
 
  


Reply



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
[SOLVED] Eclipse with EPIC causing Segmentation fault running a simple Perl script FrancisG Linux - Software 2 08-13-2014 02:08 AM
Backuppc on stock Slackware 64 current - missing Perl modules? Gerard Lally Slackware 4 08-04-2014 10:59 AM
segmentation fault with chroot in Slackware 11 vilnisr Slackware 1 10-30-2006 06:16 PM
segmentation fault ->the slackware do not starts at all raliz Slackware 2 10-22-2006 05:30 AM
Erlang Segmentation Fault on Slackware 10... nebx Linux - Newbie 3 02-06-2005 05:25 PM

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

All times are GMT -5. The time now is 12:24 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
Open Source Consulting | Domain Registration