Crash in codesets library on the X5000 with MUIRoyale based Hollywood apps

4 posts / 0 new
Last post
tekmage
tekmage's picture
Offline
Last seen: 1 year 4 months ago
Joined: 2011-10-09 03:19
Crash in codesets library on the X5000 with MUIRoyale based Hollywood apps

Hello Friends,

I've been advocating for help getting this issue fixed in different forums for a while and thought I might try here. The short problem definition is that the amazing Hollywood application called Pixy crashed on the X5000, I personally have an AmigaOne XE where it runs just fine. I've asked 6 or 7 different X5000 owners and they all report the same issue, The SAM and X1000 owners have also reported no issues. There are a few other MUIRoyale based Hollywood apps that have the exact same problem so it is not just Pixy and it is easy to reproduce.

This particular problem is interesting as you have so many different tools at play it is easy for one author to pass it off as a problem outside the scope of their program.

I hope a solid Amiga dev with an X5000 is willing to take this on. The steps would be pretty simple, download the latest codesets, source code here, grab Pixy from the link above, and try it.

I am confident this person would see a DSI with a similar stack trace:

  1.  
  2. Stack trace:
  3. native kernel module newlib.library.kmod+0x00034bc4
  4. LIBS:codesets.library:LIB_CodesetsConvertStrA()+0x178 (section 1 @ 0x85FC)
  5. module SYS:Storage/Hollywood/hollywood.RDNZNC/MUIRoyale.hwp at 0x7BF48F74 (section 0 @ 0x9F50)
  6. module SYS:Storage/Hollywood/hollywood.RDNZNC/MUIRoyale.hwp at 0x7BF5E280 (section 0 @ 0x1F25C)
  7. module SYS:Storage/Hollywood/hollywood.RDNZNC/MUIRoyale.hwp at 0x7BF60244 (section 0 @ 0x21220)
  8. module SYS:Storage/Hollywood/hollywood.RDNZNC/MUIRoyale.hwp at 0x7BF611EC (section 0 @ 0x221C8)
  9. module SYS:Storage/Hollywood/hollywood.RDNZNC/MUIRoyale.hwp at 0x7BF63430 (section 0 @ 0x2440C)
  10. module SYS:Storage/Hollywood/hollywood.RDNZNC/MUIRoyale.hwp at 0x7BF583D0 (section 0 @ 0x193AC)
  11. module SYS:Storage/Hollywood/hollywood.RDNZNC/MUIRoyale.hwp at 0x7BF485B4 (section 0 @ 0x9590)
  12. module SYS:Storage/Hollywood/hollywood.RDNZNC/MUIRoyale.hwp at 0x7BF4E9F8 (section 0 @ 0xF9D4)
  13. module Pixy at 0x7B776830 (section 0 @ 0x10680C)
  14. module Pixy at 0x7B77D838 (section 0 @ 0x10D814)
  15. module Pixy at 0x7B776F20 (section 0 @ 0x106EFC)
  16. module Pixy at 0x7B773C68 (section 0 @ 0x103C44)
  17. module Pixy at 0x7B775E30 (section 0 @ 0x105E0C)
  18. module Pixy at 0x7B775F1C (section 0 @ 0x105EF8)
  19. module Pixy at 0x7B773958 (section 0 @ 0x103934)
  20. module Pixy at 0x7B691E0C (section 0 @ 0x21DE8)
  21. module Pixy at 0x7B7FFE3C (section 0 @ 0x18FE18)
  22. module Pixy at 0x7B678C68 (section 0 @ 0x8C44)
  23. module Pixy at 0x7B7FA008 (section 0 @ 0x189FE4)
  24. module Pixy at 0x7B8B2174 (section 0 @ 0x242150)
  25. module Pixy at 0x7B8B4CBC (section 0 @ 0x244C98)
  26. 0x61727400 symbol not available

Then I think the next logical step would be to build the debug version of the codesets library with to see exactly what part of LIB_CodesetsConvertStrA is failing. Once that is known an issue could be raised on the github page to see if one of the team could address it.

Thanks for reading!
Bill "tekmage" Borsari

hypex
hypex's picture
Offline
Last seen: 1 month 2 weeks ago
Joined: 2011-09-09 16:20
Re: Crash in codesets library on the X5000 with MUIRoyale...

If I hazard a guess it would be a corrupted string. It goes from LIB_CodesetsConvertStrA() into a newlib call. Decoding the newlib call is the hardest. Would help if there was a debug build.

Are you able to compile with Clib2? That at least gives function names. At least with my stuff. Provided I give -gstabs I see both source file, line and function.

Also, can you post the GPR dump and ASM listing? That usuallly tells exactly why it crashed. Usually a bad address can be easy to spot at times.

tekmage
tekmage's picture
Offline
Last seen: 1 year 4 months ago
Joined: 2011-10-09 03:19
Re: Crash in codesets library on the X5000 with MUIRoyale...

Hello,

Here is the rest of the crash log minus the machine data and libs:

  1. Crash log for task "Pixy"
  2. Generated by GrimReaper 53.19
  3. Crash occured in module newlib.library.kmod at address 0x01A97BA4
  4. Type of crash: DSI (Data Storage Interrupt) exception
  5. Alert number: 0x80000003
  6.  
  7. Register dump:
  8. GPR (General Purpose Registers):
  9. 0: 6FFB1340 57B7FA70 00000002 554790EB 57B7FA48 57B7FBC8 57B7FBC8 5547BFFC
  10. 8: DEADBEEF 00000000 FFFFFFFF 01A97B78 000007BC 0000000D 5B605484 5B605480
  11. 16: 57B7FD1C 00000000 5B605378 5B605500 57B7FC58 5B605484 5B605484 5547A482
  12. 24: 554790EB 643365B0 00000000 64030000 554790EB 69B94018 64030000 57B7FBC8
  13.  
  14.  
  15. FPR (Floating Point Registers, NaN = Not a Number):
  16. 0: -nan 1 3.32193 1.35004e-08
  17. 4: -0.0909091 4.01381e-05 0.584962 0.00826446
  18. 8: 1 0.0140618 -0.118583 -9.34567e-09
  19. 12: 174 4.5036e+15 8.66162e-306 9.33292e-302
  20. 16: -1.61265e-231 -7.59946e+88 7.12591e+14 -3.01584e-154
  21. 20: 4.14393e-135 -0.594132 5.96914e-153 3.81748e+40
  22. 24: -3.27899e-294 -7.29119e-304 6.06574e+36 7.07674e-192
  23. 28: 4.5036e+15 4.5036e+15 2.14748e+09 0
  24.  
  25. FPSCR (Floating Point Status and Control Register): 0xA6202100
  26.  
  27.  
  28. SPRs (Special Purpose Registers):
  29. Machine State (msr) : 0x0002F030
  30. Condition (cr) : 0x456B0000
  31. Instruction Pointer (ip) : 0x01A97BA4
  32. Xtended Exception (xer) : 0x553E6134
  33. Count (ctr) : 0x00570001
  34. Link (lr) : 0x00000000
  35. DSI Status (dsisr) : 0x85027002
  36. Data Address (dar) : 0x456ACA44
  37.  
  38.  
  39.  
  40. 680x0 emulated registers:
  41. DATA: 87008C00 00000000 00000000 00000000 00000000 00000000 00000000 00000000
  42. ADDR: 6FFA4000 00000000 00000000 00000000 00000000 00000000 00000000 57B7F8B0
  43. FPU0: 0 0 0 0
  44. FPU4: 0 0 0 0
  45.  
  46.  
  47.  
  48. Symbol info:
  49. Instruction pointer 0x01A97BA4 belongs to module "newlib.library.kmod" (HUNK/Kickstart)
  50.  
  51. Stack trace:
  52. native kernel module newlib.library.kmod+0x00034bc4
  53. LIBS:codesets.library:LIB_CodesetsConvertStrA()+0x178 (section 1 @ 0x85FC)
  54. module SYS:Storage/Hollywood/hollywood.RDNZNC/MUIRoyale.hwp at 0x7BF48F74 (section 0 @ 0x9F50)
  55. module SYS:Storage/Hollywood/hollywood.RDNZNC/MUIRoyale.hwp at 0x7BF5E280 (section 0 @ 0x1F25C)
  56. module SYS:Storage/Hollywood/hollywood.RDNZNC/MUIRoyale.hwp at 0x7BF60244 (section 0 @ 0x21220)
  57. module SYS:Storage/Hollywood/hollywood.RDNZNC/MUIRoyale.hwp at 0x7BF611EC (section 0 @ 0x221C8)
  58. module SYS:Storage/Hollywood/hollywood.RDNZNC/MUIRoyale.hwp at 0x7BF63430 (section 0 @ 0x2440C)
  59. module SYS:Storage/Hollywood/hollywood.RDNZNC/MUIRoyale.hwp at 0x7BF583D0 (section 0 @ 0x193AC)
  60. module SYS:Storage/Hollywood/hollywood.RDNZNC/MUIRoyale.hwp at 0x7BF485B4 (section 0 @ 0x9590)
  61. module SYS:Storage/Hollywood/hollywood.RDNZNC/MUIRoyale.hwp at 0x7BF4E9F8 (section 0 @ 0xF9D4)
  62. module Pixy at 0x7B776830 (section 0 @ 0x10680C)
  63. module Pixy at 0x7B77D838 (section 0 @ 0x10D814)
  64. module Pixy at 0x7B776F20 (section 0 @ 0x106EFC)
  65. module Pixy at 0x7B773C68 (section 0 @ 0x103C44)
  66. module Pixy at 0x7B775E30 (section 0 @ 0x105E0C)
  67. module Pixy at 0x7B775F1C (section 0 @ 0x105EF8)
  68. module Pixy at 0x7B773958 (section 0 @ 0x103934)
  69. module Pixy at 0x7B691E0C (section 0 @ 0x21DE8)
  70. module Pixy at 0x7B7FFE3C (section 0 @ 0x18FE18)
  71. module Pixy at 0x7B678C68 (section 0 @ 0x8C44)
  72. module Pixy at 0x7B7FA008 (section 0 @ 0x189FE4)
  73. module Pixy at 0x7B8B2174 (section 0 @ 0x242150)
  74. module Pixy at 0x7B8B4CBC (section 0 @ 0x244C98)
  75. 0x61727400 symbol not available
  76.  
  77. PPC disassembly:
  78. 01a97b9c: 7d084b78 or r8,r8,r9
  79. 01a97ba0: 48000008 b 0x1A97BA8
  80. *01a97ba4: 85070004 lwzu r8,4(r7)
  81. 01a97ba8: 650a7f7f oris r10,r8,32639
  82. 01a97bac: 3d28feff subis r9,r8,257
tekmage
tekmage's picture
Offline
Last seen: 1 year 4 months ago
Joined: 2011-10-09 03:19
Re: Crash in codesets library on the X5000 with MUIRoyale...

The interesting thing about the problem is that only happens on the X5000. It will be exciting to see the exact issue so folks can noodle through why it's happening and why only on one platform.

Log in or register to post comments