Skip to content

Instantly share code, notes, and snippets.

@bfo

bfo/h1 dd log Secret

Last active October 5, 2015 10:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bfo/8413e3af5b6d64e66418 to your computer and use it in GitHub Desktop.
Save bfo/8413e3af5b6d64e66418 to your computer and use it in GitHub Desktop.
socat + jenkins failure
user@h1:~$ dd if=/dev/zero of=/tmp/vmodem1 bs=1024 count=10
10+0 records in
10+0 records out
10240 bytes (10 kB) copied, 0.000805013 s, 12.7 MB/s
[socat_test] $ /bin/bash -e /tmp/hudson1065042519515558834.sh
2015/10/05 11:24:15 socat[6838] I socat by Gerhard Rieger - see www.dest-unreach.org
2015/10/05 11:24:15 socat[6838] I This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit. (http://www.openssl.org/)
2015/10/05 11:24:15 socat[6838] I This product includes software written by Tim Hudson (tjh@cryptsoft.com)
2015/10/05 11:24:15 socat[6838] N opening connection to AF=2 192.168.38.137:54321
2015/10/05 11:24:15 socat[6838] I starting connect loop
2015/10/05 11:24:15 socat[6838] I socket(2, 1, 6) -> 3
2015/10/05 11:24:15 socat[6838] N successfully connected from local address AF=2 192.168.39.90:57398
2015/10/05 11:24:15 socat[6838] I setting option "symbolic-link" to "/tmp/vmodem1"
2015/10/05 11:24:15 socat[6838] I setting option "echo" to 0
2015/10/05 11:24:15 socat[6838] I setting option "raw"
2015/10/05 11:24:15 socat[6838] I setting option "pty-wait-slave" to 1
2015/10/05 11:24:15 socat[6838] I openpty({4}, {5}, {"/dev/pts/7"},,) -> 0
2015/10/05 11:24:15 socat[6838] N PTY is /dev/pts/7
2015/10/05 11:24:15 socat[6838] I close(5)
Build was aborted
Aborted by NN
[BFA] Scanning build for known causes...
2015/10/05 11:24:33 socat[6838] W exiting on signal 15
2015/10/05 11:24:33 socat[6838] I shutdown(3, 2)
2015/10/05 11:24:33 socat[6838] I close(4)
[BFA] No failure causes found
[BFA] Done. 0s
Finished: ABORTED
user@h2:/tmp$ cat /tmp/vmodem1 > dump
<Jenkins build aborted>
cat: /tmp/vmodem1: Input/output error
user@h2:/tmp$ ls -l dump
-rw-rw-r-- 1 user user 0 Oct 5 11:21 dump
user@h2:/tmp$ socat -x -d -d -d pty,link=/tmp/vmodem1,echo=0,raw tcp4-listen:54321,reuseaddr
2015/10/05 11:21:08 socat[27891] I socat by Gerhard Rieger - see www.dest-unreach.org
2015/10/05 11:21:08 socat[27891] I This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit. (http://www.openssl.org/)
2015/10/05 11:21:08 socat[27891] I This product includes software written by Tim Hudson (tjh@cryptsoft.com)
2015/10/05 11:21:08 socat[27891] I setting option "symbolic-link" to "/tmp/vmodem1"
2015/10/05 11:21:08 socat[27891] I setting option "echo" to 0
2015/10/05 11:21:08 socat[27891] I setting option "raw"
2015/10/05 11:21:08 socat[27891] I openpty({3}, {4}, {"/dev/pts/34"},,) -> 0
2015/10/05 11:21:08 socat[27891] N PTY is /dev/pts/34
2015/10/05 11:21:08 socat[27891] I setting option "so-reuseaddr" to 1
2015/10/05 11:21:08 socat[27891] I socket(2, 1, 6) -> 5
2015/10/05 11:21:08 socat[27891] I starting accept loop
2015/10/05 11:21:08 socat[27891] N listening on AF=2 0.0.0.0:54321
2015/10/05 11:21:22 socat[27891] I accept(5, {2, AF=2 192.168.39.90:57398}, 16) -> 6
2015/10/05 11:21:22 socat[27891] N accepting connection from AF=2 192.168.39.90:57398 on AF=2 192.168.38.137:54321
2015/10/05 11:21:22 socat[27891] I permitting connection from AF=2 192.168.39.90:57398
2015/10/05 11:21:22 socat[27891] I close(5)
2015/10/05 11:21:22 socat[27891] I resolved and opened all sock addresses
2015/10/05 11:21:22 socat[27891] N starting data transfer loop with FDs [3,3] and [6,6]
<Jenkins build aborted>
2015/10/05 11:21:40 socat[27891] N socket 2 (fd 6) is at EOF
2015/10/05 11:21:40 socat[27891] I poll timed out (no data within 0.500000 seconds)
2015/10/05 11:21:40 socat[27891] I close(3)
2015/10/05 11:21:40 socat[27891] I shutdown(6, 2)
2015/10/05 11:21:40 socat[27891] N exiting with status 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment