Skip to content

Releases: thehajime/linux

mt-debug

07 Nov 12:10
Compare
Choose a tag to compare
mt-debug Pre-release
Pre-release

To reproduce the issue, download and extract the attached file (um-nommu-mt-debug.zip).

gdb --args ./vmlinux ubd0=./alpine.ext4 ro mem=256m

this will launch a gdb session. in gdb session,

${HOSTNAME%%.*}:$PWD# apk

this would reproduce the issue of vma iteration.

${HOSTNAME%%.*}:$PWD# apk

apk-tools 2.14.4, compiled for x86_64.

usage: apk [<OPTIONS>...] COMMAND [<ARGUMENTS>...]
(snip)
Thread 1 "vmlinux" received signal SIGSEGV, Segmentation fault.
                                                               acct_collect (exitcode=exitcode@entry
=256, group_dead=group_dead@entry=1) at ../kernel/acct.c:565
warning: 565    ../kernel/acct.c: No such file or directory
(gdb) bt
#0  acct_collect (exitcode=exitcode@entry=256, group_dead=group_dead@entry=1)
    at ../kernel/acct.c:565
#1  0x0000000060039faa in do_exit (code=code@entry=256) at ../kernel/exit.c:918
#2  0x000000006003a95d in do_group_exit (exit_code=256) at ../kernel/exit.c:1088
#3  0x000000006003a977 in __do_sys_exit_group (error_code=<optimized out>) at ../kernel/exit.c:1099
#4  __se_sys_exit_group (error_code=<optimized out>) at ../kernel/exit.c:1097
#5  0x00000000600349ad in do_syscall_64 (regs=0x60a78750) at ../arch/x86/um/do_syscall_64.c:83
#6  0x0000000060034b1a in __kernel_vsyscall () at ../arch/x86/um/entry_64.S:73