LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 08-14-2017, 04:03 PM   #1
esteeven
Senior Member
 
Registered: Oct 2001
Location: Bristol UK
Distribution: Slackware Ubuntu
Posts: 1,053

Rep: Reputation: 42
segmentation fault with hplip on 14.2


I was using MLED Microlinux on Slackware 14.2 and HPLIP was working fine. Both of my HP printers worked without issues. I changed my HDD to a SSD, forcing a reinstall of Slackware. I didn't use Microlinux this time and I installed everything I needed from Slackbuilds / AlienBob and the default 14.2 repository.

Hp-setup throws up a segmentation fault and I can't set up my printers. I don't know where to start solving this.

Please advise.
 
Old 08-14-2017, 04:07 PM   #2
BigTig
LQ Newbie
 
Registered: Aug 2015
Posts: 15

Rep: Reputation: Disabled
Quote:
Originally Posted by esteeven View Post
I was using MLED Microlinux on Slackware 14.2 and HPLIP was working fine. Both of my HP printers worked without issues. I changed my HDD to a SSD, forcing a reinstall of Slackware. I didn't use Microlinux this time and I installed everything I needed from Slackbuilds / AlienBob and the default 14.2 repository.

Hp-setup throws up a segmentation fault and I can't set up my printers. I don't know where to start solving this.

Please advise.
This is what I did to get my printers setup when I ran into this:
1)make sure cups is running
2)in a web browser go to localhost:631
3)click on "adding printers and classes"

You might have to enter your root password, but other than that it should work.
 
Old 08-14-2017, 04:18 PM   #3
esteeven
Senior Member
 
Registered: Oct 2001
Location: Bristol UK
Distribution: Slackware Ubuntu
Posts: 1,053

Original Poster
Rep: Reputation: 42
Hello BigTig and thanks for your quick reply. Unfortunately, this doesn't work. CUPS is running and I can add printers but a filter fails (see screenshot.)
Attached Thumbnails
Click image for larger version

Name:	hp.jpeg
Views:	27
Size:	30.9 KB
ID:	25707  

Last edited by esteeven; 08-14-2017 at 04:21 PM.
 
Old 08-14-2017, 05:02 PM   #4
BigTig
LQ Newbie
 
Registered: Aug 2015
Posts: 15

Rep: Reputation: Disabled
Quote:
Originally Posted by esteeven View Post
I was using MLED Microlinux on Slackware 14.2 and HPLIP was working fine. Both of my HP printers worked without issues. I changed my HDD to a SSD, forcing a reinstall of Slackware. I didn't use Microlinux this time and I installed everything I needed from Slackbuilds / AlienBob and the default 14.2 repository.

Hp-setup throws up a segmentation fault and I can't set up my printers. I don't know where to start solving this.

Please advise.
Quote:
Originally Posted by esteeven View Post
Hello BigTig and thanks for your quick reply. Unfortunately, this doesn't work. CUPS is running and I can add printers but a filter fails (see screenshot.)
Hmmm...did you try to print as root?
 
Old 08-14-2017, 05:21 PM   #5
esteeven
Senior Member
 
Registered: Oct 2001
Location: Bristol UK
Distribution: Slackware Ubuntu
Posts: 1,053

Original Poster
Rep: Reputation: 42
Same problem.
 
Old 08-14-2017, 05:25 PM   #6
BigTig
LQ Newbie
 
Registered: Aug 2015
Posts: 15

Rep: Reputation: Disabled
Quote:
Originally Posted by esteeven View Post
Same problem.
What do the logs in /var/log/cups say? There's usually more detailed info in there.
 
Old 08-14-2017, 06:01 PM   #7
bassmadrigal
Senior Member
 
Registered: Nov 2003
Location: Newport News, VA
Distribution: Slackware
Posts: 4,302

Rep: Reputation: 2279Reputation: 2279Reputation: 2279Reputation: 2279Reputation: 2279Reputation: 2279Reputation: 2279Reputation: 2279Reputation: 2279Reputation: 2279Reputation: 2279
Did you do a full install? If you didn't, maybe the AUR could help you out with seeing what dependencies they require for hplip and see if you can cross-reference them with Slackware. Do you get any more output than just a segmentation fault? If so, please paste that in here.
 
Old 08-15-2017, 04:17 AM   #8
esteeven
Senior Member
 
Registered: Oct 2001
Location: Bristol UK
Distribution: Slackware Ubuntu
Posts: 1,053

Original Poster
Rep: Reputation: 42
It was a full install (bar KDE.)

There is no information with the segmentation fault.

Code:
HP Linux Imaging and Printing System (ver. 3.16.5)
Printer/Fax Setup Utility ver. 9.0

Copyright (c) 2001-15 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

Segmentation fault
 
Old 08-15-2017, 05:44 AM   #9
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,114
Blog Entries: 4

Rep: Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525
The obvious quick and easy thing to do is install kde and try again.

You can get more information about a segfault by getting and analysing a core dump. hp-setup is a python script, so:

Code:
ulimit -c unlimited
hp-setup
gdb /usr/bin/python core
then type 'bt' at the gdb prompt and share what it tells you.
 
2 members found this post helpful.
Old 08-15-2017, 10:39 AM   #10
esteeven
Senior Member
 
Registered: Oct 2001
Location: Bristol UK
Distribution: Slackware Ubuntu
Posts: 1,053

Original Poster
Rep: Reputation: 42
Well. That's a turn up for the books. On the grounds that I was spending far too much time messing around trying to set up my printers rather than doing some actual work, I thought it might actually save time to reinstall (again!) I did and hp-setup worked first time. The only difference is that I haven't added Multilib or Plasma. I shall tread very carefully for now -at least until my work is done.

Thanks for the pointers and help. Sometimes, a hammer is needed to crack a nut.
 
Old 10-09-2017, 10:55 AM   #11
Moun
LQ Newbie
 
Registered: Oct 2017
Posts: 3

Rep: Reputation: Disabled
Quote:
Originally Posted by 55020 View Post
You can get more information about a segfault by getting and analysing a core dump. hp-setup is a python script, so:

Code:
ulimit -c unlimited
hp-setup
gdb /usr/bin/python core
then type 'bt' at the gdb prompt and share what it tells you.
Hi, I encounter the same issue, also with hp-toolbox.

Here is "bt" output :
Code:
#0  0x00007f82df964ff6 in strlen () at /lib64/libc.so.6
#1  0x00007f82e067d9d7 in PyString_FromFormatV () at /usr/lib64/libpython2.7.so.1.0
#2  0x00007f82e06e94ff in PyErr_Format () at /usr/lib64/libpython2.7.so.1.0
#3  0x00007f82d24531c7 in  () at /usr/lib64/python2.7/site-packages/sip.so
#4  0x00007f82d6b24826 in initQtGui () at /usr/lib64/python2.7/site-packages/PyQt4/QtGui.so
#5  0x00007f82e06f5097 in _PyImport_LoadDynamicModule () at /usr/lib64/libpython2.7.so.1.0
#6  0x00007f82e06f29d8 in  () at /usr/lib64/libpython2.7.so.1.0
#7  0x00007f82e06f38de in PyImport_ImportModuleLevel () at /usr/lib64/libpython2.7.so.1.0
#8  0x00007f82e06d2348 in  () at /usr/lib64/libpython2.7.so.1.0
#9  0x00007f82e06245b3 in PyObject_Call () at /usr/lib64/libpython2.7.so.1.0
#10 0x00007f82e06d3e47 in PyEval_CallObjectWithKeywords () at /usr/lib64/libpython2.7.so.1.0
#11 0x00007f82e06d74f2 in PyEval_EvalFrameEx () at /usr/lib64/libpython2.7.so.1.0
#12 0x00007f82e06dc1c3 in PyEval_EvalFrameEx () at /usr/lib64/libpython2.7.so.1.0
#13 0x00007f82e06ddd4c in PyEval_EvalCodeEx () at /usr/lib64/libpython2.7.so.1.0
#14 0x00007f82e06dde69 in PyEval_EvalCode () at /usr/lib64/libpython2.7.so.1.0
#15 0x00007f82e070201a in PyRun_FileExFlags () at /usr/lib64/libpython2.7.so.1.0
#16 0x00007f82e07033a7 in PyRun_SimpleFileExFlags () at /usr/lib64/libpython2.7.so.1.0
#17 0x00007f82e071989e in Py_Main () at /usr/lib64/libpython2.7.so.1.0
#18 0x00007f82df8fa7d0 in __libc_start_main () at /lib64/libc.so.6
#19 0x0000000000400779 in _start ()
I'm stuck with this. I can't figure out what's happening. Here are my installed packages :
  • python-2.7.14-x86_64-1_slack14.2
  • hplip-3.17.9-x86_64-3 (tried to upgrade it from 3.16.5-x86_64-3 to fix the issue, encountered same error)
  • KDE 5_17.09 (Alien's KTown collection)

Last edited by Moun; 10-09-2017 at 10:57 AM. Reason: added more info about hplip package
 
Old 10-09-2017, 02:31 PM   #12
Moun
LQ Newbie
 
Registered: Oct 2017
Posts: 3

Rep: Reputation: Disabled
I finally solved my issue by recompiling hplip with qt5 enabled. You'll find an edited Slackbuild attached.
Attached Files
File Type: txt hplip.SlackBuild.txt (4.0 KB, 6 views)

Last edited by Moun; 10-09-2017 at 05:44 PM.
 
Old 10-10-2017, 02:10 AM   #13
gmgf
Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 963

Rep: Reputation: 307Reputation: 307Reputation: 307Reputation: 307
Quote:
Originally Posted by Moun View Post
I finally solved my issue by recompiling hplip with qt5 enabled. You'll find an edited Slackbuild attached.
hplip-3.17.9 work correctly here on 14.2, just build with the official hplip.SlackBuild 14.2 version, are your sure that you have the good python and python binding package (PyQt sip) installed, (14.2) version ?
 
Old 10-10-2017, 07:03 AM   #14
Moun
LQ Newbie
 
Registered: Oct 2017
Posts: 3

Rep: Reputation: Disabled
Yes, and also KTown packages provided by Alien, as said above. The official hplip.Slackbuild dosn't compile with qt5 support, I think that's why it got broken.
 
  


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
segmentation fault..... sumitshining Programming 9 11-10-2008 02:48 PM
segmentation fault...hplip CrashedAgain Linux - Software 1 03-13-2008 03:35 AM
yast segmentation fault, system freezing - nvidia driver at fault? BaltikaTroika SUSE / openSUSE 2 12-02-2005 09:34 AM
Segmentation fault.. please help me! rpmadness Linux - Software 4 11-25-2003 06:47 PM
Segmentation fault suriyamohan Linux - General 5 10-21-2003 01:37 AM

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

All times are GMT -5. The time now is 01:11 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