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
(gdb) bt | |
#0 0x00007fd767523c37 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56 | |
#1 0x00007fd767527028 in __GI_abort () at abort.c:89 | |
#2 0x00007fd7675602a4 in __libc_message (do_abort=do_abort@entry=2, fmt=fmt@entry=0x7fd76766c113 "*** %s ***: %s terminated\n") at ../sysdeps/posix/libc_fatal.c:175 | |
#3 0x00007fd7675f7bbc in __GI___fortify_fail (msg=<optimized out>, msg@entry=0x7fd76766c0aa "buffer overflow detected") at fortify_fail.c:38 | |
#4 0x00007fd7675f6a90 in __GI___chk_fail () at chk_fail.c:28 | |
#5 0x00007fd7675f5ef0 in __strncpy_chk (s1=s1@entry=0x1e73643 "", s2=s2@entry=0x7fd768a741b0 "services-preprod-replica.cyire0kczejw.us-east-1.rds.amazonaws.com", n=n@entry=66, s1len=s1len@entry=64) at strncpy_chk.c:30 | |
#6 0x0000000000452511 in strncpy (__len=66, __src=0x7fd768a741b0 "services-preprod-replica.cyire0kczejw.us-east-1.rds.amazonaws.com", __dest=0x1e73643 "") at /usr/include/x86_64-linux-gnu/bits/string3.h:120 | |
#7 get_nodes (nrows=nrows@entry=0x7ffeacdfb038) at utils/pool_ |
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
*** buffer overflow detected ***: pgpool: postgres postgres 127.0.0.1(45829) SHOW terminated | |
======= Backtrace: ========= | |
/lib/x86_64-linux-gnu/libc.so.6(+0x7329f)[0x7f148e7af29f] | |
/lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x5c)[0x7f148e846bbc] | |
/lib/x86_64-linux-gnu/libc.so.6(+0x109a90)[0x7f148e845a90] | |
/lib/x86_64-linux-gnu/libc.so.6(__stpncpy_chk+0x0)[0x7f148e844ef0] | |
pgpool: postgres postgres 127.0.0.1(45829) SHOW[0x452511] | |
pgpool: postgres postgres 127.0.0.1(45829) SHOW[0x452593] | |
pgpool: postgres postgres 127.0.0.1(45829) SHOW[0x4333ea] | |
pgpool: postgres postgres 127.0.0.1(45829) SHOW[0x437adc] |
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
FROM ubuntu | |
# install necessory packages | |
RUN apt-get update | |
RUN apt-get install ssh -y | |
RUN apt-get install openssh-server -y | |
RUN apt-get install sudo -y | |
RUN apt-get install vim -y | |
RUN apt-get install curl -y | |
RUN apt-get install python-software-properties -y |
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
<source> | |
type tail | |
format apache2 | |
path /var/log/apache2/access_log | |
tag apache.access | |
pos_file /tmp/fluent.log.pos | |
</source> | |
<match apache.access> | |
type exec_filter |
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
#!/usr/bin/env ruby | |
# -*- encoding: utf-8 -*- | |
require 'json' | |
require 'msgpack' | |
require 'uri' | |
while line = STDIN.gets | |
line.chomp! | |
jsonParsed = JSON.parse(line) | |
uri = URI.parse(jsonParsed['path']) |