Hi Gunay, On Fri, Apr 03, 2015 at 08:46:50AM +0300, gunay arslan wrote: > HI Cyril > > my mistake, I forget to mention that before every build I am cleaning - make > clean > > and here is the lldb output too > > > lldb /usr/local/bin/haproxy-1.6-dev1-601a4d-55 > (lldb) target create "/usr/local/bin/haproxy-1.6-dev1-601a4d-55" > Current executable set to '/usr/local/bin/haproxy-1.6-dev1-601a4d-55' > (x86_64). > (lldb) r -f lua.conf > Process 57497 launched: '/usr/local/bin/haproxy-1.6-dev1-601a4d-55' (x86_64) > Process 57497 stopped > * thread #1: tid = 0xddc786, 0x00007fff85a91b17 > libsystem_platform.dylib`_platform_strcmp + 23, queue = > 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x10) > frame #0: 0x00007fff85a91b17 libsystem_platform.dylib`_platform_strcmp + > 23 > libsystem_platform.dylib`_platform_strcmp + 23: > -> 0x7fff85a91b17: movzbq (%rsi), %r8 > 0x7fff85a91b1b: incq %rdi > 0x7fff85a91b1e: incq %rsi > 0x7fff85a91b21: subq %r8, %rax
Do you have the equivalent of gdb's "bt full" in lldb ? Here we seem to be seeing that it crashes in strcmp() due to a bad pointer, so now we need to know who passes that bad pointer (I suspect a null check is missing somewhere hence the address 0x10 which probably corresponds to a string after two pointers in a struct). Regards, Willy

