Skip to content

Instantly share code, notes, and snippets.

View mpenick's full-sized avatar
🍵

Michael Penick mpenick

🍵
View GitHub Profile
/*
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
/*
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
# sudo apt-get build-essential debhelper devscripts dh-exec libtool automake git
# git clone https://github.com/mpenick/libuv-packaging.git
# cd libuv-packaging
# ./build_deb.sh 1.6.1 armhf
# sudo dpkg -i build/libuv*.deb
# sudo apt-get install gcc-4.8 g++-4.8 libssl cmake
# git clone https://github.com/datastax/cpp-driver.git
==25139== 24 bytes in 1 blocks are definitely lost in loss record 6 of 13
==25139== at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==25139== by 0x7F18120: ??? (in /lib/x86_64-linux-gnu/libgcrypt.so.11.8.2)
==25139== by 0x7F1913C: ??? (in /lib/x86_64-linux-gnu/libgcrypt.so.11.8.2)
==25139== by 0x7F62581: ??? (in /lib/x86_64-linux-gnu/libgcrypt.so.11.8.2)
==25139== by 0x6671816: kex_method_diffie_hellman_group14_sha1_key_exchange (in /usr/lib/x86_64-linux-gnu/libssh2.so.1.0.1)
==25139== by 0x6671F56: _libssh2_kex_exchange (in /usr/lib/x86_64-linux-gnu/libssh2.so.1.0.1)
==25139== by 0x6678F26: libssh2_session_handshake (in /usr/lib/x86_64-linux-gnu/libssh2.so.1.0.1)
==25139== by 0x728B95: cql::cql_ccm_bridge_t::start_ssh_connection(cql::cql_ccm_bridge_configuration_t const&) (cql_ccm_bridge.cpp:131)
==25139== by 0x7286D6: cql::cql_ccm_bridge_t::cql_ccm_bridge_t(cql::cql_ccm_bridge_configuration_t const&) (cql_ccm_bridge.cpp:75)
@mpenick
mpenick / hang.c
Last active August 29, 2015 14:26
#include "cassandra.h"
#include <assert.h>
#include <stdio.h>
int main() {
CassCluster* cluster = NULL;
CassSession* session = NULL;
CassFuture* future = NULL;
#include <assert.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include "cassandra.h"
void print_error(CassFuture* future) {
const char* message;
size_t message_length;
; Generated with (4.1.2): gcc -O0 -S -Iinclude -Isrc/unix -Isrc src/unix/async.c
.file "async.c"
.text
.type uv__req_init, @function
uv__req_init:
.LFB2:
.cfi_startproc
pushq %rbp
.cfi_def_cfa_offset 16
; Generated with (6.1.0): clang -O0 -S -Iinclude -Isrc/unix -Isrc src/unix/async.c
.section __TEXT,__text,regular,pure_instructions
.macosx_version_min 10, 10
.globl _uv_async_init
.align 4, 0x90
_uv_async_init: ## @uv_async_init
.cfi_startproc
## BB#0:
pushq %rbp
; Generated with: gcc-4.8 -O0 -S -Iinclude -Isrc/unix -Isrc src/unix/async.c
.file "async.c"
.text
.type uv__req_init, @function
uv__req_init:
.LFB2:
.cfi_startproc
pushq %rbp
.cfi_def_cfa_offset 16
; Generated with: gcc-4.6 -O0 -S -Iinclude -Isrc/unix -Isrc src/unix/async.c
.file "async.c"
.text
.type uv__req_init, @function
uv__req_init:
.LFB2:
.cfi_startproc
pushq %rbp
.cfi_def_cfa_offset 16