Skip to content

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

Open

Description

@illwieckz

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions