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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Feb 18, 2008 12:53 PM, Andrew Haley <aph@xxxxxxxxxx> wrote:
> Sunzir Deepur wrote:
> > On Feb 18, 2008 12:21 PM, Andrew Haley <aph@xxxxxxxxxx> 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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux