Skip to content

Instantly share code, notes, and snippets.

View ashgti's full-sized avatar

John Harrison ashgti

View GitHub Profile
* thread #1, name = 'python3', stop reason = SIGABRT: sent by tkill system call (sender pid=1189502, uid=499732)
frame #0: 0x00007f00d6d0595c libc.so.6`__pthread_kill_implementation(threadid=<unavailable>, signo=6, no_tid=<unavailable>) at pthread_kill.c:44:76
frame #1: 0x00007f00d6cb0cc2 libc.so.6`__GI_raise(sig=6) at raise.c:26:13
frame #2: 0x00007f00d6c994ac libc.so.6`__GI_abort at abort.c:73:3
frame #3: 0x00007f00c9cd545e libstdc++.so.6`std::__glibcxx_assert_fail(char const*, int, char const*, char const*) + 94
frame #4: 0x00007f00cb4994cd _lldb.cpython-313-x86_64-linux-gnu.so`std::_Optional_base_impl<lldb_private::FileSystem, std::_Optional_base<lldb_private::FileSystem, false, false>>::_M_get(this=<unavailable>) at optional:475:2 [inlined]
frame #5: 0x00007f00cb4994ae _lldb.cpython-313-x86_64-linux-gnu.so`std::optional<lldb_private::FileSystem>::operator*(this=<unavailable>) & at optional:972:22 [inlined]
frame #6: 0x00007f00cb4994ae _lldb.cpython-313-x86_64-linux-gnu.so`lldb
@ashgti
ashgti / gist:bbf45ed3195885cc904ee8f5909e981a
Created August 7, 2025 16:19
Querying building rules_swift target
blaze aquery --config=darwin_arm64 //third_party/bazel_rules/rules_swift/examples/apple/mixed_c_swift/generated_hdr
INFO: Analyzed target //third_party/bazel_rules/rules_swift/examples/apple/mixed_c_swift/generated_hdr:generated_hdr (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
action 'Writing file third_party/bazel_rules/rules_swift/examples/apple/mixed_c_swift/generated_hdr/generated_hdr.output_file_map.json'
Mnemonic: FileWrite
Target: //third_party/bazel_rules/rules_swift/examples/apple/mixed_c_swift/generated_hdr:generated_hdr
Configuration: darwin_arm64-fastbuild
Execution platform: //buildenv/platforms:glinux_exec
ActionKey: e60069ebc27e100b663e03dcf22963f105e0019aa935911008018c0994a36d1d
Inputs: []
#include <wtypes.h>
#include <errno.h>
#include <fcntl.h>
#include <io.h>
#include <windows.h>
#include <winternl.h>
#include <process.h>
#include <iostream>
typedef enum {
// Emulate 'select' behavior on Windows for Pipe handles, both anonymous and named pipes.
// See `SelectHelper::Select` below.
// clang-format off
#include <wtypes.h>
#include <errno.h>
#include <fcntl.h>
#include <io.h>
#include <winbase.h>
#include <winternl.h>
@ashgti
ashgti / Sample output
Created October 3, 2024 16:06
oso_prefix bug with ld in Xcode 15.3, 15.4, 16.0
oso_prefix (no symlinks) ld:
0000000000000000 (?) non-external
0000000000000000 (?) non-external /var/folders/_0/_vrx1th904x4bsf1c0_w4bhw00g80m/T/linker_path_bug/srcs/
0000000000000000 (?) non-external main.c
0000000066e86ece (?) non-external build_outputs/main.o
0000000100003f58 (__TEXT,__text) non-external
0000000100003f58 (?) non-external _main
0000000000000034 (?) non-external
0000000100003f58 (__TEXT,__text) non-external
{ patterns = (
{ name = 'comment.block.perl6';
begin = '^=begin';
end = '^=end';
},
{ name = 'comment.line.number-sign.perl6';
match = '#.*$';
},
{ name = 'string.quoted.single.perl6';
begin = "'";
@ashgti
ashgti / Perl6Grammar.pm.html
Created March 1, 2015 08:27
Perl6 Grammar with syntax applied from the perl.tmbundle
This file has been truncated, but you can view the full file.
<!DOCTYPE html>
<html>
<head>
<title>Perl6Grammar.nqp</title>
<style media="screen">
atom-text-editor,
:host {
background-color: #002b36;
color: #839496;
}
@ashgti
ashgti / syntax-sample
Last active August 29, 2015 14:16
Syntax highlight example
<!DOCTYPE html>
<html>
<head>
<title>syntax-check.pl6</title>
<style media="screen">
#atom-text-editor,
:host {
background-color: #002b36;
color: #839496;
}
@ashgti
ashgti / wtf.cc
Last active December 12, 2015 00:58
Don't do this ever please. If you have to, please comment it.
#include <stdio.h>
struct foo {
struct dummy {
int i;
};
typedef int dummy::*_bool;
foo(int f) : f_(f) {}
int f_;
Index: lib/profile/GCDAProfiling.c
===================================================================
--- lib/profile/GCDAProfiling.c (revision 173961)
+++ lib/profile/GCDAProfiling.c (working copy)
@@ -269,6 +269,9 @@
for (i = 0; i < num_counters; ++i)
fprintf(stderr, "llvmgcda: %llu\n", (unsigned long long)counters[i]);
#endif
+
+ for (i = 0; i < num_counters; ++i)