This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc hangs ! (version 4.1.2, Ubuntu 4.1.2-0ubuntu4)


On Feb 18, 2008 12:53 PM, Andrew Haley <aph@redhat.com> wrote:
> Sunzir Deepur wrote:
> > On Feb 18, 2008 12:21 PM, Andrew Haley <aph@redhat.com> wrote:
> >>>>> After a considerabale amount of time (e.g. 15 seconds), something is suddenly
> >>>>> freed, and the compilation completes successfully.
> >
> >>>> It's waiting on I/O.  This delay is either network related or a disk is
> >>>> going to die.  It almost certainly isn't a gcc bug.
> >> You need to know whether it's waiting for disk or network; I can't help you
> >> with that.  Then you need to think about smartd reporting or somesuch.
> >> Oh, and strace.
> >
> > It's a simple compilation of a local file. No network involved. Assuming
> > there's a disk problem I would expect other system anomalities, but I haven't
> > encountered any other probelm.. strace shows that gcc hangs while doing waitpid.
> > Have you ever heard of such gcc hanging ? Do you have any suggestion as to
> > what can I check ?
>
> Run gcc under strace -f.

Great idea (wasn't aware of the -f switch) - thank you (i now have to wait
for the problem to raise its ugly head again, it doesn't always happen)

>
> Andrew.
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]