You are not logged in.

#1 2012-03-28 16:08:29

jk121960
Member
From: Palos Hills, Illinois
Registered: 2011-12-09
Posts: 254

[solved] find function is hanging

Hi and thanks, for some reason all of sudden my 'find ' function from the terminal is hanging it might turn back a result close to the root of the search but then it just hangs and never ends. I am using Awesome DE, I keep my updates up. I don't even know what I should post as far as information because this is so "part of the OS" type thing. Please let me know what I can provide and I will get it up here right away. I use that functionality all the time.

All help is appreciated.

--jerry

Also I can't even CTRL-C and stop it, I have to close the terminal

Last edited by jk121960 (2012-03-28 20:48:24)


Arch Awesome, Ranger & Vim the coding triple threat.

Offline

#2 2012-03-28 16:11:09

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved] find function is hanging

If you posted that find function it might be easier to track down the problem ...

Offline

#3 2012-03-28 16:16:18

jk121960
Member
From: Palos Hills, Illinois
Registered: 2011-12-09
Posts: 254

Re: [solved] find function is hanging

I'm sorry like

find / -iname somefile

Arch Awesome, Ranger & Vim the coding triple threat.

Offline

#4 2012-03-28 16:23:43

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved] find function is hanging

If you have a big system, it might take a long time to search through it all.

If you run it on a small test directory e.g.

[karol@black foo4]$ ls
Foo  bar
[karol@black foo4]$ find . -iname bar
./bar

does it exit properly?

Offline

#5 2012-03-28 16:28:04

jk121960
Member
From: Palos Hills, Illinois
Registered: 2011-12-09
Posts: 254

Re: [solved] find function is hanging

No I tried that with my home .config directory, it found only the one and we know there is more than one, then it just hangs a d doesn't return. I have to close the terminal. I use it all the time so I have a good idea how long it runs before it completes the whole system.


thanks again.

--jerry


Arch Awesome, Ranger & Vim the coding triple threat.

Offline

#6 2012-03-28 19:12:14

rwd
Member
Registered: 2009-02-08
Posts: 671

Re: [solved] find function is hanging

you can use strace to diagnose what an executable is doing.

Last edited by rwd (2012-03-28 19:13:38)

Offline

#7 2012-03-28 19:13:33

jk121960
Member
From: Palos Hills, Illinois
Registered: 2011-12-09
Posts: 254

Re: [solved] find function is hanging

OK and thanks can you give me a small code example of this trace?

thanks

--jerry


Arch Awesome, Ranger & Vim the coding triple threat.

Offline

#8 2012-03-28 19:19:37

rwd
Member
Registered: 2009-02-08
Posts: 671

Re: [solved] find function is hanging

pls search the forum/wiki

Offline

#9 2012-03-28 19:28:00

jk121960
Member
From: Palos Hills, Illinois
Registered: 2011-12-09
Posts: 254

Re: [solved] find function is hanging

In that much space and with that much effort you could have wrote down the one line of code.


Arch Awesome, Ranger & Vim the coding triple threat.

Offline

#10 2012-03-28 19:36:03

rwd
Member
Registered: 2009-02-08
Posts: 671

Re: [solved] find function is hanging

I possibly could have. But if would take just as much time for me to look it up as you. And tomorrow you'll demand another spoonfed answer. The arch way is to provide information, try for yourself, search the wiki, not demand people to google for you. Otherwise Arch may not be for you. https://wiki.archlinux.org/index.php/Forum_Etiquette

Offline

#11 2012-03-28 19:41:30

jk121960
Member
From: Palos Hills, Illinois
Registered: 2011-12-09
Posts: 254

Re: [solved] find function is hanging

I looked and I haven't found anything yet, and the way you stated it, I would have thought you knew what to do. So were you guessing or did you know. Or do you just enjoy being condescending to people who obviously know less then you or know more about other aspects then you and not about this particular subject. I have had a lot of good information exchanged on this forum both to me and from me. I have solved most of my own problems closed my queries and posted the results for the next guy. I do research but not everything is quite so obvious as to the approach to take, I have built no less then 30 different Arch desktops and once in a while I run into something I don't know how to approach.  So shoot me.


Arch Awesome, Ranger & Vim the coding triple threat.

Offline

#12 2012-03-28 19:45:45

jon
Member
Registered: 2002-11-28
Posts: 87

Re: [solved] find function is hanging

A few suggestions if you haven't already tried them:

pacman -S findutils

To re-install the find binary.

Does find work correctly if you create a new user?
Does "ls -R" work correctly?

What does the "oldfind" command return? I just found it and it seems to be another find binary.

Hope some of this helps.

Offline

#13 2012-03-28 19:55:21

lifeafter2am
Member
From: 127.0.0.1
Registered: 2009-06-10
Posts: 1,332

Re: [solved] find function is hanging

jk121960 wrote:

I looked and I haven't found anything yet, and the way you stated it, I would have thought you knew what to do. So were you guessing or did you know. Or do you just enjoy being condescending to people who obviously know less then you or know more about other aspects then you and not about this particular subject. I have had a lot of good information exchanged on this forum both to me and from me. I have solved most of my own problems closed my queries and posted the results for the next guy. I do research but not everything is quite so obvious as to the approach to take, I have built no less then 30 different Arch desktops and once in a while I run into something I don't know how to approach.  So shoot me.

1) Relax
2) First result on google for "using strace" : http://www.hokstad.com/5-simple-ways-to … trace.html
3) Second result is also very useful: http://www.debian-administration.org/articles/352

Last edited by lifeafter2am (2012-03-28 19:56:36)


#binarii @ irc.binarii.net
Matrix Server: https://matrix.binarii.net
-------------
Allan -> ArchBang is not supported because it is stupid.

Offline

#14 2012-03-28 19:56:06

/dev/zero
Member
From: Melbourne, Australia
Registered: 2011-10-20
Posts: 1,247

Re: [solved] find function is hanging

jk121960 wrote:

I looked and I haven't found anything yet, and the way you stated it, I would have thought you knew what to do. So were you guessing or did you know. Or do you just enjoy being condescending to people who obviously know less then you or know more about other aspects then you and not about this particular subject. I have had a lot of good information exchanged on this forum both to me and from me. I have solved most of my own problems closed my queries and posted the results for the next guy. I do research but not everything is quite so obvious as to the approach to take, I have built no less then 30 different Arch desktops and once in a while I run into something I don't know how to approach.  So shoot me.

Stop being a bitch.

STFW

Edit: too slow smile.

Last edited by /dev/zero (2012-03-28 19:57:02)

Offline

#15 2012-03-28 19:57:41

lifeafter2am
Member
From: 127.0.0.1
Registered: 2009-06-10
Posts: 1,332

Re: [solved] find function is hanging

/dev/zero wrote:
jk121960 wrote:

I looked and I haven't found anything yet, and the way you stated it, I would have thought you knew what to do. So were you guessing or did you know. Or do you just enjoy being condescending to people who obviously know less then you or know more about other aspects then you and not about this particular subject. I have had a lot of good information exchanged on this forum both to me and from me. I have solved most of my own problems closed my queries and posted the results for the next guy. I do research but not everything is quite so obvious as to the approach to take, I have built no less then 30 different Arch desktops and once in a while I run into something I don't know how to approach.  So shoot me.

Stop being a bitch.

STFW

Edit: too slow smile.

OMG I've never seen that before ... I almost spit Sprite all over my keyboard I was laughing so hard!!! big_smile


#binarii @ irc.binarii.net
Matrix Server: https://matrix.binarii.net
-------------
Allan -> ArchBang is not supported because it is stupid.

Offline

#16 2012-03-28 20:03:34

jk121960
Member
From: Palos Hills, Illinois
Registered: 2011-12-09
Posts: 254

Re: [solved] find function is hanging

jon wrote:

A few suggestions if you haven't already tried them:

pacman -S findutils

To re-install the find binary.

Does find work correctly if you create a new user?
Does "ls -R" work correctly?

What does the "oldfind" command return? I just found it and it seems to be another find binary.

Hope some of this helps.


thanks

The reinstall didn't help,
I will try the new user thing.
but ls -R worked no problem.
and the oldfind (how did you know) worked the same. How did you know about the oldfind that crazy?

because the resinstall didn't effect it and oldfind is the same, it has to be a peripheral issue. another poster dropped the trace code and I will give that a try.

But thanks for your help with this.

--jerry


Arch Awesome, Ranger & Vim the coding triple threat.

Offline

#17 2012-03-28 20:05:20

jk121960
Member
From: Palos Hills, Illinois
Registered: 2011-12-09
Posts: 254

Re: [solved] find function is hanging

lifeafter2am wrote:
jk121960 wrote:

I looked and I haven't found anything yet, and the way you stated it, I would have thought you knew what to do. So were you guessing or did you know. Or do you just enjoy being condescending to people who obviously know less then you or know more about other aspects then you and not about this particular subject. I have had a lot of good information exchanged on this forum both to me and from me. I have solved most of my own problems closed my queries and posted the results for the next guy. I do research but not everything is quite so obvious as to the approach to take, I have built no less then 30 different Arch desktops and once in a while I run into something I don't know how to approach.  So shoot me.

1) Relax
2) First result on google for "using strace" : http://www.hokstad.com/5-simple-ways-to … trace.html
3) Second result is also very useful: http://www.debian-administration.org/articles/352

Thanks I will check this out, I tried like app trace and a couple variations I didn't know where to start,

so thanks again.

--jerry


Arch Awesome, Ranger & Vim the coding triple threat.

Offline

#18 2012-03-28 20:32:59

jk121960
Member
From: Palos Hills, Illinois
Registered: 2011-12-09
Posts: 254

Re: [solved] find function is hanging

Well that strace spit out like a virtual mountain of information, I will have to check it out, but what a great tool thanks for that.

--jerry


Arch Awesome, Ranger & Vim the coding triple threat.

Offline

#19 2012-03-28 20:47:58

jk121960
Member
From: Palos Hills, Illinois
Registered: 2011-12-09
Posts: 254

Re: [solved] find function is hanging

jk121960 wrote:
jon wrote:

A few suggestions if you haven't already tried them:

pacman -S findutils

To re-install the find binary.

Does find work correctly if you create a new user?
Does "ls -R" work correctly?

What does the "oldfind" command return? I just found it and it seems to be another find binary.

Hope some of this helps.


thanks

The reinstall didn't help,
I will try the new user thing.
but ls -R worked no problem.
and the oldfind (how did you know) worked the same. How did you know about the oldfind that crazy?

because the resinstall didn't effect it and oldfind is the same, it has to be a peripheral issue. another poster dropped the trace code and I will give that a try.

But thanks for your help with this.

--jerry


Strangely it seems to be better now, I can only assume that possibly it needed to be dropped out of current memory before the new exe could take over. The only thing I physically did was the re-install.

thanks again for your help.

--jerry


Arch Awesome, Ranger & Vim the coding triple threat.

Offline

Board footer

Powered by FluxBB