[OpenAFS] Error trying to build on Solaris SNV90

Mattias Pantzare pantzer@ludd.ltu.se
Thu, 26 Jun 2008 23:06:44 +0200


2008/6/26 Kris Kasner <tkasner@gmail.com>:
> Thanks for the response. That did allow the kernel module to build,
> but unfortunately the system panics with an alignment error as soon as
> the module is loaded.. was there another change to that structure that
> needs to be taken into account?

I don't know, but you could try using memcache as it looks like it is
the call to UFS that fails.

The AFS disk cache is not using a stable interface in the kernel, that
should be fixed, especially as solaris installations will use ZFS
instead of UFS.


>
> Thanks again for your help!
> --Kris
>
> Here's the panic traceback:
> Jun 24 12:42:17 snow ^Mpanic[cpu48]/thread=30004912d40:
> Jun 24 12:42:17 snow unix: [ID 799565 kern.notice] BAD TRAP: type=34
> rp=2a106d370a0 addr=3a mmu_fsr=0
> Jun 24 12:42:17 snow unix: [ID 100000 kern.notice]
> Jun 24 12:42:17 snow unix: [ID 839527 kern.notice] afsd:
> Jun 24 12:42:17 snow unix: [ID 123557 kern.notice] alignment error:
> Jun 24 12:42:17 snow unix: [ID 381800 kern.notice] addr=0x3a
> Jun 24 12:42:17 snow unix: [ID 101969 kern.notice] pid=592,
> pc=0x7b399f58, sp=0x2a106d36941, tstate=0x4480001605, context=0x539
> Jun 24 12:42:17 snow unix: [ID 743441 kern.notice] g1-g7: 7aa72d4c, 0,
> 9, 60029bc0000, 52c0, 0, 30004912d40
> Jun 24 12:42:17 snow unix: [ID 100000 kern.notice]
> Jun 24 12:42:17 snow genunix: [ID 723222 kern.notice] 000002a106d36dc0
> unix:die+98 (34, 2a106d370a0, 3a, 0, 10ca000, 2a106d36e80)
> Jun 24 12:42:17 snow genunix: [ID 179002 kern.notice]   %l0-3:
> 00000000e65c2038 00000000c0c00000 00000000c1e00000 00000000c0800000
> Jun 24 12:42:17 snow   %l4-7: 00000000c1800000 0000000000000000
> 000000000007045a 0000000000070400
> Jun 24 12:42:17 snow genunix: [ID 723222 kern.notice] 000002a106d36ea0
> unix:trap+688 (2a106d370a0, 30003d2a000, e00000034, e, 10000, 0)
> Jun 24 12:42:17 snow genunix: [ID 179002 kern.notice]   %l0-3:
> 0000000000000001 0000000000000000 0000000000004a41 000006002651a010
> Jun 24 12:42:17 snow   %l4-7: 000006002d6fabb0 0000000000000000
> 0000000000000016 0000000000010009
> Jun 24 12:42:17 snow genunix: [ID 723222 kern.notice] 000002a106d36ff0
> unix:ktl0+64 (300016a6e40, 30004912d40, 52c00, 70397400, 60029b40000,
> e00)
> Jun 24 12:42:17 snow genunix: [ID 179002 kern.notice]   %l0-3:
> 0000030003d2a000 0000000000000180 0000004480001605 00000000010209d0
> Jun 24 12:42:17 snow   %l4-7: 00000300001381d8 00000300001381b0
> 0000000000000000 000002a106d370a0
> Jun 24 12:42:17 snow genunix: [ID 723222 kern.notice] 000002a106d37140
> ufs:ufs_iget_internal+1d8 (18ccc80, 52c0, 2a106d372e0, 0, 0, 0)
> Jun 24 12:42:17 snow genunix: [ID 179002 kern.notice]   %l0-3:
> 0000000000000002 00000300016a6e40 0000000000007fff 0000060029b92c00
> Jun 24 12:42:17 snow   %l4-7: 0000060029be9600 000000fd00010002
> 0000000000001000 0000060029b92c00
> Jun 24 12:42:17 snow genunix: [ID 723222 kern.notice] 000002a106d37200
> afs:getinode+7c (18ccc80, 10002, 52c0, 2a106d373d8, 6002d4455d8,
> 2a106d374d
> 8)
> Jun 24 12:42:17 snow genunix: [ID 179002 kern.notice]   %l0-3:
> 000000007b399ca0 0000000070454000 0000000000000036 0000000000070450
> Jun 24 12:42:17 snow   %l4-7: 0000000000070400 00000300016b4950
> 00000300016a6e40 00000300016b4ac0
> Jun 24 12:42:17 snow genunix: [ID 723222 kern.notice] 000002a106d37320
> afs:igetinode+38 (18ccc80, 10002, 52c0, 2a106d374e8, 6002d4455d8,
> 2a106d374
> d8)
> Jun 24 12:42:17 snow genunix: [ID 179002 kern.notice]   %l0-3:
> 0000000000000001 0000000070454000 0000000000000200 000000001a99f07f
> Jun 24 12:42:17 snow   %l4-7: 000000001a98be0a 000000000000000a
> 0000000000000000 0000000000000000
> Jun 24 12:42:17 snow genunix: [ID 723222 kern.notice] 000002a106d37420
> afs:osi_UfsOpen+70 (52c0, 0, 205d8, 205d7, 0, 6002d7a1340)
> Jun 24 12:42:17 snow genunix: [ID 179002 kern.notice]   %l0-3:
> 0000000070452000 00000000018ccc80 0000030002f76640 0000000000010002
> Jun 24 12:42:17 snow   %l4-7: 0000000000002420 000002a106d374e8
> 000000007045adb0 0000060021caf500
> Jun 24 12:42:17 snow genunix: [ID 723222 kern.notice] 000002a106d37500
> afs:osi_UFSOpen+cc (52c0, 0, 70400, 2, fd00010002, 1)
> Jun 24 12:42:17 snow genunix: [ID 179002 kern.notice]   %l0-3:
> 0000000000000000 0000000070442000 0000ffffffe5104d 0000000c3f65fc00
> Jun 24 12:42:17 snow   %l4-7: 0000000006e3f35d 0000000dc7e6ba00
> 000000018880be00 0000000000020000
> Jun 24 12:42:17 snow genunix: [ID 723222 kern.notice] 000002a106d375c0
> afs:afs_InitCacheInfo+13c (6002d8c4d80, 7045a000, 7045a, 70400,
> 7045a000, 7
> 0452000)
> Jun 24 12:42:17 snow genunix: [ID 179002 kern.notice]   %l0-3:
> 0000000070442000 0000000000070442 0000000000070400 0000000000070400
> Jun 24 12:42:17 snow   %l4-7: 0000000000000200 000000007045a000
> 000000000007045a 0000000000070400
> Jun 24 12:42:17 snow genunix: [ID 723222 kern.notice] 000002a106d37720
> afs:afs_syscall_call+f48 (7, 64220, ffbfc400, 64000, 0, 0)
> Jun 24 12:42:17 snow genunix: [ID 179002 kern.notice]   %l0-3:
> 0000000000000000 000006002d8c4d80 000000000000000f 0000000000000007
> Jun 24 12:42:17 snow   %l4-7: 000000007045adb0 0000000000000007
> 0000000000000000 0000000000008a2f
> Jun 24 12:42:17 snow genunix: [ID 723222 kern.notice] 000002a106d37860
> afs:Afs_syscall+ac (6002d4455d8, 2a106d37bd0, 2a106d37a28, 1c,
> 18a1c00, 0)
> Jun 24 12:42:17 snow genunix: [ID 179002 kern.notice]   %l0-3:
> 0000000000000001 00000000ffbfc730 000000000000000f 0000000000000007
> Jun 24 12:42:17 snow   %l4-7: 0000000000064220 00000000ffbfc400
> 0000000000064000 0000000000000000
> Jun 24 12:42:17 snow genunix: [ID 723222 kern.notice] 000002a106d37970
> genunix:syscall_ap+44 (820, 7, 7aa7b2c8, 6002d6fabb0, 41, 18)
> Jun 24 12:42:17 snow genunix: [ID 179002 kern.notice]   %l0-3:
> 000006002d7f60c0 0000000000000003 000006002d7f6100 0000000000000000
> Jun 24 12:42:17 snow   %l4-7: 000006002d98ef80 00000000018a4428
> 000002a106d37b90 0000000000000006
> Jun 24 12:42:17 snow genunix: [ID 723222 kern.notice] 000002a106d37a30
> genunix:loadable_syscall+6c (1c, 7, 64220, ffbfc400, 64000, 0)
> Jun 24 12:42:17 snow genunix: [ID 179002 kern.notice]   %l0-3:
> 0000000000000001 0000000000003f45 00000300012bc268 0000000000003f45
> Jun 24 12:42:17 snow   %l4-7: 0000000000000041 0000000000000820
> 0000000000000041 00000000018a4428
> Jun 24 12:42:17 snow unix: [ID 100000 kern.notice]
> Jun 24 12:42:17 snow genunix: [ID 672855 kern.notice] syncing file systems...
>
>
>
> On Tue, Jun 24, 2008 at 7:42 AM, Mattias Pantzare <pantzer@ludd.ltu.se> wrote:
>> 2008/6/19 Kris Kasner <tkasner@gmail.com>:
>>> Hi Folks. I'm trying to get 1.4.7 to build on Solaris Nevada release
>>> 90 (the first release that supports ZFS root on SPARC). It's failing
>>> at the file osi_vfsops.c, so I get everything except the rather
>>> important kernel module.. :)
>>>
>>> Can someone take a look at these errors and see if there's anything obvious?
>>> BTW, I'm using sun Studio 12 with the latest patches from Sun
>>
>> I have not tested this but it should work (the changes are for crash
>> dumps, but you can't dump to AFS)
>>
>> Change:
>> static struct vfsdef_v4 afs_vfsdef = {
>>
>> To:
>> static struct vfsdef_v5 afs_vfsdef = {
>>
>> in /afs/SOLARIS/osi_vfsops.c
>>
>
>