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
:::::::::::::: | |
server.c | |
:::::::::::::: | |
// invoked as valgrind ./server | |
#include <zmq.h> | |
void main(void) { | |
void *ctx = zmq_ctx_new(); | |
void *socket = zmq_socket(ctx, ZMQ_XPUB); | |
zmq_bind(socket, "tcp://*:9999"); |
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
daveo@abraxas:~/zmq-crash-repro$ more server.c client.c | |
:::::::::::::: | |
server.c | |
:::::::::::::: | |
// invoked as valgrind ./server | |
#include <zmq.h> | |
void main(void) { | |
void *ctx = zmq_ctx_new(); | |
void *socket = zmq_socket(ctx, ZMQ_XPUB); |
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
==24817== Invalid read of size 4 | |
==24817== at 0x1003769: zmq::metadata_t::add_ref() | |
==24817== by 0x10041AF: zmq::msg_t::set_metadata(zmq::metadata_t*) | |
==24817== by 0x102A25A: zmq::xpub_t::xrecv(zmq::msg_t*) | |
==24817== by 0x100FCBB: zmq::socket_base_t::recv(zmq::msg_t*, int) | |
==24817== by 0xFF3EE5: zmq_msg_recv | |
==24817== Address 0x636beb0 is 0 bytes inside a block of size 56 free'd | |
==24817== at 0x4C2E26B: operator delete(void*) | |
==24817== by 0x1004DF6: zmq::msg_t::close() | |
==24817== by 0x102C221: zmq::xpub_t::xread_activated(zmq::pipe_t*) |
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
# Insert some data | |
> insert foo,bar=baz,biff=buzz numvalue=1,strvalue="some string" | |
> insert foo,bar=baz,biff=buzz numvalue=1,strvalue="some string" | |
> insert foo,bar=baz,biff=buzz numvalue=1,strvalue="some string" | |
> insert foo,bar=baz,biff=buzz numvalue=1,strvalue="some string" | |
> insert foo,bar=baz,biff=buzz numvalue=1,strvalue="some string" | |
> show series | |
key | |
foo,bar=baz,biff=buzz |
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
dolszewski@blackheat:~$ echo test | read somevar | |
dolszewski@blackheat:~$ echo $somevar | |
dolszewski@blackheat:~$ read somevar < <(echo test) | |
dolszewski@blackheat:~$ echo $somevar | |
test |
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
test |
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
$ make -j5 | |
/usr/bin/perl /home/count/src/ext/perl/perl6/local/lib/parrot/5.2.0-devel/tools/build/pmc2c.pl --no-lines --dump --include src/vm/parrot/pmc --include /home/count/src/ext/perl/perl6/local/src/parrot/5.2.0-devel --include /home/count/src/ext/perl/perl6/local/src/parrot/5.2.0-devel/pmc src/vm/parrot/pmc/perl6lexinfo.pmc src/vm/parrot/pmc/perl6lexpad.pmc. | |
/usr/bin/perl /home/count/src/ext/perl/perl6/local/lib/parrot/5.2.0-devel/tools/build/pmc2c.pl --no-lines --c --include src/vm/parrot/pmc --include /home/count/src/ext/perl/perl6/local/src/parrot/5.2.0-devel --include /home/count/src/ext/perl/perl6/local/src/parrot/5.2.0-devel/pmc src/vm/parrot/pmc/perl6lexinfo.pmc src/vm/parrot/pmc/perl6lexpad.pmc. | |
/usr/bin/perl /home/count/src/ext/perl/perl6/local/lib/parrot/5.2.0-devel/tools/build/pmc2c.pl --no-lines --library perl6_group --c src/vm/parrot/pmc/perl6lexinfo.pmc src/vm/parrot/pmc/perl6lexpad.pmc. | |
cc -c -o perl6_group.o -Isrc/vm/parrot/pmc -I/home/count/src/ext/perl/perl6/local/include/parrot/5.2.0-d |
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
<?xml version="1.0" encoding="ISO-8859-1" ?> | |
<!-- | |
How I invoked this test: | |
sipp 10.104.11.81 -p 2048 -sf repro.sipp -m 1 -nd -nr | |
--> | |
<scenario name="utf8 in caller id"> | |
<send> |
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
var fs = require('fs'); | |
var re = /(..)/g; | |
var methods = { | |
with_escape: function(data, cb) { | |
cb(escape(data.toString('binary'))); | |
}, | |
with_loop: function (data, cb) { | |
var buf = ''; | |
for (var n = 0; n < data.length; n++) { |
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
--- a/src/mod/applications/mod_commands/mod_commands.c | |
+++ b/src/mod/applications/mod_commands/mod_commands.c | |
@@ -4809,7 +4809,7 @@ SWITCH_STANDARD_API(show_function) | |
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Memory Error!\n"); | |
holder.stream->write_function(holder.stream, "-ERR Memory Error!\n"); | |
} else { | |
- holder.stream->write_function(holder.stream, json_text); | |
+ holder.stream->write_function(holder.stream, "%s", json_text); | |
} | |
cJSON_Delete(result); |
NewerOlder