Repository: syslog-ng/syslog-ng

Issue #132: test_basicfuncs cause SIGSEGV on ubuntu trusty
Created: 2014-05-26T08:51:41Z
relevant output for make check:
./test-driver: line 107:  8752 Segmentation fault      (core dumped) "$@" > $log_file 2>&1
FAIL: modules/basicfuncs/tests/test_basicfuncs
bt for test_basicfuncs's core:
Program received signal SIGSEGV, Segmentation fault.
0xb7f49de0 in g_static_mutex_get_mutex_impl@plt ()
from /home/micek/syslog-ng-collector/checkout-dir/syslog-ng-ose-3.6/lib/.libs/libsyslog-ng-3.6.0alpha0.so
(gdb) bt
#0  0xb7f49de0 in g_static_mutex_get_mutex_impl@plt ()
from /home/micek/syslog-ng-collector/checkout-dir/syslog-ng-ose-3.6/lib/.libs/libsyslog-ng-3.6.0alpha0.so
#1  0xb7f8a695 in log_template_append_format_with_context (self=self@entry=0x805db70, messages=messages@entry=0xbffff0f4,
num_messages=num_messages@entry=1, opts=0x80567ec, opts@entry=0x0, tz=tz@entry=0, seq_num=seq_num@entry=999, 
context_id=context_id@entry=0x804dabb "test-context-id", result=result@entry=0x806e2d0) at lib/template/templates.c:1405

#2  0xb7f8ab23 in log_template_append_format (self=self@entry=0x805db70, lm=lm@entry=0x805a690, opts=opts@entry=0x0,
tz=tz@entry=0, seq_num=seq_num@entry=999, context_id=context_id@entry=0x804dabb "test-context-id", 
result=result@entry=0x806e2d0) at lib/template/templates.c:1430

#3  0xb7f8ab8c in log_template_format (self=self@entry=0x805db70, lm=lm@entry=0x805a690, opts=opts@entry=0x0, tz=tz@entry=0,
seq_num=seq_num@entry=999, context_id=context_id@entry=0x804dabb "test-context-id", result=result@entry=0x806e2d0)
at lib/template/templates.c:1437

#4  0x0804b1ea in assert_template_format_with_escaping (template=template@entry=0x804cc59 "$(substr $HOST 1 3)",
escaping=escaping@entry=0, expected=expected@entry=0x804cc55 "zor") at libtest/template_lib.c:109

#5  0x0804b26f in assert_template_format (template=template@entry=0x804cc59 "$(substr $HOST 1 3)",
expected=expected@entry=0x804cc55 "zor") at libtest/template_lib.c:94

#6  0x0804abb7 in test_str_funcs () at modules/basicfuncs/tests/test_basicfuncs.c:50
#7  0x0804a80a in main (argc=1, argv=0xbffff254) at modules/basicfuncs/tests/test_basicfuncs.c:113
last commit:
commit a7df8c7
Merge: 4581c3d 83265ad
Author: Gergely Nagy algernon@balabit.hu
Date:   Thu May 22 15:02:21 2014 +0200
Merge pull request #128 from algernon/h/value-pairs/warning-fixes

value-pairs: Silence a few compiler warnings

uname:
Linux micek-HP-Mini-110-4100 3.13.0-24-generic #47-Ubuntu SMP Fri May 2 23:31:42 UTC 2014 i686 i686 i686 GNU/Linux
lsb_release:
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04 LTS
Release:    14.04
Codename:   trusty

Duplicate issue #194: make check fails on i386
Created: 2014-08-11T21:07:18Z
Tested on Fedora: "make check" fails on i386. Full build logs are available at http://copr.fedoraproject.org/coprs/czanik/syslog-ng36/build/25502/
Relevant detail:
[...]
DEBUG: PASS: modules/affile/tests/test_affile_open_file
DEBUG: PASS: modules/csvparser/tests/test_csvparser
DEBUG: PASS: modules/linux-kmsg-format/tests/test_linux_format_kmsg
DEBUG: FAIL: modules/basicfuncs/tests/test_basicfuncs
DEBUG: ./test-driver: line 107: 10914 Aborted                 (core dumped) "$@" > $log_file 2>&1
DEBUG: PASS: modules/cryptofuncs/tests/test_cryptofuncs
DEBUG: PASS: modules/dbparser/tests/test_timer_wheel
DEBUG: PASS: modules/dbparser/tests/test_patternize
DEBUG: PASS: modules/dbparser/tests/test_patterndb
DEBUG: PASS: modules/dbparser/tests/test_radix
DEBUG: PASS: modules/dbparser/tests/test_parsers
DEBUG: PASS: modules/json/tests/test_format_json
DEBUG: PASS: modules/json/tests/test_json_parser
DEBUG: PASS: modules/json/tests/test_dot_notation
DEBUG: PASS: modules/afstomp/tests/test_stomp_proto
DEBUG: PASS: tests/unit/test_resolve_pwgr
DEBUG: PASS: tests/unit/test_nvtable
DEBUG: PASS: tests/unit/test_msgsdata
DEBUG: PASS: tests/unit/test_logqueue
DEBUG: PASS: tests/unit/test_matcher
DEBUG: PASS: tests/unit/test_clone_logmsg
DEBUG: PASS: tests/unit/test_serialize
DEBUG: PASS: tests/unit/test_msgparse
DEBUG: PASS: tests/unit/test_template
DEBUG: PASS: tests/unit/test_template_speed
DEBUG: PASS: tests/unit/test_dnscache
DEBUG: PASS: tests/unit/test_findcrlf
DEBUG: PASS: tests/unit/test_tags
DEBUG: PASS: tests/unit/test_logwriter
DEBUG: PASS: tests/unit/test_zone
DEBUG: PASS: tests/unit/test_persist_state
DEBUG: PASS: tests/unit/test_value_pairs
DEBUG: PASS: tests/unit/test_value_pairs_walk
DEBUG: PASS: tests/unit/test_ringbuffer
DEBUG: make --no-print-directory all-recursive
DEBUG: ============================================================================
DEBUG: Testsuite summary for
DEBUG: ============================================================================
DEBUG: # TOTAL: 60
DEBUG: # PASS:  59
DEBUG: # SKIP:  0DEBUG: PASS: modules/affile/tests/test_affile_open_file
DEBUG: PASS: modules/csvparser/tests/test_csvparser
DEBUG: PASS: modules/linux-kmsg-format/tests/test_linux_format_kmsg
DEBUG: FAIL: modules/basicfuncs/tests/test_basicfuncs
DEBUG: ./test-driver: line 107: 10914 Aborted                 (core dumped) "$@" > $log_file 2>&1
DEBUG: PASS: modules/cryptofuncs/tests/test_cryptofuncs
DEBUG: PASS: modules/dbparser/tests/test_timer_wheel
DEBUG: PASS: modules/dbparser/tests/test_patternize
DEBUG: PASS: modules/dbparser/tests/test_patterndb
DEBUG: PASS: modules/dbparser/tests/test_radix
DEBUG: PASS: modules/dbparser/tests/test_parsers
DEBUG: PASS: modules/json/tests/test_format_json
DEBUG: PASS: modules/json/tests/test_json_parser
DEBUG: PASS: modules/json/tests/test_dot_notation
DEBUG: PASS: modules/afstomp/tests/test_stomp_proto
DEBUG: PASS: tests/unit/test_resolve_pwgr
DEBUG: PASS: tests/unit/test_nvtable
DEBUG: PASS: tests/unit/test_msgsdata
DEBUG: PASS: tests/unit/test_logqueue
DEBUG: PASS: tests/unit/test_matcher
DEBUG: PASS: tests/unit/test_clone_logmsg
DEBUG: PASS: tests/unit/test_serialize
DEBUG: PASS: tests/unit/test_msgparse
DEBUG: PASS: tests/unit/test_template
DEBUG: PASS: tests/unit/test_template_speed
DEBUG: PASS: tests/unit/test_dnscache
DEBUG: PASS: tests/unit/test_findcrlf
DEBUG: PASS: tests/unit/test_tags
DEBUG: PASS: tests/unit/test_logwriter
DEBUG: PASS: tests/unit/test_zone
DEBUG: PASS: tests/unit/test_persist_state
DEBUG: PASS: tests/unit/test_value_pairs
DEBUG: PASS: tests/unit/test_value_pairs_walk
DEBUG: PASS: tests/unit/test_ringbuffer
DEBUG: make --no-print-directory all-recursive
DEBUG: ============================================================================
DEBUG: Testsuite summary for
DEBUG: ============================================================================
DEBUG: # TOTAL: 60
DEBUG: # PASS:  59
DEBUG: # SKIP:  0
DEBUG: # XFAIL: 0
DEBUG: # FAIL:  1
DEBUG: # XPASS: 0
DEBUG: # ERROR: 0
DEBUG: ============================================================================
DEBUG: See ./test-suite.log
DEBUG: ============================================================================
DEBUG: # XFAIL: 0
DEBUG: # FAIL:  1
DEBUG: # XPASS: 0
DEBUG: # ERROR: 0
DEBUG: ============================================================================
DEBUG: See ./test-suite.log
DEBUG: ============================================================================

Closing comment (2014-08-12T13:07:00Z): This is indeed the same as #132. Closing accordingly.