Hi,

I think I was able to reproduce the failure on Gentoo x86, too.

Without the patch, test suite failed with:

> =========================================
>    rsyslog 8.8.0: tests/test-suite.log
> =========================================
> 
> # TOTAL: 135
> # PASS:  124
> # SKIP:  5
> # XFAIL: 0
> # FAIL:  6
> # XPASS: 0
> # ERROR: 0
> 
> .. contents:: :depth: 2
> 
> FAIL: imtcp_conndrop_tls.sh
> ===========================
> 
> ====================================================================================
> TEST: [imtcp_conndrop_tls.sh]: test imtcp/tls with random connection drops
> cat: rsyslog.action.1.include: No such file or directory
> rsyslogd: maxMessageSize larger than INT_MAX (2147483647) - reduced to 
> INT_MAX [v8.8.0 try http://www.rsyslog.com/e/2009 ]
> rsyslogd started with pid  28176
> starting run 1
> Sending 50000 messages.
> connect(): Connection refused
> connect() failed
> error in trying to re-open connection 4
> ./diag.sh: line 180: 28176 Segmentation fault      (core dumped) $valgrind 
> ../tools/rsyslogd -C -n -irsyslog$3.pid -M../runtime/.libs:../.libs 
> -f$srcdir/testsuites/$2
> error during tcpflood! see rsyslog.out.log.save for what was written
> cp: cannot stat ‘rsyslog.out.log’: No such file or directory
> trying to analyze core for main rsyslogd binary
> note: this may not be the correct file, check it
> ./diag.sh: line 289: gdb: command not found
> 
> FAIL: imtcp_conndrop.sh
> =======================
> 
> ====================================================================================
> TEST: [imtcp_conndrop.sh]: test imtcp with random connection drops
> rsyslog.pid exists, trying to shut down rsyslogd process 28176.
> ./killrsyslog.sh: line 5: kill: (28176) - No such process
> rsyslogd: maxMessageSize larger than INT_MAX (2147483647) - reduced to 
> INT_MAX [v8.8.0 try http://www.rsyslog.com/e/2009 ]
> rsyslogd started with pid  28221
> starting run 1
> Sending 50000 messages.
> connect(): Connection refused
> connect() failed
> error in trying to re-open connection 13
> ./diag.sh: line 180: 28221 Segmentation fault      (core dumped) $valgrind 
> ../tools/rsyslogd -C -n -irsyslog$3.pid -M../runtime/.libs:../.libs 
> -f$srcdir/testsuites/$2
> error during tcpflood! see rsyslog.out.log.save for what was written
> cp: cannot stat ‘rsyslog.out.log’: No such file or directory
> trying to analyze core for main rsyslogd binary
> note: this may not be the correct file, check it
> ./diag.sh: line 289: gdb: command not found
> 
> SKIP: sndrcv_udp.sh
> ===================
> 
> ===============================================================================
> [sndrcv_udp.sh]: testing sending and receiving via udp
> 
> FAIL: gzipwr_large_dynfile.sh
> =============================
> 
> ====================================================================================
> TEST: [gzipwr_large_dynfile.sh]: test for gzip file writing for large message 
> sets
> rsyslogd: maxMessageSize larger than INT_MAX (2147483647) - reduced to 
> INT_MAX [v8.8.0 try http://www.rsyslog.com/e/2009 ]
> rsyslogd started with pid  1152
> starting run 1
> Sending 4000 messages.
> 
> 00004000 messages sent
> runtime: 0.095
> End of tcpflood Run
> imdiag[13500]: ./diag.sh: line 17:  1152 Segmentation fault      (core 
> dumped) $valgrind ../tools/rsyslogd -C -n -irsyslog$3.pid 
> -M../runtime/.libs:../.libs -f$srcdir/testsuites/$2
> ./diag.sh: line 171: kill: (1152) - No such process
> ABORT! Timeout waiting on shutdown
> Instance is possibly still running and may need
> manual cleanup.
> 
> FAIL: complex1.sh
> =================
> 
> ====================================================================================
> TEST: [complex1.sh]: complex test with gzip and multiple action queues
> rsyslogd: maxMessageSize larger than INT_MAX (2147483647) - reduced to 
> INT_MAX [v8.8.0 try http://www.rsyslog.com/e/2009 ]
> rsyslogd started with pid  4437
> starting run 1
> Sending 40000 messages.
> 
> 34679
> send test data: Connection reset by peer
> send() failed at socket 12, index 34679, msgNum 34680
> error sending messages
> runtime: 0.051
> End of tcpflood Run
> ./diag.sh: line 180:  4437 Segmentation fault      (core dumped) $valgrind 
> ../tools/rsyslogd -C -n -irsyslog$3.pid -M../runtime/.libs:../.libs 
> -f$srcdir/testsuites/$2
> connect failed, retrying...
> connect failed, retrying...
> connect failed, retrying...
> connect failed, retrying...
> connect failed, retrying...
> connect failed, retrying...
> connect failed, retrying...
> connect failed, retrying...
> connect failed, retrying...
> connect failed, retrying...
> connect failed, retrying...
> connect failed, retrying...
> connect failed, retrying...
> connect failed, retrying...
> connect failed, retrying...
> connect failed, retrying...
> connect failed, retrying...
> connect failed, retrying...
> connect failed, retrying...
> connect failed, retrying...
> connect failed, retrying...
> connect failed, retrying...
> connect failed, retrying...
> connect failed, retrying...
> connect failed, retrying...
> connect failed, retrying...
> connect failed, retrying...
> connect failed, retrying...
> connect failed, retrying...
> connect failed, retrying...
> connect failed, retrying...
> connect failed, retrying...
> connect failed, retrying...
> connect failed, retrying...
> connect failed, retrying...
> connect failed, retrying...
> connect failed, retrying...
> connect failed, retrying...
> connect failed, retrying...
> connect failed, retrying...
> connect failed, retrying...
> connect failed, retrying...
> connect failed, retrying...
> connect failed, retrying...
> connect failed, retrying...
> connect failed, retrying...
> connect failed, retrying...
> connect failed, retrying...
> connect failed, retrying...
> connect failed, retrying...
> connect(): Connection refused
> connect() failed
> trying to analyze core for main rsyslogd binary
> note: this may not be the correct file, check it
> ./diag.sh: line 289: gdb: command not found
> 
> SKIP: imuxsock_logger_root.sh
> =============================
> 
> [imuxsock_logger_root.sh]: test trailing LF handling in imuxsock
> This test must be run as root with no other active syslogd
> 
> SKIP: imuxsock_traillf_root.sh
> ==============================
> 
> [imuxsock_traillf_root.sh]: test trailing LF handling in imuxsock
> This test must be run as root with no other active syslogd
> 
> SKIP: imuxsock_ccmiddle_root.sh
> ===============================
> 
> [imuxsock_ccmiddle_root.sh]: test trailing LF handling in imuxsock
> This test must be run as root with no other active syslogd
> 
> FAIL: imptcp_large.sh
> =====================
> 
> ====================================================================================
> TEST: [imptcp_large.sh]: test imptcp with large-size messages
> rsyslogd: maxMessageSize larger than INT_MAX (2147483647) - reduced to 
> INT_MAX [v8.8.0 try http://www.rsyslog.com/e/2009 ]
> rsyslogd started with pid  6912
> starting run 1
> Sending 20000 messages.
> 
> 00008
> send test data: Broken pipe
> send() failed at socket 6, index 8, msgNum 9
> error sending messages
> runtime: 0.000
> End of tcpflood Run
> imdiag[13500]: mainqueue empty
> read value 7, but expected value 1
> sequence error detected
> trying to analyze core for main rsyslogd binary
> note: this may not be the correct file, check it
> ./diag.sh: line 289: gdb: command not found
> 
> FAIL: imptcp_conndrop.sh
> ========================
> 
> ====================================================================================
> TEST: [imptcp_conndrop.sh]: test imptcp with random connection drops
> rsyslogd: maxMessageSize larger than INT_MAX (2147483647) - reduced to 
> INT_MAX [v8.8.0 try http://www.rsyslog.com/e/2009 ]
> rsyslogd started with pid  7016
> starting run 1
> Sending 50000 messages.
> 
> 00093
> send test data: Connection reset by peer
> send() failed at socket 6, index 93, msgNum 94
> error sending messages
> runtime: 0.001
> -D option initiated 4 connection closures
> End of tcpflood Run
> imdiag[13500]: mainqueue empty
> read value 3, but expected value 1
> sequence error detected
> trying to analyze core for main rsyslogd binary
> note: this may not be the correct file, check it
> ./diag.sh: line 289: gdb: command not found
> 
> SKIP: omod-if-array.sh
> ======================
> 
> [omod-if-array.sh]: test omod-if-array via udp
> NOTE: the interface checked with this test is currently NOT
> supported. We may support it again in the future. So for now,
> we just skip this test and do not remove it.
> 


With the patch applied, only one test is still left failing:

> =========================================
>    rsyslog 8.8.0: tests/test-suite.log
> =========================================
> 
> # TOTAL: 135
> # PASS:  129
> # SKIP:  5
> # XFAIL: 0
> # FAIL:  1
> # XPASS: 0
> # ERROR: 0
> 
> .. contents:: :depth: 2
> 
> SKIP: sndrcv_udp.sh
> ===================
> 
> ===============================================================================
> [sndrcv_udp.sh]: testing sending and receiving via udp
> 
> FAIL: wr_large_sync.sh
> ======================
> 
> ===============================================================================
> TEST: [wr_large_sync.sh]: test for file writing for large message sets
> $OMFileAsyncWriting off
> rsyslogd started with pid  30035
> starting run 1
> Sending 4000 messages.
> ./diag.sh: line 180: 30046 Aborted                 (core dumped) ./tcpflood 
> -m4000 -r -d10000 -P129
> error during tcpflood! see rsyslog.out.log.save for what was written
> trying to analyze core for main rsyslogd binary
> note: this may not be the correct file, check it
> ./diag.sh: line 289: gdb: command not found
> 
> SKIP: imuxsock_logger_root.sh
> =============================
> 
> [imuxsock_logger_root.sh]: test trailing LF handling in imuxsock
> This test must be run as root with no other active syslogd
> 
> SKIP: imuxsock_traillf_root.sh
> ==============================
> 
> [imuxsock_traillf_root.sh]: test trailing LF handling in imuxsock
> This test must be run as root with no other active syslogd
> 
> SKIP: imuxsock_ccmiddle_root.sh
> ===============================
> 
> [imuxsock_ccmiddle_root.sh]: test trailing LF handling in imuxsock
> This test must be run as root with no other active syslogd
> 
> SKIP: omod-if-array.sh
> ======================
> 
> [omod-if-array.sh]: test omod-if-array via udp
> NOTE: the interface checked with this test is currently NOT
> supported. We may support it again in the future. So for now,
> we just skip this test and do not remove it.
> 

While running the test suite I got:

> PASS: wr_large_async.sh
> *** buffer overflow detected ***: ./tcpflood terminated
> ======= Backtrace: =========
> /lib/libc.so.6(+0x748cf)[0xb75418cf]
> /lib/libc.so.6(__fortify_fail+0x45)[0xb75d4a45]
> /lib/libc.so.6(+0x1058ba)[0xb75d28ba]
> ./tcpflood[0x804b1d5]
> ./tcpflood[0x804b325]
> /lib/libpthread.so.0(+0x7f9f)[0xb779af9f]
> /lib/libc.so.6(clone+0x5e)[0xb75c33ce]
> ======= Memory map: ========
> 08048000-0804d000 r-xp 00000000 08:05 884710     
> /var/tmp/portage/app-admin/rsyslog-8.8.0/work/rsyslog-8.8.0/tests/tcpflood
> 0804d000-0804e000 r--p 00004000 08:05 884710     
> /var/tmp/portage/app-admin/rsyslog-8.8.0/work/rsyslog-8.8.0/tests/tcpflood
> 0804e000-0804f000 rw-p 00005000 08:05 884710     
> /var/tmp/portage/app-admin/rsyslog-8.8.0/work/rsyslog-8.8.0/tests/tcpflood
> 09c10000-09c31000 rw-p 00000000 00:00 0          [heap]
> b6a00000-b6a21000 rw-p 00000000 00:00 0
> b6a21000-b6b00000 ---p 00000000 00:00 0
> b6b40000-b6b5b000 r-xp 00000000 08:05 988419     
> /usr/lib/gcc/i686-pc-linux-gnu/4.8.3/libgcc_s.so.1
> b6b5b000-b6b5c000 r--p 0001a000 08:05 988419     
> /usr/lib/gcc/i686-pc-linux-gnu/4.8.3/libgcc_s.so.1
> b6b5c000-b6b5d000 rw-p 0001b000 08:05 988419     
> /usr/lib/gcc/i686-pc-linux-gnu/4.8.3/libgcc_s.so.1
> b6b62000-b6b63000 rw-p 00000000 00:00 0
> b6b63000-b6b64000 ---p 00000000 00:00 0
> b6b64000-b73c5000 rw-p 00000000 00:00 0          [stack:30047]
> b73c5000-b7430000 r-xp 00000000 08:05 1489750    /usr/lib/libgmp.so.10.1.3
> b7430000-b7431000 r--p 0006a000 08:05 1489750    /usr/lib/libgmp.so.10.1.3
> b7431000-b7438000 rw-p 0006b000 08:05 1489750    /usr/lib/libgmp.so.10.1.3
> b7438000-b7439000 rw-p 00000000 00:00 0
> b7439000-b7466000 r-xp 00000000 08:05 885164     /usr/lib/libhogweed.so.2.5
> b7466000-b7467000 r--p 0002c000 08:05 885164     /usr/lib/libhogweed.so.2.5
> b7467000-b7468000 rw-p 0002d000 08:05 885164     /usr/lib/libhogweed.so.2.5
> b7468000-b749b000 r-xp 00000000 08:05 885067     /usr/lib/libnettle.so.4.7
> b749b000-b749c000 r--p 00032000 08:05 885067     /usr/lib/libnettle.so.4.7
> b749c000-b749d000 rw-p 00033000 08:05 885067     /usr/lib/libnettle.so.4.7
> b749d000-b74ad000 r-xp 00000000 08:05 884898     /usr/lib/libtasn1.so.6.3.2
> b74ad000-b74ae000 ---p 00010000 08:05 884898     /usr/lib/libtasn1.so.6.3.2
> b74ae000-b74af000 r--p 00010000 08:05 884898     /usr/lib/libtasn1.so.6.3.2
> b74af000-b74b0000 rw-p 00011000 08:05 884898     /usr/lib/libtasn1.so.6.3.2
> b74b0000-b74c5000 r-xp 00000000 08:05 1802647    /lib/libz.so.1.2.8
> b74c5000-b74c6000 r--p 00014000 08:05 1802647    /lib/libz.so.1.2.8
> b74c6000-b74c7000 rw-p 00015000 08:05 1802647    /lib/libz.so.1.2.8
> b74c7000-b74ca000 r-xp 00000000 08:05 1167634    /lib/libdl-2.19.so
> b74ca000-b74cb000 r--p 00002000 08:05 1167634    /lib/libdl-2.19.so
> b74cb000-b74cc000 rw-p 00003000 08:05 1167634    /lib/libdl-2.19.so
> b74cc000-b74cd000 rw-p 00000000 00:00 0
> b74cd000-b7673000 r-xp 00000000 08:05 1167887    /lib/libc-2.19.so
> b7673000-b7675000 r--p 001a6000 08:05 1167887    /lib/libc-2.19.so
> b7675000-b7676000 rw-p 001a8000 08:05 1167887    /lib/libc-2.19.so
> b7676000-b7679000 rw-p 00000000 00:00 0
> b7679000-b778b000 r-xp 00000000 08:05 935876     /usr/lib/libgnutls.so.28.41.2
> b778b000-b7791000 r--p 00111000 08:05 935876     /usr/lib/libgnutls.so.28.41.2
> b7791000-b7793000 rw-p 00117000 08:05 935876     /usr/lib/libgnutls.so.28.41.2
> b7793000-b77ab000 r-xp 00000000 08:05 1166967    /lib/libpthread-2.19.so
> b77ab000-b77ac000 ---p 00018000 08:05 1166967    /lib/libpthread-2.19.so
> b77ac000-b77ad000 r--p 00018000 08:05 1166967    /lib/libpthread-2.19.so
> b77ad000-b77ae000 rw-p 00019000 08:05 1166967    /lib/libpthread-2.19.so
> b77ae000-b77b0000 rw-p 00000000 00:00 0
> b77b0000-b77c0000 r-xp 00000000 08:05 1802623    /usr/lib/libsandbox.so
> b77c0000-b77c1000 ---p 00010000 08:05 1802623    /usr/lib/libsandbox.so
> b77c1000-b77c2000 r--p 00010000 08:05 1802623    /usr/lib/libsandbox.so
> b77c2000-b77c3000 rw-p 00011000 08:05 1802623    /usr/lib/libsandbox.so
> b77c3000-b77ca000 rw-p 00000000 00:00 0
> b77ca000-b77ce000 rw-p 00000000 00:00 0
> b77ce000-b77d0000 r--p 00000000 00:00 0          [vvar]
> b77d0000-b77d1000 r-xp 00000000 00:00 0          [vdso]
> b77d1000-b77f1000 r-xp 00000000 08:05 1167886    /lib/ld-2.19.so
> b77f1000-b77f2000 rw-p 00000000 00:00 0
> b77f2000-b77f3000 r--p 00020000 08:05 1167886    /lib/ld-2.19.so
> b77f3000-b77f4000 rw-p 00021000 08:05 1167886    /lib/ld-2.19.so
> bfa67000-bfa8c000 rw-p 00000000 00:00 0          [stack]
> FAIL: wr_large_sync.sh



-Thomas
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

Reply via email to