-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Porting VMMAP to RawPOSIX #56
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! Minor changes requested.
Would it make more sense to move LIND_ROOT
in fs_calls.rs and net_calls.rs to corresponding constant files as well?
@ChinmayShringi add address checking and conversion:
|
@ChinmayShringi additional tasks
|
@Yaxuan-w and @JustinCappos I just changed this to approved on my end. I think its good to go. I'll need you both to change to approved to merge this so if you could take another look that would be great. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the future, let's break these down into separate PRs and make it easier to review. A lot of this isn't strictly VMMAP related.
I met error when running with latest lind@d9a905abb17d:~/lind-wasm$ ./lindtool.sh run tests/unit-tests/process_tests/deterministic/hello
/home/lind/lind-wasm/src/wasmtime/target/debug/wasmtime run --allow-precompiled --wasi threads=y --wasi preview2=n tests/unit-tests/process_tests/deterministic/hello.cwasm
warkError: failed to run main module `tests/unit-tests/process_tests/deterministic/hello.cwasm`
Caused by:
0: failed to invoke command default
1: error while executing at wasm backtrace:
0: 0x38da6 - <unknown>!sysmalloc
1: 0x36449 - <unknown>!_int_malloc
2: 0x32d91 - <unknown>!tcache_init
3: 0x321a4 - <unknown>!__libc_malloc
4: 0x7ad41 - <unknown>!_IO_file_doallocate
5: 0x7710e - <unknown>!_IO_doallocbuf
6: 0x88936 - <unknown>!_IO_new_file_overflow
7: 0x754fd - <unknown>!__overflow
8: 0x729bc - <unknown>!_IO_puts
9: 0x14d9 - <unknown>!__original_main
10: 0x1361 - <unknown>!_start
11: 0x114174 - <unknown>!_start.command_export
note: using the `WASMTIME_BACKTRACE_DETAILS=1` environment variable may show more debugging information
2: memory fault at wasm address 0xde3f00c in linear memory of size 0x30000
3: wasm trap: out of bounds memory access |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR appears well documented and code is clear. I see no changes to request.
1f22d50
I believe current vmmap-alice branch cannot compile because there is a misresolved merge conflict with main branch previously, the |
Yeah there seems like the build CI isn't working correctly. I mentioned this to @yashaswi2000 |
There was no error message printed on my screen previously. I still met same error with updated Operations I did: git pull
./lindtool.sh make_all
./lindtool.sh cptest tests/unit-tests/process_tests/deterministic/hello
./lindtool.sh run tests/unit-tests/process_tests/deterministic/hello Error message: lind@d9a905abb17d:~/lind-wasm$ ./lindtool.sh run tests/unit-tests/process_tests/deterministic/hello
/home/lind/lind-wasm/src/wasmtime/target/debug/wasmtime run --allow-precompiled --wasi threads=y --wasi preview2=n tests/unit-tests/process_tests/deterministic/hello.cwasm
warkError: failed to run main module `tests/unit-tests/process_tests/deterministic/hello.cwasm`
Caused by:
0: failed to invoke command default
1: error while executing at wasm backtrace:
0: 0x38da6 - <unknown>!sysmalloc
1: 0x36449 - <unknown>!_int_malloc
2: 0x32d91 - <unknown>!tcache_init
3: 0x321a4 - <unknown>!__libc_malloc
4: 0x7ad41 - <unknown>!_IO_file_doallocate
5: 0x7710e - <unknown>!_IO_doallocbuf
6: 0x88936 - <unknown>!_IO_new_file_overflow
7: 0x754fd - <unknown>!__overflow
8: 0x729bc - <unknown>!_IO_puts
9: 0x14d9 - <unknown>!__original_main
10: 0x1361 - <unknown>!_start
11: 0x114174 - <unknown>!_start.command_export
note: using the `WASMTIME_BACKTRACE_DETAILS=1` environment variable may show more debugging information
2: memory fault at wasm address 0x1470000c in linear memory of size 0x30000
3: wasm trap: out of bounds memory access The latest change seems only remove function from dispatcher.rs, which shouldn't cause any compilation error even it was still there. I also noticed that Is there any other operations I need to do? |
Have you run |
Works, thanks! |
Please note this is taken from RawPosix: (Lind-Project/RawPOSIX#87)
Description
Issue # 45
Type of change
Porting pranav-bhatt and ruchjoshi-nyu implementation of VMMAP to RawPOSIX. Request review for porting location and if more comments are needed.
I also added few comments to make things more clear. That would be great if ruchjoshi-nyu could review their correctness.
How Has This Been Tested?
Checklist: