Open pwq1989 opened 4 years ago
Thanks for your report. This is a known issue same as #52 . Don't know why now.
thx
Using "cargo run -p zircon-loader prebuilt/zircon" method to run zcore, zcore is running in user-mode of Linux. I think the REAL problem is there are no simulated device(like qemu) in user-mode zcore.
The old version of zCore in user mode can run in linux. Please try
cd zCore; git check e0ea3b01f92a ; cargo run --release -p zircon-loader prebuilt/zircon
commit e0ea3b01f92a10180a2868d19d50ca632f8bc953 Author: Runji Wang wangrunji0408@163.com Date: Sun Apr 19 01:41:18 2020 +0800
fix serial_read on hal-unix. now shell is working on zircon libos on Linux!
@pwq1989 If you have some free time, please find the bug in current zCore.
sorry for later reply ..
i try @chyyuu comment but also crashed
bootsvc: Starting...
bootsvc: Taking root resource handle...
bootsvc: Creating bootfs service...
bootsvc: Retrieving boot image...
bootsvc: Decommitted BOOTDATA VMO from 0 to 0x4dbb000
bootsvc: Loading boot arguments...
bootsvc: Creating svcfs service...
bootsvc: Loading kernel VMOs...
bootsvc: Creating loader service...
bootsvc: Launching next process...
bootsvc: bootsvc.next = bin/component_manager,fuchsia-boot:///#meta/root.cm,--use-builtin-process-launcher
userboot: loader-service channel peer closed
userboot: finished!
bootsvc: Launched bin/component_manager
[component_manager] INFO: Component manager is starting up...
fshost: watching for exit
driver_manager: launch /boot/bin/svchost (svchost) OK
console.shell: enabled
driver_manager: launch /boot/bin/pwrbtn-monitor (pwrbtn-monitor) OK
Segmentation fault (core dumped)
git version
$ git status
# HEAD detached at e0ea3b0
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: rboot (new commits)
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# core.25947
no changes added to commit (use "git add" and/or "git commit -a")
but backtrace has some different
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `target/release/zircon-loader prebuilt/zircon'.
Program terminated with signal 11, Segmentation fault.
#0 0x000056428f4bd2a0 in ?? ()
Missing separate debuginfos, use: debuginfo-install libgcc-4.8.5-39.el7.x86_64
(gdb) bt
#0 0x000056428f4bd2a0 in ?? ()
#1 0x00007f4ea39fb5b0 in ?? ()
#2 0x000056428da8c392 in _$LT$core..future..from_generator..GenFuture$LT$T$GT$$u20$as$u20$core..future..future..Future$GT$::poll::h8b48337ca2fb3c6c
()
#3 0x0000000000000017 in ?? ()
#4 0x0000000000000000 in ?? ()
recently i'm not really deep understand zcore design and details, i will try to learn it and found why crashed ...
btw, how can i debug this core or debug codes in guest ... T_T
backtrace:
command:
env:
zCore version