← Back to team overview

rohc team mailing list archive

Re: [Question #224088]: rohc tests failing

 

Question #224088 on rohc changed:
https://answers.launchpad.net/rohc/+question/224088

    Status: Open => Needs information

Didier Barvaux requested more information:
Hi Matthew,

The test does not fail when you run it manually because it does not run
within Valgrind. When you run 'make check', the test is run within
Valgrind because you run the configure script with the --enable-rohc-
tests-valgrind option.

To run the test within Valgrind manually, please define the USE_VALGRIND
environment variable.

Example on my system:
-------------
$ GREP=grep USE_VALGRIND=yes ./test/functional/decompress_feedback_only/test_decompress_feedback_only.sh verbose verbose
run test without valgrind...
[rohc_comp.c:155 rohc_alloc_compressor()] creating compressor
[rohc_comp.c:649 rohc_comp_set_wlsb_window_width()] width of W-LSB sliding window set to 4
[rohc_comp.c:703 rohc_comp_set_periodic_refreshes()] IR timeout for context periodic refreshes set to 1700
[rohc_comp.c:705 rohc_comp_set_periodic_refreshes()] FO timeout for context periodic refreshes set to 700
[rohc_comp.c:1607 c_alloc_contexts()] enlarge the context array from 0 to 4 elements (MAX_CID = 15)
[rohc_decomp.c:1782 rohc_decomp_create_contexts()] room for 16 decompression contexts created
[rohc_decomp.c:420 rohc_decompress()] decompress the 5-byte packet #1
[rohc_decomp.c:1659 d_decode_feedback_first()] skip 0 byte(s) of padding
[rohc_decomp.c:1730 d_decode_feedback()] feedback present (header = 1 bytes, data = 4 bytes)
[rohc_comp.c:1210 c_deliver_feedback()] deliver 4 byte(s) of feedback to the right context
[rohc_comp.c:1246 c_deliver_feedback()] feedback size = 4
[ERROR] [rohc_comp.c:1273 c_deliver_feedback()] context not found (CID = 0)
[rohc_decomp.c:619 d_decode_header()] feedback-only packet, stop decompression
decompression is successful
[rohc_comp.c:271 rohc_free_compressor()] free contexts
[rohc_comp.c:275 rohc_free_compressor()] free feedback buffer
test run without valgrind (exit code 0)
run test with valgrind...
[rohc_comp.c:155 rohc_alloc_compressor()] creating compressor
[rohc_comp.c:649 rohc_comp_set_wlsb_window_width()] width of W-LSB sliding window set to 4
[rohc_comp.c:703 rohc_comp_set_periodic_refreshes()] IR timeout for context periodic refreshes set to 1700
[rohc_comp.c:705 rohc_comp_set_periodic_refreshes()] FO timeout for context periodic refreshes set to 700
[rohc_comp.c:1607 c_alloc_contexts()] enlarge the context array from 0 to 4 elements (MAX_CID = 15)
[rohc_decomp.c:1782 rohc_decomp_create_contexts()] room for 16 decompression contexts created
[rohc_decomp.c:420 rohc_decompress()] decompress the 5-byte packet #1
[rohc_decomp.c:1659 d_decode_feedback_first()] skip 0 byte(s) of padding
[rohc_decomp.c:1730 d_decode_feedback()] feedback present (header = 1 bytes, data = 4 bytes)
[rohc_comp.c:1210 c_deliver_feedback()] deliver 4 byte(s) of feedback to the right context
[rohc_comp.c:1246 c_deliver_feedback()] feedback size = 4
[ERROR] [rohc_comp.c:1273 c_deliver_feedback()] context not found (CID = 0)
[rohc_decomp.c:619 d_decode_header()] feedback-only packet, stop decompression
decompression is successful
[rohc_comp.c:271 rohc_free_compressor()] free contexts
[rohc_comp.c:275 rohc_free_compressor()] free feedback buffer
==28856== FILE DESCRIPTORS: 4 open at exit.
==28856== Open file descriptor 3: /tmp/valgrind_1000_5c118773c80ab59efd71d47fc421dd17_1363205367.xml
==28856==    <inherited from parent>
==28856== 
==28856== Open file descriptor 2: /dev/pts/20
==28856==    <inherited from parent>
==28856== 
==28856== Open file descriptor 1: /dev/pts/20
==28856==    <inherited from parent>
==28856== 
==28856== Open file descriptor 0: /dev/pts/20
==28856==    <inherited from parent>
==28856== 
==28856== 
test run with valgrind without any error
-------------

The second part of the test should fail on your system. What's the
output of Valgrind?


For the other failed tests, please run:
$ GREP=grep USE_VALGRIND=yes ./test/robustness/piggybacking_feedback/test_piggybacking_feedback.sh verbose verbose
$ AWK=gawk GREP=grep SED=sed ./statistics/generate_statistics.sh


Regards,
Didier

-- 
You received this question notification because you are a member of ROHC
Team, which is an answer contact for rohc.