Project

General

Profile

Actions

Bug #994

closed

valgrind warnings in unittests

Added by Victor Julien about 11 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

$ gcc --version
gcc (Ubuntu/Linaro 4.8.1-10ubuntu7) 4.8.1
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
It was created by suricata configure 2.0dev, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-unittests --disable-gccmarch-native CFLAGS=-Werror -O0 -ggdb --no-create --no-recursion
$ valgrind --version
valgrind-3.8.1

Suricata tests started as:

valgrind -v --trace-children=yes ./src/suricata -u -l tmp/

The trace children is because I have libhtp in the tree and run from the tree, causing ./src/suricata to be a libtool wrapper script.

==7084== 1 errors in context 2 of 13:
==7084== Conditional jump or move depends on uninitialised value(s)
==7084==    at 0x52DA14: SignatureIsDEOnly (detect.c:1975)
==7084==    by 0x52EC53: SigAddressPrepareStage1 (detect.c:2507)
==7084==    by 0x5331F2: SigGroupBuild (detect.c:4317)
==7084==    by 0x509024: DetectAppLayerEventTest05 (detect-app-layer-event.c:676)
==7084==    by 0x8F2F94: UtRunTests (util-unittest.c:202)
==7084==    by 0x7B17A8: RunUnittests (runmode-unittests.c:265)
==7084==    by 0x811C89: main (suricata.c:1874)
==7084== 
==7084== 
==7084== 1 errors in context 3 of 13:
==7084== Conditional jump or move depends on uninitialised value(s)
==7084==    at 0x52D73C: SignatureIsIPOnly (detect.c:1846)
==7084==    by 0x52EBCD: SigAddressPrepareStage1 (detect.c:2495)
==7084==    by 0x5331F2: SigGroupBuild (detect.c:4317)
==7084==    by 0x509024: DetectAppLayerEventTest05 (detect-app-layer-event.c:676)
==7084==    by 0x8F2F94: UtRunTests (util-unittest.c:202)
==7084==    by 0x7B17A8: RunUnittests (runmode-unittests.c:265)
==7084==    by 0x811C89: main (suricata.c:1874)
==7084== 
==7084== 
==7084== 1 errors in context 4 of 13:
==7084== Conditional jump or move depends on uninitialised value(s)
==7084==    at 0x723FAB: SigValidate (detect-parse.c:1209)
==7084==    by 0x725638: SigInitHelper (detect-parse.c:1553)
==7084==    by 0x725864: SigInit (detect-parse.c:1589)
==7084==    by 0x508FF5: DetectAppLayerEventTest05 (detect-app-layer-event.c:671)
==7084==    by 0x8F2F94: UtRunTests (util-unittest.c:202)
==7084==    by 0x7B17A8: RunUnittests (runmode-unittests.c:265)
==7084==    by 0x811C89: main (suricata.c:1874)
==7084== 
==7084== 
==7084== 1 errors in context 5 of 13:
==7084== Conditional jump or move depends on uninitialised value(s)
==7084==    at 0x724B70: SigInitHelper (detect-parse.c:1366)
==7084==    by 0x725864: SigInit (detect-parse.c:1589)
==7084==    by 0x508FF5: DetectAppLayerEventTest05 (detect-app-layer-event.c:671)
==7084==    by 0x8F2F94: UtRunTests (util-unittest.c:202)
==7084==    by 0x7B17A8: RunUnittests (runmode-unittests.c:265)
==7084==    by 0x811C89: main (suricata.c:1874)
==7084== 
==7084== 
==7084== 1 errors in context 6 of 13:
==7084== Conditional jump or move depends on uninitialised value(s)
==7084==    at 0x52DA14: SignatureIsDEOnly (detect.c:1975)
==7084==    by 0x52EC53: SigAddressPrepareStage1 (detect.c:2507)
==7084==    by 0x5331F2: SigGroupBuild (detect.c:4317)
==7084==    by 0x508A23: DetectAppLayerEventTest04 (detect-app-layer-event.c:557)
==7084==    by 0x8F2F94: UtRunTests (util-unittest.c:202)
==7084==    by 0x7B17A8: RunUnittests (runmode-unittests.c:265)
==7084==    by 0x811C89: main (suricata.c:1874)
==7084== 
==7084== 
==7084== 1 errors in context 7 of 13:
==7084== Conditional jump or move depends on uninitialised value(s)
==7084==    at 0x52D73C: SignatureIsIPOnly (detect.c:1846)
==7084==    by 0x52EBCD: SigAddressPrepareStage1 (detect.c:2495)
==7084==    by 0x5331F2: SigGroupBuild (detect.c:4317)
==7084==    by 0x508A23: DetectAppLayerEventTest04 (detect-app-layer-event.c:557)
==7084==    by 0x8F2F94: UtRunTests (util-unittest.c:202)
==7084==    by 0x7B17A8: RunUnittests (runmode-unittests.c:265)
==7084==    by 0x811C89: main (suricata.c:1874)
==7084== 
==7084== 
==7084== 1 errors in context 8 of 13:
==7084== Conditional jump or move depends on uninitialised value(s)
==7084==    at 0x723FAB: SigValidate (detect-parse.c:1209)
==7084==    by 0x725638: SigInitHelper (detect-parse.c:1553)
==7084==    by 0x725864: SigInit (detect-parse.c:1589)
==7084==    by 0x5089F4: DetectAppLayerEventTest04 (detect-app-layer-event.c:552)
==7084==    by 0x8F2F94: UtRunTests (util-unittest.c:202)
==7084==    by 0x7B17A8: RunUnittests (runmode-unittests.c:265)
==7084==    by 0x811C89: main (suricata.c:1874)
==7084== 
==7084== 
==7084== 1 errors in context 9 of 13:
==7084== Conditional jump or move depends on uninitialised value(s)
==7084==    at 0x724B70: SigInitHelper (detect-parse.c:1366)
==7084==    by 0x725864: SigInit (detect-parse.c:1589)
==7084==    by 0x5089F4: DetectAppLayerEventTest04 (detect-app-layer-event.c:552)
==7084==    by 0x8F2F94: UtRunTests (util-unittest.c:202)
==7084==    by 0x7B17A8: RunUnittests (runmode-unittests.c:265)
==7084==    by 0x811C89: main (suricata.c:1874)
==7084== 
==7084== 
==7084== 1 errors in context 10 of 13:
==7084== Conditional jump or move depends on uninitialised value(s)
==7084==    at 0x52DA14: SignatureIsDEOnly (detect.c:1975)
==7084==    by 0x52EC53: SigAddressPrepareStage1 (detect.c:2507)
==7084==    by 0x5331F2: SigGroupBuild (detect.c:4317)
==7084==    by 0x508421: DetectAppLayerEventTest03 (detect-app-layer-event.c:454)
==7084==    by 0x8F2F94: UtRunTests (util-unittest.c:202)
==7084==    by 0x7B17A8: RunUnittests (runmode-unittests.c:265)
==7084==    by 0x811C89: main (suricata.c:1874)
==7084== 
==7084== 
==7084== 1 errors in context 11 of 13:
==7084== Conditional jump or move depends on uninitialised value(s)
==7084==    at 0x52D73C: SignatureIsIPOnly (detect.c:1846)
==7084==    by 0x52EBCD: SigAddressPrepareStage1 (detect.c:2495)
==7084==    by 0x5331F2: SigGroupBuild (detect.c:4317)
==7084==    by 0x508421: DetectAppLayerEventTest03 (detect-app-layer-event.c:454)
==7084==    by 0x8F2F94: UtRunTests (util-unittest.c:202)
==7084==    by 0x7B17A8: RunUnittests (runmode-unittests.c:265)
==7084==    by 0x811C89: main (suricata.c:1874)
==7084== 
==7084== 
==7084== 1 errors in context 12 of 13:
==7084== Conditional jump or move depends on uninitialised value(s)
==7084==    at 0x723FAB: SigValidate (detect-parse.c:1209)
==7084==    by 0x725638: SigInitHelper (detect-parse.c:1553)
==7084==    by 0x725864: SigInit (detect-parse.c:1589)
==7084==    by 0x5083F2: DetectAppLayerEventTest03 (detect-app-layer-event.c:449)
==7084==    by 0x8F2F94: UtRunTests (util-unittest.c:202)
==7084==    by 0x7B17A8: RunUnittests (runmode-unittests.c:265)
==7084==    by 0x811C89: main (suricata.c:1874)
==7084== 
==7084== 
==7084== 1 errors in context 13 of 13:
==7084== Conditional jump or move depends on uninitialised value(s)
==7084==    at 0x724B70: SigInitHelper (detect-parse.c:1366)
==7084==    by 0x725864: SigInit (detect-parse.c:1589)
==7084==    by 0x5083F2: DetectAppLayerEventTest03 (detect-app-layer-event.c:449)
==7084==    by 0x8F2F94: UtRunTests (util-unittest.c:202)
==7084==    by 0x7B17A8: RunUnittests (runmode-unittests.c:265)
==7084==    by 0x811C89: main (suricata.c:1874)

Not seeing these on other boxes, so it may be related to the newer gcc and valgrind versions.

Actions

Also available in: Atom PDF