ravi - 2013-12-04

Hi,

In the process of adding support for new architecture 'ppc64le' (PowerPC 64 Little Endian), my job is to compile upstream lastest release source package and run "make check" if available.

While running "make check" available with "asn1c" package on new arch, ppc64le, im seeing below issue:

./check-OCTET_STRING

[<OCTET_STRING>41424</OCTET_STRING>] => [AB@]:3 vs [AB@]:3, code 0
[<OCTET_STRING>
41424</OCTET_STRING>]
=> [AB@]:3 vs [AB@]:3, code 0
[<OCTET_STRING blah="" blah=""> 4 1 4 2 4 5 44 </OCTET_STRING>] => [ABED]:4 vs [ABED]:4, code 0
[<z>40</z>] => [@]:1 vs [@]:1, code 0
[<z>40</z>] => [@]:1 vs [@]:1, code 0
[<z>>40</z>] => []:0 vs []:0, code 2
[<z>40</z>] => [@]:1 vs [@]:1, code 0
[<z>>40</z>] => []:0 vs []:0, code 2
[ignored<z>40</z>stuff] => [@]:1 vs [@]:1, code 0
[<tag>4</tag>] => [@]:1 vs [@]:1, code 0
[<a-z>7 375 73 6c6 96 b</a-z>] => [suslik]:6 vs [suslik]:6, code 0
[<tag/>] => []:0 vs []:0, code 0
[<tag>blah</tag>] => []:0 vs []:0, code 2
[<tag>01000001</tag>] => [A]:1 vs [A]:1, code 0
[<tag>01000 00 101 00001</tag>] => [AB]:2 vs [AB]:2, code 0
[<OCTET_STRING>one, two, three</OCTET_STRING>] => [one, two, three]:15 vs [one, two, three]:15, code 0
[<z></z>] => []:0 vs []:0, code 0
[<z z="" z=""><&></z>] => [<&>]:3 vs [<&>]:3, code 0
[<z z="" z="">a<b&c>d</z>] => [a<b&c>d]:7 vs [a<b&c>d]:7, code 0
[<z z="" z="">a&lt</z>] => [a&lt]:4 vs [a&lt]:4, code 0
[<z z="" z="">a&sdfsdfsdf;b</z>] => [a&sdfsdfsdf;b]:13 vs [a&sdfsdfsdf;b]:13, code 0
[<z z="" z="">a b</z>] => [a b]:3 vs [a b]:3, code 0
[<z z="" z="">a b</z>] => [a b]:3 vs [a b]:3, code 0
[<z>a繃b</z>] => [a?b]:5 vs [a?b]:5, code 0
[<z>a�b</z>] => [a�b]:15 vs [a�b]:15, code 0
[<z>a�b</z>] => [a??????b]:8 vs [a�b]:15, code 0
check-OCTET_STRING: check-OCTET_STRING.c:45: check: Assertion `st->size == verlen' failed.
Aborted


Note: The same test case is passing on X86_64 debian build machine.

difference in outputs when run on X86_64 machine Vs ppc64le machine:


on X86_64:
[<z>a�b</z>] => [a�b]:15 vs [a�b]:15, code 0
[<z>a�b</z>] => [a�b]:15 vs [a�b]:15, code 0

on ppc64le:
[<z>a�b</z>] => [a�b]:15 vs [a�b]:15, code 0
[<z>a�b</z>] => [a??????b]:8 vs [a�b]:15, code 0


Please letme know if you need more info. Your response/help to find the root cause of the issue is highly appreciated.

Thanks in advance,
ravi.