Icaros Desktop won't start

ascendant · 3214

ascendant

  • Newbie
  • *
    • Posts: 38
    • Karma: +2/-0
Reply #15 on: May 04, 2022, 06:39:25 AM
I verified that I have AROS.boot. It just says "i386" in there.

I had to add the line

Code: [Select]
add-auto-load-safe-path /home/jlm/code/AROS_build/alt-abiv0-linux-i386-d/bin/linux-i386/AROS/.gdbinit
to ~/.config/gdb/gdbinit in order to get the .gdbinit file to load.

When I run, I still never get a crash, just an infinite loop. I CTRL-C it, then loadbt runs for a very long time. I see the function has a limit of 1000, and indeed it loops that many times, slowing down as it goes.

There's a huge stack trace. I think the problem is recursive.
Code: [Select]
Checking frame #988
Checking frame #989
Checking frame #990
Checking frame #991
Checking frame #992
Checking frame #993
Checking frame #994
Checking frame #995
Checking frame #996
Checking frame #997
Checking frame #998
Checking frame #999
(gdb) bt
#0  0xf7fc3549 in __kernel_vsyscall ()
#1  0xf7e596b7 in write () from /usr/lib32/libc.so.6
#2  0xf7dcddfb in _IO_file_write@@GLIBC_2.1 () from /usr/lib32/libc.so.6
#3  0xf7dcce9e in new_do_write () from /usr/lib32/libc.so.6
#4  0xf7dcef7f in __GI__IO_do_write () from /usr/lib32/libc.so.6
#5  0xf7dcf383 in __GI__IO_file_overflow () from /usr/lib32/libc.so.6
#6  0x56557383 in KPutC (chr=120) at /home/jlm/code/AROS_build/AROS/arch/all-unix/bootstrap/kputc.c:21
#7  0xf374ff02 in krnPutC (chr=120, KernelBase=0xf48d4f44) at /home/jlm/code/AROS_build/AROS/arch/all-unix/kernel/kernel_debug.c:22
#8  0xf37579ee in krnDisplayAlert (text=0xf48d46c9 "00000021\n0xF37A649E Devs/dosboot.resource Function dosboot_Init + 0x0000029B\n0xF37AA7A2 Devs/dosboot.resource Function set_call_libfuncs + 0x0000003E\n0xF37A5C0F Devs/dosboot.resource Function Dosboot_"..., KernelBase=0xf48d4f44)
    at /home/jlm/code/AROS_build/AROS/rom/kernel/./_displayalert.c:97
#9  0xf37572a0 in Kernel_35_KrnDisplayAlert (code=2214592521, text=0xf48d4574 "Software Failure!\nTask : 0xF48FC0C0 - Exec Bootstrap Task\nError: 0x84000009 - unknown type of system screen\nPC   : 0xF37A9657\nModule Devs/dosboot.resource Segment 1 .text (0xF37A5A00) Offset 0x00003C5"..., KernelBase=0xf48d4f44)
    at /home/jlm/code/AROS_build/AROS/rom/kernel/./displayalert.c:69
#10 0xf3766f8a in __inline_Kernel_KrnDisplayAlert (__arg1=2214592521, __arg2=0xf48d4574 "Software Failure!\nTask : 0xF48FC0C0 - Exec Bootstrap Task\nError: 0x84000009 - unknown type of system screen\nPC   : 0xF37A9657\nModule Devs/dosboot.resource Segment 1 .text (0xF37A5A00) Offset 0x00003C5"...,
    __KernelBase=0xf48d4f44) at /home/jlm/code/AROS_build/alt-abiv0-linux-i386-d/bin/linux-i386/AROS/Development/include/inline/kernel.h:503
#11 0xf3767044 in Alert_DisplayKrnAlert (task=0xf48fc0c0, alertNum=2214592521, location=0xf37a9657, stack=0xffffca48, type=0 '\000', data=0x0, SysBase=0xf48d41e0) at /home/jlm/code/AROS_build/AROS/rom/exec/./systemalert.c:32
#12 0xf37671be in Exec_SystemAlert (alertNum=2214592521, location=0xf37a9657, stack=0xffffca48, type=0 '\000', data=0x0, SysBase=0xf48d41e0) at /home/jlm/code/AROS_build/AROS/rom/exec/./systemalert.c:68
#13 0xf375b015 in Exec_ExtAlert (alertNum=2214592521, location=0xf37a9657, stack=0xffffca48, type=0 '\000', data=0x0, SysBase=0xf48d41e0) at /home/jlm/code/AROS_build/AROS/rom/exec/./alert.c:173
#14 0xf375adeb in Exec_18_Alert (alertNum=2214592521, SysBase=0xf48d41e0) at /home/jlm/code/AROS_build/AROS/rom/exec/./alert.c:60
#15 0xf389abcf in __inline_Exec_Alert (__arg1=2214592521, __SysBase=0xf48d41e0) at /home/jlm/code/AROS_build/alt-abiv0-linux-i386-d/bin/linux-i386/AROS/Development/include/inline/exec.h:167
#16 0xf389aeb9 in OpenFinalScreen (MinDepth=4 '\004', squarePixels=1, IntuitionBase=0xf492c810) at /home/jlm/code/AROS_build/AROS/rom/intuition/./shutdownscreen.c:68
#17 0xf389ae05 in ShowShutdownScreen () at /home/jlm/code/AROS_build/AROS/rom/intuition/./shutdownscreen.c:46
#18 0xf389adc5 in ShutdownScreenHandler (__ufi_data=0xf492dc10, __ufi_code=0xf389adb4 <ShutdownScreenHandler>, SysBase=0xf48d41e0) at /home/jlm/code/AROS_build/AROS/rom/intuition/./shutdownscreen.c:34
#19 0xf3765da3 in Exec_DoResetCallbacks (IntSysBase=0xf48d41e0, action=2 '\002') at /home/jlm/code/AROS_build/AROS/rom/exec/./doresetcallbacks.c:38
#20 0xf3757ea9 in Exec_121_ColdReboot (SysBase=0xf48d41e0) at /home/jlm/code/AROS_build/AROS/arch/all-unix/exec/coldreboot.c:19
#21 0xf375ad5b in __inline_Exec_ColdReboot (__SysBase=0xf48d41e0) at /home/jlm/code/AROS_build/alt-abiv0-linux-i386-d/bin/linux-i386/gen/rom/exec/include/inline/exec.h:1753
#22 0xf375b027 in Exec_ExtAlert (alertNum=2214592521, location=0xf37a9657, stack=0xffffca48, type=0 '\000', data=0x0, SysBase=0xf48d41e0) at /home/jlm/code/AROS_build/AROS/rom/exec/./alert.c:179
#23 0xf375adeb in Exec_18_Alert (alertNum=2214592521, SysBase=0xf48d41e0) at /home/jlm/code/AROS_build/AROS/rom/exec/./alert.c:60
#24 0xf389abcf in __inline_Exec_Alert (__arg1=2214592521, __SysBase=0xf48d41e0) at /home/jlm/code/AROS_build/alt-abiv0-linux-i386-d/bin/linux-i386/AROS/Development/include/inline/exec.h:167
#25 0xf389aeb9 in OpenFinalScreen (MinDepth=4 '\004', squarePixels=1, IntuitionBase=0xf492c810) at /home/jlm/code/AROS_build/AROS/rom/intuition/./shutdownscreen.c:68
#26 0xf389ae05 in ShowShutdownScreen () at /home/jlm/code/AROS_build/AROS/rom/intuition/./shutdownscreen.c:46
#27 0xf389adc5 in ShutdownScreenHandler (__ufi_data=0xf492dc10, __ufi_code=0xf389adb4 <ShutdownScreenHandler>, SysBase=0xf48d41e0) at /home/jlm/code/AROS_build/AROS/rom/intuition/./shutdownscreen.c:34
#28 0xf3765da3 in Exec_DoResetCallbacks (IntSysBase=0xf48d41e0, action=2 '\002') at /home/jlm/code/AROS_build/AROS/rom/exec/./doresetcallbacks.c:38
#29 0xf3757ea9 in Exec_121_ColdReboot (SysBase=0xf48d41e0) at /home/jlm/code/AROS_build/AROS/arch/all-unix/exec/coldreboot.c:19
#30 0xf375ad5b in __inline_Exec_ColdReboot (__SysBase=0xf48d41e0) at /home/jlm/code/AROS_build/alt-abiv0-linux-i386-d/bin/linux-i386/gen/rom/exec/include/inline/exec.h:1753
#31 0xf375b027 in Exec_ExtAlert (alertNum=2214592521, location=0xf37a9657, stack=0xffffca48, type=0 '\000', data=0x0, SysBase=0xf48d41e0) at /home/jlm/code/AROS_build/AROS/rom/exec/./alert.c:179
#32 0xf375adeb in Exec_18_Alert (alertNum=2214592521, SysBase=0xf48d41e0) at /home/jlm/code/AROS_build/AROS/rom/exec/./alert.c:60
#33 0xf389abcf in __inline_Exec_Alert (__arg1=2214592521, __SysBase=0xf48d41e0) at /home/jlm/code/AROS_build/alt-abiv0-linux-i386-d/bin/linux-i386/AROS/Development/include/inline/exec.h:167
#34 0xf389aeb9 in OpenFinalScreen (MinDepth=4 '\004', squarePixels=1, IntuitionBase=0xf492c810) at /home/jlm/code/AROS_build/AROS/rom/intuition/./shutdownscreen.c:68
...
Lots of repeated lines...
...
#1455 0xf389abcf in __inline_Exec_Alert (__arg1=2214592521, __SysBase=0xf48d41e0) at /home/jlm/code/AROS_build/alt-abiv0-linux-i386-d/bin/linux-i386/AROS/Development/include/inline/exec.h:167
#1456 0xf389aeb9 in OpenFinalScreen (MinDepth=4 '\004', squarePixels=1, IntuitionBase=0xf492c810) at /home/jlm/code/AROS_build/AROS/rom/intuition/./shutdownscreen.c:68
#1457 0xf389ae05 in ShowShutdownScreen () at /home/jlm/code/AROS_build/AROS/rom/intuition/./shutdownscreen.c:46
#1458 0xf389adc5 in ShutdownScreenHandler (__ufi_data=0xf492dc10, __ufi_code=0xf389adb4 <ShutdownScreenHandler>, SysBase=0xf48d41e0) at /home/jlm/code/AROS_build/AROS/rom/intuition/./shutdownscreen.c:34
#1459 0xf3765da3 in Exec_DoResetCallbacks (IntSysBase=0xf48d41e0, action=2 '\002') at /home/jlm/code/AROS_build/AROS/rom/exec/./doresetcallbacks.c:38
#1460 0xf3757ea9 in Exec_121_ColdReboot (SysBase=0xf48d41e0) at /home/jlm/code/AROS_build/AROS/arch/all-unix/exec/coldreboot.c:19
#1461 0xf375ad5b in __inline_Exec_ColdReboot (__SysBase=0xf48d41e0) at /home/jlm/code/AROS_build/alt-abiv0-linux-i386-d/bin/linux-i386/gen/rom/exec/include/inline/exec.h:1753
#1462 0xf375b027 in Exec_ExtAlert (alertNum=2214592521, location=0xf37a9657, stack=0xffffca48, type=0 '\000', data=0x0, SysBase=0xf48d41e0) at /home/jlm/code/AROS_build/AROS/rom/exec/./alert.c:179
#1463 0xf375adeb in Exec_18_Alert (alertNum=2214592521, SysBase=0xf48d41e0) at /home/jlm/code/AROS_build/AROS/rom/exec/./alert.c:60
#1464 0xf389abcf in __inline_Exec_Alert (__arg1=2214592521, __SysBase=0xf48d41e0) at /home/jlm/code/AROS_build/alt-abiv0-linux-i386-d/bin/linux-i386/AROS/Development/include/inline/exec.h:167
#1465 0xf389aeb9 in OpenFinalScreen (MinDepth=4 '\004', squarePixels=1, IntuitionBase=0xf492c810) at /home/jlm/code/AROS_build/AROS/rom/intuition/./shutdownscreen.c:68
#1466 0xf389ae05 in ShowShutdownScreen () at /home/jlm/code/AROS_build/AROS/rom/intuition/./shutdownscreen.c:46
#1467 0xf389adc5 in ShutdownScreenHandler (__ufi_data=0xf492dc10, __ufi_code=0xf389adb4 <ShutdownScreenHandler>, SysBase=0xf48d41e0) at /home/jlm/code/AROS_build/AROS/rom/intuition/./shutdownscreen.c:34
#1468 0xf3765da3 in Exec_DoResetCallbacks (IntSysBase=0xf48d41e0, action=2 '\002') at /home/jlm/code/AROS_build/AROS/rom/exec/./doresetcallbacks.c:38
#1469 0xf3757ea9 in Exec_121_ColdReboot (SysBase=0xf48d41e0) at /home/jlm/code/AROS_build/AROS/arch/all-unix/exec/coldreboot.c:19
#1470 0xf375ad5b in __inline_Exec_ColdReboot (__SysBase=0xf48d41e0) at /home/jlm/code/AROS_build/alt-abiv0-linux-i386-d/bin/linux-i386/gen/rom/exec/include/inline/exec.h:1753
#1471 0xf375b027 in Exec_ExtAlert (alertNum=2214592521, location=0xf37a9657, stack=0xffffca48, type=0 '\000', data=0x0, SysBase=0xf48d41e0) at /home/jlm/code/AROS_build/AROS/rom/exec/./alert.c:179
#1472 0xf375adeb in Exec_18_Alert (alertNum=2214592521, SysBase=0xf48d41e0) at /home/jlm/code/AROS_build/AROS/rom/exec/./alert.c:60
#1473 0xf37a9657 in ?? ()
#1474 0xf37a988a in ?? ()
#1475 0xf37a9a05 in ?? ()
#1476 0xf37a649e in ?? ()
#1477 0xf37aa7a2 in ?? ()
#1478 0xf37a5c0f in ?? ()
#1479 0xf3760003 in Exec_17_InitResident (resident=0xf37aae40, segList=0x0, SysBase=0xf48d41e0) at /home/jlm/code/AROS_build/AROS/rom/exec/./initresident.c:168
#1480 0xf375fc12 in __inline_Exec_InitResident (__arg1=0xf37aae40, __arg2=0x0, __SysBase=0xf48d41e0) at /home/jlm/code/AROS_build/alt-abiv0-linux-i386-d/bin/linux-i386/gen/rom/exec/include/inline/exec.h:151
#1481 0xf375fd12 in Exec_12_InitCode (startClass=1, version=0, SysBase=0xf48d41e0) at /home/jlm/code/AROS_build/AROS/rom/exec/./initcode.c:97
#1482 0xf3750996 in __inline_Exec_InitCode (__arg1=1, __arg2=0, __SysBase=0xf48d41e0) at /home/jlm/code/AROS_build/alt-abiv0-linux-i386-d/bin/linux-i386/gen/include/inline/exec.h:67
#1483 0xf374f556 in startup (msg=0x5655c120 <km>, magic=1095913299) at /home/jlm/code/AROS_build/AROS/arch/all-unix/kernel/kernel_startup.c:285
#1484 0x565572e1 in kick (addr=0xf374f000 <startup>, msg=0x5655c120 <km>) at /home/jlm/code/AROS_build/AROS/arch/all-unix/bootstrap/kickstart.c:62
#1485 0x56556d76 in bootstrap (argc=1, argv=0xffffce94) at /home/jlm/code/AROS_build/AROS/arch/all-hosted/bootstrap/./bootstrap.c:416
#1486 0x565564aa in main (argc=1, argv=0xffffce94) at /home/jlm/code/AROS_build/AROS/arch/all-hosted/bootstrap/./main.c:10
(gdb) 



deadwood

  • AROS Developer
  • Legendary Member
  • *****
    • Posts: 1524
    • Karma: +118/-0
Reply #16 on: May 04, 2022, 09:16:43 AM
That crash loop is something I came across previously. In order to disable it, edit /ssd/deadwood/repo-github-dd-alt-abiv0/AROS/rom/intuition/intuition_init.c, Comment out line 290:     AddResetCallback(&GetPrivIBase(LIBBASE)->ShutdownHandler);

Then "make" to rebuild all changes.

This should get rid of crash loop and allow to debug the source of problem.

EDIT: once you get rid of crash loop, AROS will most likely silently exit without hitting any SEGFAULT. What is happening is that one of kickstart modules is failing to initialize which causes the system to just die. We need to find out which one it is and why.

Edit  /home/jlm/code/AROS_build/AROS/rom/exec/./initresident.c. Change

DINITRESIDENT("InitResident begin 0x%p (\"%s\")", resident, resident->rt_Name);

into

bug("InitResident begin 0x%p (\"%s\")", resident, resident->rt_Name);

This should print out modules until failure.
« Last Edit: May 04, 2022, 09:20:50 AM by deadwood »



ascendant

  • Newbie
  • *
    • Posts: 38
    • Karma: +2/-0
Reply #17 on: May 04, 2022, 08:59:52 PM
The infinite loop did not go away. To be sure, these are my changes:

Code: [Select]
~/code/AROS_build/AROS 36> git diff rom/exec/initresident.c rom/intuition/intuition_init.c
diff --git a/rom/exec/initresident.c b/rom/exec/initresident.c
index aedc530efc..e06f0eb870 100644
--- a/rom/exec/initresident.c
+++ b/rom/exec/initresident.c
@@ -66,7 +66,7 @@
 
     struct Library *library = NULL;
     
-    DINITRESIDENT("InitResident begin 0x%p (\"%s\")", resident, resident->rt_Name);
+    bug("InitResident begin 0x%p (\"%s\")", resident, resident->rt_Name);
 
     /* Check for validity */
     if(resident->rt_MatchWord != RTC_MATCHWORD ||
diff --git a/rom/intuition/intuition_init.c b/rom/intuition/intuition_init.c
index 8edfa30d2f..34d01de38e 100644
--- a/rom/intuition/intuition_init.c
+++ b/rom/intuition/intuition_init.c
@@ -287,7 +287,7 @@ static int IntuitionInit(LIBBASETYPEPTR LIBBASE)
         (VOID_FUNC)ShutdownScreenHandler;
     GetPrivIBase(LIBBASE)->ShutdownHandler.is_Data =
         &GetPrivIBase(LIBBASE)->ShutdownHandler;
-    AddResetCallback(&GetPrivIBase(LIBBASE)->ShutdownHandler);
+    //AddResetCallback(&GetPrivIBase(LIBBASE)->ShutdownHandler);
 
     DEBUG_INIT(dprintf("LIB_Init: done\n"));

But the output is different (and hopefully useful):

Code: [Select]
################################################################################
#                               Software Failure!                              #
#                    Task : 0xF48730C0 - Exec Bootstrap Task                   #
#               Error: 0x84000009 - unknown type of system screen              #
################################################################################
PC   : 0xF3720657
Module Devs/dosboot.resource Segment 1 .text (0xF371CA00) Offset 0x00003C57
Stack trace:
0xF372088A Devs/dosboot.resource Segment 1 .text + 0x00003E8A
0xF3720A05 Devs/dosboot.resource Function NoBootMediaScreen + 0x00000021
0xF371D49E Devs/dosboot.resource Function dosboot_Init + 0x0000029B
0xF37217A2 Devs/dosboot.resource Function set_call_libfuncs + 0x0000003E
0xF371CC0F Devs/dosboot.resource Function Dosboot_InitLib + 0x00000180
0xF36D6FFD Arch/linux/kernel Function Exec_17_InitResident + 0x0000020B
0xF36D6C12 Arch/linux/kernel Segment 1 .text + 0x00010C12
0xF36D6D12 Arch/linux/kernel Function Exec_12_InitCode + 0x000000FE
0xF36C7996 Arch/linux/kernel Segment 1 .text + 0x00001996
0xF36C6556 Arch/linux/kernel Function startup + 0x00000556
################################################################################
[Bootstrap] Entering kernel at 0xf36c6000...
[KRN] Protecting host process stack (0xffa95e00 - 0xffa9fe00)
InitResident begin 0xf36f02c0 ("hostlib.resource")InitResident begin 0xf36ffa00 ("expansion.library")InitResident begin 0xf376d260 ("debug.library")InitResident begin 0xf36e6720 ("exec.library")InitResident begin 0xf3836aa0 ("utility.library")InitResident begin 0xf3769b60 ("aros.library")InitResident begin 0xf36e4000 ("task.resource")InitResident begin 0xf370c760 ("bootloader.resource")InitResident begin 0xf3704560 ("processor.resource")InitResident begin 0xf3832780 ("oop.library")InitResident begin 0xf3762fc0 ("hiddclass.hidd")InitResident begin 0xf36f3d20 ("unixio.hidd")InitResident begin 0xf370e4e0 ("FileSystem.resource")InitResident begin 0xf37069c0 ("battclock.resource")InitResident begin 0xf375ca60 ("gfx.hidd")InitResident begin 0xf37be580 ("graphics.library")InitResident begin 0xf382bea0 ("layers.library")InitResident begin 0xf37098e0 ("timer.device")InitResident begin 0xf3765740 ("keyboard.hidd")InitResident begin 0xf3767fc0 ("mouse.hidd")InitResident begin 0xf3728da0 ("gameport.device")InitResident begin 0xf37314e0 ("keyboard.device")InitResident begin 0xf38204e0 ("keymap.library")InitResident begin 0xf372ea00 ("input.device")InitResident begin 0xf38134e0 ("intuition.library")InitResident begin 0xf371ac00 ("console.device")InitResident begin 0xf36fc1c0 ("emul-handler")InitResident begin 0xf3721e40 ("dosboot.resource")InitResident begin 0xf378fac0 ("dos.library")

I attempted to run it through GDB, but now CTRL-C doesn't work, so I can't get a backtrace.

I also want to mention that AROSBootstrap did not get updated when I ran make. I'm going to rebuild from scratch and see what happens.
« Last Edit: May 04, 2022, 09:03:06 PM by ascendant »



deadwood

  • AROS Developer
  • Legendary Member
  • *****
    • Posts: 1524
    • Karma: +118/-0
Reply #18 on: May 04, 2022, 11:57:37 PM
Ok, I think we are making progress. About AROSBootstrap, it is ok that it was not re-built. The code changes landed in other modules.

Now, let's try to get rid of crash loop again. In rom/dosboot/dosboot_init.c comment out lines 252 and 253

Code: [Select]
        if (!LIBBASE->bm_Screen)
            LIBBASE->bm_Screen = NoBootMediaScreen(LIBBASE);

Then go to top of the file and insert

Code: [Select]
#define DEBUG 1

above

Code: [Select]
#include <aros/debug.h>

 Do the same in rom/dosboot/bootstrap.c. "make" and let's see the output.
« Last Edit: May 05, 2022, 12:01:58 AM by deadwood »



deadwood

  • AROS Developer
  • Legendary Member
  • *****
    • Posts: 1524
    • Karma: +118/-0
Reply #19 on: May 05, 2022, 12:08:31 AM
Can you also tell me which libc version you have in your distribution?

Code: [Select]
$  /usr/lib/x86_64-linux-gnu/libc.so.6



ascendant

  • Newbie
  • *
    • Posts: 38
    • Karma: +2/-0
Reply #20 on: May 05, 2022, 06:14:34 AM
The version of Glibc I have is:

Code: [Select]
5> pacman -Q --owns /usr/lib/libc.so.6
/usr/lib/libc.so.6 is owned by glibc 2.35-3

Now it loops more slowly:

Code: [Select]
~/code/AROS_build/alt-abiv0-linux-i386-d/bin/linux-i386/AROS 16> Arch/linux/AROSBootstrap
[Bootstrap] RAM memory block allocated: 0xf3819000 - 0xf7819000 (67108864 bytes)
[ELF Loader] Calculating kickstart size...
[ELF Loader] Code 1590641 bytes, data 2213 bytes, BSS array 240 bytes
[ELF Loader] Loading kickstart...
[ELF Loader] Code 0xf3694000, Data 0x56d868d0, Module Arch/linux/kernel...
[ELF Loader] Code 0xf36bd29a, Data 0x56d86e4c, Module Arch/linux/Devs/hostlib.resource...
[ELF Loader] Code 0xf36befe5, Data 0x56d86e54, Module Arch/linux/Devs/Drivers/unixio.hidd...
[ELF Loader] Code 0xf36c33e4, Data 0x56d86eb8, Module Arch/linux/L/emul-handler...
[ELF Loader] Code 0xf36cc17a, Data 0x56d86fb4, Module Arch/linux/Libs/expansion.library...
[ELF Loader] Code 0xf36cf886, Data 0x56d86fbc, Module Arch/linux/Devs/processor.resource...
[ELF Loader] Code 0xf36d3b43, Data 0x56d86ff8, Module Arch/linux/Devs/battclock.resource...
[ELF Loader] Code 0xf36d57bf, Data 0x56d87010, Module Arch/linux/Devs/timer.device...
[ELF Loader] Code 0xf36d9455, Data 0x56d87018, Module Devs/bootloader.resource...
[ELF Loader] Code 0xf36dbe89, Data 0x56d87020, Module Devs/FileSystem.resource...
[ELF Loader] Code 0xf36dce65, Data 0x56d87024, Module Devs/console.device...
[ELF Loader] Code 0xf36ea9fc, Data 0x56d8702c, Module Devs/dosboot.resource...
[ELF Loader] Code 0xf36f5a86, Data 0x56d87034, Module Devs/gameport.device...
[ELF Loader] Code 0xf36f83d9, Data 0x56d8703c, Module Devs/lddemon.resource...
[ELF Loader] Code 0xf36fb032, Data 0x56d87044, Module Devs/input.device...
[ELF Loader] Code 0xf36fe1d2, Data 0x56d8704c, Module Devs/keyboard.device...
[ELF Loader] Code 0xf3700b21, Data 0x56d87054, Module Devs/Drivers/gfx.hidd...
[ELF Loader] Code 0xf372f65a, Data 0x56d87058, Module Devs/Drivers/hiddclass.hidd...
[ELF Loader] Code 0xf37328a8, Data 0x56d87060, Module Devs/Drivers/keyboard.hidd...
[ELF Loader] Code 0xf3734e4b, Data 0x56d87068, Module Devs/Drivers/mouse.hidd...
[ELF Loader] Code 0xf3737670, Data 0x56d8706c, Module Libs/aros.library...
[ELF Loader] Code 0xf3738fee, Data 0x56d87074, Module Libs/debug.library...
[ELF Loader] Code 0xf373c88f, Data 0x56d8707c, Module Libs/dos.library...
[ELF Loader] Code 0xf3763605, Data 0x56d87084, Module Libs/graphics.library...
[ELF Loader] Code 0xf3792f0e, Data 0x56d87088, Module Libs/intuition.library...
[ELF Loader] Code 0xf37ed157, Data 0x56d87090, Module Libs/keymap.library...
[ELF Loader] Code 0xf37f030c, Data 0x56d87098, Module Libs/layers.library...
[ELF Loader] Code 0xf37fc2a4, Data 0x56d870a0, Module Libs/oop.library...
[ELF Loader] Code 0xf38026b1, Data 0x56d870a8, Module Libs/utility.library...
[ELF Loader] Code 0xf380672d, Data 0x56d870b0, Module L/con-handler...
[ELF Loader] Code 0xf3810f06, Data 0x56d870b4, Module L/ram-handler...
[Bootstrap] Entering kernel at 0xf3694000...
[KRN] Protecting host process stack (0xff9bc620 - 0xff9c6620)
InitResident begin 0xf36be2c0 ("hostlib.resource")InitResident begin 0xf36cda00 ("expansion.library")InitResident begin 0xf373ba00 ("debug.library")InitResident begin 0xf36b4720 ("exec.library")InitResident begin 0xf3805240 ("utility.library")InitResident begin 0xf3738300 ("aros.library")InitResident begin 0xf36b2000 ("task.resource")InitResident begin 0xf36da760 ("bootloader.resource")InitResident begin 0xf36d2560 ("processor.resource")InitResident begin 0xf3800f20 ("oop.library")InitResident begin 0xf3731760 ("hiddclass.hidd")InitResident begin 0xf36c1d20 ("unixio.hidd")InitResident begin 0xf36dc4e0 ("FileSystem.resource")InitResident begin 0xf36d49c0 ("battclock.resource")InitResident begin 0xf372b200 ("gfx.hidd")InitResident begin 0xf378cd20 ("graphics.library")InitResident begin 0xf37fa640 ("layers.library")InitResident begin 0xf36d78e0 ("timer.device")InitResident begin 0xf3733ee0 ("keyboard.hidd")InitResident begin 0xf3736760 ("mouse.hidd")InitResident begin 0xf36f7540 ("gameport.device")InitResident begin 0xf36ffc80 ("keyboard.device")InitResident begin 0xf37eec80 ("keymap.library")InitResident begin 0xf36fd1a0 ("input.device")InitResident begin 0xf37e1c80 ("intuition.library")InitResident begin 0xf36e8c00 ("console.device")InitResident begin 0xf36ca1c0 ("emul-handler")InitResident begin 0xf36f0200 ("dosboot.resource")dosboot_Init: GO GO GO!
[Strap] ExpansionBase 0xf481c110
dosboot_BootStrap: Attempting EMU as BootBlock
dosboot_BootStrap: Attempting EMU as BootPoint
dosboot_BootStrap: Attempting EMU with DOS
InitResident begin 0xf375e260 ("dos.library")dosboot_BootStrap: DeviceNode EMU (127) was not bootable
dosboot_BootStrap: No BootBlock, BootPoint, or BootDos nodes found
No bootable disk was found.
Please insert a bootable disk in any drive.
Retrying in 3 seconds...
dosboot_BootStrap: Attempting EMU as BootBlock
dosboot_BootStrap: Attempting EMU as BootPoint
dosboot_BootStrap: Attempting EMU with DOS
InitResident begin 0xf375e260 ("dos.library")dosboot_BootStrap: DeviceNode EMU (127) was not bootable
dosboot_BootStrap: No BootBlock, BootPoint, or BootDos nodes found
No bootable disk was found.
Please insert a bootable disk in any drive.
Retrying in 3 seconds...
dosboot_BootStrap: Attempting EMU as BootBlock
dosboot_BootStrap: Attempting EMU as BootPoint
dosboot_BootStrap: Attempting EMU with DOS
InitResident begin 0xf375e260 ("dos.library")dosboot_BootStrap: DeviceNode EMU (127) was not bootable
dosboot_BootStrap: No BootBlock, BootPoint, or BootDos nodes found
No bootable disk was found.
Please insert a bootable disk in any drive.
Retrying in 3 seconds...
dosboot_BootStrap: Attempting EMU as BootBlock
dosboot_BootStrap: Attempting EMU as BootPoint
dosboot_BootStrap: Attempting EMU with DOS
InitResident begin 0xf375e260 ("dos.library")dosboot_BootStrap: DeviceNode EMU (127) was not bootable
dosboot_BootStrap: No BootBlock, BootPoint, or BootDos nodes found
No bootable disk was found.
Please insert a bootable disk in any drive.
Retrying in 3 seconds...

In case there is any more useful information from a GDB backtrace, it is here:

Code: [Select]
~/code/AROS_build/alt-abiv0-linux-i386-d/bin/linux-i386/AROS 19> gdb Arch/linux/AROSBootstrap
GNU gdb (GDB) 11.2
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from Arch/linux/AROSBootstrap...
(gdb) run
Starting program: /home/jlm/code/AROS_build/alt-abiv0-linux-i386-d/bin/linux-i386/AROS/Arch/linux/AROSBootstrap
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[Bootstrap] RAM memory block allocated: 0xf38d2000 - 0xf78d2000 (67108864 bytes)
[ELF Loader] Calculating kickstart size...
[ELF Loader] Code 1590641 bytes, data 2213 bytes, BSS array 240 bytes
[ELF Loader] Loading kickstart...
[ELF Loader] Code 0xf374d000, Data 0x565638d0, Module Arch/linux/kernel...
[ELF Loader] Code 0xf377629a, Data 0x56563e4c, Module Arch/linux/Devs/hostlib.resource...
[ELF Loader] Code 0xf3777fe5, Data 0x56563e54, Module Arch/linux/Devs/Drivers/unixio.hidd...
[ELF Loader] Code 0xf377c3e4, Data 0x56563eb8, Module Arch/linux/L/emul-handler...
[ELF Loader] Code 0xf378517a, Data 0x56563fb4, Module Arch/linux/Libs/expansion.library...
[ELF Loader] Code 0xf3788886, Data 0x56563fbc, Module Arch/linux/Devs/processor.resource...
[ELF Loader] Code 0xf378cb43, Data 0x56563ff8, Module Arch/linux/Devs/battclock.resource...
[ELF Loader] Code 0xf378e7bf, Data 0x56564010, Module Arch/linux/Devs/timer.device...
[ELF Loader] Code 0xf3792455, Data 0x56564018, Module Devs/bootloader.resource...
[ELF Loader] Code 0xf3794e89, Data 0x56564020, Module Devs/FileSystem.resource...
[ELF Loader] Code 0xf3795e65, Data 0x56564024, Module Devs/console.device...
[ELF Loader] Code 0xf37a39fc, Data 0x5656402c, Module Devs/dosboot.resource...
[ELF Loader] Code 0xf37aea86, Data 0x56564034, Module Devs/gameport.device...
[ELF Loader] Code 0xf37b13d9, Data 0x5656403c, Module Devs/lddemon.resource...
[ELF Loader] Code 0xf37b4032, Data 0x56564044, Module Devs/input.device...
[ELF Loader] Code 0xf37b71d2, Data 0x5656404c, Module Devs/keyboard.device...
[ELF Loader] Code 0xf37b9b21, Data 0x56564054, Module Devs/Drivers/gfx.hidd...
[ELF Loader] Code 0xf37e865a, Data 0x56564058, Module Devs/Drivers/hiddclass.hidd...
[ELF Loader] Code 0xf37eb8a8, Data 0x56564060, Module Devs/Drivers/keyboard.hidd...
[ELF Loader] Code 0xf37ede4b, Data 0x56564068, Module Devs/Drivers/mouse.hidd...
[ELF Loader] Code 0xf37f0670, Data 0x5656406c, Module Libs/aros.library...
[ELF Loader] Code 0xf37f1fee, Data 0x56564074, Module Libs/debug.library...
[ELF Loader] Code 0xf37f588f, Data 0x5656407c, Module Libs/dos.library...
[ELF Loader] Code 0xf381c605, Data 0x56564084, Module Libs/graphics.library...
[ELF Loader] Code 0xf384bf0e, Data 0x56564088, Module Libs/intuition.library...
[ELF Loader] Code 0xf38a6157, Data 0x56564090, Module Libs/keymap.library...
[ELF Loader] Code 0xf38a930c, Data 0x56564098, Module Libs/layers.library...
[ELF Loader] Code 0xf38b52a4, Data 0x565640a0, Module Libs/oop.library...
[ELF Loader] Code 0xf38bb6b1, Data 0x565640a8, Module Libs/utility.library...
[ELF Loader] Code 0xf38bf72d, Data 0x565640b0, Module L/con-handler...
[ELF Loader] Code 0xf38c9f06, Data 0x565640b4, Module L/ram-handler...
[Attaching after Thread 0xf7fbe540 (LWP 2422505) fork to child process 2422517]
[New inferior 2 (process 2422517)]
[Detaching after fork from parent process 2422505]
[Inferior 1 (process 2422505) detached]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[Bootstrap] Entering kernel at 0xf374d000...
[KRN] Protecting host process stack (0xffff2b70 - 0xffffcb70)
InitResident begin 0xf37772c0 ("hostlib.resource")InitResident begin 0xf3786a00 ("expansion.library")InitResident begin 0xf37f4a00 ("debug.library")InitResident begin 0xf376d720 ("exec.library")InitResident begin 0xf38be240 ("utility.library")InitResident begin 0xf37f1300 ("aros.library")InitResident begin 0xf376b000 ("task.resource")InitResident begin 0xf3793760 ("bootloader.resource")InitResident begin 0xf378b560 ("processor.resource")InitResident begin 0xf38b9f20 ("oop.library")InitResident begin 0xf37ea760 ("hiddclass.hidd")InitResident begin 0xf377ad20 ("unixio.hidd")InitResident begin 0xf37954e0 ("FileSystem.resource")InitResident begin 0xf378d9c0 ("battclock.resource")InitResident begin 0xf37e4200 ("gfx.hidd")InitResident begin 0xf3845d20 ("graphics.library")InitResident begin 0xf38b3640 ("layers.library")InitResident begin 0xf37908e0 ("timer.device")InitResident begin 0xf37ecee0 ("keyboard.hidd")InitResident begin 0xf37ef760 ("mouse.hidd")InitResident begin 0xf37b0540 ("gameport.device")InitResident begin 0xf37b8c80 ("keyboard.device")InitResident begin 0xf38a7c80 ("keymap.library")InitResident begin 0xf37b61a0 ("input.device")InitResident begin 0xf389ac80 ("intuition.library")InitResident begin 0xf37a1c00 ("console.device")InitResident begin 0xf37831c0 ("emul-handler")InitResident begin 0xf37a9200 ("dosboot.resource")dosboot_Init: GO GO GO!
[Strap] ExpansionBase 0xf48d5110
dosboot_BootStrap: Attempting EMU as BootBlock
dosboot_BootStrap: Attempting EMU as BootPoint
dosboot_BootStrap: Attempting EMU with DOS
InitResident begin 0xf3817260 ("dos.library")dosboot_BootStrap: DeviceNode EMU (127) was not bootable
dosboot_BootStrap: No BootBlock, BootPoint, or BootDos nodes found
No bootable disk was found.
Please insert a bootable disk in any drive.
Retrying in 3 seconds...
dosboot_BootStrap: Attempting EMU as BootBlock
dosboot_BootStrap: Attempting EMU as BootPoint
dosboot_BootStrap: Attempting EMU with DOS
InitResident begin 0xf3817260 ("dos.library")dosboot_BootStrap: DeviceNode EMU (127) was not bootable
dosboot_BootStrap: No BootBlock, BootPoint, or BootDos nodes found
No bootable disk was found.
Please insert a bootable disk in any drive.
Retrying in 3 seconds...
^C
Thread 2.1 "AROSBootstrap" received signal SIGINT, Interrupt.
[Switching to Thread 0xf7fbe540 (LWP 2422517)]
0xf7fc3549 in __kernel_vsyscall ()
(gdb) loadbt
Checking frame #0
Checking frame #1
Checking frame #2

add symbol table from file "Arch/linux/kernel" at
.text_addr = 0xf374d000
.rodata_addr = 0xf376cc00
.data_addr = 0x565638e0
.eh_frame_addr = 0x56563948
.bss_addr = 0x56563a40
Checking frame #3
Checking frame #4
Checking frame #5
Checking frame #6
Checking frame #7
Checking frame #8
Checking frame #9
Checking frame #10
Checking frame #11
Checking frame #12
Checking frame #13

add symbol table from file "Devs/input.device" at
.text_addr = 0xf37b4040
.rodata_addr = 0xf37b6240
.eh_frame_addr = 0x56564044
.bss_addr = 0x56564048
Checking frame #14
Checking frame #15
Checking frame #16
No matching module for this address
Checking frame #17
(gdb) bt
#0  0xf7fc3549 in __kernel_vsyscall ()
#1  0xf7d87363 in sigsuspend () from /usr/lib32/libc.so.6
#2  0xf374dd2a in cpu_Dispatch (regs=0xf4929db4) at /home/jlm/code/AROS_build/AROS/arch/all-unix/kernel/kernel_cpu.c:97
#3  0xf374e072 in core_SysCall (sig=10, regs=0xf4929db4) at /home/jlm/code/AROS_build/AROS/arch/all-unix/kernel/kernel_intr.c:98
#4  0xf374e5a0 in core_SysCall_gate (sig=10) at /home/jlm/code/AROS_build/AROS/arch/all-unix/kernel/kernel.c:129
#5  <signal handler called>
#6  0xf7fc3549 in __kernel_vsyscall ()
#7  0xf7dd8247 in __pthread_kill_implementation () from /usr/lib32/libc.so.6
#8  0xf7d87027 in raise () from /usr/lib32/libc.so.6
#9  0xf374e96c in unix_SysCall (n=2 '\002', KernelBase=0xf48d3f44)
    at /home/jlm/code/AROS_build/AROS/arch/all-unix/kernel/kernel.c:301
#10 0xf37554e1 in Kernel_5_KrnSwitch (KernelBase=0xf48d3f44) at /home/jlm/code/AROS_build/AROS/rom/kernel/./switch.c:57
#11 0xf3761a4e in __inline_Kernel_KrnSwitch (__KernelBase=0xf48d3f44)
    at /home/jlm/code/AROS_build/alt-abiv0-linux-i386-d/bin/linux-i386/AROS/Development/include/inline/kernel.h:81
#12 0xf3761ac9 in Exec_53_Wait (signalSet=4128768, SysBase=0xf48d31e0) at /home/jlm/code/AROS_build/AROS/rom/exec/./wait.c:97
#13 0xf37b475f in __inline_Exec_Wait (__arg1=4128768, __SysBase=0xf48d31e0)
    at /home/jlm/code/AROS_build/alt-abiv0-linux-i386-d/bin/linux-i386/AROS/Development/include/inline/exec.h:708
#14 0xf37b4fab in ProcessEvents (InputDevice=0xf491dcc0) at /home/jlm/code/AROS_build/AROS/rom/devs/input/./processevents.c:266
#15 0xf3757202 in __inline_Exec_InitSemaphore (__arg1=0xf491ddf0, __SysBase=0x10)
    at /home/jlm/code/AROS_build/alt-abiv0-linux-i386-d/bin/linux-i386/gen/rom/exec/include/inline/exec.h:1321
#16 0xf491dcc0 in ?? ()
« Last Edit: May 05, 2022, 06:18:29 AM by ascendant »



ascendant

  • Newbie
  • *
    • Posts: 38
    • Karma: +2/-0
Reply #21 on: May 05, 2022, 06:25:44 AM
I wonder if the problem is due to the fact that this processor is old enough that it does not have virtualization extensions.

I was able to get Icaros desktop running in Qemu, but it is not hardware accelerated.



magorium

  • Legendary Member
  • *****
    • Posts: 632
    • Karma: +62/-0
  • Convicted non contributor
Reply #22 on: May 05, 2022, 08:07:04 AM
I wonder if the problem is due to the fact that this processor is old enough that it does not have virtualization extensions.
fwiw age has nothing to do with virtualization. I have a 12+ year old core i3 that does have virtualization extensions.

Also fwiw: I am able to run Icaros Desktop native on a Pentium I (although admittingly it has been a while).

Is AROS now stuck on finding a valid boot-device ? I haven't seen that one yet on hosted. There seems to be a first time for everything  :D


AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3740
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #23 on: May 05, 2022, 11:46:12 AM
@ascendant

Why don't you use Native AROS x86? even without acceleration native AROS x86 is very fast even on a DualCore, the operating system boots in seconds!

I would say that AROS x86 is also very fast on VM, with VMware, and VirtualBox everything is supported except the Graphics Card, but the VESA mode is still very good and fast.


deadwood

  • AROS Developer
  • Legendary Member
  • *****
    • Posts: 1524
    • Karma: +118/-0
Reply #24 on: May 05, 2022, 11:46:47 PM
@ascendant

It is as I thought that booting from disk does not happen for some reason in your case. Like @magorium said, quite unusual.

First, please revert the changes you did to emul-handler

Code: [Select]
#ifndef _STAT_VER
#define _STAT_VER 0
#endif

and apply these changes instead

https://github.com/deadw00d/AROS/commit/3e844d86a814e9773c5a26c8a6393bd3637d93aa

"make" and let us know what's the result.



ascendant

  • Newbie
  • *
    • Posts: 38
    • Karma: +2/-0
Reply #25 on: May 06, 2022, 07:51:46 AM
I don't know how deeply AROS hooks into the computer's hardware, but I'm running it on a regular HDD. The partition size is nearly 600Gigs, and is formatted to EXT4.

Code: [Select]
~/code/AROS_build/alt-abiv0-linux-i386-d/bin/linux-i386/AROS 24> gdb Arch/linux/AROSBootstrap
GNU gdb (GDB) 11.2
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from Arch/linux/AROSBootstrap...
(gdb) run
Starting program: /home/jlm/code/AROS_build/alt-abiv0-linux-i386-d/bin/linux-i386/AROS/Arch/linux/AROSBootstrap
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[Bootstrap] RAM memory block allocated: 0xf3af9000 - 0xf7af9000 (67108864 bytes)
[ELF Loader] Calculating kickstart size...
[ELF Loader] Code 1590577 bytes, data 2213 bytes, BSS array 240 bytes
[ELF Loader] Loading kickstart...
[ELF Loader] Code 0xf3974000, Data 0x565638d0, Module Arch/linux/kernel...
[ELF Loader] Code 0xf399d29a, Data 0x56563e4c, Module Arch/linux/Devs/hostlib.resource...
[ELF Loader] Code 0xf399efe5, Data 0x56563e54, Module Arch/linux/Devs/Drivers/unixio.hidd...
[ELF Loader] Code 0xf39a33e4, Data 0x56563eb8, Module Arch/linux/L/emul-handler...
[ELF Loader] Code 0xf39ac13a, Data 0x56563fb4, Module Arch/linux/Libs/expansion.library...
[ELF Loader] Code 0xf39af846, Data 0x56563fbc, Module Arch/linux/Devs/processor.resource...
[ELF Loader] Code 0xf39b3b03, Data 0x56563ff8, Module Arch/linux/Devs/battclock.resource...
[ELF Loader] Code 0xf39b577f, Data 0x56564010, Module Arch/linux/Devs/timer.device...
[ELF Loader] Code 0xf39b9415, Data 0x56564018, Module Devs/bootloader.resource...
[ELF Loader] Code 0xf39bbe49, Data 0x56564020, Module Devs/FileSystem.resource...
[ELF Loader] Code 0xf39bce25, Data 0x56564024, Module Devs/console.device...
[ELF Loader] Code 0xf39ca9bc, Data 0x5656402c, Module Devs/dosboot.resource...
[ELF Loader] Code 0xf39d5a46, Data 0x56564034, Module Devs/gameport.device...
[ELF Loader] Code 0xf39d8399, Data 0x5656403c, Module Devs/lddemon.resource...
[ELF Loader] Code 0xf39daff2, Data 0x56564044, Module Devs/input.device...
[ELF Loader] Code 0xf39de192, Data 0x5656404c, Module Devs/keyboard.device...
[ELF Loader] Code 0xf39e0ae1, Data 0x56564054, Module Devs/Drivers/gfx.hidd...
[ELF Loader] Code 0xf3a0f61a, Data 0x56564058, Module Devs/Drivers/hiddclass.hidd...
[ELF Loader] Code 0xf3a12868, Data 0x56564060, Module Devs/Drivers/keyboard.hidd...
[ELF Loader] Code 0xf3a14e0b, Data 0x56564068, Module Devs/Drivers/mouse.hidd...
[ELF Loader] Code 0xf3a17630, Data 0x5656406c, Module Libs/aros.library...
[ELF Loader] Code 0xf3a18fae, Data 0x56564074, Module Libs/debug.library...
[ELF Loader] Code 0xf3a1c84f, Data 0x5656407c, Module Libs/dos.library...
[ELF Loader] Code 0xf3a435c5, Data 0x56564084, Module Libs/graphics.library...
[ELF Loader] Code 0xf3a72ece, Data 0x56564088, Module Libs/intuition.library...
[ELF Loader] Code 0xf3acd117, Data 0x56564090, Module Libs/keymap.library...
[ELF Loader] Code 0xf3ad02cc, Data 0x56564098, Module Libs/layers.library...
[ELF Loader] Code 0xf3adc264, Data 0x565640a0, Module Libs/oop.library...
[ELF Loader] Code 0xf3ae2671, Data 0x565640a8, Module Libs/utility.library...
[ELF Loader] Code 0xf3ae66ed, Data 0x565640b0, Module L/con-handler...
[ELF Loader] Code 0xf3af0ec6, Data 0x565640b4, Module L/ram-handler...
[Attaching after Thread 0xf7fbe480 (LWP 1830254) fork to child process 1830258]
[New inferior 2 (process 1830258)]
[Detaching after fork from parent process 1830254]
[Inferior 1 (process 1830254) detached]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[Bootstrap] Entering kernel at 0xf3974000...
[KRN] Protecting host process stack (0xffff2b30 - 0xffffcb30)
InitResident begin 0xf399e2c0 ("hostlib.resource")InitResident begin 0xf39ad9c0 ("expansion.library")InitResident begin 0xf3a1b9c0 ("debug.library")InitResident begin 0xf3994720 ("exec.library")InitResident begin 0xf3ae5200 ("utility.library")InitResident begin 0xf3a182c0 ("aros.library")InitResident begin 0xf3992000 ("task.resource")InitResident begin 0xf39ba720 ("bootloader.resource")InitResident begin 0xf39b2520 ("processor.resource")InitResident begin 0xf3ae0ee0 ("oop.library")InitResident begin 0xf3a11720 ("hiddclass.hidd")InitResident begin 0xf39a1d20 ("unixio.hidd")InitResident begin 0xf39bc4a0 ("FileSystem.resource")InitResident begin 0xf39b4980 ("battclock.resource")InitResident begin 0xf3a0b1c0 ("gfx.hidd")InitResident begin 0xf3a6cce0 ("graphics.library")InitResident begin 0xf3ada600 ("layers.library")InitResident begin 0xf39b78a0 ("timer.device")InitResident begin 0xf3a13ea0 ("keyboard.hidd")InitResident begin 0xf3a16720 ("mouse.hidd")InitResident begin 0xf39d7500 ("gameport.device")InitResident begin 0xf39dfc40 ("keyboard.device")InitResident begin 0xf3acec40 ("keymap.library")InitResident begin 0xf39dd160 ("input.device")InitResident begin 0xf3ac1c40 ("intuition.library")InitResident begin 0xf39c8bc0 ("console.device")InitResident begin 0xf39aa180 ("emul-handler")InitResident begin 0xf39d01c0 ("dosboot.resource")dosboot_Init: GO GO GO!
[Strap] ExpansionBase 0xf4afc110
dosboot_BootStrap: Attempting EMU as BootBlock
dosboot_BootStrap: Attempting EMU as BootPoint
dosboot_BootStrap: Attempting EMU with DOS
InitResident begin 0xf3a3e220 ("dos.library")InitResident begin 0xf39d4060 ("DOSBoot cleanup")InitResident begin 0xf39da360 ("lddemon.resource")InitResident begin 0xf3aeece0 ("con-handler")InitResident begin 0xf3af71a0 ("ram-handler")InitResident begin 0xf39aa200 ("Emergency console")InitResident begin 0xf4c15000 ("icon.library")InitResident begin 0xf4c22f60 ("iffparse.library")InitResident begin 0xf4c694a0 ("stdc.library")InitResident begin 0xf4c472a0 ("autoinit.library")InitResident begin 0xf4caf080 ("x11gfx.hidd")[X11] BitMap class @ 0xf4b3dcf4

Thread 2.1 "AROSBootstrap" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xf7fbe480 (LWP 1830258)]
0xf3817fe0 in _XSend () from /usr/lib32/libX11.so.6
(gdb) loadbt
Checking frame #0
Checking frame #1
Checking frame #2
Checking frame #3

add symbol table from file "Devs/Drivers/x11gfx.hidd" at
.text_addr = 0xf4ca2fc0
.rodata_addr = 0xf4caf3e0
.data_addr = 0xf4cb0960
.eh_frame_addr = 0xf4c37f28
.bss_addr = 0xf4cb1a00
Checking frame #4

add symbol table from file "Arch/linux/kernel" at
.text_addr = 0xf3974000
.rodata_addr = 0xf3993c00
.data_addr = 0x565638e0
.eh_frame_addr = 0x56563948
.bss_addr = 0x56563a40
Checking frame #5
No matching module for this address
Checking frame #6
(gdb) bt
#0  0xf3817fe0 in _XSend () from /usr/lib32/libX11.so.6
#1  0xf381dff4 in _XReply () from /usr/lib32/libX11.so.6
#2  0xf381e576 in XSync () from /usr/lib32/libX11.so.6
#3  0xf4ca554a in x11task_entry (xtpparam=0xf4c9cbec) at /home/jlm/code/AROS_build/AROS/arch/all-hosted/hidd/x11/./x11.c:311
#4  0xf397e202 in __inline_Exec_InitSemaphore (__arg1=0x0, __SysBase=0x0)
    at /home/jlm/code/AROS_build/alt-abiv0-linux-i386-d/bin/linux-i386/gen/rom/exec/include/inline/exec.h:1321
#5  0xf4c9cbec in ?? ()



deadwood

  • AROS Developer
  • Legendary Member
  • *****
    • Posts: 1524
    • Karma: +118/-0
Reply #26 on: May 06, 2022, 09:43:34 AM
The hosted version uses just the linux C library file system functions. Native version talks to hardware directly.

Good new - with the last change we moved past booting from "disk" and now get a crash in graphics driver. No go to AROS/arch/all-hosted/hidd/x11/x11_debug.h and change DEBUG 0 to DEBUG 1. "make" and let's see the log :)



ascendant

  • Newbie
  • *
    • Posts: 38
    • Karma: +2/-0
Reply #27 on: May 06, 2022, 11:29:20 AM
It seems to have trouble creating the window. I'm running the XFWM4 window manager in conjunction with XFCE. This on an AMD Radeon RX480.

Code: [Select]
~/code/AROS_build/alt-abiv0-linux-i386-d/bin/linux-i386/AROS 31> gdb Arch/linux/AROSBootstrap
GNU gdb (GDB) 11.2
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from Arch/linux/AROSBootstrap...
(gdb) run
Starting program: /home/jlm/code/AROS_build/alt-abiv0-linux-i386-d/bin/linux-i386/AROS/Arch/linux/AROSBootstrap
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[Bootstrap] RAM memory block allocated: 0xf3af9000 - 0xf7af9000 (67108864 bytes)
[ELF Loader] Calculating kickstart size...
[ELF Loader] Code 1590577 bytes, data 2213 bytes, BSS array 240 bytes
[ELF Loader] Loading kickstart...
[ELF Loader] Code 0xf3974000, Data 0x565638d0, Module Arch/linux/kernel...
[ELF Loader] Code 0xf399d29a, Data 0x56563e4c, Module Arch/linux/Devs/hostlib.resource...
[ELF Loader] Code 0xf399efe5, Data 0x56563e54, Module Arch/linux/Devs/Drivers/unixio.hidd...
[ELF Loader] Code 0xf39a33e4, Data 0x56563eb8, Module Arch/linux/L/emul-handler...
[ELF Loader] Code 0xf39ac13a, Data 0x56563fb4, Module Arch/linux/Libs/expansion.library...
[ELF Loader] Code 0xf39af846, Data 0x56563fbc, Module Arch/linux/Devs/processor.resource...
[ELF Loader] Code 0xf39b3b03, Data 0x56563ff8, Module Arch/linux/Devs/battclock.resource...
[ELF Loader] Code 0xf39b577f, Data 0x56564010, Module Arch/linux/Devs/timer.device...
[ELF Loader] Code 0xf39b9415, Data 0x56564018, Module Devs/bootloader.resource...
[ELF Loader] Code 0xf39bbe49, Data 0x56564020, Module Devs/FileSystem.resource...
[ELF Loader] Code 0xf39bce25, Data 0x56564024, Module Devs/console.device...
[ELF Loader] Code 0xf39ca9bc, Data 0x5656402c, Module Devs/dosboot.resource...
[ELF Loader] Code 0xf39d5a46, Data 0x56564034, Module Devs/gameport.device...
[ELF Loader] Code 0xf39d8399, Data 0x5656403c, Module Devs/lddemon.resource...
[ELF Loader] Code 0xf39daff2, Data 0x56564044, Module Devs/input.device...
[ELF Loader] Code 0xf39de192, Data 0x5656404c, Module Devs/keyboard.device...
[ELF Loader] Code 0xf39e0ae1, Data 0x56564054, Module Devs/Drivers/gfx.hidd...
[ELF Loader] Code 0xf3a0f61a, Data 0x56564058, Module Devs/Drivers/hiddclass.hidd...
[ELF Loader] Code 0xf3a12868, Data 0x56564060, Module Devs/Drivers/keyboard.hidd...
[ELF Loader] Code 0xf3a14e0b, Data 0x56564068, Module Devs/Drivers/mouse.hidd...
[ELF Loader] Code 0xf3a17630, Data 0x5656406c, Module Libs/aros.library...
[ELF Loader] Code 0xf3a18fae, Data 0x56564074, Module Libs/debug.library...
[ELF Loader] Code 0xf3a1c84f, Data 0x5656407c, Module Libs/dos.library...
[ELF Loader] Code 0xf3a435c5, Data 0x56564084, Module Libs/graphics.library...
[ELF Loader] Code 0xf3a72ece, Data 0x56564088, Module Libs/intuition.library...
[ELF Loader] Code 0xf3acd117, Data 0x56564090, Module Libs/keymap.library...
[ELF Loader] Code 0xf3ad02cc, Data 0x56564098, Module Libs/layers.library...
[ELF Loader] Code 0xf3adc264, Data 0x565640a0, Module Libs/oop.library...
[ELF Loader] Code 0xf3ae2671, Data 0x565640a8, Module Libs/utility.library...
[ELF Loader] Code 0xf3ae66ed, Data 0x565640b0, Module L/con-handler...
[ELF Loader] Code 0xf3af0ec6, Data 0x565640b4, Module L/ram-handler...
[Attaching after Thread 0xf7fbe480 (LWP 1881638) fork to child process 1881642]
[New inferior 2 (process 1881642)]
[Detaching after fork from parent process 1881638]
[Inferior 1 (process 1881638) detached]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[Bootstrap] Entering kernel at 0xf3974000...
[KRN] Protecting host process stack (0xffff2b30 - 0xffffcb30)
InitResident begin 0xf399e2c0 ("hostlib.resource")InitResident begin 0xf39ad9c0 ("expansion.library")InitResident begin 0xf3a1b9c0 ("debug.library")InitResident begin 0xf3994720 ("exec.library")InitResident begin 0xf3ae5200 ("utility.library")InitResident begin 0xf3a182c0 ("aros.library")InitResident begin 0xf3992000 ("task.resource")InitResident begin 0xf39ba720 ("bootloader.resource")InitResident begin 0xf39b2520 ("processor.resource")InitResident begin 0xf3ae0ee0 ("oop.library")InitResident begin 0xf3a11720 ("hiddclass.hidd")InitResident begin 0xf39a1d20 ("unixio.hidd")InitResident begin 0xf39bc4a0 ("FileSystem.resource")InitResident begin 0xf39b4980 ("battclock.resource")InitResident begin 0xf3a0b1c0 ("gfx.hidd")InitResident begin 0xf3a6cce0 ("graphics.library")InitResident begin 0xf3ada600 ("layers.library")InitResident begin 0xf39b78a0 ("timer.device")InitResident begin 0xf3a13ea0 ("keyboard.hidd")InitResident begin 0xf3a16720 ("mouse.hidd")InitResident begin 0xf39d7500 ("gameport.device")InitResident begin 0xf39dfc40 ("keyboard.device")InitResident begin 0xf3acec40 ("keymap.library")InitResident begin 0xf39dd160 ("input.device")InitResident begin 0xf3ac1c40 ("intuition.library")InitResident begin 0xf39c8bc0 ("console.device")InitResident begin 0xf39aa180 ("emul-handler")InitResident begin 0xf39d01c0 ("dosboot.resource")dosboot_Init: GO GO GO!
[Strap] ExpansionBase 0xf4afc110
dosboot_BootStrap: Attempting EMU as BootBlock
dosboot_BootStrap: Attempting EMU as BootPoint
dosboot_BootStrap: Attempting EMU with DOS
InitResident begin 0xf3a3e220 ("dos.library")InitResident begin 0xf39d4060 ("DOSBoot cleanup")InitResident begin 0xf39da360 ("lddemon.resource")InitResident begin 0xf3aeece0 ("con-handler")InitResident begin 0xf3af71a0 ("ram-handler")InitResident begin 0xf39aa200 ("Emergency console")InitResident begin 0xf4c15000 ("icon.library")InitResident begin 0xf4c22f60 ("iffparse.library")InitResident begin 0xf4c694a0 ("stdc.library")InitResident begin 0xf4c472a0 ("autoinit.library")InitResident begin 0xf4cb0520 ("x11gfx.hidd")[X11host] x11_hostlib_init()
[X11host] x11_hostlib_load_so('libXcursor.so.1')
[X11host] x11_hostlib_load_so: attempting to load 3 functions
[X11host] x11_hostlib_load_so: 0xf7fb37e0 = 'XcursorImageCreate'
[X11host] x11_hostlib_load_so: 0xf7fb3870 = 'XcursorImageDestroy'
[X11host] x11_hostlib_load_so: 0xf7fb2670 = 'XcursorImageLoadCursor'
[X11host] x11_hostlib_load_so('libXxf86vm.so.1')
[X11host] x11_hostlib_load_so: attempting to load 5 functions
[X11host] x11_hostlib_load_so: 0xf7f86480 = 'XF86VidModeGetAllModeLines'
[X11host] x11_hostlib_load_so: 0xf7f874f0 = 'XF86VidModeSwitchToMode'
[X11host] x11_hostlib_load_so: 0xf7f87e40 = 'XF86VidModeSetViewPort'
[X11host] x11_hostlib_load_so: 0xf7f85e40 = 'XF86VidModeQueryVersion'
[X11host] x11_hostlib_load_so: 0xf7f85d50 = 'XF86VidModeQueryExtension'
[X11host] x11_hostlib_load_so('libX11.so.6')
[X11host] x11_hostlib_load_so: attempting to load 82 functions
[X11host] x11_hostlib_load_so: 0xf37feac0 = 'XCreateImage'
[X11host] x11_hostlib_load_so: 0xf37ff2c0 = 'XInitImage'
[X11host] x11_hostlib_load_so: 0xf37fbe50 = 'XGetImage'
[X11host] x11_hostlib_load_so: 0xf3806620 = 'XOpenDisplay'
[X11host] x11_hostlib_load_so: 0xf37f2b40 = 'XDisplayName'
[X11host] x11_hostlib_load_so: 0xf3802590 = 'XInternAtom'
[X11host] x11_hostlib_load_so: 0xf37f93d0 = 'XCreateColormap'
[X11host] x11_hostlib_load_so: 0xf37f4260 = 'XCreatePixmapCursor'
[X11host] x11_hostlib_load_so: 0xf37f9480 = 'XCreateFontCursor'
[X11host] x11_hostlib_load_so: 0xf37f64a0 = 'XCreateGC'
[X11host] x11_hostlib_load_so: 0xf37f45a0 = 'XCreatePixmap'
[X11host] x11_hostlib_load_so: 0xf37f4670 = 'XCreateSimpleWindow'
[X11host] x11_hostlib_load_so: 0xf381dae0 = 'XCreateWindow'
[X11host] x11_hostlib_load_so: 0xf3866940 = 'XLookupKeysym'
[X11host] x11_hostlib_load_so: 0xf3800d90 = 'XMaxRequestSize'
[X11host] x11_hostlib_load_so: 0xf3800df0 = 'XVisualIDFromVisual'
[X11host] x11_hostlib_load_so: 0xf37f2b90 = 'XSetErrorHandler'
[X11host] x11_hostlib_load_so: 0xf37f2c20 = 'XSetIOErrorHandler'
[X11host] x11_hostlib_load_so: 0xf38113a0 = 'XSetWMHints'
[X11host] x11_hostlib_load_so: 0xf37fc940 = 'XGetWMHints'
[X11host] x11_hostlib_load_so: 0xf3811970 = 'XSetWMNormalHints'
[X11host] x11_hostlib_load_so: 0xf3811c40 = 'XSetWMProtocols'
[X11host] x11_hostlib_load_so: 0xf37f5e30 = 'XAutoRepeatOff'
[X11host] x11_hostlib_load_so: 0xf37f5dd0 = 'XAutoRepeatOn'
[X11host] x11_hostlib_load_so: 0xf37f6680 = 'XChangeGC'
[X11host] x11_hostlib_load_so: 0xf37f5e90 = 'XChangeProperty'
[X11host] x11_hostlib_load_so: 0xf37f8e30 = 'XChangeWindowAttributes'
[X11host] x11_hostlib_load_so: 0xf37f4000 = 'XClearArea'
[X11host] x11_hostlib_load_so: 0xf37f8ed0 = 'XCloseDisplay'
[X11host] x11_hostlib_load_so: 0xf380dd00 = 'XConfigureWindow'
[X11host] x11_hostlib_load_so: 0xf37f41d0 = 'XConvertSelection'
[X11host] x11_hostlib_load_so: 0xf37f6720 = 'XCopyArea'
[X11host] x11_hostlib_load_so: 0xf37f6a30 = 'XCopyPlane'
[X11host] x11_hostlib_load_so: 0xf37f4740 = 'XDefineCursor'
[X11host] x11_hostlib_load_so: 0xf37f47c0 = 'XDeleteProperty'
[X11host] x11_hostlib_load_so: 0xf37f48c0 = 'XDestroyWindow'
[X11host] x11_hostlib_load_so: 0xf37f6b40 = 'XDrawArc'
[X11host] x11_hostlib_load_so: 0xf37f6c10 = 'XDrawLine'
[X11host] x11_hostlib_load_so: 0xf37f6d40 = 'XDrawPoint'
[X11host] x11_hostlib_load_so: 0xf381d0f0 = 'XDrawString'
[X11host] x11_hostlib_load_so: 0xf3807c30 = 'XEventsQueued'
[X11host] x11_hostlib_load_so: 0xf37f70a0 = 'XFillRectangle'
[X11host] x11_hostlib_load_so: 0xf37f8500 = 'XFlush'
[X11host] x11_hostlib_load_so: 0xf38192f0 = 'XFree'
[X11host] x11_hostlib_load_so: 0xf37fad60 = 'XFreeColormap'
[X11host] x11_hostlib_load_so: 0xf37f4aa0 = 'XFreeGC'
[X11host] x11_hostlib_load_so: 0xf37f4b60 = 'XFreePixmap'
[X11host] x11_hostlib_load_so: 0xf37f97b0 = 'XGetErrorText'
[X11host] x11_hostlib_load_so: 0xf3818db0 = 'XGetVisualInfo'
[X11host] x11_hostlib_load_so: 0xf37fc380 = 'XGetWindowProperty'
[X11host] x11_hostlib_load_so: 0xf37f9f30 = 'XGetWindowAttributes'
[X11host] x11_hostlib_load_so: 0xf37f5710 = 'XGrabKeyboard'
[X11host] x11_hostlib_load_so: 0xf37f5880 = 'XGrabPointer'
[X11host] x11_hostlib_load_so: 0xf3802360 = 'XMapRaised'
[X11host] x11_hostlib_load_so: 0xf3802480 = 'XMapWindow'
[X11host] x11_hostlib_load_so: 0xf3805cc0 = 'XNextEvent'
[X11host] x11_hostlib_load_so: 0xf38010b0 = 'XParseGeometry'
[X11host] x11_hostlib_load_so: 0xf3807cc0 = 'XPending'
[X11host] x11_hostlib_load_so: 0xf380f4a0 = 'XPutImage'
[X11host] x11_hostlib_load_so: 0xf380c430 = 'XRecolorCursor'
[X11host] x11_hostlib_load_so: 0xf3866e30 = 'XRefreshKeyboardMapping'
[X11host] x11_hostlib_load_so: 0xf380c630 = 'XSelectInput'
[X11host] x11_hostlib_load_so: 0xf380c6b0 = 'XSendEvent'
[X11host] x11_hostlib_load_so: 0xf380be10 = 'XSetBackground'
[X11host] x11_hostlib_load_so: 0xf380d900 = 'XSetClipMask'
[X11host] x11_hostlib_load_so: 0xf380e180 = 'XSetClipRectangles'
[X11host] x11_hostlib_load_so: 0xf37f31c0 = 'XSetFillStyle'
[X11host] x11_hostlib_load_so: 0xf380bf00 = 'XSetForeground'
[X11host] x11_hostlib_load_so: 0xf380bf70 = 'XSetFunction'
[X11host] x11_hostlib_load_so: 0xf3811eb0 = 'XSetIconName'
[X11host] x11_hostlib_load_so: 0xf380c870 = 'XSetSelectionOwner'
[X11host] x11_hostlib_load_so: 0xf380c980 = 'XStoreColor'
[X11host] x11_hostlib_load_so: 0xf3811d20 = 'XStoreName'
[X11host] x11_hostlib_load_so: 0xf381e520 = 'XSync'
[X11host] x11_hostlib_load_so: 0xf37f4e90 = 'XAllocColor'
[X11host] x11_hostlib_load_so: 0xf3867440 = 'XLookupString'
[X11host] x11_hostlib_load_so: 0xf380fae0 = 'XQueryExtension'
[X11host] x11_hostlib_load_so: 0xf3800890 = 'XDefaultScreen'
[X11host] x11_hostlib_load_so: 0xf3800870 = 'XRootWindow'
[X11host] x11_hostlib_load_so: 0xf3809940 = 'XAllocClassHint'
[X11host] x11_hostlib_load_so: 0xf38116e0 = 'XSetClassHint'
[X11host] x11_hostlib_load_so: 0xf380c7f0 = 'XSetInputFocus'
[X11host] x11_hostlib_load_so('libc.so.6')
[X11host] x11_hostlib_load_so: attempting to load 6 functions
[X11host] x11_hostlib_load_so: 0xf7e711d0 = 'ftok'
[X11host] x11_hostlib_load_so: 0xf7e72220 = 'shmctl'
[X11host] x11_hostlib_load_so: 0xf7e71f70 = 'shmget'
[X11host] x11_hostlib_load_so: 0xf7e71e90 = 'shmat'
[X11host] x11_hostlib_load_so: 0xf7e71f10 = 'shmdt'
[X11host] x11_hostlib_load_so: 0xf7d85000 = 'raise'
[X11Gfx] x11gfx_init: initialising semaphore @ 0xf4c42f0c
[x11] xext hostlib init
[X11host] x11_hostlib_load_so('libXext.so.6')
[X11host] x11_hostlib_load_so: attempting to load 6 functions
[X11host] x11_hostlib_load_so: 0xf37a58c0 = 'XShmDetach'
[X11host] x11_hostlib_load_so: 0xf37a5aa0 = 'XShmPutImage'
[X11host] x11_hostlib_load_so: 0xf37a5c30 = 'XShmGetImage'
[X11host] x11_hostlib_load_so: 0xf37a5970 = 'XShmCreateImage'
[X11host] x11_hostlib_load_so: 0xf37a5570 = 'XShmQueryVersion'
[X11host] x11_hostlib_load_so: 0xf37a57e0 = 'XShmAttach'
[X11] X11_Startup()
[X11_Startup] GfxBase 0xf4b3f970
X11Kbd::New()
tstate: f4c9d178, tag=3c00
Got tag 15360, data f3a13618
Kbd hidd tag
Got callback f3a13618
Got tag 15361, data f4b440d8
Kbd hidd tag
Got data f4b440d8
Got tag 3075, data f4cb093d
Got tag 3076, data f4cb0944
Got tag 3082, data f4cb095c
Exit X11Kbd::New=f4c43634
[X11Mouse] New()
[X11Gfx] X11Cl__Root__New()
[X11Gfx] initx11stuff()
[X11] X11_Init()
[X11] X11_Init: X display @ 0x565b7a30
[X11] X11_Init: option DELAYXWINMAPPING
[X11] create_x11task()
[X11] create_x11task: task @ 0xf4c437a0
[X11] x11task_entry()
[X11] x11task_entry: notification port @ 0xf4c43c40
[X11] x11task_entry: notification signal = 00010000 (bit 16)
[X11] create_x11task: got ok signal
[X11] initclasses()
[X11] X11_Init: task & classes initialized

[X11Gfx] initx11stuff: Display Depth = 24bit (Default = 24bit)
Exit initx11stuff=TRUE
[X11Gfx] Found 16 modes, table at 0x565DA6B0
Calling super method
Super method returned
[X11] BitMap class @ 0xf4b3dcf4
x11_func.XCreateFontCursor(f37f9480), display(565b7a30)
[X11Gfx] Got object from super
Exit X11Gfx::New=f4ca0804
[X11Gfx] X11Cl__Root__Get()
[X11Gfx] X11Cl__Root__Get()
[X11Gfx] X11Cl__Root__Get()
[X11Gfx] X11Cl__Root__Get()
[X11Gfx] X11Cl__Root__Get()
[X11Gfx] X11Cl__Root__Get()
[X11Gfx] X11Cl__Root__Get()
[X11Gfx] X11Cl__Root__Get()
[X11Gfx] X11Cl__Root__Get()
[X11Gfx] X11Cl__Root__Get()
[X11Gfx] X11Cl__Root__Get()
[X11Gfx] X11Cl__Root__Get()
[X11Gfx] X11Cl__Root__Get()
[X11Gfx] X11Cl__Root__Get()
[X11Gfx] X11Cl__Root__Get()
[X11Gfx] X11Cl__Hidd_Gfx__CreateObject()
[X11Bm] X11BM__Root__New()
[X11Gfx] X11Cl__Root__Get()
[X11Bm] X11BM__Root__New: display @ 0x565b7a30, screen #0
[X11Bm] X11BM__Root__New: cursor @ 0x05c00007, colormap @ 0x00000020
[X11OnBm] X11BM_InitFB()
[X11OnBm] ModeID 0x00000000, driver @ 0xf4ca0804
[X11OnBm] Framebuffer window size 1920x1080x24
Creating XWindow: root win=000006c0
[X11OnBm] X Window @ 0x05c00009
[X11OnBm] init_icon()
[X11OnBm] X11BM_NotifyFB()
[X11] X11BM_NotifyFB: notifying port @ 0xf4c43c40
[X11] x11task_entry: notification signal received
[X11] x11task_entry: NOTY_WINCREATE

Thread 2.1 "AROSBootstrap" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xf7fbe480 (LWP 1881642)]
0xf3817fe0 in _XSend () from /usr/lib32/libX11.so.6
(gdb) loadbt
Checking frame #0
Checking frame #1
Checking frame #2
Checking frame #3

add symbol table from file "Devs/Drivers/x11gfx.hidd" at
.text_addr = 0xf4ca2fc0
.rodata_addr = 0xf4cb07e0
.data_addr = 0xf4cb31e0
.eh_frame_addr = 0xf4c37f28
.bss_addr = 0xf4cb4280
Checking frame #4

add symbol table from file "Arch/linux/kernel" at
.text_addr = 0xf3974000
.rodata_addr = 0xf3993c00
.data_addr = 0x565638e0
.eh_frame_addr = 0x56563948
.bss_addr = 0x56563a40
Checking frame #5
No matching module for this address
Checking frame #6
(gdb) bt
#0  0xf3817fe0 in _XSend () from /usr/lib32/libX11.so.6
#1  0xf381dff4 in _XReply () from /usr/lib32/libX11.so.6
#2  0xf381e576 in XSync () from /usr/lib32/libX11.so.6
#3  0xf4ca591e in x11task_entry (xtpparam=0xf4c9cbec) at /home/jlm/code/AROS_build/AROS/arch/all-hosted/hidd/x11/./x11.c:311
#4  0xf397e202 in __inline_Exec_InitSemaphore (__arg1=0x0, __SysBase=0x0)
    at /home/jlm/code/AROS_build/alt-abiv0-linux-i386-d/bin/linux-i386/gen/rom/exec/include/inline/exec.h:1321



deadwood

  • AROS Developer
  • Legendary Member
  • *****
    • Posts: 1524
    • Karma: +118/-0
Reply #28 on: May 06, 2022, 12:11:53 PM
Are you able to install debugging symbols for libX11.so.6 and see why it crashes from stack trace?

Any other idea I have right now is to comment out line 311

Code: [Select]
XCALL(XSync, xsd->display, FALSE);

but I don't know what side effects this will bring.

I'm not sure it is also related to Window/Desktop manager. Rather something related with your X server. What version do you have?



ascendant

  • Newbie
  • *
    • Posts: 38
    • Karma: +2/-0
Reply #29 on: May 06, 2022, 01:32:28 PM
libX11 is version 1.8. Xorg server is 21.1.3.

It looks like there is a way to get debugging symbols into Arch, so I will work on that.