Amiga-Development

Please login or register.

Login with username, password and session length
Advanced search  

News:

Created for developers of all Amiga camps

Pages: [1] 2

Author Topic: Pascal executable fires grimm reaper on Sam440 with AmigaOS 4.1 FE Update 1  (Read 1012 times)

0 Members and 2 Guests are viewing this topic.

Fastbit66

  • Newbie
  • *
  • Posts: 14
    • View Profile

Hello Pascal Amiga Coders,

I have installed FPC 3.1.1 AmigaOS4 PowerPC including LCL (Release 08.05.2016) from ALB's Site.
I have a SAM440 Machine with AmigaOS 4.1 FE Update 1 runnig

I can compile programs via the FP IDE or from shell.
But every executable brings up the grimm reaper.

Has anyone experiences with this setup?
Which procesor must be chosen as target for SAM440?

Thanx a lot for your time and reading.

Best regards
Andi
Logged

ChrisH

  • Newbie
  • *
  • Posts: 32
    • View Profile

A CrashLog from the GrimReaper might allow someone not familiar with Amiga Pascal to help out...
Logged

Fastbit66

  • Newbie
  • *
  • Posts: 14
    • View Profile

Hi Chris,

compiled hello.pas in shell : (exactly the example that comes with FPC)

3.Work2:Programming/Pascal/MySource> fpc hello.pas
Free Pascal Compiler version 3.1.1 [2016/05/08] for powerpc
Copyright (c) 1993-2016 by Florian Klaempfl and others
Target OS: AmigaOS for PowerPC
Compiling hello.pas
Assembling hello
Linking hello
5 lines compiled, 1.4 sec
3.Work2:Programming/Pascal/MySource> hello


here is the Crashlog from Grim Reaper:

Crash log for task "hello"
Generated by GrimReaper 53.19
Crash occured in module hello at address 0x6FB00F10
Type of crash: program exception
Alert number: 0x80000004

Register dump:
GPR (General Purpose Registers):
   0: 6FAE80B4 5AD16EE0 00000000 01DCD992 5B670000 01CB973C 5AD16F90 5BCD9704
   8: 00000000 5A501BF0 5FE7B220 0003FFF8 5AD16FFC 00000000 5A39B9B4 5BE888A0
  16: 01E70000 7FE98CD0 01E70000 00010000 5A39B9B0 5A54B760 5BCD9680 6FAE8020
  24: 5A39B968 5A54B760 00000001 01DCD992 5A39B9B0 5BCD9680 01C05AA0 5A39B888


FPR (Floating Point Registers, NaN = Not a Number):
   0:              nan      3.67183e+12      2.14748e+09      1.78225e+09
   4:              nan                0                0                0
   8:                0      -0.00196464       3.8598e-06      -0.00393181
  12:                1                1                0                0
  16:                0                0                0                0
  20:                0                0                0                0
  24:                0                0                0                0
  28:                0                0                0     2.21565e-101

FPSCR (Floating Point Status and Control Register): 0x82020090


SPRs (Special Purpose Registers):
           Machine State (msr) : 0x0002F030
                Condition (cr) : 0x56BD40B4
      Instruction Pointer (ip) : 0x6FB00F10
       Xtended Exception (xer) : 0x5A122018
                   Count (ctr) : 0x5FF724D0
                     Link (lr) : 0x6FC63920
            DSI Status (dsisr) : 0x5A121DD0
            Data Address (dar) : 0x01684968



680x0 emulated registers:
DATA: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
ADDR: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
FPU0:                0                0                0                0
FPU4:                0                0                0                0



Symbol info:
Instruction pointer 0x6FB00F10 belongs to module "hello" (HUNK/Kickstart)

Stack trace:
    module hello at 0x6FB00F10 (section 5 @ 0x18EEC)
    module hello at 0x6FB00F04 (section 5 @ 0x18EE0)

PPC disassembly:
 6fb00f08: 4182001c   beq-              0x6FB00F24
 6fb00f0c: 4182001c   beq-              0x6FB00F28
*6fb00f10: 7c695b67   .word             0x7C695B67
 6fb00f14: 7c69e11c   .word             0x7C69E11C
 6fb00f18: 7c6903a6   mtctr             r3

System information:

CPU
 Model: AMCC PPC440EP V1.3
 CPU speed: 666 MHz
 FSB speed: 133 MHz
 Extensions: 

Machine
 Machine name: Sam440EP
 Memory: 524288 KB
 Extensions: bus.pci

Expansion buses
 PCI/AGP
  00:00.0 Vendor 0x1014 Device 0x027F
  00:0A.0 Vendor 0x12D8 Device 0x8150
  00:0C.0 Vendor 0x1002 Device 0x4C66
   Range 0: C8000000 - D0000000 (PREF.MEM)
   Range 1: 00002000 - 00002100 (IO)
   Range 2: D0000000 - D0010000 (MEM)
  00:0E.0 Vendor 0x1095 Device 0x3114
   Range 0: 00002100 - 00002108 (IO)
   Range 1: 00002108 - 00002110 (IO)
   Range 2: 00002110 - 00002118 (IO)
   Range 3: 00002118 - 00002120 (IO)
   Range 4: 00002120 - 00002130 (IO)
  01:04.0 Vendor 0x1013 Device 0x6005
   Range 0: A0000000 - A0001000 (MEM)
   Range 1: A0010000 - A0020000 (MEM)
  01:05.0 Vendor 0x1131 Device 0x1561
   Range 0: A0020000 - A0021000 (MEM)
  01:05.1 Vendor 0x1131 Device 0x1561
   Range 0: A0021000 - A0022000 (MEM)
  01:05.2 Vendor 0x1131 Device 0x1562
   Range 0: A0022000 - A0022100 (MEM)
  01:06.0 Vendor 0x1002 Device 0x5964
   Range 0: A8000000 - B0000000 (PREF.MEM)
   Range 1: 00001000 - 00001100 (IO)
   Range 2: B0000000 - B0010000 (MEM)
  01:06.1 Vendor 0x1002 Device 0x5D44
   Range 0: B8000000 - C0000000 (PREF.MEM)
   Range 1: C0000000 - C0010000 (MEM)

Libraries
 0x5c0aa958: ISO-8859-15.charset V52.1
 0x5c0aa858: german_ISO-8859-15.language V52.1
 0x01dcd992: exec.library V53.89
 0x5ff4e048: cgxvideo.library V42.1
 0x59100480: Popmenu.mui V21.1
 0x591002a0: ascii.datatype V53.7
 0x591003e0: text.datatype V53.10
 0x5a2f59b0: Lamp.mcc V21.1
 0x59ee81c4: btree.library V53.3
 0x5a2f57d0: Objectmap.mui V21.1
 0x59ee5f44: asyncio.library V50.3
 0x5a2f55f0: Gauge.mui V21.1
 0x5a2f5550: Dtpic.mui V21.1
 0x5a2f5370: Popasl.mui V21.1
 0x5a2f5230: Calltips.mcc V21.1
 0x5a2f50f0: String.mui V21.1
 0x5a2f5050: Listtree.mcc V21.1
 0x5b060df0: Title.mui V21.1
 0x5a502a70: expat.library V53.4
 0x5ae09c9c: codesets.library V6.20
 0x5af4cdc8: muigfx.library V21.1
 0x5a1fba08: muimaster.library V21.1
 0x5aca0968: pthreads.library V53.11
 0x5ac60ac8: speedbar.gadget V53.12
 0x5ac60a08: radiobutton.gadget V53.9
 0x5ac84a40: fuelgauge.gadget V53.8
 0x5ac5e538: Mixer.docky V52.4
 0x5ac5e238: SubDock.docky V53.1
 0x5ac5e3b8: Separator.docky V53.2
 0x5ac5e338: Clock.docky V53.10
 0x5b0607b0: slider.gadget V53.15
 0x5b060710: getfont.gadget V53.9
 0x5b060670: arexx.class V53.5
 0x5b0605d0: getfile.gadget V53.12
 0x5b05fb58: cs4281.audio V5.5
 0x5af475f0: requester.class V53.18
 0x5b0602b0: bitmap.image V53.9
 0x5b060210: space.gadget V53.6
 0x5b3d30c4: device.audio V6.2
 0x5af990b8: screenblanker.library V53.6
 0x5b0bdb60: integer.gadget V53.12
 0x5b05f338: clicktab.gadget V53.44
 0x5b3d3178: chooser.gadget V53.21
 0x5b0bd8e0: penmap.image V53.5
 0x5b0bd980: checkbox.gadget V53.9
 0x5b52dcf4: asl.library V53.49
 0x5fcd9b68: filesave.audio V6.5
 0x5bae2c38: listbrowser.gadget V53.62
 0x5ba3a9e0: string.gadget V53.20
 0x5bcecc30: scroller.gadget V53.14
 0x5ba3b104: usergroup.library V4.30
 0x5ba44ec0: bsdsocket.library V4.307
 0x5c074f60: mathieeedoubbas.library V52.1
 0x5c07426c: hid.usbfd V53.12
 0x5be7c4bc: textclip.library V53.1
 0x5bcec050: button.gadget V53.21
 0x5bcec0f0: glyph.image V53.3
 0x5c073510: window.class V54.7
 0x5be886f8: popupmenu.class V53.2
 0x5be7b098: popupmenu.library V53.11
 0x5c079ea0: label.image V53.13
 0x5c079e00: drawlist.image V53.3
 0x5ff4e138: layout.gadget V54.2
 0x5be88600: bevel.image V53.6
 0x5c079cc0: png.datatype V53.10
 0x5c389054: picture.datatype V53.7
 0x5c31b4f8: timezone.library V53.8
 0x5c0a6d48: application.library V53.12
 0x5c6f6b5c: ft2.library V53.2
 0x5c319c40: Picasso96API.library V54.18
 0x5ff2408c: workbench.library V53.53
 0x5c0f4400: gadtools.library V53.7
 0x5ffa86ac: commodities.library V53.7
 0x5ff22540: datatypes.library V54.6
 0x5c07a0cc: icon.library V53.16
 0x5c0a6280: z.library V53.5
 0x5c6f5448: version.library V53.15
 0x5c3f6a50: iffparse.library V53.1
 0x5ffb55cc: locale.library V54.2
 0x5ff4f41c: diskfont.library V53.9
 0x5ffabb58: petunia.library V53.6
 0x5ffab9d8: diskcache.library V3.30
 0x5fe7b220: dos.library V53.158
 0x5ff4e8f4: usbprivate.library V53.12
 0x5ff1d1bc: massstorage.usbfd V53.83
 0x5ff1d128: bootkeyboard.usbfd V52.3
 0x5ff1d0a8: bootmouse.usbfd V53.3
 0x5ff4e7ac: hub.usbfd V53.10
 0x5ff9df18: mounter.library V53.19
 0x5ff4e33c: usbresource.library V53.12
 0x5ff9e658: hunk.library V53.4
 0x5ff4e234: elf.library V53.27
 0x5ff724d0: intuition.library V54.26
 0x5ff8e2c0: keymap.library V53.9
 0x5ff8c6f0: cybergraphics.library V43.0
 0x5ff9d520: ATIRadeon.chip V53.29
 0x5ff9d4a4: PCIGraphics.card V53.15
 0x5ffa3420: graphics.library V54.226
 0x5ff9f320: layers.library V54.12
 0x5ff64150: rtg.library V54.90
 0x5ff9e224: nonvolatile.library V53.5
 0x5ffaa2b8: newlib.library V53.30
 0x5ff9c1ac: utility.library V54.1
 0x5ffa8398: expansion.library V53.1
 0x5c0f691e: rexxsyslib.library V53.4 (Legacy)

Devices
 0x5ac63734: printer.device V53.1
 0x5bf884e8: ppc440ep_eth.device V53.18
 0x5ff8c834: ahi.device V6.6
 0x5ff9cd10: usbsys.device V53.12
 0x5ff9ecd0: ehci.usbhcd V53.24
 0x5ff9ec30: ohci.usbhcd V53.21
 0x5ff9eb90: uhci.usbhcd V53.13
 0x5ff9ea24: sii3114ide.device V53.20
 0x5ff9c648: console.device V53.99
 0x5ff8f2b0: ramdrive.device V52.6
 0x5ff8e50c: input.device V53.5
 0x5ff4f024: keyboard.device V53.11
 0x5ff8f050: timer.device V53.2

Tasks
 ClickToFront (Waiting)
  Stack: 0x5ae92004 - 0x5aea1ffc, pointer @ 0x5aea19f0 (Cookie OK)
  Signals: SigRec 0xe000d000, SigWait 0x00000100
  State: Process (Waiting)
 input.device (Waiting)
  Stack: 0x5fedc000 - 0x5feec000, pointer @ 0x5feebf00 (Cookie OK)
  Signals: SigRec 0x80000000, SigWait 0x00000000
  State: Task (Waiting)
 SFS DosList handler (Waiting)
  Stack: 0x5c9f8004 - 0x5c9fbffc, pointer @ 0x5c9fbf20 (Cookie OK)
  Signals: SigRec 0x80000000, SigWait 0x00000000
  State: Process (Waiting)
 USB stack (Waiting)
  Stack: 0x5fe7e000 - 0x5fe82000, pointer @ 0x5fe81f20 (Cookie OK)
  Signals: SigRec 0xf8007000, SigWait 0x00000000
  State: Task (Waiting)
 OHCI Controller Task Unit 0 (Waiting)
  Stack: 0x5fe27000 - 0x5fe2f000, pointer @ 0x5fe2ef10 (Cookie OK)
  Signals: SigRec 0xbc009000, SigWait 0x00000000
  State: Task (Waiting)
 OHCI Controller Task Unit 1 (Waiting)
  Stack: 0x5fe03000 - 0x5fe0b000, pointer @ 0x5fe0af10 (Cookie OK)
  Signals: SigRec 0xbc009000, SigWait 0x00000000
  State: Task (Waiting)
 EHCI Controller Task Unit 0 (Waiting)
  Stack: 0x5fdd7000 - 0x5fddf000, pointer @ 0x5fddef10 (Cookie OK)
  Signals: SigRec 0xbe009000, SigWait 0x00000000
  State: Task (Waiting)
 sii3114ide.device - chip 0 port 1 (Waiting)
  Stack: 0x5fe72000 - 0x5fe7a000, pointer @ 0x5fe79f30 (Cookie OK)
  Signals: SigRec 0xc0000000, SigWait 0x00008000
  State: Task (Waiting)
 sii3114ide.device - chip 0 port 0 (Waiting)
  Stack: 0x5feb2000 - 0x5feba000, pointer @ 0x5feb9f30 (Cookie OK)
  Signals: SigRec 0xc0000000, SigWait 0x20000000
  State: Task (Waiting)
 page_sweep (Waiting)
  Stack: 0x5fe4a004 - 0x5fe51ffc, pointer @ 0x5fe51e90 (Cookie OK)
  Signals: SigRec 0x80000000, SigWait 0x00000000
  State: Task (Waiting)
 PPC440ep_eth Unit 0 (Waiting)
  Stack: 0x5b514004 - 0x5b523ffc, pointer @ 0x5b523e20 (Cookie OK)
  Signals: SigRec 0xf6003000, SigWait 0x00000000
  State: Process (Waiting)
 hid.usbfd (Waiting)
  Stack: 0x5bbc2004 - 0x5bbc9ffc, pointer @ 0x5bbc9e90 (Cookie OK)
  Signals: SigRec 0xe0000000, SigWait 0x00000100
  State: Process (Waiting)
 HID Mouse (Waiting)
  Stack: 0x5bb61004 - 0x5bb70ffc, pointer @ 0x5bb70f20 (Cookie OK)
  Signals: SigRec 0x80001000, SigWait 0x00000000
  State: Process (Waiting)
 DH0/SmartFilesystem 1.290  (Waiting)
  Stack: 0x5fc3e004 - 0x5fc41ffc, pointer @ 0x5fc41eb0 (Cookie OK)
  Signals: SigRec 0xe0000100, SigWait 0x10000000
  State: Process (Waiting)
 CD0/CDFileSystem 53.4  (Waiting)
  Stack: 0x5c9cc004 - 0x5c9cfffc, pointer @ 0x5c9cff30 (Cookie OK)
  Signals: SigRec 0x00000100, SigWait 0x00000000
  State: Process (Waiting)
 reaper.task (Waiting)
  Stack: 0x5c48e004 - 0x5c495ffc, pointer @ 0x5c495e50 (Cookie OK)
  Signals: SigRec 0x00007000, SigWait 0x00000000
  State: Process (Waiting)
 DH2/SmartFilesystem 1.290  (Waiting)
  Stack: 0x5c7df004 - 0x5c7e2ffc, pointer @ 0x5c7e2eb0 (Cookie OK)
  Signals: SigRec 0xe0000100, SigWait 0x10000000
  State: Process (Waiting)
 DH1/SmartFilesystem 1.290  (Waiting)
  Stack: 0x5c8bb004 - 0x5c8beffc, pointer @ 0x5c8beeb0 (Cookie OK)
  Signals: SigRec 0xe0000100, SigWait 0x10000000
  State: Process (Waiting)
 hid.usbfd (Waiting)
  Stack: 0x5bbb6004 - 0x5bbbdffc, pointer @ 0x5bbbde90 (Cookie OK)
  Signals: SigRec 0xe0000000, SigWait 0x00000100
  State: Process (Waiting)
 HID Keyboard (Waiting)
  Stack: 0x5bb4d004 - 0x5bb5cffc, pointer @ 0x5bb5cf10 (Cookie OK)
  Signals: SigRec 0x90001000, SigWait 0x00000000
  State: Process (Waiting)
 RAM/ram-handler 53.172  (Waiting)
  Stack: 0x5c390004 - 0x5c393ffc, pointer @ 0x5c393d40 (Cookie OK)
  Signals: SigRec 0x80000000, SigWait 0x00000100
  State: Process (Waiting)
 pager (Waiting)
  Stack: 0x5c46a004 - 0x5c489ffc, pointer @ 0x5c489ef0 (Cookie OK)
  Signals: SigRec 0x80001000, SigWait 0x00000000
  State: Process (Waiting)
 WinFrame 1 Process (Waiting)
  Stack: 0x5a491004 - 0x5a4d0ffc, pointer @ 0x5a4d0eb0 (Cookie OK)
  Signals: SigRec 0xff800000, SigWait 0x00000000
  State: Process (Waiting)
 RANDOM/Random-Handler 52.1  (Waiting)
  Stack: 0x5bb9e004 - 0x5bbadffc, pointer @ 0x5bbadef0 (Cookie OK)
  Signals: SigRec 0x00000100, SigWait 0x00000000
  State: Process (Waiting)
 URL/launch-handler 53.38  (Waiting)
  Stack: 0x5bc2b004 - 0x5bca5ffc, pointer @ 0x5bca1fb0 (Cookie OK)
  Signals: SigRec 0x80000000, SigWait 0x00000100
  State: Process (Waiting)
 dos_filedir_notify (Waiting)
  Stack: 0x5fc93004 - 0x5fc96ffc, pointer @ 0x5fc96ad0 (Cookie OK)
  Signals: SigRec 0x40001000, SigWait 0x80000000
  State: Process (Waiting)
 ENV/env-handler 54.5  (Waiting)
  Stack: 0x5c462004 - 0x5c465ffc, pointer @ 0x5c465ef0 (Cookie OK)
  Signals: SigRec 0x80000000, SigWait 0x00000100
  State: Process (Waiting)
 CON/con-handler 53.78  (Waiting)
  Stack: 0x5a3c9004 - 0x5a3d8ffc, pointer @ 0x5a3d8e20 (Cookie OK)
  Signals: SigRec 0xb0000100, SigWait 0x00000000
  State: Process (Waiting)
 CON/con-handler 53.78  (Waiting)
  Stack: 0x5ad55004 - 0x5ad64ffc, pointer @ 0x5ad64e20 (Cookie OK)
  Signals: SigRec 0xa0000100, SigWait 0x00000000
  State: Process (Waiting)
 CON/con-handler 53.78  (Waiting)
  Stack: 0x5ae3c004 - 0x5ae4bffc, pointer @ 0x5ae4be20 (Cookie OK)
  Signals: SigRec 0xa0000100, SigWait 0x00000000
  State: Process (Waiting)
 CON/con-handler 53.78  (Waiting)
  Stack: 0x5af6b004 - 0x5af7affc, pointer @ 0x5af7ae20 (Cookie OK)
  Signals: SigRec 0xa0000100, SigWait 0x00000000
  State: Process (Waiting)
 CON/con-handler 53.78  (Waiting)
  Stack: 0x5aff8004 - 0x5b007ffc, pointer @ 0x5b007e20 (Cookie OK)
  Signals: SigRec 0xa0000100, SigWait 0x00000000
  State: Process (Waiting)
 CON/con-handler 53.78  (Waiting)
  Stack: 0x5b087004 - 0x5b096ffc, pointer @ 0x5b096e20 (Cookie OK)
  Signals: SigRec 0xa0000100, SigWait 0x00000000
  State: Process (Waiting)
 AUDIO/AHI-Handler 6.2  (Waiting)
  Stack: 0x5bb35004 - 0x5bb45004, pointer @ 0x5bb44ed0 (Cookie OK)
  Signals: SigRec 0x00000100, SigWait 0x00000000
  State: Process (Waiting)
 APPDIR/appdir-handler-in-dos 53.158  (Waiting)
  Stack: 0x5c3fe004 - 0x5c405ffc, pointer @ 0x5c405dc0 (Cookie OK)
  Signals: SigRec 0x80000000, SigWait 0x00000100
  State: Process (Waiting)
 CON/con-handler 53.78  (Waiting)
  Stack: 0x5c6a3004 - 0x5c6aaffc, pointer @ 0x5c6aae20 (Cookie OK)
  Signals: SigRec 0xa0000100, SigWait 0x00000000
  State: Process (Waiting)
 RAW/con-handler 53.78  (Waiting)
  Stack: 0x5c6c7004 - 0x5c6ceffc, pointer @ 0x5c6cee20 (Cookie OK)
  Signals: SigRec 0xa0000100, SigWait 0x00000000
  State: Process (Waiting)
 CON/con-handler 53.78  (Waiting)
  Stack: 0x5c6db004 - 0x5c6e2ffc, pointer @ 0x5c6e2e20 (Cookie OK)
  Signals: SigRec 0xa0000100, SigWait 0x00000000
  State: Process (Waiting)
 dos_nbmd_process (Waiting)
  Stack: 0x5fca3004 - 0x5fca6ffc, pointer @ 0x5fca6f30 (Cookie OK)
  Signals: SigRec 0x00001100, SigWait 0x00000000
  State: Process (Waiting)
 dos_lock_handler (Waiting)
  Stack: 0x5fcab004 - 0x5fcaeffc, pointer @ 0x5fcaef00 (Cookie OK)
  Signals: SigRec 0x00001100, SigWait 0x00000000
  State: Process (Waiting)
 RexxMaster (Waiting)
  Stack: 0x5ba98004 - 0x5baa8004, pointer @ 0x5baa7f70 (Cookie OK)
  Signals: SigRec 0xc0000000, SigWait 0x00000100
  State: Process (Waiting)
 TEXTCLIP/textclip-handler 53.1  (Waiting)
  Stack: 0x5bbce004 - 0x5bbddffc, pointer @ 0x5bbddeb0 (Cookie OK)
  Signals: SigRec 0x80000000, SigWait 0x00000100
  State: Process (Waiting)
 Workbench (Waiting)
  Stack: 0x5b9ff004 - 0x5ba0effc, pointer @ 0x5ba0eea0 (Cookie OK)
  Signals: SigRec 0x80000000, SigWait 0x00000100
  State: Process (Waiting)
 Bildschirmschoner-Bibliothek. (Waiting)
  Stack: 0x5aebf004 - 0x5aecfffc, pointer @ 0x5aecff00 (Cookie OK)
  Signals: SigRec 0xb4001000, SigWait 0x00000100
  State: Process (Waiting)
 ramlib (Waiting)
  Stack: 0x5c3b0004 - 0x5c3c8ffc, pointer @ 0x5c3c8f20 (Cookie OK)
  Signals: SigRec 0x80001000, SigWait 0x00000100
  State: Process (Waiting)
 Workbench DosList Notify (Waiting)
  Stack: 0x5aee4004 - 0x5aef3ffc, pointer @ 0x5aef3f40 (Cookie OK)
  Signals: SigRec 0x00003000, SigWait 0x00000100
  State: Process (Waiting)
 MUI imagespace screen notify (Waiting)
  Stack: 0x59f20004 - 0x59f2fffc, pointer @ 0x59f2fd10 (Cookie OK)
  Signals: SigRec 0x80009000, SigWait 0x00000100
  State: Process (Waiting)
 ContextMenus Command Dispatcher (Waiting)
  Stack: 0x5a509004 - 0x5a518ffc, pointer @ 0x5a518f30 (Cookie OK)
  Signals: SigRec 0x80001000, SigWait 0x00000000
  State: Process (Waiting)
 string.gadget server (Waiting)
  Stack: 0x5af24004 - 0x5af33ffc, pointer @ 0x5af33db0 (Cookie OK)
  Signals: SigRec 0x40000000, SigWait 0x00000100
  State: Process (Waiting)
 Workbench Clipboard Server (Waiting)
  Stack: 0x5b9db004 - 0x5b9eaffc, pointer @ 0x5b9eaf00 (Cookie OK)
  Signals: SigRec 0x80000000, SigWait 0x00000100
  State: Process (Waiting)
 hub.usbfd (Ready)
  Stack: 0x5fd8b004 - 0x5fd92ffc, pointer @ 0x5fd92f10 (Cookie OK)
  Signals: SigRec 0x30000000, SigWait 0x10000000
  State: Task (Ready)
 RinghioServer (Ready)
  Stack: 0x5ad69004 - 0x5ad88ffc, pointer @ 0x5ad88370 (Cookie OK)
  Signals: SigRec 0xd8001000, SigWait 0x10000100
  State: Process (Ready)
 AmiDock (Ready)
  Stack: 0x5b0a3004 - 0x5b0b2ffc, pointer @ 0x5b0b2910 (Cookie OK)
  Signals: SigRec 0x00000100, SigWait 0x00000100
  State: Process (Ready)
 hub.usbfd (Waiting)
  Stack: 0x5fd7f004 - 0x5fd86ffc, pointer @ 0x5fd86f10 (Cookie OK)
  Signals: SigRec 0x30000000, SigWait 0x00000000
  State: Task (Waiting)
 hub.usbfd (Waiting)
  Stack: 0x5fd73004 - 0x5fd7affc, pointer @ 0x5fd7af10 (Cookie OK)
  Signals: SigRec 0x30000000, SigWait 0x00000000
  State: Task (Waiting)
 TCP/IP Control (Waiting)
  Stack: 0x5b915004 - 0x5b924ffc, pointer @ 0x5b924dc0 (Cookie OK)
  Signals: SigRec 0xf8009080, SigWait 0x00000000
  State: Process (Waiting)
 ELF Collector (Waiting)
  Stack: 0x5c9e4004 - 0x5c9f3ffc, pointer @ 0x5c9f3e70 (Cookie OK)
  Signals: SigRec 0x00000100, SigWait 0x00000000
  State: Process (Waiting)
 Odyssey [Odyssey] (Waiting)
  Stack: 0x598c5004 - 0x59aadffc, pointer @ 0x59aadc50 (Cookie OK)
  Signals: SigRec 0x03e4d000, SigWait 0x08080180
  State: Process (Waiting)
 Mounter GUI (Waiting)
  Stack: 0x5bd04004 - 0x5bd17ffc, pointer @ 0x5bd17e10 (Cookie OK)
  Signals: SigRec 0x80007000, SigWait 0x00000000
  State: Process (Waiting)
 TCP/IP Superserver (Waiting)
  Stack: 0x5b931004 - 0x5b940ffc, pointer @ 0x5b9409f0 (Cookie OK)
  Signals: SigRec 0xd0000080, SigWait 0x00000000
  State: Process (Waiting)
 TCP/IP Configuration (Waiting)
  Stack: 0x5b977004 - 0x5b986ffc, pointer @ 0x5b986e10 (Cookie OK)
  Signals: SigRec 0xf8003000, SigWait 0x00000000
  State: Process (Waiting)
 [OWB] Timer (Waiting)
  Stack: 0x5a077004 - 0x5a086ffc, pointer @ 0x5a086ed0 (Cookie OK)
  Signals: SigRec 0xf0000000, SigWait 0x00000000
  State: Process (Waiting)
 [OWB] IconDatabase (Waiting)
  Stack: 0x5968a004 - 0x59709ffc, pointer @ 0x59709e90 (Cookie OK)
  Signals: SigRec 0x00000010, SigWait 0x00000000
  State: Process (Waiting)
 [OWB] JavaScriptCore::BlockFree (Waiting)
  Stack: 0x59136004 - 0x591b5ffc, pointer @ 0x591b5ed0 (Cookie OK)
  Signals: SigRec 0x00000010, SigWait 0x00000000
  State: Process (Waiting)
 ContextMenus (Waiting)
  Stack: 0x5ae58004 - 0x5ae67ffc, pointer @ 0x5ae67c80 (Cookie OK)
  Signals: SigRec 0xe0001000, SigWait 0x0c000000
  State: Process (Waiting)
 application.library messageserver (Waiting)
  Stack: 0x5c08a000 - 0x5c08afa0, pointer @ 0x5c08af10 (Cookie OK)
  Signals: SigRec 0xc0000000, SigWait 0x00000000
  State: Task (Waiting)
 ScreenBlankerEngine (Waiting)
  Stack: 0x5af87004 - 0x5af96ffc, pointer @ 0x5af96be0 (Cookie OK)
  Signals: SigRec 0xd8001000, SigWait 0x00000100
  State: Process (Waiting)
 AsyncWB (Waiting)
  Stack: 0x5b041004 - 0x5b050ffc, pointer @ 0x5b050eb0 (Cookie OK)
  Signals: SigRec 0xc0001000, SigWait 0x00000100
  State: Process (Waiting)
  IPrefs (Waiting)
  Stack: 0x5c0fc004 - 0x5c10bffc, pointer @ 0x5c10b980 (Cookie OK)
  Signals: SigRec 0x0000f000, SigWait 0x20000100
  State: Process (Waiting)
 RAWBInfo (Waiting)
  Stack: 0x5afbf004 - 0x5afceffc, pointer @ 0x5afceec0 (Cookie OK)
  Signals: SigRec 0x80001000, SigWait 0x00000100
  State: Process (Waiting)
 DefIcons (Waiting)
  Stack: 0x5b014004 - 0x5b023ffc, pointer @ 0x5b023dc0 (Cookie OK)
  Signals: SigRec 0x80009000, SigWait 0x00000100
  State: Process (Waiting)
 TCP/IP Log (Waiting)
  Stack: 0x5b9a3004 - 0x5b9b2ffc, pointer @ 0x5b9b2f00 (Cookie OK)
  Signals: SigRec 0x80003000, SigWait 0x00000000
  State: Process (Waiting)
 ConClip (Waiting)
  Stack: 0x5baf9004 - 0x5bb08ffc, pointer @ 0x5bb08eb0 (Cookie OK)
  Signals: SigRec 0x80000000, SigWait 0x00000000
  State: Process (Waiting)
 USB stack Process (Waiting)
  Stack: 0x5bd30004 - 0x5bd3fffc, pointer @ 0x5bd3fee0 (Cookie OK)
  Signals: SigRec 0x80001000, SigWait 0x00000000
  State: Process (Waiting)
 MassStorage Notifier (Waiting)
  Stack: 0x5fe2f000 - 0x5fe36d00, pointer @ 0x5fe36c70 (Cookie OK)
  Signals: SigRec 0x80001000, SigWait 0x00000000
  State: Task (Waiting)
 datatypes.library (Waiting)
  Stack: 0x5bf9c004 - 0x5bfabffc, pointer @ 0x5bfabe30 (Cookie OK)
  Signals: SigRec 0x80001000, SigWait 0x00000000
  State: Process (Waiting)
 DST watcher (Waiting)
  Stack: 0x5bfc0004 - 0x5bfcfffc, pointer @ 0x5bfcff10 (Cookie OK)
  Signals: SigRec 0xc0000000, SigWait 0x00000000
  State: Process (Waiting)
 Shell Process [hello] (Crashed)
  Stack: 0x5acd7004 - 0x5ad16ffc, pointer @ 0x5ad16ee0 (Cookie OK)
  Signals: SigRec 0x00000010, SigWait 0x00000100
  State: Process (Crashed)
 ramlib.support (Waiting)
  Stack: 0x5c3cd004 - 0x5c3e5ffc, pointer @ 0x5c3e5f00 (Cookie OK)
  Signals: SigRec 0x80005000, SigWait 0x00000000
  State: Process (Waiting)
 Mounter Task (Waiting)
  Stack: 0x5fe37000 - 0x5fe45a60, pointer @ 0x5fe45970 (Cookie OK)
  Signals: SigRec 0xb0001000, SigWait 0x00000000
  State: Task (Waiting)
 Mounter Companion Process (Waiting)
  Stack: 0x5bd1c004 - 0x5bd2bffc, pointer @ 0x5bd2bf40 (Cookie OK)
  Signals: SigRec 0x80003000, SigWait 0x00000000
  State: Process (Waiting)
 dos_signal_server (Waiting)
  Stack: 0x5fc9b004 - 0x5fc9effc, pointer @ 0x5fc9ef10 (Cookie OK)
  Signals: SigRec 0x0000f000, SigWait 0x00000000
  State: Process (Waiting)
 dos_appdir_server (Waiting)
  Stack: 0x5fc87004 - 0x5fc8effc, pointer @ 0x5fc8ed40 (Cookie OK)
  Signals: SigRec 0x80005000, SigWait 0x00000000
  State: Process (Waiting)
 idle.task (Ready)
  Stack: 0x5ff8d000 - 0x5ff8e000, pointer @ 0x5ff8dfd0 (Cookie OK)
  Signals: SigRec 0x00000000, SigWait 0x00000000
  State: Task (Ready)
Logged

ALB42

  • Moderator
  • Newbie
  • *****
  • Posts: 22
    • View Profile

Hi Fastbit66,

and welcome to the club ;-) thanks for trying.

hmm that is strange, I have to admit I do not own a AOS4 machine, I always only used UAE with OS4 which is very bad, slow, buggy and barely usable (and there it worked ;-)).

The only thing I could imagine is some linker/assembler problem.

Maybe you could try the latest nightly:
http://build.alb42.de/fpcreleases/fpc-release.powerpc-amiga.lha

which brings vlink and vasm as Assembler and VLink maybe that works better.

(As last you could try the m68k-amiga version of course)

Logged

Fastbit66

  • Newbie
  • *
  • Posts: 14
    • View Profile

Hi ALB42,

Thank  you  very  much for  your  welcome words !

I will try the  nightly  build and report the result  :)

Andi
Logged

Fastbit66

  • Newbie
  • *
  • Posts: 14
    • View Profile

Hello ALB42,

a little sucess !!!! YEAHHHH

I tried the nightly build from 08.03.2017.

So far:  I can compile and run console mode Programs OK !!!  Cool ;)
           Amiga related stuff compiles ( except the simplegraphics example) but still fires grim reaper with 80000004 alarm
           The simplegraphics example says: InitIntuitionLibrary and InitGraphicsLibrary - identifier not found.

But so far really great for me. I am pretty sure the rest will be running in the future.
And I am going to upgrade my AOS Hardware soon ;)

I also tried the Games ColorIt and FPCMines for AmigaOS4 - they both work ok :-)


Andi

           
« Last Edit: March 08, 2017, 03:26:05 PM by Fastbit66 »
Logged

magorium

  • Full Member
  • ***
  • Posts: 200
  • Programming is an art form that fights back
    • View Profile

Hello Fastbit66,

A very welcome here and thank you for trying out the OS4 parts (just like ALB42, i'm OS4-less)

The simplegraphics example says: InitIntuitionLibrary and InitGraphicsLibrary - identifier not found.
I don't know if you are familiar enough with Pascal, but afaik the libraries are opened automatically, so there is no need to call those functions (they simply do not exist anymore).

In case you feel adventurous enough then just comment those lines by placing two slashes ("//") in front of those lines (lines 121 and 122 if not mistaken).

Have fun !  :)
Logged

magorium

  • Full Member
  • ***
  • Posts: 200
  • Programming is an art form that fights back
    • View Profile

Code: (asm) [Select]
PPC disassembly:
 6fb00f08: 4182001c   beq-              0x6FB00F24
 6fb00f0c: 4182001c   beq-              0x6FB00F28
*6fb00f10: 7c695b67   .word             0x7C695B67
 6fb00f14: 7c69e11c   .word             0x7C69E11C
 6fb00f18: 7c6903a6   mtctr             r3
Well, ^^ that ^^ can't be good .. two branches no catch in case they fail .... something must have gone wrong there i guess.

Since the new linker works for you, i won't worry too much about it.

To ALB42 i would like to ask: optimizations at play ? (or at least a known problem ?)
Logged

Fastbit66

  • Newbie
  • *
  • Posts: 14
    • View Profile

@magorium:

Hey !!! Thanx a lot for that hint.
I commented the two lines out and..TADAAA...it compiled AND WORKS !!! YEAHHHH

Muitest, smallThreadTest and the winpubscreen still bring up the grim reaper when trying to run.

But at least the graphics stuff is working so far.!!!
Great !!!

Andi
« Last Edit: March 08, 2017, 05:41:04 PM by Fastbit66 »
Logged

ALB42

  • Moderator
  • Newbie
  • *****
  • Posts: 22
    • View Profile

@magorium:
not really, it should work (I guess it jumps just to nowhere and this is what we see here), but I remember Charlie told me about some linker problems on OS4. but it seems it work now with vlink.

@FastBit66:
yeah this examples are not really tested with OS4, it just lack support ;-) of people trying/bugfixing things there.

for MUI example you could maybe try the muihelper examples (only with the latest nightlies)
https://github.com/alb42/fpc-tests/tree/master/Zune/MUIHelper

Maybe at WE I can look at the other examples you mentioned and check why they crash.
Logged

Fastbit66

  • Newbie
  • *
  • Posts: 14
    • View Profile

Hi ALB42,

thank you very much for your answer.

I will test the Muihelper examples and give reply then.

Thanx for your great work !!!

Andi
Logged

magorium

  • Full Member
  • ***
  • Posts: 200
  • Programming is an art form that fights back
    • View Profile

Hey !!! Thanx a lot for that hint.
You're welcome  :)

Quote
I commented the two lines out and..TADAAA...it compiled AND WORKS !!! YEAHHHH
Which was the intention. Congratulations on having fixed your first bug with Pascal  8)

Quote
Muitest, smallThreadTest and the winpubscreen still bring up the grim reaper when trying to run.
Having looked at the sources, i would be very interested to know why winpubscreen fails as i can't seem to find any obvious errors. Perhaps i'm overlooking something.

The threadtest could be problematic for OS4 (although in theory should work, but there are some hoops) and also muitest might expose some undesired behavior on OS4.

Hopefully the MUI examples that ALB42 posted a link to, do a better job for your case. Please feel free to let us know.

Just in case you feel even more adventurous and in case you would add the following line...
Code: [Select]
WriteLn('We are now at line', {$I %LINE%});
... on every line between begin end blocks (just before every statement), then running the program from a shell will display this output to you and let you see what lines are executed successfully (including the line number).

That way you are able to see what function work and which do not (as you will see the last writeln that executed successfully). That way you would be able to pinpoint where exactly things go wrong in the source-code.

Sharing those results would help us tremendously.

As a matter of fact, i still use this method myself in case things go seriously wrong. The only difference would be that i am a bit more proficient with it so that i do not need a writeln for every line, but use it to globally pinpoint a troublesome subroutine and then examine that subroutine into detail manually.

No need to do such a thing if you are not familiar or not feel confident enough, just a hint in case you'd like to experiment  ;)

@ALB42:
Ok thank you for letting me know. nothing serious then. Just moving forwards. Just for completeness: OS4 target with current stable release 3.0.2 (also) suffers from this (fixed in trunk) ?
« Last Edit: March 09, 2017, 04:23:22 PM by magorium »
Logged

Fastbit66

  • Newbie
  • *
  • Posts: 14
    • View Profile

@magorium:

Thanks a lot for your reply!

I will check this and try to figure out with the

Code: [Select]
WriteLn('We are now at line', {$I %LINE%});
statement and share the results.

Would be cool if i can help.

Best regards

Andi

Logged

magorium

  • Full Member
  • ***
  • Posts: 200
  • Programming is an art form that fights back
    • View Profile

Would be cool if i can help.
Would be as evenly cool if you could and would.

You're running on the bare metal so you have one big advantage over us there :)

Every 'issue' that you run into and are able to report about would be helpful.

In case you have your mind set on actually developing something using Free Pascal then please feel free to ask in case you have questions.

It helps (but not required) if you know a little c (Pascal is just a bit more distinguished in it's communication in comparison to c, where the latter sometimes leaves you in the dark about what is exactly happening while the first requires you to be more explicit in many cases).

It is possible to convert every sdk example (usually c) into Pascal code, and such example should work just the same.
Logged

Fastbit66

  • Newbie
  • *
  • Posts: 14
    • View Profile

@magorium:

Again thanx a lot for your kind reply and help  :)

Today I tried another shot with the nightly build from 11.03.2017 fpc amiga powerpc.

So far I can give you the following result:

The winpubscreen example compiled an run !

But - was a lucky shot - only for one time.

I saved this version and tried once again. This time it compiled ok but I get the grim reaper.

I compared both versions with the Workbench filecompare tool and with the FileX Hex Editor.

The executable file and the .o file are both the same size - for the working and the non-working version.

The version that doesn't work seems to have an improper section in the ELF loader code (but that's only my assumption - I am not sure if this is correct - mybe you can say more exactly about this).
But seems something with linking is not correct.

I got the idea because I put the writeln statements about the current line you have mentioned in the code and the failed version did not even enter the main begin - end. section . The grim reaper fires up instantly.

The working version works as expected and writes all sections to the shell output.

I hope that can help you figure out more about the issue.

I would have attached the screenshots from the binary diff's but unfortunately you can't see really helpful things
because of the limitation about the size I am allowed to attach files. The pics would be too small.

A word about me:
I am familiar with C programming language as I have to use it in my daily job as a test engineer.

Hope I can help you more in the future ;)



Best regards
Andi
Logged
Pages: [1] 2