[Bug fortran/47613] [4.6 Regression] namelist read with -static

sgk at troutmask dot apl.washington.edu gcc-bugzilla@gcc.gnu.org
Sat Feb 5 18:11:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47613

--- Comment #10 from Steve Kargl <sgk at troutmask dot apl.washington.edu> 2011-02-05 18:11:02 UTC ---
On Sat, Feb 05, 2011 at 05:59:49PM +0000, janus at gcc dot gnu.org wrote:
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47613
> 
> --- Comment #9 from janus at gcc dot gnu.org 2011-02-05 17:59:40 UTC ---
> (In reply to comment #7)
> > > What else can I do to nail this down?
> > 
> > Please show
> > 
> > # strace ./a.out
> 
> Here you go:
> 
> > strace ./a.out 
> execve("./a.out", ["./a.out"], [/* 91 vars */]) = 0
> uname({sys="Linux", node="manzanita.site", ...}) = 0
> brk(0)                                  = 0x6be000
> brk(0x6bf150)                           = 0x6bf150
> arch_prctl(ARCH_SET_FS, 0x6be850)       = 0
> brk(0x6e0150)                           = 0x6e0150
> brk(0x6e1000)                           = 0x6e1000
> fstat(0, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 0), ...}) = 0
> fstat(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 0), ...}) = 0
> fstat(2, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 0), ...}) = 0
> getcwd("/home/jweil/GSoC/PRs/47613", 4096) = 27
> open("fort.20", O_RDWR|O_CREAT, 0666)   = 3
> fstat(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
> ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0x7fffe9e133a0) = -1 ENOTTY
> (Inappropriate ioctl for device)
> read(3, "", 8192)                       = 0
> read(3, "", 8192)                       = 0
> write(1, "        5010 F\n", 15        5010 F
> )        = 15
> close(3)                                = 0
> exit_group(0)                           = ?

Does strace on linux work with the dynamically linked image?
It would probably be profitable to compare strace of dynamic
vs static linkage.  The ioctl above looks odd.  ENOTTY?



More information about the Gcc-bugs mailing list