[Python-bugs-list] [ python-Bugs-639022 ] Install script goes into infinite loop

noreply@sourceforge.net noreply@sourceforge.net
Mon, 18 Nov 2002 04:20:34 -0800


Bugs item #639022, was opened at 2002-11-15 18:09
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=639022&group_id=5470

Category: Installation
Group: Python 2.2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Mel (meldh)
Assigned to: Nobody/Anonymous (nobody)
Summary: Install script goes into infinite loop

Initial Comment:
./configure -- works
make -- works
make test -- works
make install -- gets as far as trying to do this:

PYTHONPATH=/usr/local/lib/python2.2 \
	./python -tt /usr/local/lib/python2.2/compileall.py -x 
badsyntax \
        /usr/local/lib/python2.2
Listing /usr/local/lib/python2.2 ...
Listing /usr/local/lib/python2.2/ ...

and then goes off into infinite loop, repeating the last line until Ctrl-
C.

Debian 2.2 (potato), 2.2.18pre21 kernel version.



----------------------------------------------------------------------

>Comment By: Mel (meldh)
Date: 2002-11-18 12:20

Message:
Logged In: YES 
user_id=649744

... which, bizarrely, works. The main difference seems to be that it gets 
as far as the line which reads:

Listing /usr/local/lib/python2.2 ...

and then it _doesn't_ go on to produce a(n infinite number of) lines 
saying:

Listing /usr/local/lib/python2.2/ ...

(with the extra / appended to the name of the directory listing). What's 
actually _supposed_ to happen with that line? It passes a directory 
listing back to the shell? (Listings work OK on the problem machine as 
far as I can tell.)

OK, next step. Delete build directory, delete install directory, untar the 
tarball again and start over from scratch.



----------------------------------------------------------------------

Comment By: Mel (meldh)
Date: 2002-11-18 12:07

Message:
Logged In: YES 
user_id=649744

I'm just trying to install from the same .tar.gz file I originally downloaded 
on a machine with a very similar setup (not, sadly, identical). Let's see if 
it does the same thing.

----------------------------------------------------------------------

Comment By: Martin v. Löwis (loewis)
Date: 2002-11-18 12:04

Message:
Logged In: YES 
user_id=21627

Ok, I give up. Unless somebody else has any idea, I will
close this as unreproducable. 

----------------------------------------------------------------------

Comment By: Mel (meldh)
Date: 2002-11-18 11:43

Message:
Logged In: YES 
user_id=649744

fsck reports /usr('s filesystem) is clean.

----------------------------------------------------------------------

Comment By: Mel (meldh)
Date: 2002-11-17 22:38

Message:
Logged In: YES 
user_id=649744

I can't do an fsck on that filesystem until I'm in front of the 
console tomorrow - no reason to suspect problems, though. 
I've attached a gzipped version of the output of 'strace 
make install'.

----------------------------------------------------------------------

Comment By: Martin v. Löwis (loewis)
Date: 2002-11-17 21:00

Message:
Logged In: YES 
user_id=21627

Ok, more tests: Can you please perform a file system check
on that file system? Normally, I would also ask for strace
output, but I suppose your strace won't decode getdents64.

----------------------------------------------------------------------

Comment By: Mel (meldh)
Date: 2002-11-17 19:16

Message:
Logged In: YES 
user_id=649744

Zero output from that, I'm afraid. This is very weird.

----------------------------------------------------------------------

Comment By: Martin v. Löwis (loewis)
Date: 2002-11-16 16:31

Message:
Logged In: YES 
user_id=21627

I'm now convinced that there must be cyclic symbolic link
somewhere. Please report the output of

find /usr/local/lib/python2.2 -type l -print



----------------------------------------------------------------------

Comment By: Mel (meldh)
Date: 2002-11-16 15:59

Message:
Logged In: YES 
user_id=649744

That's OK, me neither. ;) I've patched compileall.py and 
reran 'make install'. The log file doesn't tell me a whole lot 
more but I confess I'm no Python expert (I need to get it 
installed for a different app which requires it).

Log file attached. Be warned, uncompressed it is about 
6Mb.


----------------------------------------------------------------------

Comment By: Martin v. Löwis (loewis)
Date: 2002-11-16 14:35

Message:
Logged In: YES 
user_id=21627

I still have no clue what is going on here. Can you please
apply the attached compileall.diff, rerun installation, and
attach the resulting log file (or a significant portion
thereof)?

----------------------------------------------------------------------

Comment By: Mel (meldh)
Date: 2002-11-16 10:36

Message:
Logged In: YES 
user_id=649744

I downloaded it from 
http://www.python.org/ftp/python/2.2.2/Python-2.2.2.tgz 
(the most obvious link off www.python.org).

Directory listing attached (I hope)

----------------------------------------------------------------------

Comment By: Martin v. Löwis (loewis)
Date: 2002-11-16 09:52

Message:
Logged In: YES 
user_id=21627

As a procedural comment: What is the source package that 
you use (precise URL please)?

Can you please provide the output of

ls -l /usr/local/lib/python2.2

----------------------------------------------------------------------

Comment By: Mel (meldh)
Date: 2002-11-15 23:57

Message:
Logged In: YES 
user_id=649744

Sure. (attached at end)

Running the command from the shell does seem to do the 
same thing.

There is no obvious symlink within /usr/local/lib/python2.2 
(if a directory listing would be useful, let me know)

Log excerpt: 

/usr/bin/install -c -m 
644 ./Lib/distutils/command/install_scripts.py /usr/local/lib
/python2.2/distutils/command
/usr/bin/install -c -m 
644 ./Lib/distutils/command/sdist.py /usr/local/lib/python2
.2/distutils/command
/usr/bin/install -c -m 
644 ./Lib/xml/__init__.py /usr/local/lib/python2.2/xml
/usr/bin/install -c -m 
644 ./Lib/xml/dom/__init__.py /usr/local/lib/python2.2/xml/
dom
/usr/bin/install -c -m 
644 ./Lib/xml/dom/domreg.py /usr/local/lib/python2.2/xml/
dom
/usr/bin/install -c -m 
644 ./Lib/xml/dom/minidom.py /usr/local/lib/python2.2/xml
/dom
/usr/bin/install -c -m 
644 ./Lib/xml/dom/pulldom.py /usr/local/lib/python2.2/xml/
dom
/usr/bin/install -c -m 
644 ./Lib/xml/parsers/__init__.py /usr/local/lib/python2.2/x
ml/parsers
/usr/bin/install -c -m 
644 ./Lib/xml/parsers/expat.py /usr/local/lib/python2.2/xm
l/parsers
/usr/bin/install -c -m 
644 ./Lib/xml/sax/__init__.py /usr/local/lib/python2.2/xml/s
ax
/usr/bin/install -c -m 
644 ./Lib/xml/sax/_exceptions.py /usr/local/lib/python2.2/x
ml/sax
/usr/bin/install -c -m 
644 ./Lib/xml/sax/expatreader.py /usr/local/lib/python2.2/
xml/sax
/usr/bin/install -c -m 
644 ./Lib/xml/sax/handler.py /usr/local/lib/python2.2/xml/s
ax
/usr/bin/install -c -m 
644 ./Lib/xml/sax/saxutils.py /usr/local/lib/python2.2/xml/s
ax
/usr/bin/install -c -m 
644 ./Lib/xml/sax/xmlreader.py /usr/local/lib/python2.2/xm
l/sax
/usr/bin/install -c -m 
644 ./Lib/curses/__init__.py /usr/local/lib/python2.2/curses
/usr/bin/install -c -m 
644 ./Lib/curses/ascii.py /usr/local/lib/python2.2/curses
/usr/bin/install -c -m 
644 ./Lib/curses/has_key.py /usr/local/lib/python2.2/curse
s
/usr/bin/install -c -m 
644 ./Lib/curses/panel.py /usr/local/lib/python2.2/curses
/usr/bin/install -c -m 
644 ./Lib/curses/textpad.py /usr/local/lib/python2.2/curse
s
/usr/bin/install -c -m 
644 ./Lib/curses/wrapper.py /usr/local/lib/python2.2/curse
s
/usr/bin/install -c -m 644 ./Lib/plat-
linux2/CDROM.py /usr/local/lib/python2.2/plat-linux2
/usr/bin/install -c -m 644 ./Lib/plat-
linux2/DLFCN.py /usr/local/lib/python2.2/plat-linux2
/usr/bin/install -c -m 644 ./Lib/plat-
linux2/IN.py /usr/local/lib/python2.2/plat-linux2
/usr/bin/install -c -m 644 ./Lib/plat-
linux2/TYPES.py /usr/local/lib/python2.2/plat-linux2
/usr/bin/install -c ./Lib/plat-
linux2/regen /usr/local/lib/python2.2/plat-linux2
/usr/bin/install -c -m 
644 ./LICENSE /usr/local/lib/python2.2/LICENSE.txt
PYTHONPATH=/usr/local/lib/python2.2 \
	./python -
tt /usr/local/lib/python2.2/compileall.py -x badsyntax \
        /usr/local/lib/python2.2
Listing /usr/local/lib/python2.2 ...
Listing /usr/local/lib/python2.2/ ...
Listing /usr/local/lib/python2.2/ ...
Listing /usr/local/lib/python2.2/ ...
Listing /usr/local/lib/python2.2/ ...
Listing /usr/local/lib/python2.2/ ...
Listing /usr/local/lib/python2.2/ ...
Listing /usr/local/lib/python2.2/ ...
Listing /usr/local/lib/python2.2/ ...
Listing /usr/local/lib/python2.2/ ...
Listing /usr/local/lib/python2.2/ ...
Listing /usr/local/lib/python2.2/ ...
Listing /usr/local/lib/python2.2/ ...
Listing /usr/local/lib/python2.2/ ...
Listing /usr/local/lib/python2.2/ ...
Listing /usr/local/lib/python2.2/ ...
Listing /usr/local/lib/python2.2/ ...
Listing /usr/local/lib/python2.2/ ...
Listing /usr/local/lib/python2.2/ ...
Listing /usr/local/lib/python2.2/ ...
Listing /usr/local/lib/python2.2/ ...
(etc.)



----------------------------------------------------------------------

Comment By: Neal Norwitz (nnorwitz)
Date: 2002-11-15 23:48

Message:
Logged In: YES 
user_id=33168

Ok, could you paste a few listing lines and about 20 or so
before that.  Did you try running the command from the
shell?  Something like:  

  PYTHONPATH=/usr/local/lib/python2.2 \
    ./python -tt /usr/local/lib/python2.2/compileall.py \
        -x badsyntax /usr/local/lib/python2.2 

Does that do the same thing?

Is it possible there is a symlink in
/usr/local/lib/python2.2 to the same directory (or .)?

----------------------------------------------------------------------

Comment By: Mel (meldh)
Date: 2002-11-15 23:44

Message:
Logged In: YES 
user_id=649744

I give in, it just doesn't want to let me attach the file. It has 
about 10000 repeats of that same 'Listing' line, in any case.

----------------------------------------------------------------------

Comment By: Mel (meldh)
Date: 2002-11-15 23:43

Message:
Logged In: YES 
user_id=649744

Yeah, I tried that. In between the problems with file sizes, 
file names and the like, it doesn't seem to have worked. I'm 
giving it another go now.

----------------------------------------------------------------------

Comment By: Neal Norwitz (nnorwitz)
Date: 2002-11-15 23:40

Message:
Logged In: YES 
user_id=33168

There's no file.  You have to click the checkbox next to
"Check to Upload and Attach a File" in addition to entering
the filename.

----------------------------------------------------------------------

Comment By: Mel (meldh)
Date: 2002-11-15 23:38

Message:
Logged In: YES 
user_id=649744

Log file now attached, gzipped

----------------------------------------------------------------------

Comment By: Mel (meldh)
Date: 2002-11-15 23:38

Message:
Logged In: YES 
user_id=649744

Log file now attached, gzipped

----------------------------------------------------------------------

Comment By: Mel (meldh)
Date: 2002-11-15 23:34

Message:
Logged In: YES 
user_id=649744

Here's the log file. I let it run for about 10000 repeats and 
then killed it - there may be a lot of files, but _that_ many?

----------------------------------------------------------------------

Comment By: Mel (meldh)
Date: 2002-11-15 23:23

Message:
Logged In: YES 
user_id=649744

It definitely isn't printing out anything else except 
the 'Listing...' line. I can let it run for a few minutes and see 
if it's printing that one-per-file or something, instead of just 
looping... hang on.

----------------------------------------------------------------------

Comment By: Mel (meldh)
Date: 2002-11-15 23:22

Message:
Logged In: YES 
user_id=649744

It definitely isn't printing out anything else except 
the 'Listing...' line. I can let it run for a few minutes and see 
if it's printing that one-per-file or something, instead of just 
looping... hang on.

----------------------------------------------------------------------

Comment By: Neal Norwitz (nnorwitz)
Date: 2002-11-15 23:09

Message:
Logged In: YES 
user_id=33168

Are you sure you let the process finish?  It looks like
there are at least 2 passes.  One to generate .pyc files and
the other to generate .pyo (optimized) files.  There are a
lot of files to run through.  

Does it only print the "Listing /usr/local/lib/python2.2 ...
" lines and nothing in between?  

Could you save the output and attach it to this bug report?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=639022&group_id=5470