Skip to content

Instantly share code, notes, and snippets.

extern crate rdblib;
extern crate nix;
extern crate rl_sys;
extern crate libc;
use nix::sys::select;
use nix::Error::Sys as NixError;
use nix::Errno;
use rl_sys::readline;
unsafe extern "C" fn readline_callback(line: *mut libc::c_char) {
@mkollaro
mkollaro / gist:17a59c447355cf436fde
Created September 1, 2015 08:03
glViewport stack in gpu process
#0 gpu::gles2::GLES2DecoderImpl::DoViewport (this=0x198a37bef820, x=0, y=0, width=1001, height=1199) at ../../gpu/command_buffer/service/gles2_cmd_decoder.cc:8259
#1 0x00007fffe9c78ee4 in gpu::gles2::GLES2DecoderImpl::HandleViewport (this=0x198a37bef820, immediate_data_size=0, cmd_data=0x7fffd4a6fe68) at ../../gpu/command_buffer/service/gles2_cmd_decoder_autogen.h:3996
#2 0x00007fffe9c84928 in gpu::gles2::GLES2DecoderImpl::DoCommandsImpl<false> (this=0x198a37bef820, num_commands=20, buffer=0x7fffd4a6fe30, num_entries=91, entries_processed=0x7fffffffb774) at ../../gpu/command_buffer/service/gles2_cmd_decoder.cc:4378
#3 0x00007fffe9c439bb in gpu::gles2::GLES2DecoderImpl::DoCommands (this=0x198a37bef820, num_commands=20, buffer=0x7fffd4a6fe30, num_entries=91, entries_processed=0x7fffffffb774) at ../../gpu/command_buffer/service/gles2_cmd_decoder.cc:4436
#4 0x00007fffe9bfa64f in gpu::CommandParser::ProcessCommands (this=0x198a36c94c80, num_commands=20) at ../../gpu/command_buffer/service/cmd_parser.cc:52
#5
out/Debug/components_unittests --gtest_filter=ContentSettingsPatternTest.FromString_WithNoWildcards --single-process
IMPORTANT DEBUGGING NOTE: batches of tests are run inside their
own process. For debugging a test inside a debugger, use the
--gtest_filter=<your_test_name> flag along with
--single-process-tests.
Using sharding settings from environment. This is shard 0/1
Using 1 parallel jobs.
Note: Google Test filter = ContentSettingsPatternTest.FromString_WithNoWildcards
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
#!/usr/bin/env python
import tempest.config
print tempest.config.CONF.identity.keys()
raise Exception("hello")
@mkollaro
mkollaro / output2
Created July 31, 2014 11:05
ansible -vvvv output with export ANSIBLE_SSH_ARGS=""
time ansible-playbook -i hosts apache.yml -c ssh -l rhel65 -vvvv
PLAY [web] ********************************************************************
TASK: [command uptime] ********************************************************
<10.8.53.91> ESTABLISH CONNECTION FOR USER: root
<10.8.53.91> REMOTE_MODULE command uptime
<10.8.53.91> EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'StrictHostKeyChecking=no', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no', '-o', 'User=root', '-o', 'ConnectTimeout=10', '10.8.53.91', "/bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1406804544.52-34801016249279 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1406804544.52-34801016249279 && echo $HOME/.ansible/tmp/ansible-tmp-1406804544.52-34801016249279'"]
<10.8.53.91> PUT /tmp/tmp3hdVus TO /root/.ansible/tmp/ansible-tmp-1406804544.52-34801016249279/command
<10.8.53.91> EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'StrictHostKeyCheckin
@mkollaro
mkollaro / output
Created July 31, 2014 10:56
Ansible -vvvv output
time ansible-playbook -i hosts apache.yml -c ssh -l rhel65 -vvvv
PLAY [web] ********************************************************************
TASK: [command uptime] ********************************************************
<10.8.53.91> ESTABLISH CONNECTION FOR USER: root
<10.8.53.91> REMOTE_MODULE command uptime
<10.8.53.91> EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'ControlMaster=auto', '-o', 'ControlPersist=60s', '-o', 'ControlPath=/home/mkollaro/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 'StrictHostKeyChecking=no', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no', '-o', 'User=root', '-o', 'ConnectTimeout=10', '10.8.53.91', "/bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1406804125.13-83966864786077 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1406804125.13-83966864786077 && echo $HOME/.ansible/tmp/ansible-tmp-1406804125.13-83966864786077'"]
<10.8.53.91> PUT /tmp/tmpxlofW4 TO /root/.ansible/t
@mkollaro
mkollaro / strace output
Created July 30, 2014 16:57
ansible paramiko re-connect
$ strace -e connect -- ansible-playbook -i hosts test.yml -c paramiko
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=20640, si_status=0, si_utime=0, si_stime=0} ---
connect(6, {sa_family=AF_LOCAL, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
connect(6, {sa_family=AF_LOCAL, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=20648, si_status=0, si_utime=0, si_stime=0} ---
PLAY [web] ********************************************************************
TASK: [command uptime] ********************************************************
connect(4, {sa_family=AF_INET, sin_port=htons(22), sin_addr=inet_addr("10.8.53.91")}, 16) = -1 EINPROGRESS (Operation now in progress)