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.

When I do not enable the configuration, I have:
[    5.800748] Run /bin/bash as init process
[    5.800807]   with arguments:
[    5.800865]     /bin/bash
[    5.800918]   with environment:
[    5.800964]     HOME=/
[    5.801011]     TERM=linux
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
bash-5.2#

I added SUPPORT_LD_DEBUG_EARLY and here is the output:
[    5.820897] Run /bin/bash as init process
[    5.820962]   with arguments:
[    5.835089]     /bin/bash
[    5.835177]   with environment:
[    5.835231]     HOME=/
[    5.835282]     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) /usr/lib/libreadline.so.8
_dl_get_ready_to_run:1079: Loading: (0x60052000) /usr/lib/libhistory.so.8
_dl_get_ready_to_run:1079: Loading: (0x6005e000) /usr/lib/libncurses.so.6
_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 0x60128bb8 (size = 0x4)
_dl_get_ready_to_run:1079: Loading: (0x600a4000) /lib/libc.so.0
_dl_get_ready_to_run:1079: Loading: (0x6005e000) /usr/lib/libncurses.so.6
_dl_get_ready_to_run:1079: Loading: (0x600a4000) /lib/libc.so.0
_dl_get_ready_to_run:1079: Loading: (0x6005e000) /usr/lib/libncurses.so.6
_dl_get_ready_to_run:1079: Loading: (0x600a4000) /lib/libc.so.0
_dl_get_ready_to_run:1079: Loading: (0x600a4000) /lib/libc.so.0
_dl_get_ready_to_run:1079: Loading: (0x60000000) /lib/ld-uClibc.so.0
_dl_get_ready_to_run:1220: Calling init_tls()!
_dl_get_ready_to_run:1320: Beginning relocation fixups
[ 7.156188] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b [ 7.156278] CPU: 0 UID: 0 PID: 1 Comm: bash Not tainted 6.14.0-rc1-00083-g859f1346c094 #2264
[    7.156388] Stack from 41849e20:
[ 7.156388] 41849e20 415715bd 415715bd 41450b00 00000001 0000000b 41849e44 4100c4be [ 7.156388] 415715bd 41849e64 410034ec 41450bf8 418780ff 0000000b 418780c8 41874000 [ 7.156388] 00000000 41849ea0 410168a0 41545f7b 0000000b 0000000b 41849f80 00000001 [ 7.156388] 418780c8 400004d8 4184e000 41878000 4184e000 00000000 00000000 00000000 [ 7.156388] 41849eb8 41016f88 0000000b 0000000b 41849f80 41849f6c 41849ef0 4101febe [ 7.156388] 0000000b 41849f6c 00000000 8000e4a4 8000e4a4 6000c028 00000001 41849fcc
[    7.157964] Call Trace: [<41450b00>] rtlock_slowlock_locked+0x79c/0x894
[    7.158153]  [<4100c4be>] dump_stack+0x10/0x16
[    7.158305]  [<410034ec>] panic+0xda/0x28e
[    7.158415]  [<41450bf8>] rt_spin_lock+0x0/0x7c
[    7.158542]  [<410168a0>] do_exit+0x18a/0x71e
[    7.158708]  [<41016f88>] do_group_exit+0x26/0x78
[    7.158844]  [<4101febe>] get_signal+0x500/0x602
[    7.158963]  [<4100f150>] test_ti_thread_flag+0x0/0x1a
[    7.159116]  [<4100f810>] do_notify_resume+0x3a/0x4da
[    7.159237]  [<4101f1ea>] force_sig_fault+0x18/0x1c
[    7.159350]  [<4101072e>] send_fault_sig+0x56/0xba
[    7.159471]  [<410109a0>] do_page_fault+0x20e/0x2b6
[    7.159596]  [<4101126a>] Lsignal_return+0x14/0x26
[    7.159726]
[ 7.293555] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b ]---


Any idea would be appreciated :-).

Thanks !
JM
_______________________________________________
devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to