bugGNU Common Lisp - Bugs: bug #30622, Configure hangs at "checking...

 
 

bug #30622: Configure hangs at "checking for randomized brk entry"

Submitted by:  None
Submitted on:  Sun 01 Aug 2010 08:54:57 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 21 Nov 2013 03:55:48 PM UTC, comment #1:

I believe this is now fixed (2.6.10), but don't have access to your machine in question. If you disagree, please reopen. Thanks for your report!

Camm Maguire <camm>
Project Administrator
Sun 01 Aug 2010 08:54:57 PM UTC, original submission:

Running configure on linux x86_64 (or at least on CentOS 5.5) hangs at "checking for randomized brk entry". It will sit at that point indefinitely.

<pre>
checking for main in -lXmu... no
checking for main in -lXt... yes
checking for main in -lXext... yes
checking for main in -lXaw... no
checking for main in -lX11... yes
missing x libraries -- cannot compile xgcl
checking for bfd.h... no
checking for useable bfd_boolean... no
Guessing path to libbfd.a due to gcc bug
Guessing path to libiberty.a due to gcc bug
checking size of long... 8
checking sizeof struct contblock... 16
checking for endian.h... yes
checking endianness... little
checking for sbrk... yes
checking for randomized sbrk... yes
checking for randomized brk remedy...
</pre>

At that point, conftest.c looks like this:

<pre>
#line 3888 "configure"
#include "confdefs.h"
#include <syscall.h>
#include <linux/personality.h>
#include <stdio.h>
#include <unistd.h>
int main(int argc,char * argv[]) {
FILE *f;
#if SIZEOF_LONG == 4
if (!syscall(SYS_personality,PER_LINUX32))
#else
if (!syscall(SYS_personality,PER_LINUX))
#endif
execvp(argv[0],argv);
if (!(f=fopen("conftest1","w")))
return -1;
fprintf(f,"%u",sbrk(0));
return 0;
}
</pre>

The call to run conftest in the configure script is:
<pre>
if { (eval echo configure:3831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
</pre>

Running the compiled conftest outside of configure shows it does hang.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by camm (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 21 Nov 2013 03:55:48 PM UTCcammStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup