This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gcc hangs ! (version 4.1.2, Ubuntu 4.1.2-0ubuntu4)
- From: "Sunzir Deepur" <sunzird at gmail dot com>
- To: "Andrew Haley" <aph at redhat dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Mon, 18 Feb 2008 13:08:52 +0200
- Subject: Re: gcc hangs ! (version 4.1.2, Ubuntu 4.1.2-0ubuntu4)
- References: <b758af9e0802170203v748bc332k374830fcd134e8a9@mail.gmail.com> <b758af9e0802170417m4ac9bb1am9582d277a08b5f57@mail.gmail.com> <47B83CBF.9000002@redhat.com> <b758af9e0802170902l3cc68786i9ffd64bc36810620@mail.gmail.com> <47B95C40.3030203@redhat.com> <b758af9e0802180246p597b588akba27e6e22de37cd3@mail.gmail.com> <47B963C1.4060401@redhat.com>
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.
>