Subject: Re: sparc and gcc4?
To: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
From: Michael Lorenz <macallan@netbsd.org>
List: port-sparc
Date: 06/26/2006 16:30:36
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

>>> Checking quotas: done.
>>> Starting mountd.
>>> trap type 0x7: pc=0xf008bd98 npc=0xf008bd9c psr=408000c0<S,PS>
>>> kernel: alignment fault trap
>>> Stopped in pid 533.1 (mountd) at        netbsd:tmpfs_vptofh+0x14:
>>>  std
>>>         %
>>> g2, [%o1 + 0x8]
>>> trap type 0x7: pc=0xf0008a3c npc=0xf0008a40 psr=40400fc3<S,PS>
>>> kernel: alignment fault trap
>>> Faulted in DDB; continuing...
>>> panic: longjmp botch
>>
>> Don't try to mount a tmpfs and things should work. At least they do on
>> my SPARCbook ;)
>
> Unfortunately, this delays the inevitable only slightly:
>
> [...]
> Starting timed.
> Starting atalkd.
> trap type 0x7: pc=0xf0141184 npc=0xf0141188 psr=404000c6<S,PS>
> kernel: alignment fault trap
> Stopped in pid 229.3 (dig) at   netbsd:sa_upcall_userret+0x208: std
> %
> g2, [%o0 + 0x18]
> trap type 0x7: pc=0xf0008a3c npc=0xf0008a40 psr=40400fc1<S,PS>
> kernel: alignment fault trap
> Faulted in DDB; continuing...
>
> [a dozen or so of those]
>
> panic: longjmp botch
> Stopped in pid 229.3 (dig) at   netbsd:cpu_Debugger+0x4:        or
> %
> o7, %g0, %g1
> trap type 0x7: pc=0xf0008a3c npc=0xf0008a40 psr=40400fc7<S,PS>
> kernel: alignment fault trap
> Faulted in DDB; continuing...
> panic: longjmp botch
> Watchdog Reset,  Rebooting.
> Resetting ...
>
>
> Is this "kind of known", and to be expected? Or, should I collect what
> details there are, and send-pr?

I don't think it's expected. Probably fallout from gcc4's more 
aggressive optimizer - please file a PR. So far I got this only when 
something tries to access a tmpfs but apparently there's more to it.

have fun
Michael
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iQEVAwUBRKBD7MpnzkX8Yg2nAQLraQgAsurLED5iDDSIC7imDgP7NeMCHxr53AP7
45W3suEAnTbK/g0siPGxMsQeUz58N/8wPtykDt9rcW/Q0CXM1BJiWN/4mLt262yd
Q4JYgUxLyiA+cPikCzMP1jO3kohaubzQSXeu0qpAQYgFSuuWWXSK0d3lUAQjdS2P
cIoq8X7szx8BunXDuzB8lhKyZjqQe7mRKgde7EEtHGZ3XUBP0MMxQbrGW4rIuuVR
6RbmLoiWExRY4A7OnGdKz8pA1xdMdmrl7Z23p+Su0HHXLIZkOxvlCpRmcoErgQWD
ws8/BEkL8m/ZMNRls9dBe6rAyNtMKVTQ09fEQ9+Dd4v0BINkDJiexQ==
=845L
-----END PGP SIGNATURE-----