Skip to content

Instantly share code, notes, and snippets.

View daniloegea's full-sized avatar

Danilo Egêa Gondolfo daniloegea

View GitHub Profile
#!/usr/bin/python3
import os
import socket
import gi
gi.require_version("NM", "1.0")
from gi.repository import NM, GLib, Gio
nmclient = NM.Client.new()
Process 16772 stopped
* thread #1, name = 'photoflow', stop reason = signal SIGABRT
frame #0: 0x0000000803ef118a libc.so.7`__sys_thr_kill at thr_kill.S:4
1 /* @generated by libc/sys/Makefile.inc */
2 #include "compat.h"
3 #include "SYS.h"
-> 4 RSYSCALL(thr_kill)
5 .section .note.GNU-stack,"",%progbits
(lldb) bt
* thread #1, name = 'photoflow', stop reason = signal SIGABRT
Process 95739 stopped
* thread #2, name = 'photoflow', stop reason = signal SIGABRT
frame #0: 0x0000000803ef118a libc.so.7`__sys_thr_kill at thr_kill.S:4
1 /* @generated by libc/sys/Makefile.inc */
2 #include "compat.h"
3 #include "SYS.h"
-> 4 RSYSCALL(thr_kill)
5 .section .note.GNU-stack,"",%progbits
(lldb) bt
* thread #2, name = 'photoflow', stop reason = signal SIGABRT
Index: Mk/Uses/go.mk
===================================================================
--- Mk/Uses/go.mk (revision 496055)
+++ Mk/Uses/go.mk (working copy)
@@ -58,7 +58,8 @@
GO_WRKDIR_PKG= ${WRKDIR}/pkg/${OPSYS:tl}_${GOARCH}
BUILD_DEPENDS+= ${GO_CMD}:lang/go
-GO_ENV+= GOPATH="${WRKDIR}:${LOCAL_GOPATH}" \
+GO_ENV+= GOCACHE="${WRKDIR}/.gocache" \
@daniloegea
daniloegea / gist:3858685358f64104b7bbe4cad6005dd7
Created December 8, 2018 21:44
build aws-c-event-stream
[ 9%] Building C object CMakeFiles/aws-c-event-stream.dir/source/event_stream.c.o
/tmp/aws-c-event-stream/source/event_stream.c:156:31: error: incompatible pointer to integer conversion passing 'uint8_t *' (aka 'unsigned char *') to parameter of type 'uint16_t' (aka 'unsigned short') [-Werror,-Wint-conversion]
aws_write_u16(buffer_alias, header->header_value_len);
^~~~~~~~~~~~
/usr/local/include/aws/common/encoding.h:154:45: note: passing argument to parameter 'value' here
AWS_STATIC_IMPL void aws_write_u16(uint16_t value, uint8_t *buffer) {
^
/tmp/aws-c-event-stream/source/event_stream.c:156:45: error: incompatible integer to pointer conversion passing 'uint16_t' (aka 'unsigned short') to parameter of type 'uint8_t *' (aka 'unsigned char *') [-Werror,-Wint-conversion]
aws_write_u16(buffer_alias, header->header_value_len);
^~~~~~~~~~~~~~~~~~~~~~~~
global
maxconn 20000
ulimit-n 16384
log 127.0.0.1 local0
pidfile /tmp/haproxy.pid
frontend blue_env
bind 127.0.0.1:8080
mode tcp
default_backend blue_backend
0x80b7abe46 <+406>: leaq -0x1acbe27(%rip), %rax
0x80b7abe4d <+413>: movq 0x3ebee54(%rip), %rcx
0x80b7abe54 <+420>: movq %rax, (%rcx)
0x80b7abe57 <+423>: movl $0x172, 0x0 ; imm = 0x172
0x80b7abe62 <+434>: callq 0x56b3060 ; symbol stub for: abort
0x80b7abe67 <+439>: leaq -0x1a5b422(%rip), %rax
0x80b7abe6e <+446>: movq 0x3ebee33(%rip), %rcx
0x80b7abe75 <+453>: movq %rax, (%rcx)
0x80b7abe78 <+456>: movl $0x23e, 0x0 ; imm = 0x23E
0x80b7abe83 <+467>: callq 0x56b3060 ; symbol stub for: abort
Process 75464 stopped
* thread #1, name = 'xarchiver', stop reason = signal SIGSEGV: invalid address (fault address: 0x10)
frame #0: 0x00000000002309e4 xarchiver`xa_update_window_with_archive_entries(archive=0x000000080cf56400, entry=0x000000080e32a810) at window.c:2932
2929
2930 for (i = 2; i < archive->columns - 1; i++)
2931 {
-> 2932 switch(archive->column_types[i])
2933 {
2934 case G_TYPE_STRING:
2935 //g_message ("%d - %s",i,(*((gchar **)current_column)));