Skip to content

execution error: won't load program to null base address #181

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

Open
illwieckz opened this issue Jan 30, 2025 · 0 comments
Open

execution error: won't load program to null base address #181

illwieckz opened this issue Jan 30, 2025 · 0 comments

Comments

@illwieckz
Copy link

illwieckz commented Jan 30, 2025

Out of curiosity, I wanted to see if the NativeClient loader was running inside blink, but I got this:

$ blink ./nacl_helper_bootstrap ./sel_ldr --r_debug=0xXXXXXXXXXXXXXXXX --reserved_at_zero=0xXXXXXXXXXXXXXXXX -B irt_core.nexe -- helloworld-amd64.nexe 
E2025-01-30T13:29:19.693681:blink/loader.c:392:3009979 won't load program to null base address

Here is how it runs outside of blink:

$ ./nacl_helper_bootstrap ./sel_ldr --r_debug=0xXXXXXXXXXXXXXXXX --reserved_at_zero=0xXXXXXXXXXXXXXXXX -B irt_core.nexe -- helloworld-amd64.nexe 
[3053966,2472942464:13:35:53.134365] Native Client module will be loaded at base address 0x0000327000000000
hello world

What doesn't run in blink is the nacl_helper_boostrap binary, the sel_ldr one runs when called directly, but doesn't run properly anyway, I don't know if it's because of the missing bootstrap helper or something else:

$ blink ./sel_ldr -B irt_core.nexe -- helloworld-amd64.nexe 
I2025-01-30T14:07:54.643563:blink/syscall.c:1179:3277136 not enough virtual memory (de9 / 1000000 pages) to map size 1600000000
[3277136,3532608:14:07:54.643863] NaClAllocatePow2AlignedMemory: Failed to reserve 1600000000 bytes of address space

What could be preventing to run such program in blink?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant