LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-09-2021, 11:34 AM   #16
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656

Is there an /mn mount or is that for loop getting an incorrect mount point?

Also, maybe you could try grabbing the sources for procps-ng from 14.2 and build that package to see if the issue exists there as well.
 
Old 07-09-2021, 11:48 AM   #17
vulcan59
Member
 
Registered: Sep 2007
Location: UK
Distribution: Slackware 14.2 & Current
Posts: 96

Original Poster
Rep: Reputation: 30
OK. I did some reading and it seems that ps -o can truncate the command if other things are specified after it. I changed your code to

ps -hq $i -o user,command

I removed the hard coded /mnt/slackware from the fuser command, letting it use $dir again

At the hang, the display of uncompleted background tasks showed this

root /usr/bin/fuser -k -M -m /mnt/slackware

So the command is correct but not completing.
 
Old 07-09-2021, 12:51 PM   #18
vulcan59
Member
 
Registered: Sep 2007
Location: UK
Distribution: Slackware 14.2 & Current
Posts: 96

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by bassmadrigal View Post
Also, maybe you could try grabbing the sources for procps-ng from 14.2 and build that package to see if the issue exists there as well.
I am trying to do that but running up against a problem in configure.

error : C preprocessor "/lib/cpp" fails sanity check
 
Old 07-09-2021, 12:52 PM   #19
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by vulcan59 View Post
OK. I did some reading and it seems that ps -o can truncate the command if other things are specified after it. I changed your code to

ps -hq $i -o user,command

I removed the hard coded /mnt/slackware from the fuser command, letting it use $dir again

At the hang, the display of uncompleted background tasks showed this

root /usr/bin/fuser -k -M -m /mnt/slackware

So the command is correct but not completing.
That makes a lot of sense. Good catch!

I think the next step is to see if this issue exists with other versions of procps-ng. You could try grabbing the source from 14.2 and build that to see if the problem still occurs.

Code:
wget -r -nH --no-parent --reject="index.htm*" --cut-dirs=4 https://mirror.slackbuilds.org/slackware/slackware64-14.2/source/a/procps-ng/
cd procps-ng
sh procps-ng.SlackBuild
upgradepkg /tmp/procps-ng-3.3.11-*.txz
 
Old 07-09-2021, 03:31 PM   #20
vulcan59
Member
 
Registered: Sep 2007
Location: UK
Distribution: Slackware 14.2 & Current
Posts: 96

Original Poster
Rep: Reputation: 30
I am trying to compile the 14.2 procps-ng but running up against a problem in configure.

error : C preprocessor "/lib/cpp" fails sanity check

There may be something not compatible with the newer compiler in current I guess.
 
Old 07-10-2021, 07:28 AM   #21
vulcan59
Member
 
Registered: Sep 2007
Location: UK
Distribution: Slackware 14.2 & Current
Posts: 96

Original Poster
Rep: Reputation: 30
I am unable to get the 14.2 procps-ng to compile on current. However, 14.2 installed on another machine does not have the shutdown problem and it backgrounds the fuser kill command.
 
Old 07-10-2021, 09:42 AM   #22
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Maybe try the version in 14.2's patches/ directory. It's only 2 versions behind -current's version and may compile. Just change the cut-dirs to 5 instead of 4.

Code:
https://mirror.slackbuilds.org/slackware/slackware64-14.2/patches/source/procps-ng/
I'm trying to determine if it's from the program or something else in -current. If it's the program, we'd need to file a bug report with them.
 
Old 07-11-2021, 06:15 AM   #23
vulcan59
Member
 
Registered: Sep 2007
Location: UK
Distribution: Slackware 14.2 & Current
Posts: 96

Original Poster
Rep: Reputation: 30
I have not been able to compile the procps-ng from 14.2 patches on current. It fails with this
Code:
/usr/bin/ld: fuser.o in function `init_mntinfo':
fuser.c:(.text.startup+0x1bf4): undefined reference to `makedev'
procps-ng on current has psmisc 23.3 while 14.2 has 22.21. It is psmisc which builds fuser.

I am not sure what more I can do now.
 
Old 07-12-2021, 12:04 AM   #24
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,539

Rep: Reputation: 8535Reputation: 8535Reputation: 8535Reputation: 8535Reputation: 8535Reputation: 8535Reputation: 8535Reputation: 8535Reputation: 8535Reputation: 8535Reputation: 8535
Quote:
Originally Posted by vulcan59 View Post
I am not sure what more I can do now.
You say you are not using an SMP machine. But have you tried the SMP kernel? Unless it won't work for some reason it's the preferred kernel to use.
 
Old 07-13-2021, 04:44 AM   #25
vulcan59
Member
 
Registered: Sep 2007
Location: UK
Distribution: Slackware 14.2 & Current
Posts: 96

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by volkerdi View Post
You say you are not using an SMP machine. But have you tried the SMP kernel? Unless it won't work for some reason it's the preferred kernel to use.
I have tried both the huge and generic kernels as provided with no mods. Currently on 5.12.15. I always understood that the huge kernel has SMP support built in now or have I missed another kernel somewhere?
 
Old 07-13-2021, 10:04 AM   #26
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
If you're running 32bit -current, there's regular and smp versions of both the generic and huge kernels (along with the associated modules).

Code:
Sun Jul 11 18:23:51 UTC 2021
a/kernel-generic-5.12.16-i586-1.txz:  Upgraded.
a/kernel-generic-smp-5.12.16_smp-i686-1.txz:  Upgraded.
a/kernel-huge-5.12.16-i586-1.txz:  Upgraded.
a/kernel-huge-smp-5.12.16_smp-i686-1.txz:  Upgraded.
a/kernel-modules-5.12.16-i586-1.txz:  Upgraded.
a/kernel-modules-smp-5.12.16_smp-i686-1.txz:  Upgraded.
 
Old 07-13-2021, 02:41 PM   #27
vulcan59
Member
 
Registered: Sep 2007
Location: UK
Distribution: Slackware 14.2 & Current
Posts: 96

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by bassmadrigal View Post
If you're running 32bit -current, there's regular and smp versions of both the generic and huge kernels (along with the associated modules).

Code:
Sun Jul 11 18:23:51 UTC 2021
a/kernel-generic-5.12.16-i586-1.txz:  Upgraded.
a/kernel-generic-smp-5.12.16_smp-i686-1.txz:  Upgraded.
a/kernel-huge-5.12.16-i586-1.txz:  Upgraded.
a/kernel-huge-smp-5.12.16_smp-i686-1.txz:  Upgraded.
a/kernel-modules-5.12.16-i586-1.txz:  Upgraded.
a/kernel-modules-smp-5.12.16_smp-i686-1.txz:  Upgraded.
I am running 64 bit.
 
Old 07-13-2021, 02:54 PM   #28
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
Switch to run level 1. Say if your problem diagnosis is correct you shouldn't be able to do that. I mean this command
Code:
# telinit 1
also should hang.
 
Old 07-13-2021, 04:26 PM   #29
vulcan59
Member
 
Registered: Sep 2007
Location: UK
Distribution: Slackware 14.2 & Current
Posts: 96

Original Poster
Rep: Reputation: 30
telinit 1 works as I would expect. It drops to runlevel 1 and a login prompt.
 
Old 07-13-2021, 05:10 PM   #30
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
So login. Switch to run level 0. But before list all active processes and mounts. If shutting down system in run level 1 works - then I think problem is somewhere else. Besides what do you do to shutdown system? From inside GUI, session manager, switching run level or directly by shutdown command?
 
  


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
what is the default powerstate (e.g. S3,S4,S5) for the command 'shutdown -hP' or 'shutdown -hH' or 'shutdown -h' badbetty Slackware 6 11-12-2017 12:18 AM
LXer: How to use and make the most of fuser command in Linux LXer Syndicated Linux News 0 12-05-2016 02:50 PM
Install Realtek ALC3223 drivers: X hangs on start, shutdown/reboot hangs? RatCorpseKing Slackware - Installation 1 04-27-2015 11:26 PM
fuser command imprise Linux - Newbie 3 06-06-2009 04:59 AM
Fuser command Gins Linux - General 3 08-09-2005 01:15 PM

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

All times are GMT -5. The time now is 11:11 PM.

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