Omgili, forum search, forums search, search forums, discussion search,discussions search, search discussions, board search, boards search, search boards
  Advanced Search

find in root (/) results in stack trace

On Wed, 1 Feb 2012 12:57:29 +0000 (UTC), Heiko Elger <...@arburg.com

Hello,

I'm using the latest snapshot.

$ uname -a
CYGWIN_NT-6.1-WOW64 PCFX061 1.7.10s(0.259/5/3) 20120201 05:28:17 i686 Cygwin

Rebaseall and peflagsall are done.

Executing "find ." in the root will force a stack trace.

******* snip snip snip ****************
ente59@PCFX061 /
$ find . 0 [main] find 8996 C:\Programme\cygwinTest\bin\find.exe: *** fatal
error - cwcsdup would have returned NULL
Stack trace:
Frame Function Args
0028B4D8 6102F96B (0028B4D8, 00000000, 00000000, 20039A30)
0028B7C8 6102F96B (6119BD20, 00008000, 00000000, 6119DB0F)
0028C7F8 61005F0C (611CC458, 0028C824, 6228FE64, 00000000)
0028C818 61005F48 (611CC458, 00000000, FFFFFFFF, 6228FE64)
End of stack trace
Hangup
******* snip snip snip ****************

I noticed the problem yesterday with snapshot 2012-01-11.
I reproduced it 2012-01-23 and latest snapshot from today 2012-02-01.

I checked this at home on my two private computers running Win XP and Win7
Ultimite (non 64bit version) with snapshot 2012-01-23
and I cannot reprodue the error.

So perhaps it seems to be a 64bit problem!

Can anyone agree reproducing same problem?

With best regards

Heiko Elger

--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple



On Wed, 1 Feb 2012 16:00:54 +0100, Corinna Vinschen <...@cygwin.com

This looks like a problem when recursing over the /proc/registry and
it doesn't look like a 64 bit problem. I'll have a look.

Corinna

--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat

--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple

On Wed, 1 Feb 2012 16:54:13 +0000 (UTC), Heiko Elger <...@arburg.com

Corinna Vinschen writes:

I saw same problem runing find command i.e. /cygdrive/c/Programme/cygwin (root
of my cygwin installation) ad there is no /proc/registry.

regards

Heiko

--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple

On Thu, 2 Feb 2012 09:56:45 +0100, Corinna Vinschen <...@cygwin.com

Indeed.

I concentrated on the registry yesterday and I found a memory and a
handle leak there, which were a result of find using open/fdopendir/
closedir. This skips the close call and the registry closedir code
wasn't handling that at all.

Given that find wastes a lot of memory when scanning ordinary disks,
too, there's apparently still another memory leak somewhere. I'm going
to have another look today.

Corinna

--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat

--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple

On Thu, 2 Feb 2012 16:36:57 +0100, Corinna Vinschen <...@cygwin.com

I've created a new snapshot 2012-02-02. Can you please test it? AFAICS
I got rid of the memory leak. A recent change broke the fdopendir
handling entirely, apparently. I tested it with a full `find /' scan and
I didn't have any problem...

...except that find ran into an infinite loop in /proc/registry. It
turned out that this is a result of registry virtualization under UAC.
I fixed that by treating the affected registry keys(*) as symlink,
rather than as directory.

Corinna

(*) every key ending in "VirtualStore/MACHINE/SOFTWARE/Classes".

--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat

--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple

On Fri, 3 Feb 2012 06:02:09 +0000 (UTC), Heiko Elger <...@arburg.com

Corinna Vinschen <

Hello,

thanks a lot.

$ uname -a
CYGWIN_NT-6.1-WOW64 PCFX061 1.7.10s(0.259/5/3) 20120202 16:59:00 i686 Cygwin

I can agree - find is running fine.

regards

Heiko

--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple

Discussion Title: find in root (/) results in stack trace
Title Keywords: find  root  results  stack  trace