Created
February 2, 2011 17:55
-
-
Save vi/808077 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vi@vi-notebook:~/_$ git clone -b valgrind-failure git://github.com/vi/tcplim.git | |
Cloning into tcplim... | |
... | |
vi@vi-notebook:~/_$ cd tcplim/ | |
vi@vi-notebook:~/_/tcplim$ make | |
gcc -O2 tcplim.c -o tcplim | |
vi@vi-notebook:~/_/tcplim$ socat tcp-l:9998,reuseaddr,fork file:/dev/zero& | |
[1] 11525 | |
vi@vi-notebook:~/_/tcplim$ valgrind ./tcplim 127.0.0.1 9999 127.0.0.1 9998 10000000 10000000 1000000000 1000000000 50 2> log& | |
[2] 11550 | |
vi@vi-notebook:~/_/tcplim$ nc 127.0.0.1 9999 | pv > /dev/null | |
48kB 0:00:00 [1.01MB/s] [ <=> ] | |
vi@vi-notebook:~/_/tcplim$ grep impossible log | |
Memcheck: the 'impossible' happened: | |
[1]+ Stopped socat tcp-l:9998,reuseaddr,fork file:/dev/zero | |
[2]- Exit 1 valgrind ./tcplim 127.0.0.1 9999 127.0.0.1 9998 10000000 10000000 1000000000 1000000000 50 2> log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Considering "impossible happened" like "internal compiler error" - the bug present not matter whether the code being checked is valid or invalid.