eddyleo / doubango

Automatically exported from code.google.com/p/doubango
0 stars 0 forks source link

Tests A.2.1. Useful Values_2(_3 & _4) all fail #169

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

Please use labels and text to provide additional information.
Tests A.2.1. Useful Values_2(_3 & _4) all fail

The input to this test is

#define RFC4465_A_2_1__Useful_Values_2 \

         "\xf9\x3a\xdb\x1d\x3d\x20\xaa"\

         "\x00\x00"

Referring to RFC 4465 it states input of ‘1 byte of SigComp version then 
0x0000’ is the SigComp version number missing?

Code gives an error and I believe it should pass; error is:

***ERROR: function: "tcomp_udvm_runByteCode()"

file: "c:\users\abc\documents\myboghe_update_sigcomp_vs2010\tinysigcomp\src\tcom

p_udvm.c"

line: "49"

MSG: Cannot run()/execute() invalid bytecode

Original issue reported on code.google.com by boss...@yahoo.fr on 8 Jan 2013 at 11:39

GoogleCodeExporter commented 8 years ago
Very strange. I tried with other SigComp implementations and they all fail like 
tinySIGCOMP. The byte-code from the draft[1] works as expected.

[1] http://tools.ietf.org/html/draft-ietf-rohc-sigcomp-torture-tests-02#page-65

Original comment by boss...@yahoo.fr on 16 Jan 2013 at 5:02

GoogleCodeExporter commented 8 years ago
If I take the byte-code from the draft document all 4 test fail as below.  
Perhaps there are other changes that have been made to the code that I need to 
pick up.

=======================================
=== Testing A.2.1.  Useful Values_1 ===
=======================================
***ERROR: function: "TCOMP_UDVM_EXEC_INST__DECOMPRESSION_FAILURE()"
file: "c:\users\abc\documents\myboghe\doubango\branches\2.0\doubango\tinysigcomp
\src\tcomp_udvm.instructions.c"
line: "132"
MSG: USER_REQUESTED
***ERROR: function: "tcomp_nackinfo_write()"
file: "c:\users\abc\documents\myboghe\doubango\branches\2.0\doubango\tinysigcomp
\src\tcomp_nackinfo.c"
line: "73"
MSG: Invalid parameter
***ERROR: function: "tcomp_udvm_runByteCode()"
file: "c:\users\abc\documents\myboghe\doubango\branches\2.0\doubango\tinysigcomp
\src\tcomp_udvm.c"
line: "485"
MSG: Execution failed for instruction = 0

==WE GOT A NACK
FAIL: UNEXPECTED NACK

=== A.2.1.  Useful Values_1 status: FAIL ===
============================================

=======================================
=== Testing A.2.1.  Useful Values_2 ===
=======================================
*INFO: SigComp - Decompressing stateful message with state id =
0x39b9 0fdb 054b
***ERROR: function: "tcomp_udvm_create()"
file: "c:\users\abc\documents\myboghe\doubango\branches\2.0\doubango\tinysigcomp
\src\tcomp_udvm.c"
line: "86"
MSG: NACK_STATE_NOT_FOUND for id =
0x39b9 0fdb 054b
***ERROR: function: "tcomp_nackinfo_write()"
file: "c:\users\abc\documents\myboghe\doubango\branches\2.0\doubango\tinysigcomp
\src\tcomp_nackinfo.c"
line: "73"
MSG: Invalid parameter
***ERROR: function: "tcomp_udvm_runByteCode()"
file: "c:\users\abc\documents\myboghe\doubango\branches\2.0\doubango\tinysigcomp
\src\tcomp_udvm.c"
line: "160"
MSG: Cannot run()/execute() invalid bytecode

==WE GOT A NACK
FAIL: UNEXPECTED NACK

=== A.2.1.  Useful Values_2 status: FAIL ===
============================================

=======================================
=== Testing A.2.1.  Useful Values_3 ===
=======================================
*INFO: SigComp - Decompressing stateful message with state id =
0x39b9 0fdb 054b
***ERROR: function: "tcomp_udvm_create()"
file: "c:\users\abc\documents\myboghe\doubango\branches\2.0\doubango\tinysigcomp
\src\tcomp_udvm.c"
line: "86"
MSG: NACK_STATE_NOT_FOUND for id =
0x39b9 0fdb 054b
***ERROR: function: "tcomp_nackinfo_write()"
file: "c:\users\abc\documents\myboghe\doubango\branches\2.0\doubango\tinysigcomp
\src\tcomp_nackinfo.c"
line: "73"
MSG: Invalid parameter
***ERROR: function: "tcomp_udvm_runByteCode()"
file: "c:\users\abc\documents\myboghe\doubango\branches\2.0\doubango\tinysigcomp
\src\tcomp_udvm.c"
line: "160"
MSG: Cannot run()/execute() invalid bytecode

==WE GOT A NACK
xdecompression-failure: CYCLES_EXHAUSTED

=== A.2.1.  Useful Values_3 status: PASS ===
============================================

=======================================
=== Testing A.2.1.  Useful Values_4 ===
=======================================
*INFO: SigComp - Decompressing stateful message with state id =
0x39b9 0fdb 054b
***ERROR: function: "tcomp_udvm_create()"
file: "c:\users\abc\documents\myboghe\doubango\branches\2.0\doubango\tinysigcomp
\src\tcomp_udvm.c"
line: "86"
MSG: NACK_STATE_NOT_FOUND for id =
0x39b9 0fdb 054b
***ERROR: function: "tcomp_nackinfo_write()"
file: "c:\users\abc\documents\myboghe\doubango\branches\2.0\doubango\tinysigcomp
\src\tcomp_nackinfo.c"
line: "73"
MSG: Invalid parameter
***ERROR: function: "tcomp_udvm_runByteCode()"
file: "c:\users\abc\documents\myboghe\doubango\branches\2.0\doubango\tinysigcomp
\src\tcomp_udvm.c"
line: "160"
MSG: Cannot run()/execute() invalid bytecode

==WE GOT A NACK
xdecompression-failure: SEGFAULT

=== A.2.1.  Useful Values_4 status: PASS ===
============================================

Original comment by alistair...@gmail.com on 16 Jan 2013 at 6:01

GoogleCodeExporter commented 8 years ago

Original comment by boss...@yahoo.fr on 17 Jan 2013 at 9:34

GoogleCodeExporter commented 8 years ago
Fixed by r809

Original comment by boss...@yahoo.fr on 21 Jan 2013 at 8:49