I am facing a strange issue on 10.8. My client is reporting that build isn't working on 10.8. I have tested the build on 2 systems both systems have 10.11 installed.
in 10.8 log its saying
Library not loaded: #rpath/libfmod.dylib
reason: image not found
I have added "#executable_path" in Runtime Search Path.
In Copy files build phase i have added libfmod.dylib and its destination is Executables
In my personal opinion if the problem is with run path then it shouldn't run on my machine either.
Another thing i have noticed is both machines have diffrent "Referenced From" path. my client crash log for osx10.8 shows
/Applications/MyApp.app/Contents/Resources/.MyApp.app/Contents/MacOS/My App
while my log shows
/Applications/MyApp.app/Contents/MacOS/MyApp
could this be a problem?
Any help would be appreciated.
EDIT
here is the result of running otool -l command on dylib
Load command 3
cmd LC_ID_DYLIB
cmdsize 48
name #rpath/libfmod.dylib (offset 24)
time stamp 1 Thu Jan 1 05:00:01 1970
current version 1.0.0
compatibility version 1.0.0
Load command 4
cmd LC_SYMTAB
cmdsize 24
symoff 1320816
nsyms 1233
stroff 1341592
strsize 38776
Load command 5
cmd LC_DYSYMTAB
cmdsize 80
ilocalsym 0
nlocalsym 1
iextdefsym 1
nextdefsym 1107
iundefsym 1108
nundefsym 125
tocoff 0
ntoc 0
modtaboff 0
nmodtab 0
extrefsymoff 0
nextrefsyms 0
indirectsymoff 1340592
nindirectsyms 250
extreloff 1340544
nextrel 6
locreloff 1302528
nlocrel 1672
Load command 6
cmd LC_UUID
cmdsize 24
uuid 44E30C32-DE34-37CF-BD39-3F67491607C4
Load command 7
cmd LC_VERSION_MIN_MACOSX
cmdsize 16
version 10.5
sdk 10.11
Load command 8
cmd LC_LOAD_DYLIB
cmdsize 88
name /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (offset 24)
time stamp 2 Thu Jan 1 05:00:02 1970
current version 157.0.0
compatibility version 2.0.0
Load command 9
cmd LC_LOAD_DYLIB
cmdsize 96
name /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit (offset 24)
time stamp 2 Thu Jan 1 05:00:02 1970
current version 1.0.0
compatibility version 1.0.0
Load command 10
cmd LC_LOAD_DYLIB
cmdsize 96
name /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio (offset 24)
time stamp 2 Thu Jan 1 05:00:02 1970
current version 1.0.0
compatibility version 1.0.0
Load command 11
cmd LC_LOAD_DYLIB
cmdsize 56
name /usr/lib/libstdc++.6.dylib (offset 24)
time stamp 2 Thu Jan 1 05:00:02 1970
current version 104.1.0
compatibility version 7.0.0
Load command 12
cmd LC_LOAD_DYLIB
cmdsize 56
name /usr/lib/libSystem.B.dylib (offset 24)
time stamp 2 Thu Jan 1 05:00:02 1970
current version 1225.1.1
compatibility version 1.0.0
Load command 13
cmd LC_LOAD_DYLIB
cmdsize 56
name /usr/lib/libgcc_s.1.dylib (offset 24)
time stamp 2 Thu Jan 1 05:00:02 1970
current version 955.0.0
compatibility version 1.0.0
Load command 14
cmd LC_LOAD_DYLIB
cmdsize 104
name /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (offset 24)
time stamp 2 Thu Jan 1 05:00:02 1970
current version 1253.0.0
compatibility version 150.0.0
Load command 15
cmd LC_FUNCTION_STARTS
cmdsize 16
dataoff 1315904
datasize 4912
Load command 16
cmd LC_DATA_IN_CODE
cmdsize 16
dataoff 1320816
datasize 0
Edit otool -l results for app
Load command 0
cmd LC_SEGMENT_64
cmdsize 72
segname __PAGEZERO
vmaddr 0x0000000000000000
vmsize 0x0000000100000000
fileoff 0
filesize 0
maxprot 0x00000000
initprot 0x00000000
nsects 0
flags 0x0
Load command 1
cmd LC_SEGMENT_64
cmdsize 952
segname __TEXT
vmaddr 0x0000000100000000
vmsize 0x00000000001fe000
fileoff 0
filesize 2088960
maxprot 0x00000007
initprot 0x00000005
nsects 11
flags 0x0
Section
sectname __text
segname __TEXT
addr 0x0000000100001ba0
size 0x0000000000175017
offset 7072
align 2^4 (16)
reloff 0
nreloc 0
flags 0x80000400
reserved1 0
reserved2 0
Section
sectname __stubs
segname __TEXT
addr 0x0000000100176bb8
size 0x00000000000033ae
offset 1534904
align 2^1 (2)
reloff 0
nreloc 0
flags 0x80000408
reserved1 0 (index into indirect symbol table)
reserved2 6 (size of stubs)
Section
sectname __stub_helper
segname __TEXT
addr 0x0000000100179f68
size 0x0000000000000c90
offset 1548136
align 2^2 (4)
reloff 0
nreloc 0
flags 0x80000400
reserved1 0
reserved2 0
Section
sectname __const
segname __TEXT
addr 0x000000010017ac00
size 0x0000000000005048
offset 1551360
align 2^5 (32)
reloff 0
nreloc 0
flags 0x00000000
reserved1 0
reserved2 0
Section
sectname __gcc_except_tab
segname __TEXT
addr 0x000000010017fc48
size 0x00000000000163a0
offset 1571912
align 2^2 (4)
reloff 0
nreloc 0
flags 0x00000000
reserved1 0
reserved2 0
Section
sectname __cstring
segname __TEXT
addr 0x0000000100195fe8
size 0x000000000000c783
offset 1662952
align 2^3 (8)
reloff 0
nreloc 0
flags 0x00000002
reserved1 0
reserved2 0
Section
sectname __objc_classname
segname __TEXT
addr 0x00000001001a276b
size 0x0000000000000081
offset 1714027
align 2^0 (1)
reloff 0
nreloc 0
flags 0x00000002
reserved1 0
reserved2 0
Section
sectname __objc_methname
segname __TEXT
addr 0x00000001001a27ec
size 0x0000000000001505
offset 1714156
align 2^0 (1)
reloff 0
nreloc 0
flags 0x00000002
reserved1 0
reserved2 0
Section
sectname __objc_methtype
segname __TEXT
addr 0x00000001001a3cf1
size 0x0000000000001609
offset 1719537
align 2^0 (1)
reloff 0
nreloc 0
flags 0x00000002
reserved1 0
reserved2 0
Section
sectname __unwind_info
segname __TEXT
addr 0x00000001001a52fc
size 0x0000000000006e20
offset 1725180
align 2^2 (4)
reloff 0
nreloc 0
flags 0x00000000
reserved1 0
reserved2 0
Section
sectname __eh_frame
segname __TEXT
addr 0x00000001001ac120
size 0x0000000000051ec8
offset 1753376
align 2^3 (8)
reloff 0
nreloc 0
flags 0x00000000
reserved1 0
reserved2 0
Load command 2
cmd LC_SEGMENT_64
cmdsize 1512
segname __DATA
vmaddr 0x00000001001fe000
vmsize 0x0000000000028000
fileoff 2088960
filesize 126976
maxprot 0x00000007
initprot 0x00000003
nsects 18
flags 0x0
Section
sectname __nl_symbol_ptr
segname __DATA
addr 0x00000001001fe000
size 0x0000000000000010
offset 2088960
align 2^3 (8)
reloff 0
nreloc 0
flags 0x00000006
reserved1 2205 (index into indirect symbol table)
reserved2 0
Section
sectname __got
segname __DATA
addr 0x00000001001fe010
size 0x0000000000000240
offset 2088976
align 2^3 (8)
reloff 0
nreloc 0
flags 0x00000006
reserved1 2207 (index into indirect symbol table)
reserved2 0
Section
sectname __la_symbol_ptr
segname __DATA
addr 0x00000001001fe250
size 0x00000000000044e8
offset 2089552
align 2^3 (8)
reloff 0
nreloc 0
flags 0x00000007
reserved1 2279 (index into indirect symbol table)
reserved2 0
Section
sectname __mod_init_func
segname __DATA
addr 0x0000000100202738
size 0x0000000000000470
offset 2107192
align 2^3 (8)
reloff 0
nreloc 0
flags 0x00000009
reserved1 0
reserved2 0
Section
sectname __const
segname __DATA
addr 0x0000000100202bc0
size 0x0000000000013400
offset 2108352
align 2^5 (32)
reloff 0
nreloc 0
flags 0x00000000
reserved1 0
reserved2 0
Section
sectname __cfstring
segname __DATA
addr 0x0000000100215fc0
size 0x0000000000000480
offset 2187200
align 2^3 (8)
reloff 0
nreloc 0
flags 0x00000000
reserved1 0
reserved2 0
Section
sectname __objc_classlist
segname __DATA
addr 0x0000000100216440
size 0x0000000000000030
offset 2188352
align 2^3 (8)
reloff 0
nreloc 0
flags 0x10000000
reserved1 0
reserved2 0
Section
sectname __objc_protolist
segname __DATA
addr 0x0000000100216470
size 0x0000000000000018
offset 2188400
align 2^3 (8)
reloff 0
nreloc 0
flags 0x00000000
reserved1 0
reserved2 0
Section
sectname __objc_imageinfo
segname __DATA
addr 0x0000000100216488
size 0x0000000000000008
offset 2188424
align 2^2 (4)
reloff 0
nreloc 0
flags 0x00000000
reserved1 0
reserved2 0
Section
sectname __objc_const
segname __DATA
addr 0x0000000100216490
size 0x0000000000001da0
offset 2188432
align 2^3 (8)
reloff 0
nreloc 0
flags 0x00000000
reserved1 0
reserved2 0
Section
sectname __objc_selrefs
segname __DATA
addr 0x0000000100218230
size 0x00000000000005a0
offset 2196016
align 2^3 (8)
reloff 0
nreloc 0
flags 0x10000005
reserved1 0
reserved2 0
Section
sectname __objc_classrefs
segname __DATA
addr 0x00000001002187d0
size 0x0000000000000128
offset 2197456
align 2^3 (8)
reloff 0
nreloc 0
flags 0x10000000
reserved1 0
reserved2 0
Section
sectname __objc_superrefs
segname __DATA
addr 0x00000001002188f8
size 0x0000000000000028
offset 2197752
align 2^3 (8)
reloff 0
nreloc 0
flags 0x10000000
reserved1 0
reserved2 0
Section
sectname __objc_ivar
segname __DATA
addr 0x0000000100218920
size 0x0000000000000088
offset 2197792
align 2^3 (8)
reloff 0
nreloc 0
flags 0x00000000
reserved1 0
reserved2 0
Section
sectname __objc_data
segname __DATA
addr 0x00000001002189a8
size 0x00000000000001e0
offset 2197928
align 2^3 (8)
reloff 0
nreloc 0
flags 0x00000000
reserved1 0
reserved2 0
Section
sectname __data
segname __DATA
addr 0x0000000100218b90
size 0x0000000000003500
offset 2198416
align 2^4 (16)
reloff 0
nreloc 0
flags 0x00000000
reserved1 0
reserved2 0
Section
sectname __common
segname __DATA
addr 0x000000010021c0a0
size 0x0000000000002cd0
offset 0
align 2^5 (32)
reloff 0
nreloc 0
flags 0x00000001
reserved1 0
reserved2 0
Section
sectname __bss
segname __DATA
addr 0x000000010021ed80
size 0x0000000000006d7f
offset 0
align 2^5 (32)
reloff 0
nreloc 0
flags 0x00000001
reserved1 0
reserved2 0
Load command 3
cmd LC_SEGMENT_64
cmdsize 72
segname __LINKEDIT
vmaddr 0x0000000100226000
vmsize 0x000000000005bd20
fileoff 2215936
filesize 376096
maxprot 0x00000007
initprot 0x00000001
nsects 0
flags 0x0
Load command 4
cmd LC_DYLD_INFO_ONLY
cmdsize 48
rebase_off 2215936
rebase_size 1848
bind_off 2217784
bind_size 3592
weak_bind_off 2221376
weak_bind_size 3248
lazy_bind_off 2224624
lazy_bind_size 8704
export_off 2233328
export_size 173048
Load command 5
cmd LC_SYMTAB
cmdsize 24
symoff 2416712
nsyms 2350
stroff 2472248
strsize 119784
Load command 6
cmd LC_DYSYMTAB
cmdsize 80
ilocalsym 0
nlocalsym 1881
iextdefsym 1881
nextdefsym 71
iundefsym 1952
nundefsym 398
tocoff 0
ntoc 0
modtaboff 0
nmodtab 0
extrefsymoff 0
nextrefsyms 0
indirectsymoff 2454312
nindirectsyms 4484
extreloff 0
nextrel 0
locreloff 0
nlocrel 0
Load command 7
cmd LC_LOAD_DYLINKER
cmdsize 32
name /usr/lib/dyld (offset 12)
Load command 8
cmd LC_UUID
cmdsize 24
uuid BD90987E-8A90-3083-B629-E9F378270B47
Load command 9
cmd LC_VERSION_MIN_MACOSX
cmdsize 16
version 10.8
sdk 10.8
Load command 10
cmd LC_SOURCE_VERSION
cmdsize 16
version 0.0
Load command 11
cmd LC_MAIN
cmdsize 24
entryoff 288778
stacksize 0
Load command 12
cmd LC_LOAD_WEAK_DYLIB
cmdsize 112
name /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices (offset 24)
time stamp 2 Thu Jan 1 05:00:02 1970
current version 45.0.0
compatibility version 1.0.0
Load command 13
cmd LC_LOAD_WEAK_DYLIB
cmdsize 152
name /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics (offset 24)
time stamp 2 Thu Jan 1 05:00:02 1970
current version 600.0.0
compatibility version 64.0.0
Load command 14
cmd LC_LOAD_WEAK_DYLIB
cmdsize 88
name /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO (offset 24)
time stamp 2 Thu Jan 1 05:00:02 1970
current version 1.0.0
compatibility version 1.0.0
Load command 15
cmd LC_LOAD_DYLIB
cmdsize 96
name /System/Library/Frameworks/CoreMedia.framework/Versions/A/CoreMedia (offset 24)
time stamp 2 Thu Jan 1 05:00:02 1970
current version 1.0.0
compatibility version 1.0.0
Load command 16
cmd LC_LOAD_DYLIB
cmdsize 104
name /System/Library/Frameworks/AVFoundation.framework/Versions/A/AVFoundation (offset 24)
time stamp 2 Thu Jan 1 05:00:02 1970
current version 2.0.0
compatibility version 1.0.0
Load command 17
cmd LC_LOAD_DYLIB
cmdsize 48
name #rpath/libfmod.dylib (offset 24)
time stamp 2 Thu Jan 1 05:00:02 1970
current version 1.0.0
compatibility version 1.0.0
Load command 18
cmd LC_LOAD_DYLIB
cmdsize 88
name /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (offset 24)
time stamp 2 Thu Jan 1 05:00:02 1970
current version 1187.37.0
compatibility version 45.0.0
Load command 19
cmd LC_LOAD_DYLIB
cmdsize 104
name /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox (offset 24)
time stamp 2 Thu Jan 1 05:00:02 1970
current version 1.0.0
compatibility version 1.0.0
Load command 20
cmd LC_LOAD_DYLIB
cmdsize 88
name /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (offset 24)
time stamp 2 Thu Jan 1 05:00:02 1970
current version 19.0.0
compatibility version 1.0.0
Load command 21
cmd LC_LOAD_DYLIB
cmdsize 104
name /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (offset 24)
time stamp 2 Thu Jan 1 05:00:02 1970
current version 744.18.0
compatibility version 150.0.0
Load command 22
cmd LC_LOAD_DYLIB
cmdsize 96
name /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (offset 24)
time stamp 2 Thu Jan 1 05:00:02 1970
current version 945.16.0
compatibility version 300.0.0
Load command 23
cmd LC_LOAD_DYLIB
cmdsize 88
name /System/Library/Frameworks/OpenAL.framework/Versions/A/OpenAL (offset 24)
time stamp 2 Thu Jan 1 05:00:02 1970
current version 1.0.0
compatibility version 1.0.0
Load command 24
cmd LC_LOAD_DYLIB
cmdsize 88
name /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (offset 24)
time stamp 2 Thu Jan 1 05:00:02 1970
current version 1.0.0
compatibility version 1.0.0
Load command 25
cmd LC_LOAD_DYLIB
cmdsize 96
name /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore (offset 24)
time stamp 2 Thu Jan 1 05:00:02 1970
current version 1.8.0
compatibility version 1.2.0
Load command 26
cmd LC_LOAD_DYLIB
cmdsize 56
name /usr/lib/libxml2.2.dylib (offset 24)
time stamp 2 Thu Jan 1 05:00:02 1970
current version 10.8.0
compatibility version 10.0.0
Load command 27
cmd LC_LOAD_DYLIB
cmdsize 48
name /usr/lib/libz.1.dylib (offset 24)
time stamp 2 Thu Jan 1 05:00:02 1970
current version 1.2.5
compatibility version 1.0.0
Load command 28
cmd LC_LOAD_DYLIB
cmdsize 56
name /usr/lib/libstdc++.6.dylib (offset 24)
time stamp 2 Thu Jan 1 05:00:02 1970
current version 56.0.0
compatibility version 7.0.0
Load command 29
cmd LC_LOAD_DYLIB
cmdsize 56
name /usr/lib/libSystem.B.dylib (offset 24)
time stamp 2 Thu Jan 1 05:00:02 1970
current version 169.3.0
compatibility version 1.0.0
Load command 30
cmd LC_LOAD_DYLIB
cmdsize 96
name /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo (offset 24)
time stamp 2 Thu Jan 1 05:00:02 1970
current version 1.8.0
compatibility version 1.2.0
Load command 31
cmd LC_LOAD_DYLIB
cmdsize 56
name /usr/lib/libobjc.A.dylib (offset 24)
time stamp 2 Thu Jan 1 05:00:02 1970
current version 228.0.0
compatibility version 1.0.0
Load command 32
cmd LC_RPATH
cmdsize 32
path #executable_path (offset 12)
Load command 33
cmd LC_FUNCTION_STARTS
cmdsize 16
dataoff 2406376
datasize 10336
Load command 34
cmd LC_DATA_IN_CODE
cmdsize 16
dataoff 2416712
datasize 0
Related
When we covert a .elf file generated from arm-gcc toolchain to .bin file, its size increases from 40kB to 1.1Gb.
For conversion we are using :
./arm-none-eabi-objcopy -O binary test.elf test.bin
It might be because of non-contiguous memory map and the gaps between the memory regions are just being filled with zeros.
What options can be used in objcopy? Or is there any other method to convert?
Following is the elf information:
Tag_CPU_name: "Cortex-M7" Tag_CPU_arch: v7E-M
Tag_CPU_arch_profile: Microcontroller Tag_THUMB_ISA_use: Thumb-2
Tag_FP_arch: FPv5/FP-D16 for ARMv8 Tag_ABI_PCS_wchar_t: 4
Tag_ABI_FP_denormal: Needed Tag_ABI_FP_exceptions: Needed
Tag_ABI_FP_number_model: IEEE 754 Tag_ABI_align_needed: 8-byte
Tag_ABI_enum_size: small Tag_ABI_VFP_args: VFP registers
Tag_ABI_optimization_goals: Aggressive Debug
Tag_CPU_unaligned_access: v6
The listing of sections contained in the ELF file is - there are 25 section headers, starting at offset 0x3e982c:
Section Headers:
[Nr] Name
Type Addr Off Size ES Lk Inf Al
Flags
[ 0]
NULL 00000000 000000 000000 00 0 0 0
[00000000]:
[ 1] .flash_config
PROGBITS 60000000 020000 000200 00 0 0 4
[00000002]: ALLOC
[ 2] .ivt
PROGBITS 60001000 021000 000030 00 0 0 4
[00000002]: ALLOC
[ 3] .interrupts
PROGBITS 60002000 022000 000400 00 0 0 4
[00000002]: ALLOC
[ 4] .text
PROGBITS 60002400 022400 312008 00 0 0 16
[00000006]: ALLOC, EXEC
[ 5] .ARM
ARM_EXIDX 60314408 334408 000008 00 4 0 4
[00000082]: ALLOC, LINK ORDER
[ 6] .init_array
INIT_ARRAY 60314410 334410 000004 04 0 0 4
[00000003]: WRITE, ALLOC
[ 7] .fini_array
FINI_ARRAY 60314414 334414 000004 04 0 0 4
[00000003]: WRITE, ALLOC
[ 8] .interrupts_ram
PROGBITS 20200000 380000 000000 00 0 0 1
[00000001]: WRITE
[ 9] .data
PROGBITS 20200000 340000 014bd0 00 0 0 8
[00000007]: WRITE, ALLOC, EXEC
[10] .ncache.init
PROGBITS 20214bd0 354bd0 011520 00 0 0 4
[00000003]: WRITE, ALLOC
[11] .ncache
NOBITS 20226100 366100 0021d8 00 0 0 64
[00000003]: WRITE, ALLOC
[12] .bss
NOBITS 20229000 369000 077ce8 00 0 0 4096
[00000003]: WRITE, ALLOC
[13] .NVM_TABLE
PROGBITS 20000000 010000 00000c 00 0 0 4
[00000003]: WRITE, ALLOC
[14] .heap
NOBITS 2000000c 01000c 000404 00 0 0 1
[00000003]: WRITE, ALLOC
[15] .stack
NOBITS 20000410 01000c 000400 00 0 0 1
[00000003]: WRITE, ALLOC
[16] .NVM
PROGBITS 60570000 370000 010000 00 0 0 1
[00000003]: WRITE, ALLOC
[17] .ARM.attributes
ARM_ATTRIBUTES 00000000 380000 00002e 00 0 0 1
[00000000]:
[18] .comment
PROGBITS 00000000 38002e 00004c 01 0 0 1
[00000030]: MERGE, STRINGS
[19] .debug_frame
PROGBITS 00000000 38007c 001174 00 0 0 4
[00000000]:
[20] .stab
PROGBITS 00000000 3811f0 0000cc 0c 21 0 4
[00000000]:
[21] .stabstr
STRTAB 00000000 3812bc 0001b9 00 0 0 1
[00000000]:
[22] .symtab
SYMTAB 00000000 381478 046620 10 23 13540 4
[00000000]:
[23] .strtab
STRTAB 00000000 3c7a98 021cb2 00 0 0 1
[00000000]:
[24] .shstrtab
STRTAB 00000000 3e974a 0000df 00 0 0 1
[00000000]:
so.s
.thumb
nop
.data
.word 0x11223344
so.ld
MEMORY
{
one : ORIGIN = 0x00000000, LENGTH = 0x1000
two : ORIGIN = 0x20000000, LENGTH = 0x1000
}
SECTIONS
{
.text : { *(.text*) } > one
.data : { *(.data*) } > two
}
build
arm-none-eabi-as so.s -o so.o
arm-none-eabi-ld -T so.ld so.o -o so.elf
arm-none-eabi-objdump -D so.elf
arm-none-eabi-objcopy -O binary so.elf so.bin
536870916 Apr 28 15:23 so.bin
131556 Apr 28 15:23 so.elf
from readelf
Program Headers:
Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
LOAD 0x010000 0x00000000 0x00000000 0x00002 0x00002 R E 0x10000
LOAD 0x020000 0x20000000 0x20000000 0x00004 0x00004 RW 0x10000
now so.ld
MEMORY
{
one : ORIGIN = 0x00000000, LENGTH = 0x1000
two : ORIGIN = 0x20000000, LENGTH = 0x1000
}
SECTIONS
{
.text : { *(.text*) } > one
.bss : { *(.bss*) } > two AT > one
.data : { *(.data*) } > two AT > one
}
it is actually .bss that is doing the magic here, that is some other research project, I could have started with a .C file but tried asm...
6 Apr 28 15:30 so.bin
131556 Apr 28 15:29 so.elf
and now it is the possibly desired 6 bytes without padding, but of course you have to add labels in the linker script and use them in the bootstrap code to move .data to ram and zero .bss and such.
Program Headers:
Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
LOAD 0x010000 0x00000000 0x00000000 0x00002 0x00002 R E 0x10000
LOAD 0x020000 0x20000000 0x00000002 0x00004 0x00004 RW 0x10000
Notice how now the physical is in the 0x00000000 range, it was tacked at the end of the space used by .text. but the virtual (where it wants to live, needs to live, do not think mmu here or anything like that just think the two address spaces (on flash and where it is used)).
In case this is not clear:
MEMORY
{
one : ORIGIN = 0xE0000000, LENGTH = 0x1000
two : ORIGIN = 0xE0000100, LENGTH = 0x1000
}
SECTIONS
{
.text : { *(.text*) } > one
.data : { *(.data*) } > two
}
260 Apr 28 15:46 so.bin
66276 Apr 28 15:46 so.elf
objcopy starts the binary file at the lowest defined (loadable) address and not zero...The file size is the difference, inclusive, of the lowest addressed byte and the highest.
I have same problem with you, and I finally find it's not objcopy's problem, I just change my compile command and it work. At first, I just use gcc only, and I face the problem like you, then I try use gcc -c and ld(just separate this two steps), and the file is smaller in magically. so maybe the problem is in gcc, not objcopy. you can try like me, and my compile command now is:
gcc-4.8 -g -e boot_start -fno-builtin -Ttext 0x7C00 -nostdlib -m32 -c bootloader.S -o bootasm.o
gcc-4.8 -Os -fno-builtin -nostdlib -m32 -c bootloader.c -o bootc.o
ld -m elf_i386 -e boot_start -nostdlib -N bootasm.o bootc.o -o bootloader.o
objcopy -S -O binary bootloader.o bootloader.bin
hope it can help you...
I have a simple program:
#include <iostream>
int main() {
std::cout << "Starting" << std::endl;
while (1) {
}
return 0;
}
I compile and run it:
clang -o test test.cpp
bash$ ./test
Starting
In another terminal, I examine it and kill it:
bash$ top
Processes: 284 total, 3 running, 9 stuck, 272 sleeping, 1505 threads 14:45:49
Load Avg: 1.86, 1.81, 2.06 CPU usage: 13.57% user, 0.96% sys, 85.45% idle
SharedLibs: 21M resident, 12M data, 0B linkedit.
MemRegions: 87372 total, 4974M resident, 86M private, 1203M shared.
PhysMem: 15G used (1887M wired), 1450M unused.
VM: 729G vsize, 1064M framework vsize, 3299196(0) swapins, 3711511(0) swapouts.
Networks: packets: 2686338/648M in, 2068186/355M out.
Disks: 1141818/44G read, 1926370/100G written.
PID COMMAND %CPU TIME #TH #WQ #PORT MEM PURG CMPRS PGRP PPID STATE
30161 test 100.3 02:12.71 1/1 0 9 312K 0B 0B 29470 28181 running
66064 Terminal 2.7 01:29.69 9 3 257 53M 0B 4580K 66064 1 sleeping
bash$ ls -al /cores/
total 917024
drwxrwxr-t# 3 root admin 102 May 1 14:54 .
drwxr-xr-x 33 root wheel 1190 Apr 14 09:13 ..
bash$ killall -SIGSEGV test
bash$ ls -al /cores/
total 1818048
drwxrwxr-t# 4 root admin 136 May 1 14:55 .
drwxr-xr-x 33 root wheel 1190 Apr 14 09:13 ..
-r-------- 1 stebro admin 469516288 May 1 14:54 core.30161
vmmap says:
==== Summary for process 50745
ReadOnly portion of Libraries: Total=316K resident=280K(89%) swapped_out_or_unallocated=36K(11%)
Writable regions: Total=40.3M written=16K(0%) resident=12.1M(30%) swapped_out=14.4M(36%) unallocated=28.3M(70%)
REGION TYPE VIRTUAL
=========== =======
Kernel Alloc Once 4K
MALLOC 9388K see MALLOC ZONE table below
MALLOC (admin) 24K
STACK GUARD 56.0M
Stack 8192K
VM_ALLOCATE 4K
__DATA 680K
__LINKEDIT 70.9M
__TEXT 5960K
shared memory 4K
=========== =======
TOTAL 150.6M
VIRTUAL ALLOCATION BYTES
MALLOC ZONE SIZE COUNT ALLOCATED % FULL
=========== ======= ========= ========= ======
DefaultMallocZone_0x104a0e000 9216K 357 27K 0%
Why is my core file 469 MB?
Your core dump includes the complete state of memory as well as symbol information for the frameworks and libraries that your application was running with at the time. That's a lot of data. For more information you might check out the core dumps section of technical note 2124
I have two UART devices on an FPGA exposed to Linux on an Altera Cyclone V SoC. I have modified the DTS to incorporate these devices, and Linux picks them up on boot:
[ 0.879942] (NULL device *): ttyAL0 at MMIO 0xff200400 (irq = 41, base_baud = 3125000) is a Altera UART
[ 0.890050] (NULL device *): ttyAL1 at MMIO 0xff200420 (irq = 44, base_baud = 3125000) is a Altera UART
Resulting in a ttyAL0 and ttyAL1 in /dev/. The devices also appear in the relevant device subdirectory in /sys/devices/soc/ with the driver symlink present, for example:
lrwxrwxrwx 1 root root 0 Jun 20 10:36 driver -> ../../../bus/platform/drivers/altera_uart
-rw-r--r-- 1 root root 4096 Jun 20 10:36 driver_override
-r--r--r-- 1 root root 4096 Jun 20 10:36 modalias
drwxr-xr-x 2 root root 0 Jun 20 10:36 power
lrwxrwxrwx 1 root root 0 Jun 20 10:36 subsystem -> ../../../bus/platform
-rw-r--r-- 1 root root 4096 Jun 20 10:36 uevent
However if I try to open the port either programmatically, or with cat or setserial, there is a 20s stall before the RCU scheduler throws an exception:
[ 202.242133] INFO: rcu_sched detected stalls on CPUs/tasks: {} (detected by 0, t=2102 jiffies, g=124, c=123, q=254)
[ 202.252516] INFO: Stall ended before state dump start
[ 223.252109] INFO: rcu_sched self-detected stall on CPU { 0} (t=2100 jiffies g=125 c=124 q=229)
[ 223.260843] Task dump for CPU 0:
[ 223.264066] klogd R running 0 954 1 0x00000002
[ 223.270566] [<c0017984>] (unwind_backtrace) from [<c00137e0>] (show_stack+0x20/0x24)
[ 223.278319] [<c00137e0>] (show_stack) from [<c004b6cc>] (sched_show_task+0xb0/0x104)
[ 223.286045] [<c004b6cc>] (sched_show_task) from [<c004e34c>] (dump_cpu_task+0x48/0x4c)
[ 223.293941] [<c004e34c>] (dump_cpu_task) from [<c006ae60>] (rcu_dump_cpu_stacks+0xa0/0xcc)
[ 223.302188] [<c006ae60>] (rcu_dump_cpu_stacks) from [<c006e520>] (rcu_check_callbacks+0x488/0x790)
[ 223.311137] [<c006e520>] (rcu_check_callbacks) from [<c0072db0>] (update_process_times+0x50/0x70)
[ 223.319982] [<c0072db0>] (update_process_times) from [<c0083258>] (tick_sched_timer+0x78/0x27c)
[ 223.328656] [<c0083258>] (tick_sched_timer) from [<c00735f4>] (__run_hrtimer+0x90/0x1bc)
[ 223.336719] [<c00735f4>] (__run_hrtimer) from [<c0073ef4>] (hrtimer_interrupt+0x140/0x31c)
[ 223.344955] [<c0073ef4>] (hrtimer_interrupt) from [<c0016b58>] (twd_handler+0x40/0x50)
[ 223.352867] [<c0016b58>] (twd_handler) from [<c00669bc>] (handle_percpu_devid_irq+0x90/0x124)
[ 223.361364] [<c00669bc>] (handle_percpu_devid_irq) from [<c0062684>] (generic_handle_irq+0x3c/0x4c)
[ 223.370377] [<c0062684>] (generic_handle_irq) from [<c0062948>] (__handle_domain_irq+0x6c/0xb4)
[ 223.379042] [<c0062948>] (__handle_domain_irq) from [<c00086b0>] (gic_handle_irq+0x34/0x6c)
[ 223.387362] [<c00086b0>] (gic_handle_irq) from [<c0014380>] (__irq_svc+0x40/0x54)
[ 223.394811] Exception stack(0xded29cf8 to 0xded29d40)
[ 223.399842] 9ce0: 00000001 c06cb200
[ 223.407986] 9d00: 00000000 00000000 c0687b34 00000000 00000082 00000001 df418800 c06c416c
[ 223.416128] 9d20: ded28000 ded29d9c 00000000 ded29d40 c06cb200 c0029330 200f0113 ffffffff
[ 223.424285] [<c0014380>] (__irq_svc) from [<c0029330>] (__do_softirq+0xc4/0x2f0)
[ 223.431656] [<c0029330>] (__do_softirq) from [<c00297f8>] (irq_exit+0x88/0xc0)
[ 223.438851] [<c00297f8>] (irq_exit) from [<c006294c>] (__handle_domain_irq+0x70/0xb4)
[ 223.446649] [<c006294c>] (__handle_domain_irq) from [<c00086b0>] (gic_handle_irq+0x34/0x6c)
[ 223.454965] [<c00086b0>] (gic_handle_irq) from [<c0014380>] (__irq_svc+0x40/0x54)
[ 223.462412] Exception stack(0xded29e08 to 0xded29e50)
[ 223.467443] 9e00: dfbd3540 df782ac0 00000000 0000996f df59d6c0 dfbd3540
[ 223.475584] 9e20: c0695e20 00000000 df59c1c0 df59c540 ded28030 ded29e6c ded29e70 ded29e50
[ 223.483725] 9e40: c047bad0 c004756c 600f0013 ffffffff
[ 223.488762] [<c0014380>] (__irq_svc) from [<c004756c>] (finish_task_switch+0x78/0x11c)
[ 223.496661] [<c004756c>] (finish_task_switch) from [<c047bad0>] (__schedule+0x230/0x5f4)
[ 223.504726] [<c047bad0>] (__schedule) from [<c047bed4>] (schedule+0x40/0x8c)
[ 223.511746] [<c047bed4>] (schedule) from [<c0061a58>] (do_syslog+0x51c/0x5a8)
[ 223.518855] [<c0061a58>] (do_syslog) from [<c0061b00>] (SyS_syslog+0x1c/0x20)
[ 223.525968] [<c0061b00>] (SyS_syslog) from [<c000f820>] (ret_fast_syscall+0x0/0x30)
I don't know why this is happening but I have noticed two interesting (i.e. wrong) things about how Linux sees my devices. The first is that their IRQs, even though correctly reported during boot and any bind/unbind operations, are not listed in /proc/interrupts (they would appear as ff200400.serial2 and ff200420.serial3):
CPU0 CPU1
29: 47565 47091 GIC 29 twd
74: 0 0 GIC 74 0009
75: 0 0 GIC 75 000A
76: 0 0 GIC 76 000A
77: 0 0 GIC 77 0004
78: 0 0 GIC 78 0003
79: 0 0 GIC 79 0006
80: 0 0 GIC 80 0011
81: 0 0 GIC 81 0011
82: 0 0 GIC 82 0010
171: 10554 0 GIC 171 dw-mci
186: 0 0 GIC 186 dw_spi65535
190: 0 0 GIC 190 ffc04000.i2c
191: 0 0 GIC 191 ffc05000.i2c
192: 0 0 GIC 192 ffc06000.i2c
193: 0 0 GIC 193 ffc07000.i2c
194: 465 0 GIC 194 serial
199: 0 0 GIC 199 timer0
207: 0 0 GIC 207 fpga-mgr
IPI0: 0 0 CPU wakeup interrupts
IPI1: 0 0 Timer broadcast interrupts
IPI2: 591 3015 Rescheduling interrupts
IPI3: 0 0 Function call interrupts
IPI4: 1 5 Single function call interrupts
IPI5: 0 0 CPU stop interrupts
IPI6: 0 0 IRQ work interrupts
IPI7: 0 0 completion interrupts
Err: 0
The other observation is that in /sys/class/tty, the ttyAL* entries are links to virtual devices instead of the physical ones:
...
lrwxrwxrwx 1 root root 0 Jun 20 10:49 tty8 -> ../../devices/virtual/tty/tty8
lrwxrwxrwx 1 root root 0 Jun 20 10:49 tty9 -> ../../devices/virtual/tty/tty9
lrwxrwxrwx 1 root root 0 Jun 20 10:49 ttyAL0 -> ../../devices/virtual/tty/ttyAL0
lrwxrwxrwx 1 root root 0 Jun 20 10:49 ttyAL1 -> ../../devices/virtual/tty/ttyAL1
lrwxrwxrwx 1 root root 0 Jun 20 10:49 ttyS0 -> ../../devices/soc/ffc02000.serial0/tty/ttyS0
lrwxrwxrwx 1 root root 0 Jun 20 10:49 ttyS1 -> ../../devices/soc/ffc03000.serial1/tty/ttyS1
lrwxrwxrwx 1 root root 0 Jun 20 10:49 ttyp0 -> ../../devices/virtual/tty/ttyp0
lrwxrwxrwx 1 root root 0 Jun 20 10:49 ttyp1 -> ../../devices/virtual/tty/ttyp1
...
You can see the other two physical devices ttyS0 and ttyS1 ('real' UARTs on the ARM part of the SoC), I expected my devices to be in the same format. If you refer to the /sys/devices/soc/ device subdirectory listing above, you'll notice that it does not have a corresponding tty subdirectory - presumably part of the reason why I have a virtual TTY associated with the device.
So my question is: Why is my physical serial device appearing as virtual, and is that the reason I'm suffering kernel stalls?
In case I am missing vital information in the DTS, here are my UART additions:
uart2: serial2#ff200400 {
compatible = "altr,uart-1.0";
reg = <0xff200400 0x20>;
interrupts = <0 9 4>;
clock-frequency = <50000000>;
current-speed = <115200>;
};
uart3: serial3#ff200420 {
compatible = "altr,uart-1.0";
reg = <0xff200420 0x20>;
interrupts = <0 12 4>;
clock-frequency = <50000000>;
current-speed = <115200>;
};
They are child nodes of a soc node where the interrupt controller is specified.
I finally discovered the issue, and it's unsurprising judging from the RCU scheduler stack trace: My IRQs are wrong.
I don't quite understand the exact mechanics of it as I'm not a firmware engineer, but the UART modules were on a IRQ offset of 40, so the their IRQs were not 9 and 12 as I thought, but 49 and 52. Updating the DTS to match caused everything to work as expected.
Here's my .zshrc configuration.
export ALTERNATE_EDITOR=""
alias e="emacsclient -t" # emacs terminal
alias ec="emacsclient -c -n" # gui emacsclient
When I start a new first emacsclient, emacs daemon starts automatically with the configuration above.
But, I got a trouble with gui emacs.
This is a starting message of a first emacsclient.
╭─dplee#dpleeui-MacBook-Pro ~
╰─$ ec .zshrc
emacsclient: can't find socket; have you started the server?
To start the server in Emacs, type "M-x server-start".
ad-handle-definition: `evil-mode' got redefined
[yas] Discovered there was already *scratch* in fundamental-mode
[yas] Discovered there was already *code-conversion-work* in fundamental-mode
[yas] Discovered there was already *load* in fundamental-mode
[yas] Loading for `fundamental-mode', just-in-time: (lambda nil (yas--load-directory-1 (quote /Users/dplee/.emacs.d/elpa/yasnippet-20150811.1222/snippets/fundamental-mode) (quote fundamental-mode)))!
[yas] Loading compiled snippets from /Users/dplee/.emacs.d/elpa/yasnippet-20150811.1222/snippets/fundamental-mode
Loading /Users/dplee/.emacs.d/elpa/yasnippet-20150811.1222/snippets/fundamental-mode/.yas-setup...
Loading /Users/dplee/.emacs.d/elpa/yasnippet-20150811.1222/snippets/fundamental-mode/.yas-setup...done
[yas] Prepared just-in-time loading for /Users/dplee/.emacs.d/elpa/yasnippet-20150811.1222/snippets
[yas] Check your `yas-snippet-dirs': ~/.emacs.d/snippets is not a directory
[yas] Reloaded everything (snippets will load just-in-time)... (some errors, check *Messages*).
[yas] Check your `yas-snippet-dirs': ~/.emacs.d/remote-snippets is not a directory
[yas] Check your `yas-snippet-dirs': ~/.emacs.d/snippets is not a directory
[yas] Reloaded everything (snippets will load just-in-time)... (some errors, check *Messages*).
ad-handle-definition: `tramp-read-passwd' got redefined
Starting Emacs daemon.
Emacs daemon should have started, trying to connect again
Now emacs daemon is started well.
╭─dplee#dpleeui-MacBook-Pro ~
╰─$ ps -ef | grep emacs
501 12057 1 0 7:15AM ?? 0:01.95 /usr/local/Cellar/emacs/24.5/Emacs.app/Contents/MacOS/Emacs -nw --daemon=^J4,5^J
501 12139 10891 0 7:16AM ttys000 0:00.00 grep --color=auto --exclude-dir=.bzr --exclude-dir=.cvs --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn emacs
But, if I close the gui client which is in state of full-screen window mode, the emacs daemon is also killed. (I can't see any emacs daemon process in the ps result.)
It doesn't happen when the client window isn't in full-screen.
Here's a detailed error message and stack frame when the problem occurred.
Anybody who already encountered this situation?
Process: Emacs [12057]
Path: /usr/local/Cellar/emacs/24.5/Emacs.app/Contents/MacOS/Emacs
Identifier: org.gnu.Emacs
Version: Version 24.5 (9.0)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Terminal [7109]
User ID: 501
Date/Time: 2015-08-21 07:20:51.883 +0900
OS Version: Mac OS X 10.10.4 (14E46)
Report Version: 11
Anonymous UUID: 9F7B494C-3D13-B1A9-822B-480554ACE9A0
Sleep/Wake UUID: 978C9798-989F-49BD-8CDE-E684910CBC6F
Time Awake Since Boot: 8100 seconds
Time Since Wake: 4500 seconds
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGABRT)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000018
VM Regions Near 0x18:
-->
__TEXT 0000000100000000-00000001001d2000 [ 1864K] r-x/rwx SM=COW /usr/local/Cellar/emacs/24.5/Emacs.app/Contents/MacOS/Emacs
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff8c781c82 __kill + 10
1 org.gnu.Emacs 0x00000001000bae91 emacs_abort + 19
2 org.gnu.Emacs 0x0000000100173933 ns_term_shutdown + 124
3 org.gnu.Emacs 0x00000001000a1c1b shut_down_emacs + 283
4 org.gnu.Emacs 0x00000001000a19f5 terminate_due_to_signal + 89
5 org.gnu.Emacs 0x00000001000bccf1 handle_fatal_signal + 14
6 org.gnu.Emacs 0x00000001000bc18d deliver_fatal_thread_signal + 114
7 libsystem_platform.dylib 0x00007fff83394f1a _sigtramp + 26
8 ??? 0x00000001011632b0 0 + 4313199280
9 org.gnu.Emacs 0x0000000100186a15 update_frame_tool_bar + 374
10 org.gnu.Emacs 0x0000000100178b30 -[EmacsView windowDidExitFullScreen:] + 117
11 com.apple.CoreFoundation 0x00007fff8433845c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
12 com.apple.CoreFoundation 0x00007fff84228634 _CFXNotificationPost + 3140
13 com.apple.Foundation 0x00007fff8b7659d1 -[NSNotificationCenter postNotificationName:object:userInfo:] + 66
14 com.apple.AppKit 0x00007fff85bdfd68 __18-[NSWindow _close]_block_invoke + 650
15 com.apple.AppKit 0x00007fff85bdfa96 -[NSWindow _close] + 376
16 org.gnu.Emacs 0x0000000100170401 x_free_frame_resources + 301
17 org.gnu.Emacs 0x000000010017043c x_destroy_window + 22
18 org.gnu.Emacs 0x000000010000fa83 delete_frame + 1060
19 org.gnu.Emacs 0x000000010011165d Ffuncall + 764
20 org.gnu.Emacs 0x0000000100144091 exec_byte_code + 2064
21 org.gnu.Emacs 0x00000001001115b4 Ffuncall + 595
22 org.gnu.Emacs 0x0000000100144091 exec_byte_code + 2064
23 org.gnu.Emacs 0x00000001001115b4 Ffuncall + 595
24 org.gnu.Emacs 0x000000010010cf4f Fcall_interactively + 4951
25 org.gnu.Emacs 0x000000010011174b Ffuncall + 1002
26 org.gnu.Emacs 0x0000000100144091 exec_byte_code + 2064
27 org.gnu.Emacs 0x00000001001115b4 Ffuncall + 595
28 org.gnu.Emacs 0x0000000100111be4 call1 + 45
29 org.gnu.Emacs 0x00000001000a52c1 command_loop_1 + 2807
30 org.gnu.Emacs 0x000000010011008f internal_condition_case + 251
31 org.gnu.Emacs 0x00000001000b3dd8 command_loop_2 + 53
32 org.gnu.Emacs 0x000000010010fab9 internal_catch + 243
33 org.gnu.Emacs 0x00000001000a3fbb recursive_edit_1 + 211
34 org.gnu.Emacs 0x00000001000a415e Frecursive_edit + 236
35 org.gnu.Emacs 0x00000001000a3128 main + 5300
36 libdyld.dylib 0x00007fff86e195c9 start + 1
Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0 libsystem_kernel.dylib 0x00007fff8c783232 kevent64 + 10
1 libdispatch.dylib 0x00007fff8c351a6a _dispatch_mgr_thread + 52
Thread 2:
0 libsystem_kernel.dylib 0x00007fff8c7823fa __select + 10
1 com.apple.Foundation 0x00007fff8b79cdc2 __NSThread__main__ + 1345
2 libsystem_pthread.dylib 0x00007fff845b4268 _pthread_body + 131
3 libsystem_pthread.dylib 0x00007fff845b41e5 _pthread_start + 176
4 libsystem_pthread.dylib 0x00007fff845b241d thread_start + 13
Thread 3:
0 libsystem_kernel.dylib 0x00007fff8c77d4de mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff8c77c64f mach_msg + 55
2 com.apple.CoreFoundation 0x00007fff8428aeb4 __CFRunLoopServiceMachPort + 212
3 com.apple.CoreFoundation 0x00007fff8428a37b __CFRunLoopRun + 1371
4 com.apple.CoreFoundation 0x00007fff84289bd8 CFRunLoopRunSpecific + 296
5 com.apple.AppKit 0x00007fff85a8756b _NSEventThread + 137
6 libsystem_pthread.dylib 0x00007fff845b4268 _pthread_body + 131
7 libsystem_pthread.dylib 0x00007fff845b41e5 _pthread_start + 176
8 libsystem_pthread.dylib 0x00007fff845b241d thread_start + 13
Thread 4:
0 libsystem_kernel.dylib 0x00007fff8c78294a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff845b240d start_wqthread + 13
Thread 5:
0 libsystem_kernel.dylib 0x00007fff8c78294a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff845b240d start_wqthread + 13
Thread 6:
0 libsystem_kernel.dylib 0x00007fff8c78294a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff845b240d start_wqthread + 13
Thread 7:
0 libsystem_kernel.dylib 0x00007fff8c78294a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff845b240d start_wqthread + 13
Thread 8:
0 libsystem_kernel.dylib 0x00007fff8c78294a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff845b240d start_wqthread + 13
Thread 9:
0 libsystem_kernel.dylib 0x00007fff8c78294a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff845b240d start_wqthread + 13
Thread 10:
0 libsystem_kernel.dylib 0x00007fff8c78294a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff845b240d start_wqthread + 13
Thread 11:
0 libsystem_kernel.dylib 0x00007fff8c78294a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff845b240d start_wqthread + 13
Thread 12:
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x0000000000000006 rcx: 0x00007fff5fbfe398 rdx: 0x0000000000000000
rdi: 0x0000000000002f19 rsi: 0x0000000000000006 rbp: 0x00007fff5fbfe3c0 rsp: 0x00007fff5fbfe398
r8: 0x000000000000007f r9: 0x000000010112a9b0 r10: 0x0000000000000000 r11: 0x0000000000000206
r12: 0x00000001005008e0 r13: 0x0000000100500880 r14: 0x0000000000000028 r15: 0x0000000000000020
rip: 0x00007fff8c781c82 rfl: 0x0000000000000206 cr2: 0x0000000153c26000
Logical CPU: 0
Error Code: 0x02000025
Trap Number: 133
Binary Images:
0x100000000 - 0x1001d1fef +org.gnu.Emacs (Version 24.5 - 9.0) <483F1878-6D65-3857-B6FD-B8AF26448D51> /usr/local/Cellar/emacs/24.5/Emacs.app/Contents/MacOS/Emacs
0x100607000 - 0x100629fff libKoreanConverter.dylib (64) <E51FCBAE-3886-32B7-B4F8-51B3CBF683ED> /System/Library/CoreServices/Encodings/libKoreanConverter.dylib
0x101396000 - 0x101396ffe +cl_kernels (???) <012559FA-4256-401A-81B6-A07DD27C2241> cl_kernels
0x10139a000 - 0x10139afef +cl_kernels (???) <38644E76-CFB8-4AEC-956A-4250D9C79DBB> cl_kernels
0x1014fe000 - 0x1014feff5 +cl_kernels (???) <89679EEA-76F0-40A9-A5CA-1FF5D05AE998> cl_kernels
0x1051fd000 - 0x1051fdfef +cl_kernels (???) <38644E76-CFB8-4AEC-956A-4250D9C79DBB> cl_kernels
0x10af22000 - 0x10b008fef unorm8_bgra.dylib (2.4.5) <5F488C7E-2FB2-3C66-9764-28CF16B03E7A> /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/ImageFormats/unorm8_bgra.dylib
0x10b6dc000 - 0x10b6dcfe7 +cl_kernels (???) <A4AD5F3E-1691-4D0C-BBED-6EBD22C053D8> cl_kernels
0x7fff6c71f000 - 0x7fff6c755837 dyld (353.2.1) <72A99D0F-0B56-3938-ABC5-67A0F33757C4> /usr/lib/dyld
0x7fff82fde000 - 0x7fff82fe8ff7 com.apple.NetAuth (5.2 - 5.2) <2BBD749A-8E18-35B8-8E48-A90347C1CCA7> /System/Library/PrivateFrameworks/NetAuth.framework/Versions/A/NetAuth
0x7fff83003000 - 0x7fff83006fff libCGXCoreImage.A.dylib (788.2) <CE4BA36F-F61E-39E8-95A8-91891E794ED6> /System/Library/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCGXCoreImage.A.dylib
0x7fff8304e000 - 0x7fff83059ff7 com.apple.CrashReporterSupport (10.10 - 631) <C44259AC-0A1C-3EC5-99AC-48CB520A709D> /System/Library/PrivateFrameworks/CrashReporterSupport.framework/Versions/A/CrashReporterSupport
0x7fff8305a000 - 0x7fff83341ffb com.apple.CoreServices.CarbonCore (1108.6 - 1108.6) <8953580E-7857-33B2-AA64-98296830D3A8> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
0x7fff83384000 - 0x7fff8338ffff libGL.dylib (11.1.2) <FD8B7B67-1532-32A1-B369-9D7A6C1EB3ED> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
0x7fff83390000 - 0x7fff83398fff libsystem_platform.dylib (63) <64E34079-D712-3D66-9CE2-418624A5C040> /usr/lib/system/libsystem_platform.dylib
0x7fff833a8000 - 0x7fff833b0fff libsystem_dnssd.dylib (576.30.4) <4EA2DEC3-77EE-3941-A703-DE6DC2056B15> /usr/lib/system/libsystem_dnssd.dylib
0x7fff833b1000 - 0x7fff83495fff libcrypto.0.9.8.dylib (52.30.1) <093A3CCE-953A-365F-9412-775DE0AF2870> /usr/lib/libcrypto.0.9.8.dylib
0x7fff83496000 - 0x7fff834acff7 libsystem_asl.dylib (267) <F153AC5B-0542-356E-88C8-20A62CA704E2> /usr/lib/system/libsystem_asl.dylib
0x7fff834ad000 - 0x7fff834f9ff7 libcups.2.dylib (408.2) <E8AD18F9-61E4-3791-B840-504468C25556> /usr/lib/libcups.2.dylib
0x7fff836c9000 - 0x7fff836ccffb libCGXType.A.dylib (788.2) <2F4BD0F4-9A86-3611-9004-F14E4FDCBAE9> /System/Library/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCGXType.A.dylib
0x7fff836cd000 - 0x7fff83721fff libc++.1.dylib (120) <1B9530FD-989B-3174-BB1C-BDC159501710> /usr/lib/libc++.1.dylib
0x7fff83722000 - 0x7fff83816fff libFontParser.dylib (134.4) <12F2E476-F05A-3F01-92FF-6E0C6D7F8DD5> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontParser.dylib
0x7fff83817000 - 0x7fff83842fff com.apple.DictionaryServices (1.2 - 229) <F03DFAC6-6285-3176-9C6D-7CC50F8CD52A> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices
0x7fff8419f000 - 0x7fff84217ff7 com.apple.SystemConfiguration (1.14.4 - 1.14) <E3495342-E80D-358D-9290-6C02F5F46BCA> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
0x7fff84218000 - 0x7fff845b0ff7 com.apple.CoreFoundation (6.9 - 1153.18) <5C0892B8-9691-341F-9279-CA3A74D59AA0> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x7fff845b1000 - 0x7fff845bafff libsystem_pthread.dylib (105.10.1) <3103AA7F-3BAE-3673-9649-47FFD7E15C97> /usr/lib/system/libsystem_pthread.dylib
0x7fff845bb000 - 0x7fff845d7ff7 libsystem_malloc.dylib (53.30.1) <DDA8928B-CC0D-3255-BD8A-3FEA0982B890> /usr/lib/system/libsystem_malloc.dylib
0x7fff84646000 - 0x7fff84660ff7 com.apple.Kerberos (3.0 - 1) <7760E0C2-A222-3709-B2A6-B692D900CEB1> /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos
0x7fff84661000 - 0x7fff84685ff7 com.apple.Sharing (328.17 - 328.17) <AD5E243A-B79F-3D7B-800B-A2C99A1CFEF1> /System/Library/PrivateFrameworks/Sharing.framework/Versions/A/Sharing
0x7fff84686000 - 0x7fff8468eff3 com.apple.CoreServices.FSEvents (1210.20.1 - 1210.20.1) <84F79D3E-7B5E-3C93-8479-35794A3F125E> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/FSEvents.framework/Versions/A/FSEvents
0x7fff8469a000 - 0x7fff849b5fcf com.apple.vImage (8.0 - 8.0) <1183FE6A-FDB6-3B3B-928D-50C7909F2308> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
0x7fff84ab7000 - 0x7fff84b4cff7 com.apple.ColorSync (4.9.0 - 4.9.0) <9150C2B7-2E6E-3509-96EA-7B3F959F049E> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync
0x7fff84b4d000 - 0x7fff84b4effb libremovefile.dylib (35) <3485B5F4-6CE8-3C62-8DFD-8736ED6E8531> /usr/lib/system/libremovefile.dylib
0x7fff84b51000 - 0x7fff84b56fff libsystem_stats.dylib (163.30.2) <48A9387D-5C63-3E79-979C-F675552F6FC9> /usr/lib/system/libsystem_stats.dylib
0x7fff84b57000 - 0x7fff84b62ff7 com.apple.speech.synthesis.framework (5.3.3 - 5.3.3) <A5640275-E2A6-3856-95EF-5F0DC440B10C> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
0x7fff84b63000 - 0x7fff84b83ff7 com.apple.MultitouchSupport.framework (264.6 - 264.6) <B4BDB2C0-5D4E-30F4-8EB0-CC16C91DF418> /System/Library/PrivateFrameworks/MultitouchSupport.framework/Versions/A/MultitouchSupport
0x7fff84b84000 - 0x7fff84bbbffb com.apple.LDAPFramework (2.4.28 - 194.5) <CAFB9695-000F-34EA-8DF5-09996929C26A> /System/Library/Frameworks/LDAP.framework/Versions/A/LDAP
0x7fff84e27000 - 0x7fff84e2dfff libsystem_trace.dylib (72.20.1) <840F5301-B55A-3078-90B9-FEFFD6CD741A> /usr/lib/system/libsystem_trace.dylib
0x7fff84e2e000 - 0x7fff84e2efff com.apple.audio.units.AudioUnit (1.12 - 1.12) <E5335492-7EFE-31EA-BE72-4A9CEE68D58E> /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
0x7fff84e2f000 - 0x7fff84e53fef libJPEG.dylib (1238) <8CB4D185-069F-38FE-ABB9-25E514DE227D> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib
0x7fff84e5d000 - 0x7fff84e8afff com.apple.CoreVideo (1.8 - 145.1) <18DB07E0-B927-3260-A234-636F298D1917> /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo
0x7fff84e8b000 - 0x7fff84e8ffff com.apple.TCC (1.0 - 1) <CCA42EE2-3400-3444-9486-BC454E60D944> /System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC
0x7fff84e90000 - 0x7fff84e92fff libsystem_configuration.dylib (699.30.1) <B124CC64-59B9-354F-A693-B3431ADB87AC> /usr/lib/system/libsystem_configuration.dylib
0x7fff84e9c000 - 0x7fff84ee9ff7 com.apple.print.framework.PrintCore (10.3 - 451.1) <DE992474-0841-38A1-B4F6-46D653E454D5> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore
0x7fff84eeb000 - 0x7fff85013ff7 com.apple.coreui (2.1 - 308.6) <9E0E9C6A-68F5-34C1-A17C-96226D401D4D> /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI
0x7fff85014000 - 0x7fff8503bfff com.apple.shortcut (2.14 - 2.14) <0E9228EC-E688-3E83-9516-5211FFEA923E> /System/Library/PrivateFrameworks/Shortcut.framework/Versions/A/Shortcut
0x7fff850ba000 - 0x7fff8512effb com.apple.securityfoundation (6.0 - 55126) <D3C26373-83B1-3FDF-AD9C-39875D84312A> /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoundation
0x7fff85179000 - 0x7fff851f2fe7 libcorecrypto.dylib (233.30.1) <5779FFA0-4D9A-3AD4-B7F2-618227621DC8> /usr/lib/system/libcorecrypto.dylib
0x7fff851f3000 - 0x7fff8520eff7 libCRFSuite.dylib (34) <D64842BE-7BD4-3D0C-9842-1D202F7C2A51> /usr/lib/libCRFSuite.dylib
0x7fff8520f000 - 0x7fff85215fff com.apple.speech.recognition.framework (5.0.9 - 5.0.9) <BB2D573F-0A01-379F-A2BA-3C454EDCB111> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition
0x7fff8524c000 - 0x7fff85252ff7 libsystem_networkextension.dylib (167.30.1) <3E99FF35-DCBB-3A4C-8853-F1F39A792D29> /usr/lib/system/libsystem_networkextension.dylib
0x7fff85253000 - 0x7fff85279fff com.apple.ChunkingLibrary (2.1 - 163.6) <29D4CB95-42EF-34C6-8182-BDB6F7BB1E79> /System/Library/PrivateFrameworks/ChunkingLibrary.framework/Versions/A/ChunkingLibrary
0x7fff8527a000 - 0x7fff852adfff com.apple.MediaKit (16 - 757.2) <2912E5C2-085F-3FE2-8531-23B6E894B0F0> /System/Library/PrivateFrameworks/MediaKit.framework/Versions/A/MediaKit
0x7fff852ae000 - 0x7fff852fffff com.apple.audio.CoreAudio (4.3.0 - 4.3.0) <450293F7-DAE7-3DD0-8F7C-71FC2FD72627> /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
0x7fff85303000 - 0x7fff8530eff7 libkxld.dylib (2782.30.5) <14CB6513-E373-3829-AD7D-F1C15397F64F> /usr/lib/system/libkxld.dylib
0x7fff8530f000 - 0x7fff8531aff7 libcsfde.dylib (471.30.1) <A62AE3D8-E2A6-314A-BF45-804003BE0AC9> /usr/lib/libcsfde.dylib
0x7fff8531b000 - 0x7fff8544bfff com.apple.UIFoundation (1.0 - 1) <466BDFA8-0B9F-3AB0-989D-F9779422926A> /System/Library/PrivateFrameworks/UIFoundation.framework/Versions/A/UIFoundation
0x7fff855a3000 - 0x7fff855b5ff7 com.apple.CoreDuetDaemonProtocol (1.0 - 1) <CE9FABB4-1C5D-3F9B-9BB8-5CC50C3E5E31> /System/Library/PrivateFrameworks/CoreDuetDaemonProtocol.framework/Versions/A/CoreDuetDaemonProtocol
0x7fff855b6000 - 0x7fff855b7fff liblangid.dylib (117) <B54A4AA0-2E53-3671-90F5-AFF711C0EB9E> /usr/lib/liblangid.dylib
... (omit)
/System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv
0x7fff9150c000 - 0x7fff915e2ff3 com.apple.DiskImagesFramework (10.10.4 - 397) <8B513846-28A2-3275-B8A0-DF08C5EC077A> /System/Library/PrivateFrameworks/DiskImages.framework/Versions/A/DiskImages
0x7fff918ce000 - 0x7fff918cffff libDiagnosticMessagesClient.dylib (100) <2EE8E436-5CDC-34C5-9959-5BA218D507FB> /usr/lib/libDiagnosticMessagesClient.dylib
0x7fff918d0000 - 0x7fff918d3fff com.apple.xpc.ServiceManagement (1.0 - 1) <D94F7F86-4015-3453-92FD-ADC04F215C04> /System/Library/Frameworks/ServiceManagement.framework/Versions/A/ServiceManagement
0x7fff918d4000 - 0x7fff91ae1ffb com.apple.CFNetwork (720.4.4 - 720.4.4) <71A596B3-A837-3ADF-9560-1DCDA9292F96> /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
0x7fff91b05000 - 0x7fff91b45ff7 libGLImage.dylib (11.1.2) <9B05F3BF-D111-3B01-B7F8-C5EF7E02000B> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib
0x7fff91c8c000 - 0x7fff91d2efff com.apple.Bluetooth (4.3.5 - 4.3.5f8) <DB1CF332-A131-3DF1-BE85-A05594F6DA5F> /System/Library/Frameworks/IOBluetooth.framework/Versions/A/IOBluetooth
0x7fff91db3000 - 0x7fff91e25fff com.apple.framework.IOKit (2.0.2 - 1050.20.2) <09C0518C-90DF-3FC3-96D6-34D35F72C8EF> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x7fff91e26000 - 0x7fff91e27ff7 libsystem_blocks.dylib (65) <9615D10A-FCA7-3BE4-AA1A-1B195DACE1A1> /usr/lib/system/libsystem_blocks.dylib
0x7fff91e28000 - 0x7fff91e82ff7 com.apple.LanguageModeling (1.0 - 1) <ACA93FE0-A0E3-333E-AE3C-8EB7DE5F362F> /System/Library/PrivateFrameworks/LanguageModeling.framework/Versions/A/LanguageModeling
0x7fff91e93000 - 0x7fff91e95fff libquarantine.dylib (76.20.1) <7AF90041-2768-378A-925A-D83161863642> /usr/lib/system/libquarantine.dylib
0x7fff91e96000 - 0x7fff91ec6ff7 libncurses.5.4.dylib (44) <F09809A4-53B9-3E91-A8FA-D3F584C03AA3> /usr/lib/libncurses.5.4.dylib
0x7fff91edf000 - 0x7fff92046ffb com.apple.audio.toolbox.AudioToolbox (1.12 - 1.12) <5678FC94-456A-3F5F-BA9A-10EB6E462997> /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
0x7fff9252d000 - 0x7fff92555fff libRIP.A.dylib (788.2) <4DAA8224-AD10-3865-BF9F-DF56168914F9> /System/Library/Frameworks/CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib
0x7fff92556000 - 0x7fff92556fff com.apple.CoreServices (62 - 62) <C69DA8A7-B536-34BF-A93F-1C170E2C6D58> /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
0x7fff92557000 - 0x7fff92564ff3 com.apple.ProtocolBuffer (1 - 228.0.1) <3429EB06-9F0E-355F-B9AB-F72879177398> /System/Library/PrivateFrameworks/ProtocolBuffer.framework/Versions/A/ProtocolBuffer
0x7fff92565000 - 0x7fff925d1fff com.apple.framework.CoreWLAN (5.0 - 500.35.2) <03697149-1CDD-32FF-B564-1C1EF5E9E5C3> /System/Library/Frameworks/CoreWLAN.framework/Versions/A/CoreWLAN
0x7fff925d2000 - 0x7fff925d5fff com.apple.IOSurface (97.4 - 97.4) <AE11CFBC-4D46-30F3-BEEC-4C8131079391> /System/Library/Frameworks/IOSurface.framework/Versions/A/IOSurface
0x7fff925d6000 - 0x7fff92691ff7 com.apple.DiscRecording (9.0 - 9000.4.2) <4655B4B8-523D-3AE6-92A0-8486A2258B3B> /System/Library/Frameworks/DiscRecording.framework/Versions/A/DiscRecording
0x7fff92692000 - 0x7fff92911ffb com.apple.RawCamera.bundle (6.06 - 819) <EDA3D142-24EC-3661-87EB-B35F8E858A9D> /System/Library/CoreServices/RawCamera.bundle/Contents/MacOS/RawCamera
0x7fff92912000 - 0x7fff929a6fff com.apple.ink.framework (10.9 - 213) <8E029630-1530-3734-A446-13353F0E7AC5> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink
0x7fff92a29000 - 0x7fff92a63ffb com.apple.DebugSymbols (115 - 115) <6F03761D-7C3A-3C80-8031-AA1C1AD7C706> /System/Library/PrivateFrameworks/DebugSymbols.framework/Versions/A/DebugSymbols
0x7fff92a64000 - 0x7fff92a6cff7 com.apple.icloud.FindMyDevice (1.0 - 1) <9CE67F85-2BA8-3093-97BA-07BF5C04A5D6> /System/Library/PrivateFrameworks/FindMyDevice.framework/Versions/A/FindMyDevice
0x7fff92a6d000 - 0x7fff92a80ff7 com.apple.CoreBluetooth (1.0 - 1) <8D7BA9BA-EB36-307A-9119-0B3D9732C953> /System/Library/Frameworks/CoreBluetooth.framework/Versions/A/CoreBluetooth
0x7fff92a81000 - 0x7fff92ab3ff3 com.apple.frameworks.CoreDaemon (1.3 - 1.3) <C6DB0A07-F8E4-3837-BCA9-225F460EDA81> /System/Library/PrivateFrameworks/CoreDaemon.framework/Versions/B/CoreDaemon
0x7fff92ab4000 - 0x7fff92ae4fff libsystem_m.dylib (3086.1) <1E12AB45-6D96-36D0-A226-F24D9FB0D9D6> /usr/lib/system/libsystem_m.dylib
External Modification Summary:
Calls made by other processes targeting this process:
task_for_pid: 68
thread_create: 0
thread_set_state: 0
Calls made by this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by all processes on this machine:
task_for_pid: 291025
thread_create: 0
thread_set_state: 0
VM Region Summary:
ReadOnly portion of Libraries: Total=187.9M resident=78.6M(42%) swapped_out_or_unallocated=109.3M(58%)
Writable regions: Total=198.5M written=51.5M(26%) resident=85.8M(43%) swapped_out=4K(0%) unallocated=112.7M(57%)
REGION TYPE VIRTUAL
=========== =======
Activity Tracing 2048K
CG backing stores 20.7M
CG image 532K
CG raster data 27.0M
CG shared images 368K
CoreAnimation 48K
CoreGraphics 12K
CoreImage 28K
CoreUI image data 232K
Dispatch continuations 16.0M
Foundation 4K
Kernel Alloc Once 8K
MALLOC 79.4M
MALLOC (admin) 32K
Memory Tag 242 12K
OpenCL 40K
STACK GUARD 55.7M
Stack 13.5M
Stack (reserved) 520K reserved VM address space (unallocated)
VM_ALLOCATE 17.2M
__DATA 46.6M
__IMAGE 528K
__LINKEDIT 71.4M
__TEXT 116.4M
__UNICODE 552K
mapped file 121.8M
shared memory 4K
=========== =======
TOTAL 590.6M
TOTAL, minus reserved VM space 590.1M
Model: MacBookPro11,4, BootROM MBP114.0172.B04, 4 processors, Intel Core i7, 2.2 GHz, 16 GB, SMC 2.29f24
Graphics: Intel Iris Pro, Intel Iris Pro, Built-In
Memory Module: BANK 0/DIMM0, 8 GB, DDR3, 1600 MHz, 0x80AD, 0x484D54343147533642465238412D50422020
Memory Module: BANK 1/DIMM0, 8 GB, DDR3, 1600 MHz, 0x80AD, 0x484D54343147533642465238412D50422020
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x152), Broadcom BCM43xx 1.0 (7.15.166.24.3)
Bluetooth: Version 4.3.5f8 15969, 3 services, 27 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
Serial ATA Device: APPLE SSD SM0256G, 251 GB
USB Device: Internal Memory Card Reader
USB Device: Bluetooth USB Host Controller
USB Device: Apple Internal Keyboard / Trackpad
Thunderbolt Bus: MacBook Pro, Apple Inc., 27.1
I think it's possible that this is emacs bug.
So I reported this problem to emacs maintainer.
I was wondering how are floppy disk sectors ordered, I am currently writing a program to access the root directory of a floppy disk (fat12 formated High Density), I can load it with debug at sector 13h but in assembly it is at head 1 track 0 sector 2 why is sector 13h, not at head 0 track 1 sector 1?
That's because the sectors on the other side of the disk comes before the sectors on the second track on the first side.
Sectors 0 through 17 (11h) are found at head 0 track 0. Sectors 18 (12h) through 35 (23h) are found at head 1 track 0.
Logical sectors are numbered from zero up, but the sectors in a track are numbered from 1 to 18 (12h).
sector# head track sector usage
------- ---- ----- ------ --------
0 0h 0 0 1 1h boot
1 1h 0 0 2 2h FAT 1
2 2h 0 0 3 3h |
3 3h 0 0 4 4h v
4 4h 0 0 5 5h
5 5h 0 0 6 6h
6 6h 0 0 7 7h
7 7h 0 0 8 8h
8 8h 0 0 9 9h
9 9h 0 0 10 ah
10 ah 0 0 11 bh FAT 2
11 bh 0 0 12 ch |
12 ch 0 0 13 dh v
13 dh 0 0 14 eh
14 eh 0 0 15 fh
15 fh 0 0 16 10h
16 10h 0 0 17 11h
17 11h 0 0 18 12h
18 12h 1 0 1 1h
19 13h 1 0 2 2h root
20 14h 1 0 3 3h |
21 15h 1 0 4 4h v
...