Hi !
On 2/18/25 10:34 AM, Waldemar Brodkorb wrote:
Hi, Jean-Michel Hautbois wrote,
Hello!
I have a custom buildroot image, for a M54418 coldfire. It works fine with uclibc-ng (1.0.50). I wanted to enable the LD_DEBUG support, with SUPPORT_LD_DEBUG but the init fails. I am using init=/bin/bash.
Can you try with busybox init? Do you get the same result?
Yes: [ 5.794604] Run /sbin/init as init process [ 5.794662] with arguments: [ 5.794717] /sbin/init [ 5.794769] with environment: [ 5.794814] HOME=/ [ 5.794862] TERM=linux ELF header=0x60000000 First Dynamic section entry=0x60009be0 Scanning DYNAMIC section Done scanning DYNAMIC section About to do library loader relocations Done relocating ldso; we can now use globals and make function calls! _dl_get_ready_to_run:473: Cool, ldso survived making function calls _dl_malloc:243: mmapping more memory _dl_ldsopath_init:157: Lib Loader: (0x60000000) /lib/ld-uClibc.so.0: using path: /lib _dl_get_ready_to_run:1079: Loading: (0x60010000) /lib/libpam.so.0 _dl_get_ready_to_run:1079: Loading: (0x60022000) /lib/libpam_misc.so.0 _dl_load_elf_shared_library:843: Found TLS header for /lib/libc.so.0 _dl_load_elf_shared_library:870: Relocated TLS initial image from 0x84bb8 to 0x600aebb8 (size = 0x4) _dl_get_ready_to_run:1079: Loading: (0x6002a000) /lib/libc.so.0 _dl_get_ready_to_run:1079: Loading: (0x600b6000) /lib/libatomic.so.1 _dl_get_ready_to_run:1079: Loading: (0x6002a000) /lib/libc.so.0 _dl_get_ready_to_run:1079: Loading: (0x60010000) /lib/libpam.so.0 _dl_get_ready_to_run:1079: Loading: (0x600b6000) /lib/libatomic.so.1 _dl_get_ready_to_run:1079: Loading: (0x6002a000) /lib/libc.so.0 _dl_get_ready_to_run:1079: Loading: (0x60000000) /lib/ld-uClibc.so.0 _dl_get_ready_to_run:1079: Loading: (0x6002a000) /lib/libc.so.0 _dl_get_ready_to_run:1220: Calling init_tls()! _dl_get_ready_to_run:1320: Beginning relocation fixups [ 6.704819] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b [ 6.704907] CPU: 0 UID: 0 PID: 1 Comm: init Not tainted 6.14.0-rc1-00083-g859f1346c094 #2264 [ 6.705017] Stack from 41849e20: [ 6.705017] 41849e20 415715bd 415715bd 41450b00 00000001 0000000b 41849e44 4100c4be [ 6.705017] 415715bd 41849e64 410034ec 41450bf8 418780ff 0000000b 418780c8 41874000 [ 6.705017] 00000000 41849ea0 410168a0 41545f7b 0000000b 0000000b 41849f80 00000001 [ 6.705017] 418780c8 400004d8 4184e000 41878000 4184e000 00000000 00000000 00000000 [ 6.705017] 41849eb8 41016f88 0000000b 0000000b 41849f80 41849f6c 41849ef0 4101febe [ 6.705017] 0000000b 41849f6c 00000000 8000292c 8000292c 6000c028 00000001 41849fcc [ 6.706581] Call Trace: [<41450b00>] rtlock_slowlock_locked+0x79c/0x894 [ 6.706771] [<4100c4be>] dump_stack+0x10/0x16 [ 6.706921] [<410034ec>] panic+0xda/0x28e [ 6.707033] [<41450bf8>] rt_spin_lock+0x0/0x7c [ 6.707158] [<410168a0>] do_exit+0x18a/0x71e [ 6.707319] [<41016f88>] do_group_exit+0x26/0x78 [ 6.707458] [<4101febe>] get_signal+0x500/0x602 [ 6.707580] [<4100f150>] test_ti_thread_flag+0x0/0x1a [ 6.707737] [<4100f810>] do_notify_resume+0x3a/0x4da [ 6.707861] [<4101f1ea>] force_sig_fault+0x18/0x1c [ 6.707977] [<4101072e>] send_fault_sig+0x56/0xba [ 6.708098] [<410109a0>] do_page_fault+0x20e/0x2b6 [ 6.708222] [<4101126a>] Lsignal_return+0x14/0x26 [ 6.708356] [ 6.842182] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b ]---
JM