On Thu, Jun 01, 2006 at 12:56:26AM -0500, Nathan Poznick wrote:
> I was poking around arch/sparc/kernel/unaligned.c, and I don't *think*
> the kernel is going to warn you about it these days (at least, that's
> the way it looks on the 2.6 kernel).  It does send a SIGBUS to the
> process however, which would kill it.  Given that it's likely there are
> unaligned accesses left here and there (due to large code changes more
> than anything), and both sparc and alpha throw a SIGBUS in that case (on
> alpha, they apparently changed it in the 2.6 kernel - it used to
> silently fix things up for you, now it errors out),

Ah, ok, thanks for looking into that.  Certainly sounds plausible to
me.  

> Would it make sense for pvfs2-server to install a handler for SIGBUS
> alongside the SIGSEGV handler, #ifdef __PVFS2_SEGV_BACKTRACE__?
> 
> Something like the attached small patch.  I'm not positive on the use of
> new_action, but a SIGBUS sends the same siginfo_t as a SIGSEGV, so in
> theory it might be useful to get at least some manner of trace to
> pinpoint the problem areas.

That sounds like a good idea.  It'd be nice to have the server log all
signals if it doesn't already.  

==rob

-- 
Rob Latham
Mathematics and Computer Science Division    A215 0178 EA2D B059 8CDF
Argonne National Labs, IL USA                B29D F333 664A 4280 315B
_______________________________________________
Pvfs2-users mailing list
[email protected]
http://www.beowulf-underground.org/mailman/listinfo/pvfs2-users

Reply via email to