Subject: Re: cc1plus lockup?
To: None <current-users@NetBSD.org>
From: Tobias Nygren <tnn@NetBSD.org>
List: current-users
Date: 08/20/2007 16:26:45
On Mon, 20 Aug 2007 12:54:57 +0200
Bernd Ernesti <netbsd@lists.veego.de> wrote:

> Hi,
> 
> I'm trying to compile openoffice2 on i386 current, but one cc1plus is now running
> for 5.5h which I think is a little bit too long.
> 
> CPU states:  7.5% user,  0.0% nice, 92.5% system,  0.0% interrupt,  0.0% idle
> Memory: 1037M Act, 534M Inact, 4488K Wired, 15M Exec, 1463M File, 58M Free
> Swap: 4100M Total, 4100M Free
> 
>   PID USERNAME PRI NICE   SIZE   RES STATE      TIME   WCPU    CPU COMMAND
>  3380 bernd     57    0  7236K   35M RUN      326:33 99.02% 99.02% cc1plus
> 
> ddb output from this proccess:
> >3380         23109    20834       2001 2  0x4000    1          cc1plus
> 
> c++ -fmessage-length=0 -c -O1   -fvisibility=hidden
[...]
> A ktruss -p <pid> produces no output.
> 
> Does someone have an idea how do debug this?

Does this happen if using -O2 instead of -O1? It could be a g++
optimizer bug. (I guess O1 doesn't receive much real-world testing.)