Skip to content

Instantly share code, notes, and snippets.

+ trap -- '' SIGINT SIGTERM
+ export PATH=/bin:/usr/bin
+ PATH=/bin:/usr/bin
+ echo 'starting lldb with args: ' --attach-pid 1308 --batch --one-line 'thread list' --one-line 'thread backtrace all' --one-line 'bt all' --one-line-on-crash bt --one-line-on-crash quit
+ echo 'pid to debug is 1308'
+ echo 'lldb output from pid 1308 to /tmp/stdout, my pid is 1308'
+ /usr/bin/lldb --attach-pid 1308 --batch --one-line bt --one-line quit
+ echo '/tmp/stdout is'
/Users/builder/gtk/inst/bin/lldb: line 11: echo: write error: Broken pipe
+ cat /tmp/stdout
bad window
```
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
* frame #0: 0x00007fff55c7020a libsystem_kernel.dylib`mach_msg_trap + 10
frame #1: 0x00007fff55c6f724 libsystem_kernel.dylib`mach_msg + 60
frame #2: 0x00007fff2dc84045 CoreFoundation`__CFRunLoopServiceMachPort + 341
frame #3: 0x00007fff2dc83397 CoreFoundation`__CFRunLoopRun + 1783
frame #4: 0x00007fff2dc82a07 CoreFoundation`CFRunLoopRunSpecific + 487
frame #5: 0x00007fff2cf5ed96 HIToolbox`RunCurrentEventLoopInMode + 286
frame #6: 0x00007fff2cf5eb06 HIToolbox`ReceiveNextEventCommon + 613
SIGTRAP: trace trap
PC=0x45dc51 m=0 sigcode=0
goroutine 0 [idle]:
runtime.futex(0xb5c490, 0x0, 0x0, 0x0, 0x0, 0x414f76, 0x0, 0x0, 0x7ffd1e597db8, 0x40f86b, ...)
/Users/frank/go1.9.2/src/runtime/sys_linux_amd64.s:438 +0x21
runtime.futexsleep(0xb5c490, 0x0, 0xffffffffffffffff)
/Users/frank/go1.9.2/src/runtime/os_linux.go:45 +0x62
runtime.notesleep(0xb5c490)
/Users/frank/go1.9.2/src/runtime/lock_futex.go:151 +0x9b
runtime.stopm()
*** Configuring gegl *** [38/62]
./configure --prefix /Users/distiller/gtk/inst --disable-docs
checking whether make supports nested variables... yes
checking build system type... x86_64-apple-darwin17.7.0
checking host system type... x86_64-apple-darwin17.7.0
checking target system type... x86_64-apple-darwin17.7.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4 ${ACLOCAL_FLAGS}
autoreconf: configure.ac: tracing
autoreconf: running: /Users/distiller/gtk/inst/bin/libtoolize --copy --force
libtoolize: putting auxiliary files in '.'.
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'
```
GNU Image Manipulation Program version 2.10.8
git-describe: GIMP_2_10_6-294-ga967e8d2c2
C compiler:
Configured with: --prefix=/Applications/Xcode-10.app/Contents/Developer/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX10.9.sdk/usr/include/c++/4.2.1
Apple LLVM version 10.0.0 (clang-1000.11.45.2)
Target: x86_64-apple-darwin17.7.0
Thread model: posix
InstalledDir: /Applications/Xcode-10.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
#!/bin/sh
case $1 in
start)
launchctl load /Library/LaunchAgents/com.paloaltonetworks.gp.pangpa.plist
launchctl load /Library/LaunchAgents/com.paloaltonetworks.gp.pangps.plist
;;
status)
echo "com.paloaltonetworks.* processes:"
launchctl list | grep com.paloaltonetworks
# lambda @ edge code to use CloudFront as transparent proxy for the ECR
from urllib.parse import urlparse
def lambda_handler(event, context):
response = event['Records'][0]['cf']['response']
# we need to fix Location response, but only if it redirects us to Orgin
# use try/catch to avoid exception if not set
try:
if(event['Records'][0]['cf']['request']['origin']['custom']['domainName']==urlparse(response["headers"]["location"][0]["value"]).netloc):
oot@701a9e8989f9:/babl-0.1.72/build# cat /babl-0.1.72/build/meson-logs/testlog.txt
Log of Meson test suite run on 2019-11-01T16:28:57.084323
Inherited environment: HOSTNAME='701a9e8989f9' SHLVL='1' HOME='/root' OLDPWD='/babl-0.1.72' _='/usr/bin/ninja' TERM='xterm' PATH='/root/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' PWD='/babl-0.1.72/build' LC_CTYPE='C.UTF-8'
1/25 babl_class_name OK 0.15 s
--- command ---
LD_LIBRARY_PATH='/babl-0.1.72/build/babl' GI_TYPELIB_PATH='/babl-0.1.72/build/babl' BABL_PATH='/babl-0.1.72/build/extensions' /babl-0.1.72/build/tests/babl_class_name
-------