Bug #121 ./configure goes into infinite loop on mit-pthreads
Submitted: 4 Mar 2003 23:58 Modified: 5 Mar 2003 0:02
Reporter: Lenz Grimmer Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version: OS:
Assigned to: Lenz Grimmer CPU Architecture:Any

[4 Mar 2003 23:58] Lenz Grimmer
Description:
Date: Fri, 28 Feb 2003 14:25:30 -0500 
From: VaX#n8 <vax@carolina.rr.com> 
To: mysql@lists.mysql.com 
Subject: Re: ./configure goes into infinite loop on mit-pthreads 
 
MySQL 
 
Part of configure reads: 
 
(cd mit-pthreads; sh ./configure) 
 
I invoked configure as so: 
 
sh -v ./configure 2> /tmp/foo 
 
This leaves the following at the end of /tmp/foo while its running: 
 
./configure: mit-pthreads: No such file or directory 
./configure: mit-pthreads: No such file or directory 
./configure: mit-pthreads: No such file or directory 
./configure: mit-pthreads: No such file or directory 
 
If I let this go on for long enough it becomes wedged and doesn't 
respond to ctrl-C (SIGINT).  It would appear to be some kind of resource 
problem.  After hitting control-Z and kill %1 a couple of times, it dies, 
and leaves this near the end of /tmp/foo: 
 
/tmp/foo:./configure: mit-pthreads: No such file or directory 
/tmp/foo:./configure: mit-pthreads: No such file or directory 
/tmp/foo: 
/tmp/foo:# IMPORTANT - do not modify LIBS past this line - this hack is the on 
ly way 
/tmp/foo:# I know to add the static NSS magic if we have static NSS libraries 
with 
/tmp/foo:# glibc - Sasha 
/tmp/foo: 
/tmp/foo:LDFLAGS="$LDFLAGS $OTHER_LIBC_LIB" 
/tmp/foo:LIBS="$LIBS $STATIC_NSS_FLAGS" 
... 
/tmp/foo:  rm -f core core.* *.core && 
/tmp/foo:  rm -rf conftest* confdefs* conf$$* $ac_clean_files && 
/tmp/foo:    exit $exit_status 
Apparently if the mit-pthreads directory doesn't exist, (I can't find it 
in the distrubution), the line quoted at the beginning of this article 
erroneously starts ./configure again and ends up in a transfinite loop. 
I suggest, at a minimum, that the line reads: 
(cd mit-pthreads && sh ./configure) 
 
 

How to repeat:

Suggested fix:
I suggest, at a minimum, that the line reads: 
(cd mit-pthreads && sh ./configure)
[5 Mar 2003 0:02] Lenz Grimmer
Thank you for your bug report. This issue has been fixed in the latest
development tree for that product. You can find more information about
accessing our development trees at 
    http://www.mysql.com/doc/en/Installing_source_tree.html

Fixed in BK: 
 
ChangeSet@1.1634, 2003-03-05 08:47:59+01:00, lenz@mysql.com 
   - safeguard against an endless loop when MIT pthreads are not installed 
     (Bug #121)