Subject: Re: Coredump in shutdown.
To: Ignatios Souvatzis <is@jocelyn.cs.uni-bonn.de>
From: Anders Magnusson <ragge@ludd.luth.se>
List: tech-kern
Date: 10/29/1999 21:16:12
> On Fri, Oct 29, 1999 at 02:16:46PM +0200, Anders Magnusson wrote:
> > > 
> > Something does not act as it should anyway, and it would be interesting
> > to know what...
> > 
> > > (Btw: the vax _crashing_ sounds like a different bug to me. Does gdb
> > >  debugging of user processes work at all on the machine in question?)
> > > 
> > Crashing? Did I say that? It does not crash, it's only halt that dumps
> > core (because halt get the signal because the process isn't traced).
> 
> Ah, ok.
> 
> Well, it is half-trace, so to speak...
> 
This simple program shows exactly what I mean. Works on i386, dumps
core (of ls) on vax:

main()
{
        int i, sta;

        if ((i = fork()) == 0) { /* Child */
                char *arg[2] = { "ls", 0};

                exect("/bin/ls", arg, 0);
                printf("sket sej\n");
        } else {
                wait(&sta);
                printf("Ute\n");
        }
}

Main question:
Why doesn't it dump core on i386? 

-- Ragge