Skip to content

Instantly share code, notes, and snippets.

@MisesEnForce
MisesEnForce / gist:5a7b28a2b663456ac4ca
Created August 22, 2015 19:22
vmmap -w -interleaved
XXXXXXXXXX:MyFirstDylib XXXXXXXXXX$ vmmap -w -interleaved 3333
Process: Microsoft Excel [3333]
Path: /Applications/Microsoft Office 2011/Microsoft Excel.app/Contents/MacOS/Microsoft Excel
Load Address: 0
Identifier: com.microsoft.Excel
Version: 14.0.0 (14.0.0)
Build Info: Unknown-100825~0
Code Type: X86
Parent Process: ??? [1]
@MisesEnForce
MisesEnForce / gist:b8b526897da0421f3033
Created August 22, 2015 19:24
disassembly of tmp.dylib --> otool -tV
XXXXXXXXXX:MyFirstDylib XXXXXXXXXX$ otool -tV tmp.dylib
tmp.dylib:
(__TEXT,__text) section
_powertwo_:
00000f87 pushl %ebp
00000f88 movl %esp, %ebp
00000f8a calll ___x86.get_pc_thunk.ax
00000f8f movl 0x8(%ebp), %eax
00000f92 movl (%eax), %edx
00000f94 movl 0x8(%ebp), %eax
@MisesEnForce
MisesEnForce / gist:8e67876d35697e206090
Created August 22, 2015 19:28
Excel crash report
Microsoft Error Reporting log version: 2.0
Error Signature:
Exception: EXC_BAD_ACCESS
Date/Time: 2015-08-22 19:28:15 +0000
Application Name: Microsoft Excel
Application Bundle ID: com.microsoft.Excel
Application Signature: XCEL
Application Version: 14.0.0.100825
Crashed Module Name: unknown
22/08/15 21:32:39,532 Microsoft Error Reporting[3482]: WARNING: The Gestalt selector gestaltSystemVersion is returning 10.9.5 instead of 10.10.5. Use NSProcessInfo's operatingSystemVersion property to get correct system version number.
Call location:
22/08/15 21:32:39,532 Microsoft Error Reporting[3482]: 0 CarbonCore 0x96a01291 ___Gestalt_SystemVersion_block_invoke + 135
22/08/15 21:32:39,532 Microsoft Error Reporting[3482]: 1 libdispatch.dylib 0x92c4f0b5 dispatch_once_f + 251
22/08/15 21:32:39,532 Microsoft Error Reporting[3482]: 2 libdispatch.dylib 0x92c500d8 dispatch_once + 31
22/08/15 21:32:39,532 Microsoft Error Reporting[3482]: 3 CarbonCore 0x9697a69d _Gestalt_SystemVersion + 1050
22/08/15 21:32:39,532 Microsoft Error Reporting[3482]: 4 CarbonCore 0x969797c0 Gestalt + 150
22/08/15 21:32:39,532 Microsoft Error Reporting[3482]: 5 Microsoft Error Reporting 0x00003678 Microsof
@MisesEnForce
MisesEnForce / gist:097c8a9e37ebdc61a041
Created August 24, 2015 21:50
g++-5.2.0 -v -m32 -dynamiclib ./tmp2.o -o ./tmp2.so
lvm@LvMsUbuntu:~/Documents/MyFirstDylib$ g++-5.2.0 -v -m32 -dynamiclib ./tmp2.o -o ./tmp2.so
Using built-in specs.
COLLECT_GCC=g++-5.2.0
COLLECT_LTO_WRAPPER=/usr/local/lvm/gcc-5.2.0/libexec/gcc/x86_64-unknown-linux-gnu/5.2.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../configure --prefix=/usr/local/lvm/gcc-5.2.0 --enable-checking=release --with-gmp=/usr/local/lvm/gmp-6.0.0 --with-mpfr=/usr/local/lvm/mpfr-3.1.2 --with-mpc=/usr/local/lvm/mpc-1.0.3 --enable-languages=c,c++,fortran,objc,obj-c++ --with-isl=/usr/local/lvm/isl-0.14 --with-cloog=/usr/local/lvm/cloog-0.18.4 --program-suffix=-5.2.0
Thread model: posix
gcc version 5.2.0 (GCC)
COMPILER_PATH=/usr/local/lvm/gcc-5.2.0/libexec/gcc/x86_64-unknown-linux-gnu/5.2.0/:/usr/local/lvm/gcc-5.2.0/libexec/gcc/x86_64-unknown-linux-gnu/5.2.0/:/usr/local/lvm/gcc-5.2.0/libexec/gcc/x86_64-unknown-linux-gnu/:/usr/local/lvm/gcc-5.2.0/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/:/usr/local/lvm/gcc-5.2.0/lib/gcc/x86_64-unknown-linux-gnu/
LIBRARY_PATH=/usr/local/
@MisesEnForce
MisesEnForce / gist:5af8551796acbf0059d1
Created October 17, 2015 11:12
Complete output of all commands I ran
This file has been truncated, but you can view the full file.
Last login: Sat Oct 17 12:06:43 on ttys001
XXXXXs-MacBook-Air:clang XXXX$ curl -O http://llvm.org/releases/3.7.0/llvm-3.7.0.src.tar.xz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 13.9M 100 13.9M 0 0 942k 0 0:00:15 0:00:15 --:--:-- 1127k
XXXXXs-MacBook-Air:clang XXXX$ tar -Jxf llvm-3.7.0.src.tar.xz
XXXXXs-MacBook-Air:clang XXXX$ cd llvm-3.7.0.src/tools/
XXXXXs-MacBook-Air:tools XXXX$ curl -O http://llvm.org/releases/3.7.0/cfe-3.7.0.src.tar.xz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
Making all in libstuff
make[1]: Entering directory '/home/lvm-ubuntu/Desktop/ipad/cctools-port/trunk/cctools/libstuff'
/bin/bash ../libtool --tag=CC --mode=compile /usr/bin/clang-3.7 -arch arm64 -DPACKAGE_NAME=\"cctools\" -DPACKAGE_TARNAME=\"cctools\" -DPACKAGE_VERSION=\"877.5\" -DPACKAGE_STRING=\"cctools\ 877.5\" -DPACKAGE_BUGREPORT=\"t.poechtrager@gmail.com\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DEMULATED_HOST_CPU_TYPE=12 -DEMULATED_HOST_CPU_SUBTYPE=0 -D__STDC_LIMIT_MACROS=1 -D__STDC_CONSTANT_MACROS=1 -DHAVE_EXECINFO_H=1 -DHAVE_UUID_UUID_H=1 -I. -I../include -I../include/foreign -D__DARWIN_UNIX03 -Wall -Wno-long-long -Wno-import -Wno-format -Wno-deprecated -Wno-unused-variable -Wno-unused-private-field -Wno-unused-function -Wno-invalid-offsetof -Wno-int-conversion -Wno-char-subscripts -DLTO_SUPP
lvm-ubuntu@lvmubuntu-VirtualBox:~/Desktop/iPad/cctools-source/cctools-port-master/cctools$ ./autogen.sh
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./config.guess'
libtoolize: copying file `./config.sub'
libtoolize: copying file `./install-sh'
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by cctools configure 877.5, which was
generated by GNU Autoconf 2.68. Invocation command line was
$ ./configure -v --host=arm-apple-darwin11 --prefix=/usr/local/lvm-cross/cctools-arm64-port
## --------- ##
## Platform. ##
XXXXs-MacBook-Air:cctools XXXX$ ./autogen.sh
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './config.guess'
libtoolize: copying file './config.sub'
libtoolize: copying file './install-sh'
libtoolize: copying file './ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'