BUG: IPrefs crash on boot with specific WBPrefs setting

A forum for general AmigaOS 4.x support questions that are not platform-specific
User avatar
Raziel
Posts: 1170
Joined: Sat Jun 18, 2011 4:00 pm
Location: a dying planet

BUG: IPrefs crash on boot with specific WBPrefs setting

Post by Raziel »

I found a reproducable crash with IPrefs while booting into WB with simply changing and saving an option in Workbench Prefs.

IPrefs 53.24 (15.08.2014)
Prefs/Workbench 53.13 (21.01.2015)

The crash from serial:
Hidden Text - Click to Show :
Dump of context at 0xDFFE77C0
Trap type: DSI exception
Machine State (raw): 0x100000000200F030
Machine State (verbose): [Hyper] [ExtInt on] [User] [FPU on] [IAT on] [DAT on]
Instruction pointer: 0x7FEF8944
Crashed process: Š IPrefs Š (0x626DFC80)
DSI verbose error description: Access not found in hash or BAT (page fault)
Access was a load operation
0: 60E51F08 60E51EF0 419E057C 7FEBBE80 60E51F98 021441C8 021441C8 00000005
8: 00000000 00000000 5FDE0000 6FEF808C 22828484 7C085830 8000905D 8000A084
16: 8000A085 62960000 00000000 5FDDA1D8 62943F70 60E51F98 626DFC80 00000000
24: 00080008 00640064 00640064 8000A09C 7FEBBE80 60E51F88 6FEF808C 60E52348
CR: 42828444 XER: 60000044 CTR: 7FEBE99C LR: 7FEBF5A4
DSISR: 40000000 DAR: 00000000

FP0 : FFF8000082000000 419C5F2F00000000 0000000000000000 0000000000000000
FP4 : 0000000000000000 0000000000000000 0000000000000000 41E0000000000000
FP8 : FFF80000000006E0 40908C0000000000 FFF8000000000730 FFF800000000041D
FP12: 4090E00000000000 FFF8000000000423 0000000000000000 0000000000000000
FP16: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
FP20: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
FP24: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
FP28: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
FPSCR: 82000000
HID0: 0x8000000000000000 HID1: 0x000000005CE993B1
HID4: 0x4400240000080180 HID5: 0x0000006600000080

V0 : 00000000000000000000000000000000 00000000000000000000000000000000
V2 : 00000000000000000000000000000000 00000000000000000000000000000000
V4 : 00000000000000000000000000000000 00000000000000000000000000000000
V6 : 00000000000000000000000000000000 00000000000000000000000000000000
V8 : 00000000000000000000000000000000 00000000000000000000000000000000
V10: 00000000000000000000000000000000 00000000000000000000000000000000
V12: 00000000000000000000000000000000 00000000000000000000000000000000
V14: 00000000000000000000000000000000 00000000000000000000000000000000
V16: 00000000000000000000000000000000 00000000000000000000000000000000
V18: 00000000000000000000000000000000 00000000000000000000000000000000
V20: 00000000000000000000000000000000 00000000000000000000000000000000
V22: 00000000000000000000000000000000 00000000000000000000000000000000
V24: 00000000000000000000000000000000 00000000000000000000000000000000
V26: 00000000000000000000000000000000 00000000000000000000000000000000
V28: 00000000000000000000000000000000 00000000000000000000000000000000
V30: 00000000000000000000000000000000 00000000000000000000000000000000
VSCR: 00000000 VRSAVE: 00000000

Disassembly of crash site:
7FEF8934: 90010010 stw r0,16(r1)
7FEF8938: 81694AB0 lwz r11,19120(r9)
7FEF893C: 93A1000C stw r29,12(r1)
7FEF8940: 812B0176 lwz r9,374(r11)
>7FEF8944: 83C90000 lwz r30,0(r9)
7FEF8948: 2F9E0000 cmpwi cr7,r30,0
7FEF894C: 419E0050 beq- cr7,0x7FEF899C
7FEF8950: 88090008 lbz r0,8(r9)
7FEF8954: 7F8903A6 mtctr r28
7FEF8958: 809D0000 lwz r4,0(r29)

Kernel command line: serial munge debuglevel=1

Registers pointing to code:
r3 : module LIBS:workbench.library at 0x7FEBBE80 (section 5 @ 0xE5C)
r5 : native kernel module dos.library.kmod+0x0002e2a8
r6 : native kernel module dos.library.kmod+0x0002e2a8
r19: module LIBS:workbench.library at 0x5FDDA1D8 (section 6 @ 0x1B4)
r28: module LIBS:workbench.library at 0x7FEBBE80 (section 5 @ 0xE5C)
ip : module LIBS:workbench.library at 0x7FEF8944 (section 5 @ 0x3D920)
lr : module LIBS:workbench.library at 0x7FEBF5A4 (section 5 @ 0x4580)
ctr: module LIBS:workbench.library at 0x7FEBE99C (section 5 @ 0x3978)

Stack trace:
(0x60E51EF0) module LIBS:workbench.library at 0x7FEF8944 (section 5 @ 0x3D920)
(0x60E51F80) module LIBS:workbench.library at 0x7FEBF5A4 (section 5 @ 0x4580)
(0x60E52220) module LIBS:workbench.library at 0x7FEC18FC (section 5 @ 0x68D8)
(0x60E52250) module LIBS:workbench.library at 0x7FEC1974 (section 5 @ 0x6950)
(0x60E522C0) module IPrefs at 0x7FF2F194 (section 5 @ 0x9170)
(0x60E52530) module IPrefs at 0x7FF32820 (section 5 @ 0xC7FC)
(0x60E529B0) module IPrefs at 0x7FF35CC0 (section 5 @ 0xFC9C)
(0x60E52C30) module IPrefs at 0x7FF273BC (section 5 @ 0x1398)
(0x60E52F90) native kernel module dos.library.kmod+0x000255c8
(0x60E52FC0) native kernel module kernel+0x000420ac
(0x60E52FD0) native kernel module kernel+0x000420f4

Disassembly of crash site:
7FEF8934: 90010010 stw r0,16(r1)
7FEF8938: 81694AB0 lwz r11,19120(r9)
7FEF893C: 93A1000C stw r29,12(r1)
7FEF8940: 812B0176 lwz r9,374(r11)
>7FEF8944: 83C90000 lwz r30,0(r9)
7FEF8948: 2F9E0000 cmpwi cr7,r30,0
7FEF894C: 419E0050 beq- cr7,0x7FEF899C
7FEF8950: 88090008 lbz r0,8(r9)
7FEF8954: 7F8903A6 mtctr r28
7FEF8958: 809D0000 lwz r4,0(r29)
Stack pointer (0x60E51EF0) is inside bounds
Redzone is OK (4)

68k register dump
DATA: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
ADDR: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Page information:
Page not found
The steps (cave: you need a boot CD or else you won't be able to reach WB anymore):
1) Open Workbench Prefs
2) Front Page: Change under "Options" "Update drawers automatically" to NO (NOT CHECKED)
3) Save

Now do a fast reboot...IPrefs will crash after the OS4 logo...always

The emergency workaround:
1) Boot into your boot CD
2) Copy "workbench.prefs" from your boot CD (SYS:Prefs/ENV-archive/sys/) to your HDD (same path)


Now that we (devs and community) already found lots of bugs, when can we (non-beta testers) expect a new update of AmigaOS4?
People are dying.
Entire ecosystems are collapsing.
We are in the beginning of a mass extinction.
And all you can talk about is money and fairytales of eternal economic growth.
How dare you!
– Greta Thunberg
User avatar
nbache
Beta Tester
Beta Tester
Posts: 1714
Joined: Mon Dec 20, 2010 7:25 pm
Location: Copenhagen, Denmark
Contact:

Re: BUG: IPrefs crash on boot with specific WBPrefs setting

Post by nbache »

Which hardware platform are you on?

Best regards,

Niels
User avatar
Raziel
Posts: 1170
Joined: Sat Jun 18, 2011 4:00 pm
Location: a dying planet

Re: BUG: IPrefs crash on boot with specific WBPrefs setting

Post by Raziel »

nbache wrote:Which hardware platform are you on?

Best regards,

Niels
X1000
People are dying.
Entire ecosystems are collapsing.
We are in the beginning of a mass extinction.
And all you can talk about is money and fairytales of eternal economic growth.
How dare you!
– Greta Thunberg
User avatar
nbache
Beta Tester
Beta Tester
Posts: 1714
Joined: Mon Dec 20, 2010 7:25 pm
Location: Copenhagen, Denmark
Contact:

Re: BUG: IPrefs crash on boot with specific WBPrefs setting

Post by nbache »

Hmm. My X1000 more often than not doesn't get through a warm reboot, even without touching the WB settings.

My prime suspect has also been IPrefs, but I have to make some more tests to be sure. I was thinking maybe it didn't like my largeish resolution (2560×1600). What's yours?

Thanks for the log, I'll compare it to mine and see if I can deduce more and finally make a bug report.

Best regards,

Niels
User avatar
Raziel
Posts: 1170
Joined: Sat Jun 18, 2011 4:00 pm
Location: a dying planet

Re: BUG: IPrefs crash on boot with specific WBPrefs setting

Post by Raziel »

nbache wrote:Hmm. My X1000 more often than not doesn't get through a warm reboot, even without touching the WB settings.

My prime suspect has also been IPrefs, but I have to make some more tests to be sure. I was thinking maybe it didn't like my largeish resolution (2560×1600). What's yours?

Thanks for the log, I'll compare it to mine and see if I can deduce more and finally make a bug report.

Best regards,

Niels
2560x1440 ARGB32 here with a RadeonHD 7750

If you need me to test something, just shout
People are dying.
Entire ecosystems are collapsing.
We are in the beginning of a mass extinction.
And all you can talk about is money and fairytales of eternal economic growth.
How dare you!
– Greta Thunberg
User avatar
tonyw
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 1479
Joined: Wed Mar 09, 2011 1:36 pm
Location: Sydney, Australia

Re: BUG: IPrefs crash on boot with specific WBPrefs setting

Post by tonyw »

I can confirm this crash, but it happens here with 1920x1080, so I don't think it's resolution-related. On my machines, even a cold boot will crash, so the machine is unbootable without an alternative boot device.

It's clearly a null pointer crash. I'll raise a BZ against it.

BTW, I suggest saving the Prefs/Env-Archive/Sys/workbench.prefs under a different file name before crashing the machine. It will then be a simple matter of copying back the old prefs file after booting from another source.

BZ #10017 submitted.
cheers
tony
User avatar
nbache
Beta Tester
Beta Tester
Posts: 1714
Joined: Mon Dec 20, 2010 7:25 pm
Location: Copenhagen, Denmark
Contact:

Re: BUG: IPrefs crash on boot with specific WBPrefs setting

Post by nbache »

Thanks, Tony.

I think I was mixing up this issue with a couple of similar ones, which may or may not be happening only in the beta, but are not connected with changing WB prefs (or any prefs, for that matter).

I'll keep investigating those (although of course it "never" happens while I am catching serial debug ;-)).

Best regards,

Niels
User avatar
Raziel
Posts: 1170
Joined: Sat Jun 18, 2011 4:00 pm
Location: a dying planet

Re: BUG: IPrefs crash on boot with specific WBPrefs setting

Post by Raziel »

@tonyw

Thank you
People are dying.
Entire ecosystems are collapsing.
We are in the beginning of a mass extinction.
And all you can talk about is money and fairytales of eternal economic growth.
How dare you!
– Greta Thunberg
User avatar
tonyw
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 1479
Joined: Wed Mar 09, 2011 1:36 pm
Location: Sydney, Australia

Re: BUG: IPrefs crash on boot with specific WBPrefs setting

Post by tonyw »

Salassoo has fixed this problem with workbench.library V53.61.

I can confirm it is fixed.
cheers
tony
User avatar
Amigo1
Posts: 221
Joined: Sun Jan 01, 2012 3:32 pm

Re: BUG: IPrefs crash on boot with specific WBPrefs setting

Post by Amigo1 »

tonyw wrote:Salassoo has fixed this problem with workbench.library V53.61.

I can confirm it is fixed.
nice! :)
Post Reply