Skip to content

Instantly share code, notes, and snippets.

@davecheney
Created July 31, 2015 00:41
Show Gist options
  • Select an option

  • Save davecheney/f56e28ca4573f241d9fc to your computer and use it in GitHub Desktop.

Select an option

Save davecheney/f56e28ca4573f241d9fc to your computer and use it in GitHub Desktop.
/root/bin/sel_ldr_arm --reserved_at_zero=0x0000000040002000 -vvvv -S -- /tmp/go-build173594840/bufio/_test/bufio.test -test.v=true
[19585,1995730944:00:40:27.336968] Set(0,(nil)) @ix 0: 0x00000000
[19585,1995730944:00:40:27.337798] After @ix 0: 0x00000000, avail_ix 0
[19585,1995730944:00:40:27.356936] Processing I/O redirection/inheritance from environment
[19585,1995730944:00:40:27.357058] NaClAddHostDescriptor: host 5 as nacl desc 0, flag 0x0
[19585,1995730944:00:40:27.357156] NaClRefCountCtor(0x775a1408).
[19585,1995730944:00:40:27.357220] Set(0,0x775a1408) @ix 0: 0x00000000
[19585,1995730944:00:40:27.357274] After @ix 0: 0x00000001, avail_ix 0
[19585,1995730944:00:40:27.357329] NaClAddHostDescriptor: host 6 as nacl desc 1, flag 0x441
[19585,1995730944:00:40:27.357378] NaClRefCountCtor(0x775a1450).
[19585,1995730944:00:40:27.357426] Set(1,0x775a1450) @ix 0: 0x00000001
[19585,1995730944:00:40:27.357476] After @ix 0: 0x00000003, avail_ix 0
[19585,1995730944:00:40:27.357540] NaClAddHostDescriptor: host 7 as nacl desc 2, flag 0x441
[19585,1995730944:00:40:27.357607] NaClRefCountCtor(0x775a1498).
[19585,1995730944:00:40:27.357673] Set(2,0x775a1498) @ix 0: 0x00000003
[19585,1995730944:00:40:27.357737] After @ix 0: 0x00000007, avail_ix 0
[19585,1995730944:00:40:27.357798] ... done.
[19585,1995730944:00:40:27.357845] Loading nacl file /tmp/go-build173594840/bufio/_test/bufio.test (non-RPC)
[19585,1995730944:00:40:27.357892] NaClHostDescOpen(0x775a12d0, /tmp/go-build173594840/bufio/_test/bufio.test, 0x0, 0x1b6)
[19585,1995730944:00:40:27.357939] NaClHostDescOpen: invoking POSIX open(/tmp/go-build173594840/bufio/_test/bufio.test,0x20000,0600)
[19585,1995730944:00:40:27.358039] NaClHostDescOpen: got descriptor 8
[19585,1995730944:00:40:27.358098] NaClHostDescCtor: success.
[19585,1995730944:00:40:27.358156] NaClRefCountCtor(0x775a14e8).
[19585,1995730944:00:40:27.358215] Entered NaClAppLoadModule: nap 0x775a10a8, nexe 0x775a14e8
[19585,1995730944:00:40:27.358279] NaClRefCountRef(0x775a14e8).
[19585,1995730944:00:40:27.358364] =================================================
[19585,1995730944:00:40:27.358429] Elf header
[19585,1995730944:00:40:27.358476] ==================================================
[19585,1995730944:00:40:27.358521] e_ident+1 = ELF
[19585,1995730944:00:40:27.358565] e_type = 0x2
[19585,1995730944:00:40:27.358610] e_machine = 0x28
[19585,1995730944:00:40:27.358654] e_version = 0x1
[19585,1995730944:00:40:27.358698] e_entry = 0x9dbe0
[19585,1995730944:00:40:27.358742] e_phoff = 0x34
[19585,1995730944:00:40:27.358785] e_shoff = 0xb4
[19585,1995730944:00:40:27.358829] e_flags = 0
[19585,1995730944:00:40:27.358872] e_ehsize = 0x34
[19585,1995730944:00:40:27.358917] e_phentsize = 0x20
[19585,1995730944:00:40:27.358965] e_phnum = 0x4
[19585,1995730944:00:40:27.359030] e_shentsize = 0x28
[19585,1995730944:00:40:27.359085] e_shnum = 0xd
[19585,1995730944:00:40:27.359132] e_shstrndx = 0x6
[19585,1995730944:00:40:27.359181] sizeof(Elf32_Ehdr) = 0x34
[19585,1995730944:00:40:27.359236] =================================================
[19585,1995730944:00:40:27.359288] Elf Program headers
[19585,1995730944:00:40:27.359337] ==================================================
[19585,1995730944:00:40:27.359392] p_type: 6
[19585,1995730944:00:40:27.359443] p_offset: 34
[19585,1995730944:00:40:27.359496] p_vaddr: 10034
[19585,1995730944:00:40:27.359549] p_paddr: 10034
[19585,1995730944:00:40:27.359600] p_filesz: 80
[19585,1995730944:00:40:27.359651] p_memsz: 80
[19585,1995730944:00:40:27.359701] p_flags: 4
[19585,1995730944:00:40:27.359747] (PF_R )
[19585,1995730944:00:40:27.359794] p_align: 10000
[19585,1995730944:00:40:27.359840]
[19585,1995730944:00:40:27.359884] p_type: 1
[19585,1995730944:00:40:27.359928] p_offset: 10000
[19585,1995730944:00:40:27.360103] p_vaddr: 20000
[19585,1995730944:00:40:27.360165] p_paddr: 20000
[19585,1995730944:00:40:27.360216] p_filesz: 1c7330
[19585,1995730944:00:40:27.360266] p_memsz: 1c7330
[19585,1995730944:00:40:27.360314] p_flags: 5
[19585,1995730944:00:40:27.360362] (PF_R PF_X)
[19585,1995730944:00:40:27.360414] p_align: 10000
[19585,1995730944:00:40:27.360459]
[19585,1995730944:00:40:27.360502] p_type: 1
[19585,1995730944:00:40:27.360548] p_offset: 1e0000
[19585,1995730944:00:40:27.360592] p_vaddr: 1f0000
[19585,1995730944:00:40:27.360635] p_paddr: 1f0000
[19585,1995730944:00:40:27.360678] p_filesz: 553c89
[19585,1995730944:00:40:27.360724] p_memsz: 553c89
[19585,1995730944:00:40:27.360768] p_flags: 4
[19585,1995730944:00:40:27.360812] (PF_R )
[19585,1995730944:00:40:27.360856] p_align: 10000
[19585,1995730944:00:40:27.360901]
[19585,1995730944:00:40:27.360943] p_type: 1
[19585,1995730944:00:40:27.360987] p_offset: 740000
[19585,1995730944:00:40:27.361061] p_vaddr: 750000
[19585,1995730944:00:40:27.361111] p_paddr: 750000
[19585,1995730944:00:40:27.361156] p_filesz: 14108
[19585,1995730944:00:40:27.361200] p_memsz: 2d248
[19585,1995730944:00:40:27.361243] p_flags: 6
[19585,1995730944:00:40:27.361287] (PF_R PF_W )
[19585,1995730944:00:40:27.361330] p_align: 10000
[19585,1995730944:00:40:27.361374]
[19585,1995730944:00:40:27.361439] Looking at segment 0, type 0x6, p_flags 0x4
[19585,1995730944:00:40:27.361490] Matched nacl_phdr_check_data[0]
[19585,1995730944:00:40:27.361536] Ignoring
[19585,1995730944:00:40:27.361578] Looking at segment 1, type 0x1, p_flags 0x5
[19585,1995730944:00:40:27.361626] Matched nacl_phdr_check_data[1]
[19585,1995730944:00:40:27.361681] Looking at segment 2, type 0x1, p_flags 0x4
[19585,1995730944:00:40:27.361737] Matched nacl_phdr_check_data[2]
[19585,1995730944:00:40:27.361784] Looking at segment 3, type 0x1, p_flags 0x6
[19585,1995730944:00:40:27.361830] Matched nacl_phdr_check_data[3]
[19585,1995730944:00:40:27.361874] Values from NaClElfImageValidateProgramHeaders:
[19585,1995730944:00:40:27.361920] rodata_start = 0x001f0000
[19585,1995730944:00:40:27.361964] rodata_end = 0x00743c89
[19585,1995730944:00:40:27.362029] data_start = 0x00750000
[19585,1995730944:00:40:27.362080] data_end = 0x0077d248
[19585,1995730944:00:40:27.362126] max_vaddr = 0x0077d248
[19585,1995730944:00:40:27.362172] NaClApp addr space layout:
[19585,1995730944:00:40:27.362216] nap->static_text_end = 0x00000000001e7330
[19585,1995730944:00:40:27.362261] nap->dynamic_text_start = 0x0000000000000000
[19585,1995730944:00:40:27.362306] nap->dynamic_text_end = 0x0000000000000000
[19585,1995730944:00:40:27.362349] nap->rodata_start = 0x00000000001f0000
[19585,1995730944:00:40:27.362394] nap->data_start = 0x0000000000750000
[19585,1995730944:00:40:27.362441] nap->data_end = 0x000000000077d248
[19585,1995730944:00:40:27.362484] nap->break_addr = 0x000000000077d248
[19585,1995730944:00:40:27.362528] nap->initial_entry_pt = 0x000000000009dbe0
[19585,1995730944:00:40:27.362666] nap->user_entry_pt = 0x0000000000000000
[19585,1995730944:00:40:27.362725] nap->bundle_size = 0x10
[19585,1995730944:00:40:27.362775] Allocating address space
[19585,1995730944:00:40:27.362829] NaClPerfCounterInterval(NaClAppLoadFile __start__:PreAllocAddrSpace): 4486 microsecs
[19585,1995730944:00:40:27.362883] NaClAllocAddrSpace: calling NaClAllocateSpace(*,0x0000000040000000)
[19585,1995730944:00:40:27.362949] NaClFindPrereservedSandboxMemory(, 0x40002000)
[19585,1995730944:00:40:27.363026] NaClAllocateSpace: 0, 3fff2000
[19585,1995730944:00:40:27.363100] Native Client module will be loaded at base address 0x0000000000000000
[19585,1995730944:00:40:27.363157] madvising 0x00780000, 0x3e880000, MADV_DONTNEED
[19585,1995730944:00:40:27.363247] mprotecting 0x00780000, 0x3e880000, PROT_NONE
[19585,1995730944:00:40:27.363312] NaClPerfCounterInterval(NaClAppLoadFile PreAllocAddrSpace:*AllocAddrSpace): 483 microsecs
[19585,1995730944:00:40:27.363368] Loading into memory
[19585,1995730944:00:40:27.363431] loading segment 1
[19585,1995730944:00:40:27.363481] NaClElfImageLoad: checking descriptor mmap safety
[19585,1995730944:00:40:27.363530] PReading 1864496 (0x1c7330) bytes to address 0x20000, position 65536 (0x10000)
[19585,1995730944:00:40:27.369946] loading segment 2
[19585,1995730944:00:40:27.370109] NaClElfImageLoad: checking descriptor mmap safety
[19585,1995730944:00:40:27.370166] PReading 5586057 (0x553c89) bytes to address 0x1f0000, position 1966080 (0x1e0000)
[19585,1995730944:00:40:27.391577] loading segment 3
[19585,1995730944:00:40:27.391717] NaClElfImageLoad: checking descriptor mmap safety
[19585,1995730944:00:40:27.391785] PReading 82184 (0x14108) bytes to address 0x750000, position 7602176 (0x740000)
[19585,1995730944:00:40:27.392212] NaClPerfCounterInterval(NaClAppLoadFile *AllocAddrSpace:*NaClElfImageLoad): 28895 microsecs
[19585,1995730944:00:40:27.392311] Replacing gap between static text and (ro)data with shareable memory
[19585,1995730944:00:40:27.392387] NaClMakeDynamicTextShared: shm_vaddr_base = 001e7330
[19585,1995730944:00:40:27.392446] NaClMakeDynamicTextShared: shm_vaddr_base = 001f0000
[19585,1995730944:00:40:27.392493] shm_upper_bound = 001f0000
[19585,1995730944:00:40:27.392538] NaClMakeDynamicTextShared: dynamic_text_size = 0
[19585,1995730944:00:40:27.392584] Empty JITtable region
[19585,1995730944:00:40:27.392629] NaClPerfCounterInterval(NaClAppLoadFile *NaClElfImageLoad:*MakeDynText): 423 microsecs
[19585,1995730944:00:40:27.392678] Filling with halts: 001e7330, 00008cd0 bytes
[19585,1995730944:00:40:27.392792] Validating image
[19585,1995730944:00:40:27.525391] VALIDATION FAILED.
[19585,1995730944:00:40:27.525507] Run sel_ldr in debug mode to ignore validation failure.
[19585,1995730944:00:40:27.525568] Run ncval <module-name> for validation error details.
[19585,1995730944:00:40:27.525625] NaClPerfCounterInterval(NaClAppLoadFile *MakeDynText:*ValidateImg): 132995 microsecs
[19585,1995730944:00:40:27.525682] NaClPerfCounterInterval(NaClAppLoadFile __start__:EndLoadFile): 167340 microsecs
[19585,1995730944:00:40:27.525737] NaClRefCountUnref(0x775a14e8).
[19585,1995730944:00:40:27.525789] NaClRefCountUnref(0x775a14e8).
[19585,1995730944:00:40:27.525840] NaClDescIoDescDtor(0x775a14e8).
[19585,1995730944:00:40:27.525928] NaClRefCountDtor(0x775a14e8), refcount 0, destroying.
[19585,1995730944:00:40:27.525988] Error while loading "/tmp/go-build173594840/bufio/_test/bufio.test": Validation failure. File violates Native Client safety rules.
Using the wrong type of nexe (nacl-x86-32 on an x86-64 or vice versa)
or a corrupt nexe file may be responsible for this error.
[19585,1995730944:00:40:27.526148] NaClPerfCounterInterval(SelMain __start__:AppLoadEnd): 190242 microsecs
[19585,1995730944:00:40:27.526202] Processing I/O redirection/inheritance from command line
[19585,1995730944:00:40:27.526251] NACL: Application output follows
[19585,1995730944:00:40:27.526305] Entered NaClAppStartModule, nap 0x775a10a8, start_cb 0x0, instance_data 0x0
[19585,1995730944:00:40:27.526355] NaClAppStartModule: error loading module
[19585,1995730944:00:40:27.526402] Not running app code since errcode is Validation failure. File violates Native Client safety rules. (57)
Dumping vmmap.
In PrintVmmap
Done.
[19585,1995730944:00:40:27.526606] NaClTlsFini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment