AROS Exec

Distros => Icaros Desktop => Topic started by: ascendant on April 30, 2022, 03:06:04 AM

Title: Icaros Desktop won't start
Post by: ascendant on April 30, 2022, 03:06:04 AM
I just installed Icaros Desktop Live! hosted on my Arch Linux computer. I have an old Intel Core i7 920, and AMD Radeon RX480, and 12Gigs of ram.

Now I saw that the linux-hosted-install.sh wanted to run apt-get, which is not relevant to Arch Linux, so I made sure that I had all of the equivalent packages installed before launching.

I cd into my installation folder, type icaros and this is what I get:

Code: [Select]
-------------------------------------------------
Press ctrl+C to halt Icaros daemon when exiting.
-------------------------------------------------
[Bootstrap] RAM memory block allocated: 0x77831000 - 0xf7831000 (2147483648 bytes)
[ELF Loader] Calculating kickstart size...
[ELF Loader] Code 1170930 bytes, data 2026 bytes, BSS array 240 bytes
[ELF Loader] Loading kickstart...
[ELF Loader] Code 0x77713000, Data 0x9ba66c0, Module kernel...
[ELF Loader] Code 0x7772fe8b, Data 0x9ba6c08, Module hostlib.resource...
[ELF Loader] Code 0x777315ed, Data 0x9ba6c10, Module unixio.hidd...
[ELF Loader] Code 0x77734bfc, Data 0x9ba6c78, Module emul-handler...
[ELF Loader] Code 0x7773b865, Data 0x9ba6d14, Module expansion.library...
[ELF Loader] Code 0x7773e726, Data 0x9ba6d1c, Module processor.resource...
[ELF Loader] Code 0x7774141f, Data 0x9ba6d28, Module battclock.resource...
[ELF Loader] Code 0x77742bd3, Data 0x9ba6d40, Module timer.device...
[ELF Loader] Code 0x77745dcd, Data 0x9ba6d48, Module bootloader.resource...
[ELF Loader] Code 0x77748100, Data 0x9ba6d50, Module FileSystem.resource...
[ELF Loader] Code 0x77748f0c, Data 0x9ba6d54, Module console.device...
[ELF Loader] Code 0x777522f3, Data 0x9ba6d5c, Module dosboot.resource...
[ELF Loader] Code 0x7775b001, Data 0x9ba6d64, Module gameport.device...
[ELF Loader] Code 0x7775d0d8, Data 0x9ba6d6c, Module lddemon.resource...
[ELF Loader] Code 0x7775f0e9, Data 0x9ba6d74, Module input.device...
[ELF Loader] Code 0x77761a39, Data 0x9ba6d7c, Module keyboard.device...
[ELF Loader] Code 0x77763b20, Data 0x9ba6d84, Module graphics.hidd...
[ELF Loader] Code 0x77787cba, Data 0x9ba6d88, Module hiddclass.hidd...
[ELF Loader] Code 0x7778a48b, Data 0x9ba6d90, Module keyboard.hidd...
[ELF Loader] Code 0x7778c2de, Data 0x9ba6d98, Module mouse.hidd...
[ELF Loader] Code 0x7778e3f7, Data 0x9ba6d9c, Module aros.library...
[ELF Loader] Code 0x7778f975, Data 0x9ba6da4, Module debug.library...
[ELF Loader] Code 0x77792312, Data 0x9ba6dac, Module dos.library...
[ELF Loader] Code 0x777aacbc, Data 0x9ba6db4, Module graphics.library...
[ELF Loader] Code 0x777cc9b1, Data 0x9ba6db8, Module intuition.library...
[ELF Loader] Code 0x7780fb6a, Data 0x9ba6dc0, Module keymap.library...
[ELF Loader] Code 0x7781259f, Data 0x9ba6dc8, Module layers.library...
[ELF Loader] Code 0x7781ac63, Data 0x9ba6dd0, Module oop.library...
[ELF Loader] Code 0x7781fc3c, Data 0x9ba6dd8, Module utility.library...
[ELF Loader] Code 0x77822d78, Data 0x9ba6de0, Module con-handler...
[ELF Loader] Code 0x7782acec, Data 0x9ba6de4, Module ram-handler...
[Bootstrap] Entering kernel at 0x77713000...
[X11] BitMap class @ 0x788739f4
[KRN] Trap signal 11, SysBase 788321e0, KernelBase 78832f20
    SP=789ec16c  FP=00000000  PC=775bafe0
    R0=776d0468  R1=09bfa450  R2=00000000  R3=00000004
    R4=00000444  R5=00000000
Title: Re: Icaros Desktop won't start
Post by: salvo on April 30, 2022, 12:51:31 PM
i run icaros desktop hosted on ubuntu based distribution and works fine
Title: Re: Icaros Desktop won't start
Post by: deadwood on May 01, 2022, 06:36:30 AM
Hi,

Try doing:

$ gdb ./Arch/linux/AROSBootstrap

Then "r" command which should run AROS. Once it crashes, do "bt" command and paste here please.
Title: Re: Icaros Desktop won't start
Post by: ascendant on May 03, 2022, 03:14:39 AM
Thanks for your assistance. I have attempted, but I'm sorry to say that I was not able to get much info. First, it doesn't crash. It just hangs indefinitely. Eventually I Ctrl-C it, and print out the backtrace and see it's waiting on another process:

Code: [Select]
Program received signal SIGTSTP, Stopped (user).
0xf7fc3549 in __kernel_vsyscall ()
(gdb) bt
#0  0xf7fc3549 in __kernel_vsyscall ()
#1  0xf7e280a6 in __wait4_time64 () from /usr/lib32/libc.so.6
#2  0xf7e27f1a in waitpid () from /usr/lib32/libc.so.6
#3  0x080499f2 in kick ()
#4  0x08049479 in bootstrap ()
#5  0x08048d6b in main ()

Indeed, it has spawned a second AROSBootstrap process. I have attempted to attach to that process, but GDB complains:

(No debugging symbols found in Arch/linux/AROSBootstrap)

And a backtrace doesn't provide much:

Code: [Select]
(gdb) attach 64260
Attaching to program: /media/software/IcarosDesktop/Arch/linux/AROSBootstrap, process 64260
Reading symbols from /usr/lib32/libdl.so.2...
(No debugging symbols found in /usr/lib32/libdl.so.2)
Reading symbols from /usr/lib32/libc.so.6...
(No debugging symbols found in /usr/lib32/libc.so.6)
Reading symbols from /lib/ld-linux.so.2...
(No debugging symbols found in /lib/ld-linux.so.2)
Reading symbols from /usr/lib32/libXcursor.so.1...
(No debugging symbols found in /usr/lib32/libXcursor.so.1)
Reading symbols from /usr/lib32/libXrender.so.1...
(No debugging symbols found in /usr/lib32/libXrender.so.1)
Reading symbols from /usr/lib32/libXfixes.so.3...
(No debugging symbols found in /usr/lib32/libXfixes.so.3)
Reading symbols from /usr/lib32/libX11.so.6...
(No debugging symbols found in /usr/lib32/libX11.so.6)
Reading symbols from /usr/lib32/libxcb.so.1...
(No debugging symbols found in /usr/lib32/libxcb.so.1)
Reading symbols from /usr/lib32/libXau.so.6...
(No debugging symbols found in /usr/lib32/libXau.so.6)
Reading symbols from /usr/lib32/libXdmcp.so.6...
(No debugging symbols found in /usr/lib32/libXdmcp.so.6)
Reading symbols from /usr/lib32/libXxf86vm.so.1...
(No debugging symbols found in /usr/lib32/libXxf86vm.so.1)
Reading symbols from /usr/lib32/libXext.so.6...
(No debugging symbols found in /usr/lib32/libXext.so.6)
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
0xf7fc3549 in __kernel_vsyscall ()
(gdb) cont
Continuing.

Program received signal SIGUSR1, User defined signal 1.
0xf7fc3549 in __kernel_vsyscall ()
(gdb) bt
#0  0xf7fc3549 in __kernel_vsyscall ()
#1  0xf7dd4247 in __pthread_kill_implementation () from /usr/lib32/libc.so.6
#2  0xf7d83027 in raise () from /usr/lib32/libc.so.6
#3  0xf37b48e9 in ?? ()
#4  0xf37b5558 in ?? ()
#5  0xf37bc75b in ?? ()
#6  0xf37fcbb9 in ?? ()
#7  0xf37b6080 in ?? ()

Title: Re: Icaros Desktop won't start
Post by: deadwood on May 03, 2022, 06:42:12 AM
If you are willing to dig deeper into this, I can build for you a version with debug symbols. It won't be exactly the same as Icaros, but maybe it will give you a hint where to look for problem. Alternativelly you can build your own version of hosted. It's pretty straighforward, just follow these instructions: https://github.com/deadw00d/AROS/blob/alt-abiv0/INSTALL.md
Title: Re: Icaros Desktop won't start
Post by: ascendant on May 03, 2022, 02:48:01 PM
I followed the build steps, but got this error:

Code: [Select]
Assembler messages:
Fatal error: can't create /home/jlm/code/AROS_build/toolchain-alt-abiv0-i386-build/bin/linux-x86_64/gen/host/tools/MetaMake/mmake.o: No such file or directory
make[1]: *** [Makefile:38: /home/jlm/code/AROS_build/toolchain-alt-abiv0-i386-build/bin/linux-x86_64/gen/host/tools/MetaMake/mmake.o] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:170: /home/jlm/code/AROS_build/toolchain-alt-abiv0-i386-build/bin/linux-x86_64/tools/mmake] Error 2
make: *** Waiting for unfinished jobs....

So I did this:

Code: [Select]
cd toolchain-alt-abiv0-i386-build/tools/MetaMake
make all
cd -

Rerunning rebuild.sh got past that. So I think that there may be a missing dependency that's not visible unless you rebuild from scratch. There's more errors, but I'll work through them and reply when I have some more useful info.
Title: Re: Icaros Desktop won't start
Post by: deadwood on May 03, 2022, 03:27:14 PM
Hmm, I never seen MetaMake fail to build. :/ Please note that every time you run ./rebuild.sh it literally rebuilds (meaning deletes your build directories and starts from scratch). If you want to recompile just one target, you need to enter the build directory and invoke make <target>

As for dependencies, I use a Debian-based distro, so indeed there can be some missing for Arch.

Let me know if you have any more issues. I'll try to assist.
Title: Re: Icaros Desktop won't start
Post by: ascendant on May 03, 2022, 04:33:20 PM
The next build error was due to the fact that Arch's default Python is Python 3, but genmf.py is written for Python 2. So I edited AROS/tools/genmf/genmf.py , and added a 2 at the end of the first line.

Next, I encountered this error:

Code: [Select]
Unescaped left brace in regex is passed through in regex; marked by <-- HERE in m/^\@strong{ <-- HERE (.*)}$/ at /home/jlm/code/AROS_build/toolchain-alt-abiv0-i386-build/bin/linux-x86_64/Ports/host/gcc/gcc-4.6.4/gcc/../contrib/texi2pod.pl line 319.

I backslash escaped the braces on that line of the file. Thanks for the tip on how to continue without starting from scratch. So now I'm in toolchain-alt-abiv0-i386-build and running make. Otherwise this latest fix is overwritten when I run rebuild.sh.

Next:

Code: [Select]
gcc.texi:89: warning: @tex should only appear at the beginning of a line
gcc.texi:209: no matching `@end tex'
gcc.texi:209: no matching `@end multitable'
gcc.texi:209: no matching `@end titlepage'

I manually patched toolchain-alt-abiv0-i386-build/bin/linux-x86_64/Ports/host/gcc/gcc-4.6.4/gcc/doc/gcc.texi following the instructions at this link: https://gcc.gnu.org/legacy-ml/gcc-patches/2013-09/msg02100.html (https://gcc.gnu.org/legacy-ml/gcc-patches/2013-09/msg02100.html)

Then another problem with Python, so I changed toolchain-alt-abiv0-i386-build/config/make.cfg to call Python 2.

Now I'm getting this error:

Code: [Select]
Compiling  arch/all-unix/filesys/emul_handler/emul_host.c
Compile failed:  /home/jlm/code/AROS_build/toolchain-alt-abiv0-i386/i386-aros-gcc  -iquote /home/jlm/code/AROS_build/AROS/arch/all-unix/filesys/emul_handler/ -iquote /home/jlm/code/AROS_build/AROS/arch/all-unix/filesys/emul_handler -iquote .  -m32 -march=i686 -O2  -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_PERSONAL -Wall -Werror   -Wno-pointer-sign -Wno-parentheses -DHOST_OS_linux -DHOST_OS_ -I/home/jlm/code/AROS_build/AROS/arch/all-unix/filesys/emul_handler -I/home/jlm/code/AROS_build/AROS/arch/all-hosted/filesys/emul_handler -isystem /home/jlm/code/AROS_build/toolchain-alt-abiv0-i386-build/bin/linux-i386/gen/include -isystem /usr/include -nostdinc -isystem /home/jlm/code/AROS_build/toolchain-alt-abiv0-i386-build/bin/linux-i386/gen/cc_include -fno-ipa-cp -D__ENABLE_HIDDEN_LIBAPI__ -D__SRCFILENAME__="arch/all-unix/filesys/emul_handler/emul_host.c" -c /home/jlm/code/AROS_build/AROS/arch/all-unix/filesys/emul_handler/emul_host.c -o /home/jlm/code/AROS_build/toolchain-alt-abiv0-i386-build/bin/linux-i386/gen/arch/all-hosted/filesys/emul_handler/arch/emul_host.o
/home/jlm/code/AROS_build/AROS/arch/all-unix/filesys/emul_handler/emul_host.c: In function 'fixcase':
/home/jlm/code/AROS_build/AROS/arch/all-unix/filesys/emul_handler/emul_host.c:236:37: error: '_STAT_VER' undeclared (first use in this function)
/home/jlm/code/AROS_build/AROS/arch/all-unix/filesys/emul_handler/emul_host.c:236:37: note: each undeclared identifier is reported only once for each function it appears in
/home/jlm/code/AROS_build/AROS/arch/all-unix/filesys/emul_handler/emul_host.c: In function 'nocase_lstat':
/home/jlm/code/AROS_build/AROS/arch/all-unix/filesys/emul_handler/emul_host.c:305:37: error: '_STAT_VER' undeclared (first use in this function)
/home/jlm/code/AROS_build/AROS/arch/all-unix/filesys/emul_handler/emul_host.c: In function 'nocase_rename':
/home/jlm/code/AROS_build/AROS/arch/all-unix/filesys/emul_handler/emul_host.c:386:37: error: '_STAT_VER' undeclared (first use in this function)
/home/jlm/code/AROS_build/AROS/arch/all-unix/filesys/emul_handler/emul_host.c: In function 'DoSeek':
/home/jlm/code/AROS_build/AROS/arch/all-unix/filesys/emul_handler/emul_host.c:646:34: error: '_STAT_VER' undeclared (first use in this function)
/home/jlm/code/AROS_build/AROS/arch/all-unix/filesys/emul_handler/emul_host.c: In function 'stat_entry':
/home/jlm/code/AROS_build/AROS/arch/all-unix/filesys/emul_handler/emul_host.c:961:37: error: '_STAT_VER' undeclared (first use in this function)
/home/jlm/code/AROS_build/AROS/arch/all-unix/filesys/emul_handler/emul_host.c: In function 'CheckDir':
/home/jlm/code/AROS_build/AROS/arch/all-unix/filesys/emul_handler/emul_host.c:1356:37: error: '_STAT_VER' undeclared (first use in this function)
make[1]: *** [mmakefile:130: /home/jlm/code/AROS_build/toolchain-alt-abiv0-i386-build/bin/linux-i386/gen/arch/all-hosted/filesys/emul_handler/arch/emul_host.o] Error 1
[MMAKE] make --no-print-directory TOP=/home/jlm/code/AROS_build/toolchain-alt-abiv0-i386-build SRCDIR=/home/jlm/code/AROS_build/AROS CURDIR=arch/all-unix/filesys/emul_handler TARGET=kernel-fs-emul-unix --file=mmakefile kernel-fs-emul-unix failed: 512
[MMAKE] Error: Error while running make in arch/all-unix/filesys/emul_handler: No such file or directory

Still trying to figure out the solution to this one.
Title: Re: Icaros Desktop won't start
Post by: ascendant on May 03, 2022, 05:02:46 PM
I got past the latest error by putting

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

in AROS/arch/all-unix/devs/hostdisk/hostdisk_host.h and AROS/arch/all-unix/filesys/emul_handler/emul_unix.h

Next I edited AROS/rom/dos/genstrings.py to point to Python 2. But that was a red herring. I needed to edit the PYTHON define in toolchain-alt-abiv0-i386-build/bin/linux-x86_64/gen/host/config/host.cfg

Now it fails to link dos.library:

Code: [Select]
There are undefined symbols in '/home/jlm/code/AROS_build/toolchain-alt-abiv0-i386-build/bin/linux-i386/AROS/Libs/dos.library':
         U err_Numbers dos_init.c:0
         U err_Strings dos_init.c:0

I'm not sure where this is expected to be defined. Even on a Ubuntu system, it is not defined anywhere in /usr/include.
Title: Re: Icaros Desktop won't start
Post by: magorium on May 03, 2022, 05:37:19 PM
Code: [Select]
There are undefined symbols in '/home/jlm/code/AROS_build/toolchain-alt-abiv0-i386-build/bin/linux-i386/AROS/Libs/dos.library':
         U err_Numbers   dos_init.c:0
         U err_Strings   dos_init.c:0

I'm not sure where this is expected to be defined. Even on a Ubuntu system, it is not defined anywhere in /usr/include.
It is generated by rom/dos/genstrings.py script, which seem to be invoked by rom/dos/mmakefile.src
Title: Re: Icaros Desktop won't start
Post by: ascendant on May 03, 2022, 06:26:55 PM
Thanks. I thought my change to run genstrings.py using Python 2 would fix it, but I see it does not. I removed bin/linux-i386/gen/rom/dos/errorlist.h, which was an empty file anyway, and reran. Oddly, I don't think it even got to the point to link dos.library, and I found this error:

Code: [Select]
/home/jlm/code/AROS_build/AROS/arch/all-hosted/bootstrap/./bootstrap.c:64:13: error: conflicting types for built-in function ‘__clear_cache’; expected ‘void(void *, void *)’ [-Werror=builtin-declaration-mismatch]
   64 | extern void __clear_cache(char *begin, char *end);
      |             ^~~~~~~~~~~~~
cc1: all warnings being treated as errors

So I changed the declaration to match what is expected and reran make.

Almost made it. Now just a problem with the final link:

Code: [Select]
Linking    AROS/Arch/linux/AROSBootstrap...
Link failed: /bin/gcc    -Wl,-melf_i386 -m32 /home/jlm/code/AROS_build/toolchain-alt-abiv0-i386-build/bin/linux-i386/gen/arch/all-hosted/bootstrap/main.o /home/jlm/code/AROS_build/toolchain-alt-abiv0-i386-build/bin/linux-i386/gen/arch/all-hosted/bootstrap/bootstrap.o /home/jlm/code/AROS_build/toolchain-alt-abiv0-i386-build/bin/linux-i386/gen/arch/all-hosted/bootstrap/elf_io.o /home/jlm/code/AROS_build/toolchain-alt-abiv0-i386-build/bin/linux-i386/gen/arch/all-hosted/bootstrap/filesystem.o /home/jlm/code/AROS_build/toolchain-alt-abiv0-i386-build/bin/linux-i386/gen/arch/all-hosted/bootstrap/log.o /home/jlm/code/AROS_build/toolchain-alt-abiv0-i386-build/bin/linux-i386/gen/arch/all-hosted/bootstrap/runtime.o /home/jlm/code/AROS_build/toolchain-alt-abiv0-i386-build/bin/linux-i386/gen/arch/all-hosted/bootstrap/ui.o /home/jlm/code/AROS_build/toolchain-alt-abiv0-i386-build/bin/linux-i386/gen/arch/all-hosted/bootstrap/arch/hostinterface.o /home/jlm/code/AROS_build/toolchain-alt-abiv0-i386-build/bin/linux-i386/gen/arch/all-hosted/bootstrap/arch/hostlib.o /home/jlm/code/AROS_build/toolchain-alt-abiv0-i386-build/bin/linux-i386/gen/arch/all-hosted/bootstrap/arch/kickstart.o /home/jlm/code/AROS_build/toolchain-alt-abiv0-i386-build/bin/linux-i386/gen/arch/all-hosted/bootstrap/arch/kputc.o /home/jlm/code/AROS_build/toolchain-alt-abiv0-i386-build/bin/linux-i386/gen/arch/all-hosted/bootstrap/arch/malloc.o /home/jlm/code/AROS_build/toolchain-alt-abiv0-i386-build/bin/linux-i386/gen/arch/all-hosted/bootstrap/arch/memory.o /home/jlm/code/AROS_build/toolchain-alt-abiv0-i386-build/bin/linux-i386/gen/arch/all-hosted/bootstrap/arch/preboot.o /home/jlm/code/AROS_build/toolchain-alt-abiv0-i386-build/bin/linux-i386/gen/arch/all-hosted/bootstrap/arch/shutdown.o /home/jlm/code/AROS_build/toolchain-alt-abiv0-i386-build/bin/linux-i386/gen/arch/all-hosted/bootstrap/arch/support.o  -o /home/jlm/code/AROS_build/toolchain-alt-abiv0-i386-build/bin/linux-i386/AROS/Arch/linux/AROSBootstrap -L/home/jlm/code/AROS_build/toolchain-alt-abiv0-i386-build/bin/linux-i386/gen/lib -ldl   -lbootstrap
/bin/ld: /home/jlm/code/AROS_build/toolchain-alt-abiv0-i386-build/bin/linux-i386/gen/arch/all-hosted/bootstrap/bootstrap.o:(.bss+0x1020): multiple definition of `buf'; /home/jlm/code/AROS_build/toolchain-alt-abiv0-i386-build/bin/linux-i386/gen/arch/all-hosted/bootstrap/main.o:(.bss+0x0): first defined here
/bin/ld: /home/jlm/code/AROS_build/toolchain-alt-abiv0-i386-build/bin/linux-i386/gen/arch/all-hosted/bootstrap/arch/memory.o:(.bss+0x0): multiple definition of `buf'; /home/jlm/code/AROS_build/toolchain-alt-abiv0-i386-build/bin/linux-i386/gen/arch/all-hosted/bootstrap/main.o:(.bss+0x0): first defined here
collect2: error: ld returned 1 exit status
make[1]: *** [mmakefile:455: /home/jlm/code/AROS_build/toolchain-alt-abiv0-i386-build/bin/linux-i386/AROS/Arch/linux/AROSBootstrap] Error 1
[MMAKE] make --no-print-directory TOP=/home/jlm/code/AROS_build/toolchain-alt-abiv0-i386-build SRCDIR=/home/jlm/code/AROS_build/AROS CURDIR=arch/all-hosted/bootstrap TARGET=kernel-bootstrap-hosted --file=mmakefile kernel-bootstrap-hosted failed: 512
[MMAKE] Error: Error while running make in arch/all-hosted/bootstrap: No such file or directory
Title: Re: Icaros Desktop won't start
Post by: ascendant on May 03, 2022, 06:54:06 PM
I think buf in AROS/arch/all-hosted/bootstrap/bootstrap.h should be declared extern, and then defined somewhere else to ensure it is only compiled once and therefore no duplicate copies of that symbol will exist for the final linking.

I just guessed that since it is a rather generic variable to be defined, not even just declared, in a header file, that maybe it wasn't even needed, and commented it out. That gets past the error.
Title: Re: Icaros Desktop won't start
Post by: magorium on May 03, 2022, 07:09:20 PM
It is indeed declared as extern in bootstrap.h in ABIv11 (https://github.com/deadw00d/AROS/blob/master/arch/all-hosted/bootstrap/bootstrap.h (https://github.com/deadw00d/AROS/blob/master/arch/all-hosted/bootstrap/bootstrap.h)) but lacks the modifier on branch alt-ABIv0 (https://github.com/deadw00d/AROS/blob/alt-abiv0/arch/all-hosted/bootstrap/bootstrap.h (https://github.com/deadw00d/AROS/blob/alt-abiv0/arch/all-hosted/bootstrap/bootstrap.h)).


Good catch !
Title: Re: Icaros Desktop won't start
Post by: ascendant on May 04, 2022, 04:45:54 AM
Okay, I finally got it all compiled. When I run it, the following appears in an infinite loop:

Code: [Select]
################################################################################
#                               Software Failure!                              #
#                    Task : 0xF48B90C0 - Exec Bootstrap Task                   #
#               Error: 0x84000009 - unknown type of system screen              #
################################################################################
PC   : 0xF3766657
Module Devs/dosboot.resource Segment 1 .text (0xF3762A00) Offset 0x00003C57
Stack trace:
0xF376688A Devs/dosboot.resource Segment 1 .text + 0x00003E8A
0xF3766A05 Devs/dosboot.resource Function NoBootMediaScreen + 0x00000021
0xF376349E Devs/dosboot.resource Function dosboot_Init + 0x0000029B
0xF37677A2 Devs/dosboot.resource Function set_call_libfuncs + 0x0000003E
0xF3762C0F Devs/dosboot.resource Function Dosboot_InitLib + 0x00000180
0xF371D003 Arch/linux/kernel Function Exec_17_InitResident + 0x00000211
0xF371CC12 Arch/linux/kernel Segment 1 .text + 0x00010C12
0xF371CD12 Arch/linux/kernel Function Exec_12_InitCode + 0x000000FE
0xF370D996 Arch/linux/kernel Segment 1 .text + 0x00001996
0xF370C556 Arch/linux/kernel Function startup + 0x00000556
################################################################################

Maybe it doesn't like my monitors. I have two monitors, the main one at 2560x1600, and a secondary rotated to 1080x1920.
Title: Re: Icaros Desktop won't start
Post by: deadwood on May 04, 2022, 07:28:44 AM
That's actually good progress! The number of issues you had to overcome is however quite troubling. I hope updates that I plan will fix them.

Now, onto the issue itself. It seems AROS did not detect your directory and AROS system directory. First, check if you have AROS.boot file in alt-abiv0-linux-i386/bin/linux-i386/AROS.

Then run AROS through gdb

Code: [Select]
$ cd alt-abiv0-linux-i386/bin/linux-i386/AROS
$ gdb ./Arch/linux/AROSBootstrap
"r"

Once it crashes, issue following commands in gdb command prompt:
"loadbt"
"bt"

and let's see where the crash is.
Title: Re: Icaros Desktop won't start
Post by: ascendant on May 04, 2022, 01:39:25 PM
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) 
Title: Re: Icaros Desktop won't start
Post by: deadwood on May 04, 2022, 04:16:43 PM
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.
Title: Re: Icaros Desktop won't start
Post by: ascendant on May 05, 2022, 03:59:52 AM
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.
Title: Re: Icaros Desktop won't start
Post by: deadwood on May 05, 2022, 06:57:37 AM
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.
Title: Re: Icaros Desktop won't start
Post by: deadwood on May 05, 2022, 07: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
Title: Re: Icaros Desktop won't start
Post by: ascendant on May 05, 2022, 01:14:34 PM
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 ?? ()
Title: Re: Icaros Desktop won't start
Post by: ascendant on May 05, 2022, 01:25:44 PM
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.
Title: Re: Icaros Desktop won't start
Post by: magorium on May 05, 2022, 03:07:04 PM
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
Title: Re: Icaros Desktop won't start
Post by: AMIGASYSTEM on May 05, 2022, 06:46:12 PM
@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.
Title: Re: Icaros Desktop won't start
Post by: deadwood on May 06, 2022, 06:46:47 AM
@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.
Title: Re: Icaros Desktop won't start
Post by: ascendant on May 06, 2022, 02:51:46 PM
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 ?? ()
Title: Re: Icaros Desktop won't start
Post by: deadwood on May 06, 2022, 04:43:34 PM
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 :)
Title: Re: Icaros Desktop won't start
Post by: ascendant on May 06, 2022, 06:29:20 PM
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
Title: Re: Icaros Desktop won't start
Post by: deadwood on May 06, 2022, 07: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?
Title: Re: Icaros Desktop won't start
Post by: ascendant on May 06, 2022, 08: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.
Title: Re: Icaros Desktop won't start
Post by: ascendant on May 06, 2022, 10:24:13 PM
It was surprisingly easy to rebuild the libx11 package with debugging symbols not stripped and install it. Here is the relevant part from GDB:

Code: [Select]
Thread 2.1 "AROSBootstrap" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xf7fbe480 (LWP 1981338)]
0xf3816e20 in _XSend (dpy=0x565b7a30, data=0x0, size=0) at xcb_io.c:569
569 xcb_io.c: No such file or directory.
(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 full
#0  0xf3816e20 in _XSend (dpy=0x565b7a30, data=0x0, size=0) at xcb_io.c:569
        dummy_request = {reqType = 0 '\000', data = 0 '\000', length = 0}
        pad = "\000\000"
        vec = {{iov_base = 0x565c05e0, iov_len = 1156}, {iov_base = 0x0, iov_len = 0}, {iov_base = 0xf4afc054,
            iov_len = 4107067556}}
        requests = <optimized out>
        dpy_request = 1100
        ext = <optimized out>
        c = 0x565b8390
#1  0xf38172ae in _XFlush (dpy=0x565b7a30) at xcb_io.c:609
No locals.
#2  0xf37f8075 in XFlush (dpy=0x565b7a30) at Flush.c:39
No locals.
#3  0xf4ca5875 in x11task_entry (xtpparam=0xf4c9cbec) at /home/jlm/code/AROS_build/AROS/arch/all-hosted/hidd/x11/./x11.c:286
        node = 0xf4cce260
        keyrelease_pending = 0
        sigs = 65536
        event = {type = 0, xany = {type = 0, serial = 0, send_event = 0, display = 0x0, window = 0}, xkey = {type = 0, serial = 0,
            send_event = 0, display = 0x0, window = 0, root = 0, subwindow = 0, time = 0, x = 0, y = 0, x_root = 0, y_root = 0,
            state = 0, keycode = 0, same_screen = 0}, xbutton = {type = 0, serial = 0, send_event = 0, display = 0x0, window = 0,
            root = 0, subwindow = 0, time = 0, x = 0, y = 0, x_root = 0, y_root = 0, state = 0, button = 0, same_screen = 0},
          xmotion = {type = 0, serial = 0, send_event = 0, display = 0x0, window = 0, root = 0, subwindow = 0, time = 0, x = 0,
            y = 0, x_root = 0, y_root = 0, state = 0, is_hint = 0 '\000', same_screen = 0}, xcrossing = {type = 0, serial = 0,
            send_event = 0, display = 0x0, window = 0, root = 0, subwindow = 0, time = 0, x = 0, y = 0, x_root = 0, y_root = 0,
            mode = 0, detail = 0, same_screen = 0, focus = 0, state = 0}, xfocus = {type = 0, serial = 0, send_event = 0,
            display = 0x0, window = 0, mode = 0, detail = 0}, xexpose = {type = 0, serial = 0, send_event = 0, display = 0x0,
            window = 0, x = 0, y = 0, width = 0, height = 0, count = 0}, xgraphicsexpose = {type = 0, serial = 0, send_event = 0,
            display = 0x0, drawable = 0, x = 0, y = 0, width = 0, height = 0, count = 0, major_code = 0, minor_code = 0},
          xnoexpose = {type = 0, serial = 0, send_event = 0, display = 0x0, drawable = 0, major_code = 0, minor_code = 0},
          xvisibility = {type = 0, serial = 0, send_event = 0, display = 0x0, window = 0, state = 0}, xcreatewindow = {type = 0,
            serial = 0, send_event = 0, display = 0x0, parent = 0, window = 0, x = 0, y = 0, width = 0, height = 0,
            border_width = 0, override_redirect = 0}, xdestroywindow = {type = 0, serial = 0, send_event = 0, display = 0x0,
            event = 0, window = 0}, xunmap = {type = 0, serial = 0, send_event = 0, display = 0x0, event = 0, window = 0,
            from_configure = 0}, xmap = {type = 0, serial = 0, send_event = 0, display = 0x0, event = 0, window = 0,
            override_redirect = 0}, xmaprequest = {type = 0, serial = 0, send_event = 0, display = 0x0, parent = 0, window = 0},
          xreparent = {type = 0, serial = 0, send_event = 0, display = 0x0, event = 0, window = 0, parent = 0, x = 0, y = 0,
            override_redirect = 0}, xconfigure = {type = 0, serial = 0, send_event = 0, display = 0x0, event = 0, window = 0,
            x = 0, y = 0, width = 0, height = 0, border_width = 0, above = 0, override_redirect = 0}, xgravity = {type = 0,
            serial = 0, send_event = 0, display = 0x0, event = 0, window = 0, x = 0, y = 0}, xresizerequest = {type = 0,
            serial = 0, send_event = 0, display = 0x0, window = 0, width = 0, height = 0}, xconfigurerequest = {type = 0,
            serial = 0, send_event = 0, display = 0x0, parent = 0, window = 0, x = 0, y = 0, width = 0, height = 0,
            border_width = 0, above = 0, detail = 0, value_mask = 0}, xcirculate = {type = 0, serial = 0, send_event = 0,
            display = 0x0, event = 0, window = 0, place = 0}, xcirculaterequest = {type = 0, serial = 0, send_event = 0,
            display = 0x0, parent = 0, window = 0, place = 0}, xproperty = {type = 0, serial = 0, send_event = 0, display = 0x0,
            window = 0, atom = 0, time = 0, state = 0}, xselectionclear = {type = 0, serial = 0, send_event = 0, display = 0x0,
            window = 0, selection = 0, time = 0}, xselectionrequest = {type = 0, serial = 0, send_event = 0, display = 0x0,
            owner = 0, requestor = 0, selection = 0, target = 0, property = 0, time = 0}, xselection = {type = 0, serial = 0,
            send_event = 0, display = 0x0, requestor = 0, selection = 0, target = 0, property = 0, time = 0}, xcolormap = {
            type = 0, serial = 0, send_event = 0, display = 0x0, window = 0, colormap = 0, new = 0, state = 0}, xclient = {
            type = 0, serial = 0, send_event = 0, display = 0x0, window = 0, message_type = 0, format = 0, data = {
              b = '\000' <repeats 19 times>, s = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, l = {0, 0, 0, 0, 0}}}, xmapping = {type = 0,
            serial = 0, send_event = 0, display = 0x0, window = 0, request = 0, first_keycode = 0, count = 0}, xerror = {type = 0,
            display = 0x0, resourceid = 0, serial = 0, error_code = 0 '\000', request_code = 0 '\000', minor_code = 0 '\000'},
          xkeymap = {type = 0, serial = 0, send_event = 0, display = 0x0, window = 0, key_vector = '\000' <repeats 31 times>},
          xgeneric = {type = 0, serial = 0, send_event = 0, display = 0x0, extension = 0, evtype = 0}, xcookie = {type = 0,
            serial = 0, send_event = 0, display = 0x0, extension = 0, evtype = 0, cookie = 0, data = 0x0}, pad = {
            0 <repeats 24 times>}}
        keyrelease_event = {type = 0, xany = {type = 0, serial = 0, send_event = 0, display = 0x0, window = 0}, xkey = {type = 0,
            serial = 0, send_event = 0, display = 0x0, window = 0, root = 0, subwindow = 0, time = 0, x = 0, y = 0, x_root = 0,
            y_root = 0, state = 0, keycode = 0, same_screen = 0}, xbutton = {type = 0, serial = 0, send_event = 0, display = 0x0,
            window = 0, root = 0, subwindow = 0, time = 0, x = 0, y = 0, x_root = 0, y_root = 0, state = 0, button = 0,
            same_screen = 0}, xmotion = {type = 0, serial = 0, send_event = 0, display = 0x0, window = 0, root = 0, subwindow = 0,
            time = 0, x = 0, y = 0, x_root = 0, y_root = 0, state = 0, is_hint = 0 '\000', same_screen = 0}, xcrossing = {type = 0,
            serial = 0, send_event = 0, display = 0x0, window = 0, root = 0, subwindow = 0, time = 0, x = 0, y = 0, x_root = 0,
            y_root = 0, mode = 0, detail = 0, same_screen = 0, focus = 0, state = 0}, xfocus = {type = 0, serial = 0,
            send_event = 0, display = 0x0, window = 0, mode = 0, detail = 0}, xexpose = {type = 0, serial = 0, send_event = 0,
            display = 0x0, window = 0, x = 0, y = 0, width = 0, height = 0, count = 0}, xgraphicsexpose = {type = 0, serial = 0,
            send_event = 0, display = 0x0, drawable = 0, x = 0, y = 0, width = 0, height = 0, count = 0, major_code = 0,
            minor_code = 0}, xnoexpose = {type = 0, serial = 0, send_event = 0, display = 0x0, drawable = 0, major_code = 0,
            minor_code = 0}, xvisibility = {type = 0, serial = 0, send_event = 0, display = 0x0, window = 0, state = 0},
          xcreatewindow = {type = 0, serial = 0, send_event = 0, display = 0x0, parent = 0, window = 0, x = 0, y = 0, width = 0,
            height = 0, border_width = 0, override_redirect = 0}, xdestroywindow = {type = 0, serial = 0, send_event = 0,
            display = 0x0, event = 0, window = 0}, xunmap = {type = 0, serial = 0, send_event = 0, display = 0x0, event = 0,
            window = 0, from_configure = 0}, xmap = {type = 0, serial = 0, send_event = 0, display = 0x0, event = 0, window = 0,
            override_redirect = 0}, xmaprequest = {type = 0, serial = 0, send_event = 0, display = 0x0, parent = 0, window = 0},
          xreparent = {type = 0, serial = 0, send_event = 0, display = 0x0, event = 0, window = 0, parent = 0, x = 0, y = 0,
            override_redirect = 0}, xconfigure = {type = 0, serial = 0, send_event = 0, display = 0x0, event = 0, window = 0,
            x = 0, y = 0, width = 0, height = 0, border_width = 0, above = 0, override_redirect = 0}, xgravity = {type = 0,
            serial = 0, send_event = 0, display = 0x0, event = 0, window = 0, x = 0, y = 0}, xresizerequest = {type = 0,
            serial = 0, send_event = 0, display = 0x0, window = 0, width = 0, height = 0}, xconfigurerequest = {type = 0,
            serial = 0, send_event = 0, display = 0x0, parent = 0, window = 0, x = 0, y = 0, width = 0, height = 0,
            border_width = 0, above = 0, detail = 0, value_mask = 0}, xcirculate = {type = 0, serial = 0, send_event = 0,
            display = 0x0, event = 0, window = 0, place = 0}, xcirculaterequest = {type = 0, serial = 0, send_event = 0,
            display = 0x0, parent = 0, window = 0, place = 0}, xproperty = {type = 0, serial = 0, send_event = 0, display = 0x0,
            window = 0, atom = 0, time = 0, state = 0}, xselectionclear = {type = 0, serial = 0, send_event = 0, display = 0x0,
            window = 0, selection = 0, time = 0}, xselectionrequest = {type = 0, serial = 0, send_event = 0, display = 0x0,
            owner = 0, requestor = 0, selection = 0, target = 0, property = 0, time = 0}, xselection = {type = 0, serial = 0,
            send_event = 0, display = 0x0, requestor = 0, selection = 0, target = 0, property = 0, time = 0}, xcolormap = {
            type = 0, serial = 0, send_event = 0, display = 0x0, window = 0, colormap = 0, new = 0, state = 0}, xclient = {
            type = 0, serial = 0, send_event = 0, display = 0x0, window = 0, message_type = 0, format = 0, data = {
              b = '\000' <repeats 19 times>, s = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, l = {0, 0, 0, 0, 0}}}, xmapping = {type = 0,
            serial = 0, send_event = 0, display = 0x0, window = 0, request = 0, first_keycode = 0, count = 0}, xerror = {type = 0,
            display = 0x0, resourceid = 0, serial = 0, error_code = 0 '\000', request_code = 0 '\000', minor_code = 0 '\000'},
          xkeymap = {type = 0, serial = 0, send_event = 0, display = 0x0, window = 0, key_vector = '\000' <repeats 31 times>},
          xgeneric = {type = 0, serial = 0, send_event = 0, display = 0x0, extension = 0, evtype = 0}, xcookie = {type = 0,
            serial = 0, send_event = 0, display = 0x0, extension = 0, evtype = 0, cookie = 0, data = 0x0}, pad = {
            0 <repeats 24 times>}}
        nmsg = 0xf4c9d050
        notifysig = 65536
        nmsg_list = {mlh_Head = 0xf4cce26c, mlh_Tail = 0x0, {mlh_TailPred = 0xf4cce268, mlh_TailPred_ = 0xf4cce268}}
        xwindowlist = {mlh_Head = 0xf4c43d70, mlh_Tail = 0x0, {mlh_TailPred = 0xf4c43d70, mlh_TailPred_ = 0xf4c43d70}}
        hostclipboardmask = 131072
        f12_down = 0
        ks = 0
        task_Parent = 0xf4be4b80
        task_SigKill = 4096
        xsd = 0xf4c42df8
        myint = {is_Node = {ln_Succ = 0xf4b226ac, ln_Pred = 0xf4b44aa8, ln_Name = 0xf4cb1327 "X11 VBlank server",
            ln_Type = 2 '\002', ln_Pri = 0 '\000'}, is_Data = 0xf4c437a0, is_Code = 0xf4ca500f <x11VBlank>}
        __PRETTY_FUNCTION__ = "x11task_entry"
#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
No locals.
#5  0xf4c9cbec in ?? ()
No symbol table info available.
Title: Re: Icaros Desktop won't start
Post by: ascendant on May 06, 2022, 11:17:56 PM
This was with line 311 commented out. So it looks like that just kicks the can down the road to the next XCALL. Uncommenting that line returns a very similar stacktrace, with the top of the stack in the X11 code identical.

I see some lines <optimized out>, and attempted to rebuild libX11 without it doing that, but failed, so I think these are not aggressive optimizations but just the most basic ones. Though it is odd that the very line is seg-faults on is one for assigning to requests, which it optimized out. I printed the dpy, dpy->xcb, and dpy->xcb->last_flushed values from GDB and nothing was null.
Title: Re: Icaros Desktop won't start
Post by: deadwood on May 07, 2022, 06:42:19 AM
I was afraid it will end up with kicking the can down the road :/ I've seen these problems before. There is some faulty X call that gets added to the queue and only when XFlush is called, the call is processed and crash happens. This needs step by step debugging, adding XFlush after every X call to see which one is the offending one.

Before we embark on this path though, I'd like to ask you to build Linux-x86_64 version using these instructions: https://github.com/deadw00d/AROS/blob/master/INSTALL.md. x86_64 has a newer code base, so the problem might have already been fixed there.
Title: Re: Icaros Desktop won't start
Post by: aros-sg on May 07, 2022, 04:50:05 PM
I think I remember something about similiar problem when I first switched to a 64 bit linux distro and running the existing 32 bit AROS from old HD. IIRC the issue was the 32 bit libX11 or libxcb or whatever on new distro relied on 16 byte stack alignment (it used sse or something so it would crash if alignment was wrong -> disassemble crash address).  I messed around in arch/i386-all/newstackswap.c and preparecontext.c to try to fix alignement and maybe elsewhere and then managed to boot/run AROS. But I did not do much additional tests. So maybe more fixes would be needed in other places.

Google for this stack alignment change from 4 to 16 they did to 32 bit Linux x86 which can break compatibility with old apps or something.

Title: Re: Icaros Desktop won't start
Post by: ascendant on May 08, 2022, 04:01:32 AM
I was able to build and run AROS 64bit with very little problems. There was one build error. I think you need to make a similar change in another location for _STAT_VER:


Code: [Select]
~/code/AROS64/AROS 141> git diff
diff --git a/arch/all-unix/devs/hostdisk/hostdisk_host.h b/arch/all-unix/devs/hostdisk/hostdisk_host.h
index 1b4befc472..936a19269d 100644
--- a/arch/all-unix/devs/hostdisk/hostdisk_host.h
+++ b/arch/all-unix/devs/hostdisk/hostdisk_host.h
@@ -62,7 +62,7 @@ struct HostInterface
     off_t          (*lseek)(int fildes, off_t offset, int whence);
 #endif
     int           *(*__error)(void);
-#ifdef HOST_OS_linux
+#if defined(HOST_OS_linux) && defined(_STAT_VER)
     int            (*__fxstat64)(int ver, int fd, struct stat64 *buf);
     #define fstat64(fd, buf) __fxstat64(_STAT_VER, fd, buf)
 #else

Even the Python 2 problems I had with the 32-bit branch where not there at all. I think this bodes well for getting the 64-bit version of Icaros Desktop running.
Title: Re: Icaros Desktop won't start
Post by: deadwood on May 08, 2022, 06:57:32 AM
Great. :) Does 64-bit hosted start for you correctly then? No X crash?
Title: Re: Icaros Desktop won't start
Post by: deadwood on May 08, 2022, 06:59:13 AM
I think I remember something about similiar problem when I first switched to a 64 bit linux distro and running the existing 32 bit AROS from old HD. IIRC the issue was the 32 bit libX11 or libxcb or whatever on new distro relied on 16 byte stack alignment (it used sse or something so it would crash if alignment was wrong -> disassemble crash address).  I messed around in arch/i386-all/newstackswap.c and preparecontext.c to try to fix alignement and maybe elsewhere and then managed to boot/run AROS. But I did not do much additional tests. So maybe more fixes would be needed in other places.

Google for this stack alignment change from 4 to 16 they did to 32 bit Linux x86 which can break compatibility with old apps or something.

That's actually a good suggestion. I remember having similar problems as well.

@ascendant

Can you boot 32-bit to a crash and the issue following commands:

"loadbt"
"f 0"
"disassemble"

The last one will show assembly listing. Look for a line with "=>" on the left and paste in the assembler output.
Title: Re: Icaros Desktop won't start
Post by: ascendant on May 08, 2022, 12:11:43 PM
Yes, the 64-bit AROS runs fine. I get a desktop. I can do stuff.

Here's the 32-bit output:

Code: [Select]
Thread 2.1 "AROSBootstrap" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xf7fbe480 (LWP 3066206)]
0xf3816e20 in _XSend (dpy=0x565b7a30, data=0x0, size=0) at xcb_io.c:569
569 xcb_io.c: No such file or directory.
(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 = 0xf4cb1be0
.data_addr = 0xf4cb47e0
.eh_frame_addr = 0xf4c37f28
.bss_addr = 0xf4cb5880
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) f 0
#0  0xf3816e20 in _XSend (dpy=0x565b7a30, data=0x0, size=0) at xcb_io.c:569
569 in xcb_io.c
(gdb) disassemble
Dump of assembler code for function _XSend:
   0xf3816cb0 <+0>: endbr32
   0xf3816cb4 <+4>: call   0xf37f1b98 <__x86.get_pc_thunk.ax>
   0xf3816cb9 <+9>: add    $0x1167af,%eax
   0xf3816cbe <+14>: push   %ebp
   0xf3816cbf <+15>: push   %edi
   0xf3816cc0 <+16>: push   %esi
   0xf3816cc1 <+17>: push   %ebx
   0xf3816cc2 <+18>: sub    $0x5c,%esp
   0xf3816cc5 <+21>: mov    0x70(%esp),%ebx
   0xf3816cc9 <+25>: mov    0x74(%esp),%edi
   0xf3816ccd <+29>: mov    %eax,0x18(%esp)
   0xf3816cd1 <+33>: mov    0x538(%ebx),%ecx
   0xf3816cd7 <+39>: mov    %gs:0x14,%eax
   0xf3816cdd <+45>: mov    %eax,0x4c(%esp)
   0xf3816ce1 <+49>: xor    %eax,%eax
   0xf3816ce3 <+51>: mov    (%ecx),%eax
   0xf3816ce5 <+53>: mov    %eax,0x1c(%esp)
   0xf3816ce9 <+57>: mov    0x94(%ebx),%eax
   0xf3816cef <+63>: test   $0x1,%al
   0xf3816cf1 <+65>: jne    0xf3816ee4 <_XSend+564>
   0xf3816cf7 <+71>: mov    0x68(%ebx),%eax
   0xf3816cfa <+74>: cmp    %eax,0x6c(%ebx)
   0xf3816cfd <+77>: jne    0xf3816d0b <_XSend+91>
   0xf3816cff <+79>: mov    0x78(%esp),%esi
   0xf3816d03 <+83>: test   %esi,%esi
   0xf3816d05 <+85>: je     0xf3816ee4 <_XSend+564>
   0xf3816d0b <+91>: mov    0x948(%ebx),%eax
   0xf3816d11 <+97>: xor    %edx,%edx
   0xf3816d13 <+99>: movd   %edx,%xmm1
   0xf3816d17 <+103>: xor    %edx,%edx
   0xf3816d19 <+105>: movd   %eax,%xmm0
   0xf3816d1d <+109>: mov    0x60(%ebx),%eax
   0xf3816d20 <+112>: movd   %edx,%xmm2
   0xf3816d24 <+116>: mov    0x2c(%ecx),%edx
   0xf3816d27 <+119>: punpckldq %xmm1,%xmm0
   0xf3816d2b <+123>: psllq  $0x20,%xmm0
   0xf3816d30 <+128>: movd   %eax,%xmm1
   0xf3816d34 <+132>: movdqa %xmm0,%xmm3
   0xf3816d38 <+136>: punpckldq %xmm2,%xmm1
   0xf3816d3c <+140>: paddq  %xmm1,%xmm3
   0xf3816d40 <+144>: movdqa %xmm3,%xmm0
   0xf3816d44 <+148>: movq   %xmm3,0x10(%esp)
   0xf3816d4a <+154>: movd   %xmm3,%ebp
   0xf3816d4e <+158>: psrlq  $0x20,%xmm0
   0xf3816d53 <+163>: movd   %xmm0,%esi
   0xf3816d57 <+167>: movq   0x24(%ecx),%xmm0
   0xf3816d5c <+172>: test   %edx,%edx
   0xf3816d5e <+174>: je     0xf3816f00 <_XSend+592>
   0xf3816d64 <+180>: mov    0x18(%esp),%eax
   0xf3816d68 <+184>: movdqa -0x9d838(%eax),%xmm1
   0xf3816d70 <+192>: paddq  %xmm0,%xmm1
   0xf3816d74 <+196>: movdqa %xmm1,%xmm2
   0xf3816d78 <+200>: movd   %xmm1,%edx
   0xf3816d7c <+204>: movd   %xmm1,0x8(%esp)
   0xf3816d82 <+210>: psrlq  $0x20,%xmm2
   0xf3816d87 <+215>: cmp    %edx,%ebp
   0xf3816d89 <+217>: mov    %esi,%edx
   0xf3816d8b <+219>: movd   %xmm2,%eax
   0xf3816d8f <+223>: sbb    %eax,%edx
   0xf3816d91 <+225>: jb     0xf3816de7 <_XSend+311>
   0xf3816d93 <+227>: mov    0x8(%esp),%edx
   0xf3816d97 <+231>: movd   %xmm2,%ecx
   0xf3816d9b <+235>: lea    0x0(%esi,%eiz,1),%esi
   0xf3816d9f <+239>: nop
   0xf3816da0 <+240>: mov    %ebx,%eax
   0xf3816da2 <+242>: movq   %xmm1,0x8(%esp)
   0xf3816da8 <+248>: call   0xf38165d0 <append_pending_request>
   0xf3816dad <+253>: mov    0x18(%esp),%eax
   0xf3816db1 <+257>: movq   0x8(%esp),%xmm1
   0xf3816db7 <+263>: movdqa -0x9d838(%eax),%xmm0
   0xf3816dbf <+271>: mov    %esi,%eax
   0xf3816dc1 <+273>: paddq  %xmm0,%xmm1
   0xf3816dc5 <+277>: movdqa %xmm1,%xmm0
   0xf3816dc9 <+281>: movd   %xmm1,%edx
   0xf3816dcd <+285>: psrlq  $0x20,%xmm0
   0xf3816dd2 <+290>: cmp    %edx,%ebp
   0xf3816dd4 <+292>: movd   %xmm0,%ecx
   0xf3816dd8 <+296>: sbb    %ecx,%eax
   0xf3816dda <+298>: jae    0xf3816da0 <_XSend+240>
   0xf3816ddc <+300>: mov    0x538(%ebx),%ecx
   0xf3816de2 <+306>: movq   0x24(%ecx),%xmm0
   0xf3816de7 <+311>: movq   0x10(%esp),%xmm5
   0xf3816ded <+317>: mov    %edi,0x3c(%esp)
   0xf3816df1 <+321>: movq   %xmm5,0x24(%ecx)
   0xf3816df6 <+326>: mov    0x68(%ebx),%eax
   0xf3816df9 <+329>: mov    0x6c(%ebx),%edx
   0xf3816dfc <+332>: movdqa %xmm5,%xmm4
   0xf3816e00 <+336>: mov    0x50c(%ebx),%ebp
   0xf3816e06 <+342>: psubq  %xmm0,%xmm4
   0xf3816e0a <+346>: sub    %eax,%edx
   0xf3816e0c <+348>: mov    %eax,0x34(%esp)
   0xf3816e10 <+352>: mov    0x78(%esp),%eax
   0xf3816e14 <+356>: mov    %edx,0x38(%esp)
   0xf3816e18 <+360>: mov    %eax,0x40(%esp)
   0xf3816e1c <+364>: mov    0x18(%esp),%eax
=> 0xf3816e20 <+368>: movaps %xmm4,0x20(%esp)
   0xf3816e25 <+373>: lea    -0x9d8a0(%eax),%eax
   0xf3816e2b <+379>: mov    %eax,0x44(%esp)
   0xf3816e2f <+383>: mov    0x78(%esp),%eax
   0xf3816e33 <+387>: neg    %eax
   0xf3816e35 <+389>: and    $0x3,%eax
   0xf3816e38 <+392>: mov    %eax,0x48(%esp)
--Type <RET> for more, q to quit, c to continue without paging--c
   0xf3816e3c <+396>: lea    0x34(%esp),%eax
   0xf3816e40 <+400>: mov    %eax,0x10(%esp)
   0xf3816e44 <+404>: test   %ebp,%ebp
   0xf3816e46 <+406>: je     0xf3816e94 <_XSend+484>
   0xf3816e48 <+408>: mov    %ebx,0x8(%esp)
   0xf3816e4c <+412>: lea    0x4c(%esp),%esi
   0xf3816e50 <+416>: mov    0x10(%esp),%ebx
   0xf3816e54 <+420>: lea    0x4(%ebp),%edi
   0xf3816e57 <+423>: test   %edx,%edx
   0xf3816e59 <+425>: je     0xf3816e69 <_XSend+441>
   0xf3816e5b <+427>: push   %edx
   0xf3816e5c <+428>: push   (%ebx)
   0xf3816e5e <+430>: push   %edi
   0xf3816e5f <+431>: push   0x14(%esp)
   0xf3816e63 <+435>: call   *0x40(%ebp)
   0xf3816e66 <+438>: add    $0x10,%esp
   0xf3816e69 <+441>: add    $0x8,%ebx
   0xf3816e6c <+444>: cmp    %ebx,%esi
   0xf3816e6e <+446>: je     0xf3816e7e <_XSend+462>
   0xf3816e70 <+448>: mov    0x4(%ebx),%edx
   0xf3816e73 <+451>: test   %edx,%edx
   0xf3816e75 <+453>: jne    0xf3816e5b <_XSend+427>
   0xf3816e77 <+455>: add    $0x8,%ebx
   0xf3816e7a <+458>: cmp    %ebx,%esi
   0xf3816e7c <+460>: jne    0xf3816e70 <_XSend+448>
   0xf3816e7e <+462>: mov    0x44(%ebp),%ebp
   0xf3816e81 <+465>: test   %ebp,%ebp
   0xf3816e83 <+467>: je     0xf3816e90 <_XSend+480>
   0xf3816e85 <+469>: mov    0x38(%esp),%edx
   0xf3816e89 <+473>: jmp    0xf3816e50 <_XSend+416>
   0xf3816e8b <+475>: lea    0x0(%esi,%eiz,1),%esi
   0xf3816e8f <+479>: nop
   0xf3816e90 <+480>: mov    0x8(%esp),%ebx
   0xf3816e94 <+484>: sub    $0xc,%esp
   0xf3816e97 <+487>: push   0x30(%esp)
   0xf3816e9b <+491>: push   0x30(%esp)
   0xf3816e9f <+495>: push   $0x3
   0xf3816ea1 <+497>: push   0x28(%esp)
   0xf3816ea5 <+501>: push   0x38(%esp)
   0xf3816ea9 <+505>: mov    0x38(%esp),%eax
   0xf3816ead <+509>: call   *0x410(%eax)
   0xf3816eb3 <+515>: add    $0x20,%esp
   0xf3816eb6 <+518>: test   %eax,%eax
   0xf3816eb8 <+520>: js     0xf3816f13 <_XSend+611>
   0xf3816eba <+522>: mov    0x68(%ebx),%eax
   0xf3816ebd <+525>: mov    %eax,0x6c(%ebx)
   0xf3816ec0 <+528>: mov    0x18(%esp),%eax
   0xf3816ec4 <+532>: lea    -0x9d8a4(%eax),%eax
   0xf3816eca <+538>: mov    %eax,0x64(%ebx)
   0xf3816ecd <+541>: mov    %ebx,%eax
   0xf3816ecf <+543>: call   0xf38160a0 <check_internal_connections>
   0xf3816ed4 <+548>: test   %eax,%eax
   0xf3816ed6 <+550>: je     0xf3816ee4 <_XSend+564>
   0xf3816ed8 <+552>: sub    $0xc,%esp
   0xf3816edb <+555>: push   %ebx
   0xf3816edc <+556>: call   0xf3818650 <_XSetSeqSyncFunction>
   0xf3816ee1 <+561>: add    $0x10,%esp
   0xf3816ee4 <+564>: mov    0x4c(%esp),%eax
   0xf3816ee8 <+568>: sub    %gs:0x14,%eax
   0xf3816eef <+575>: jne    0xf3816f26 <_XSend+630>
   0xf3816ef1 <+577>: add    $0x5c,%esp
   0xf3816ef4 <+580>: pop    %ebx
   0xf3816ef5 <+581>: pop    %esi
   0xf3816ef6 <+582>: pop    %edi
   0xf3816ef7 <+583>: pop    %ebp
   0xf3816ef8 <+584>: ret   
   0xf3816ef9 <+585>: lea    0x0(%esi,%eiz,1),%esi
   0xf3816f00 <+592>: mov    0x4c8(%ebx),%eax
   0xf3816f06 <+598>: test   %eax,%eax
   0xf3816f08 <+600>: jne    0xf3816d64 <_XSend+180>
   0xf3816f0e <+606>: jmp    0xf3816de7 <_XSend+311>
   0xf3816f13 <+611>: sub    $0xc,%esp
   0xf3816f16 <+614>: push   %ebx
   0xf3816f17 <+615>: mov    0x28(%esp),%eax
   0xf3816f1b <+619>: call   *0x49c(%eax)
   0xf3816f21 <+625>: add    $0x10,%esp
   0xf3816f24 <+628>: jmp    0xf3816ee4 <_XSend+564>
   0xf3816f26 <+630>: call   0xf387ebf0 <__stack_chk_fail_local>
End of assembler dump.

I did make a modification to the XCALL #define to also print out debug info about the file and line number to help determine which XCALL was the culprit, but I don't think that effects the assembly output above. I also searched the internet for that stack alignment change but haven't found anything yet.
Title: Re: Icaros Desktop won't start
Post by: aros-sg on May 08, 2022, 12:17:52 PM
You said you recompiled libX11. Can you try redoing that with compiler flag "-mstackrealign".
Title: Re: Icaros Desktop won't start
Post by: ascendant on May 08, 2022, 02:00:52 PM
That works. I was able to bring up the AROS desktop. I doubt I can get the Arch package maintainer to add that compile flag. They'll probably say "well, no other 32-bit programs need it."

I fired up Icaros Desktop and it also works. I started going through the first boot options, and it was in the middle of extracting extra packages when it crashed again. Oh, well.
Title: Re: Icaros Desktop won't start
Post by: ascendant on May 10, 2022, 11:21:35 AM
I reran Icaros Desktop and it successfully installed I am able to launch it no problems, but it doesn't last long before it goes out of stack bounds. I have to see how to increase its stack size.
Title: Re: Icaros Desktop won't start
Post by: deadwood on May 10, 2022, 11:28:23 AM
With Icaros you get quite a comprehensive  manual in PDF format - that can be helpful. Otherwise, the stack can be set via an Icon property or if you start something from Shell, by issuing Stack command.
Title: Re: Icaros Desktop won't start
Post by: AMIGASYSTEM on May 10, 2022, 12:08:35 PM
@deadwood

On OS3 I use the "StackAttack" application to automatically get a higher stack when required, I must say it works well, on aminet "StackAttack" includes a small source in "ASM", do you think it could be ported to AROS x86?

https://aminet.net/package/util/boot/StackAttack2