LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 47 - bugpoint --debug --run-llc --args doesn't print args
Summary: bugpoint --debug --run-llc --args doesn't print args
Status: RESOLVED FIXED
Alias: None
Product: tools
Classification: Unclassified
Component: bugpoint (show other bugs)
Version: trunk
Hardware: PC Linux
: P normal
Assignee: Chris Lattner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-15 15:54 PDT by Brian R. Gaeke
Modified: 2010-02-22 12:42 PST (History)
1 user (show)

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brian R. Gaeke 2003-10-15 15:54:01 PDT
When you run bugpoint with --debug, it is supposed to print out the arguments to
the programs that it compiles and runs using the AbstractInterpreter interface
to GCC. This seems to work the first time GCC::ExecuteProgram() is called, but
not on subsequent occasions.

What seems to be happening is that std::cerr loses any output that gets written
to it, after GCC::ExecuteProgram() calls RunProgramWithTimeout() at
ToolRunner.cpp:315. It's not clear how this invocation of
RunProgramWithTimeout() is different from the earlier ones.

I produced this error today by trying to run bugpoint on the SPECint "GAP"
benchmark.
Comment 1 Chris Lattner 2003-10-18 21:17:17 PDT
Apparently sending (const char*)0 to std::cerr CLOSES it.  That's a neat "feature".

This is now fixed:
http://mail.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20031013/008298.html