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

Re: Frequent system crash -- with gcc3.2 (?)

On Mon, 2003-03-10 at 18:52, H. S. Teoh wrote:
> On Mon, Mar 10, 2003 at 06:17:32PM +0000, Oliver Elphick wrote:
> [snip]
> > I notice that the process is marked as running.  However I believe that
> > this is false, because there are 2 other processes running (on a 2
> > processor system) and I believe that there cannot be more than one per
> > processor.  (Is that correct?):
> No, when STAT is marked "R", it just means that the process is on the
> ready-to-run queue in the process scheduler. Also keep in mind that top or
> ps may be task-switched between retrieving the info for one process and
> the info for the next, depending on whether it's making multiple syscalls.
> So what you see may not be a true, instantaneous process snapshot.

Thanks for the info.

> > 0  1000 10112  1671  14   0  3272 1380 -      R    pts/2      0:00  |   \_ ps axfl
> > 0  1000 10113  1671  13   0  1284  416 pipe_w S    pts/2      0:00  |   \_ grep  R
> > 0  1000  9913     1   9   0 15988 14456 -     R    ?          0:02 /usr/lib/gcc-lib/i386-linux/3.2.3/cc1 -lang-c -I../../../src/interfaces/libpq -I../../../src/include -I/usr/include/tcl8.4 -D__GNUC__=3 -D__GNUC_MINOR__=2 -D__GNUC_PATCHLEVEL__=3 -D__GXX_ABI_VERSION=102 -D__ELF__ -Dunix -D__gnu_linux__ -Dlinux -D__ELF__ -D__unix__ -D__gnu_linux__ -D__linux__ -D__unix -D__linux -Asystem=posix -D__OPTIMIZE__ -D__STDC_HOSTED__=1 -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i386__ -DBINDIR="/usr/lib/postgresql/bin" pg_dump.c -quiet -dumpbase pg_dump.c -g -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -o /tmp/ccsCFqfh.s
> [snip]

I failed to mention that, in this particular case, ps reported the
process, but kill said it did not exist.  That only happens sometimes;
more usually kill works without complaining, but the process does not

Oliver Elphick                                Oliver.Elphick@lfix.co.uk
Isle of Wight, UK                             http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839  932A 614D 4C34 3E1D 0C1C
     "What good is it, my brothers, if a man claims to have 
      faith, but has no deeds? Can such faith save him?
      Suppose a brother or sister is without clothes and
      daily food.   If one of you says to him, "Go, I wish
      you well; keep warm and well fed," but does nothing
      about his physical needs, what good is it? In the same
      way, faith by itself, if it is not accompanied by
      actions, is dead."          James 2:14-17 

Reply to: