svadev AT lists.siebelschool.illinois.edu
Subject: Svadev mailing list
List archive
- From: John Criswell <criswell AT illinois.edu>
- To: Matthew Wala <wala1 AT illinois.edu>
- Cc: svadev AT cs.uiuc.edu
- Subject: Re: [svadev] safecode: infinite loop with -fmemsafety
- Date: Sat, 9 Jun 2012 09:56:33 -0500
- List-archive: <http://lists.cs.uiuc.edu/pipermail/svadev>
- List-id: <svadev.cs.uiuc.edu>
On 6/8/12 6:20 PM, Matthew Wala wrote:
Hi everyone:
While trying to get Apache to compile on Presto I am running into an
unusual error with clang on the below program which gets compiled by a
configure script. Running 'clang -S -fmemsafety' never finishes so it
looks it is going in an infinite loop.
How long did you wait to see if it finishes?
I'm seeing that, too, on Linux but not on Mac OS X. Sadly, the problem doesn't appear to be with the SAFECode passes; if you use the -emit-llvm and -c options, clang will give you an instrumented bitcode file.
Using gdb and interrupting clang to see where it is in execution, it looks like it's getting stuck in the code generator somewhere. If that's the case, we won't be able to fix the bug unless we either find and back-port the fix into the LLVM 3.0 branch, figure out what part of the SAFECode instrumentation is tickling the bug, or upgrade SAFECode to LLVM 3.1.
John, I know you wanted me to try to compile Apache, but this issue is
getting in the way. Can anyone else reproduce this?
Matt, can you do the following?
1) File a bug with the reduced test case as an attachment.
2) Try to compile Apache on Gravity; it's running a different version of Linux. That might help.
3) If #2 fails, try to compile on Mac OS X.
-- John T.
Matt
#define _GNU_SOURCE
#include<crypt.h>
int
main ()
{
struct crypt_data buffer;
crypt_r("passwd", "hash",&buffer);
;
return 0;
}
_______________________________________________
svadev mailing list
svadev AT cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/svadev
- [svadev] safecode: infinite loop with -fmemsafety, Matthew Wala, 06/08/2012
- Re: [svadev] safecode: infinite loop with -fmemsafety, John Criswell, 06/09/2012
- Re: [svadev] safecode: infinite loop with -fmemsafety, Matthew Wala, 06/11/2012
- Re: [svadev] safecode: infinite loop with -fmemsafety, John Criswell, 06/11/2012
- Re: [svadev] safecode: infinite loop with -fmemsafety, Will Dietz, 06/12/2012
- Re: [svadev] safecode: infinite loop with -fmemsafety, John Criswell, 06/12/2012
- Re: [svadev] safecode: infinite loop with -fmemsafety, Will Dietz, 06/12/2012
- Re: [svadev] safecode: infinite loop with -fmemsafety, John Criswell, 06/11/2012
- Re: [svadev] safecode: infinite loop with -fmemsafety, Matthew Wala, 06/11/2012
- Re: [svadev] safecode: infinite loop with -fmemsafety, John Criswell, 06/09/2012
Archive powered by MHonArc 2.6.16.