Re: Now that sigcontext is gone ...

1999-10-03 Thread Doug Rabson
On Sat, 2 Oct 1999, Thomas David Rivers wrote: > > > > > Just how much code will break? > > > > Boehm-gc, maybe. Modula-3, maybe. I can't remember whether it > > catches both signals or just SIGBUS. > > I believe electric-fence would change as well. It would change (by removing a freebsd-s

Re: Now that sigcontext is gone ...

1999-10-02 Thread Garrett Wollman
< said: > More details on the POSIX signal numbers: SIGBUS is mainly for accesses > beyond the end of mmap()ed objects. It's not clear what this means in > an address space with multiple mmap()ed objects and/or non-mmap()ed > objects. `Beyond the end of the object' refers to the situation where

Re: Now that sigcontext is gone ...

1999-10-02 Thread John Polstra
Bruce Evans wrote: > >> first implement the SA_SIGINFO support to the point where it could >> accomplish that before changing SIGBUS to SIGSEGV. I think that makes >> sense. > > SA_SIGINFO is implemented now. Oh, when I checked it a couple of days ago it seemed like it wasn't fully implemented

Re: Now that sigcontext is gone ...

1999-10-02 Thread Bruce Evans
> >> > P.S. This also reminds me that FreeBSD is non-standard relative > >> > to Linux and all of the major vender commercial Unices in that a disallowed > >> > access, such as a write to a read-only region of memory, generates > >> > a SIGBUS rather than a SIGSEGV. > >> > >> Yes, this even viol

Re: Now that sigcontext is gone ...

1999-10-02 Thread Alan Cox
On Sun, Oct 03, 1999 at 09:42:45AM +1000, Bruce Evans wrote: > > I think the POSIX way is to use an auxiliary error code in siginfo_t to > distinguish the causes of the signal. This only works for SA_SIGINFO > handlers. We do something similar using the signal code of 3-arg signal > handlers. >

Re: Now that sigcontext is gone ...

1999-10-02 Thread Thomas David Rivers
> > > Just how much code will break? > > Boehm-gc, maybe. Modula-3, maybe. I can't remember whether it > catches both signals or just SIGBUS. I believe electric-fence would change as well. - Dave R. - To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current

Re: Now that sigcontext is gone ...

1999-10-02 Thread John Polstra
David O'Brien wrote: >> > P.S. This also reminds me that FreeBSD is non-standard relative >> > to Linux and all of the major vender commercial Unices in that a disallowed >> > access, such as a write to a read-only region of memory, generates >> > a SIGBUS rather than a SIGSEGV. >> >> Yes, this

Re: Now that sigcontext is gone ...

1999-10-02 Thread Narvi
On Sat, 2 Oct 1999, David O'Brien wrote: > > > P.S. This also reminds me that FreeBSD is non-standard relative > > > to Linux and all of the major vender commercial Unices in that a disallowed > > > access, such as a write to a read-only region of memory, generates > > > a SIGBUS rather than a

Re: Now that sigcontext is gone ...

1999-10-02 Thread David O'Brien
> > P.S. This also reminds me that FreeBSD is non-standard relative > > to Linux and all of the major vender commercial Unices in that a disallowed > > access, such as a write to a read-only region of memory, generates > > a SIGBUS rather than a SIGSEGV. > > Yes, this even violates the 1996 POSI

Re: Now that sigcontext is gone ...

1999-09-30 Thread Nate Williams
> > Sigcontext will have to come back, since it is a standard BSD interface. > > I think so too. I bet there are several ports besides Modula-3 that > use it. Probably boehm-gc does. The JDK does as well, at least for the green-threads stuff. Nate To Unsubscribe: send mail to [EMAIL PROTE

Re: Now that sigcontext is gone ...

1999-09-30 Thread John Polstra
Bruce Evans wrote: > Sigcontext will have to come back, since it is a standard BSD interface. I think so too. I bet there are several ports besides Modula-3 that use it. Probably boehm-gc does. > BTW, struct sigcontext seems to be documented only in sigreturn.2, and > that documentation is mo

Re: Now that sigcontext is gone ...

1999-09-30 Thread Bruce Evans
> I'm trying to digest the recent signal changes and get a handle on > what I need to do to make Modula-3 work. There is code in the runtime Sigcontext will have to come back, since it is a standard BSD interface. Recent signal changes break even its source-level compatibility. Previous signal

Re: Now that sigcontext is gone ...

1999-09-30 Thread John Polstra
Alan Cox wrote: > /* kludge to pass faulting virtual address to sendsig */ > frame->tf_err = eva; > > return((rv == KERN_PROTECTION_FAILURE) ? SIGBUS : SIGSEGV); > } > > Up until this point, frame->tf_err tells me details about the page > fault, such as whether it was a

Re: Now that sigcontext is gone ...

1999-09-30 Thread Alan Cox
On Thu, Sep 30, 1999 at 01:40:22PM -0700, John Polstra wrote: > > Yep, I have fixed that in the PM3 release (which is the one that's > actively maintained these days), but probably not in the SRC release > on which our port is based. I have ports for PM3 in the wings, > but I'm waiting for some

Re: Now that sigcontext is gone ...

1999-09-30 Thread Marcel Moolenaar
Alan Cox wrote: > > I guess this discussion means that the 4th argument is gone too... > Yes. ucontext_t (3rd argument) already contains that information and siginfo_t *should* contain that information. There's not need for a 4th argument anymore. -- Marcel Moolenaarma

Re: Now that sigcontext is gone ...

1999-09-30 Thread John Polstra
Alan Cox wrote: > Actually, the last time I looked the Modula-3 run-time system > determined the faulting address from the undocumented (except on > SunOS 4) 4th argument that most BSD-derived systems passed to the > signal handler. Yep, I have fixed that in the PM3 release (which is the one tha

Re: Now that sigcontext is gone ...

1999-09-30 Thread John Polstra
Marcel Moolenaar wrote: > > That's right, it's not implemented yet. The work-around is to use > ucontext. uc_mcontext contains the trapframe which has tf_err > (uc.uc_mcontext.mc_tf.tf_err). Thanks. > I haven't paid any attention to implement any of the fields in siginfo_t > because that may on

Re: Now that sigcontext is gone ...

1999-09-30 Thread Marcel Moolenaar
Nate Williams wrote: > > > I'm trying to digest the recent signal changes and get a handle on > > what I need to do to make Modula-3 work. There is code in the runtime > > currently which catches SIGBUS and uses the sigcontext's "sc_err" > > member to find out the faulting address. That should

Re: Now that sigcontext is gone ...

1999-09-30 Thread Alan Cox
Actually, the last time I looked the Modula-3 run-time system determined the faulting address from the undocumented (except on SunOS 4) 4th argument that most BSD-derived systems passed to the signal handler. There was a time in fact when sc_err wasn't included in the sigcontext on FreeBSD and th

Re: Now that sigcontext is gone ...

1999-09-30 Thread Nate Williams
> I'm trying to digest the recent signal changes and get a handle on > what I need to do to make Modula-3 work. There is code in the runtime > currently which catches SIGBUS and uses the sigcontext's "sc_err" > member to find out the faulting address. That should be replaced > by the siginfo_t's

Now that sigcontext is gone ...

1999-09-30 Thread John Polstra
I'm trying to digest the recent signal changes and get a handle on what I need to do to make Modula-3 work. There is code in the runtime currently which catches SIGBUS and uses the sigcontext's "sc_err" member to find out the faulting address. That should be replaced by the siginfo_t's "si_addr"