Branch: Tag:

2016-06-20

2016-06-20 10:24:25 by Henrik Grubbström (Grubba) <grubba@grubba.org>

decode_value: Temporarily added some more diagnostics.

This is an attempt to hunt down the cause for some machines in
Pikefarm failing the testsuite with (paths truncated somewhat):

| .../src/post_modules/BSON/testsuite.in:18: Test 4 (shift 1) (CRNL) produced warning.
| .../build/linux-4.6.2-00001-g875e9b9-x86_64/test-install/pike/8.1.4/lib/modules/Crypto.pmod/Random.pmod.o:0: Decode failed: Error while decoding program(.../build/linux-4.6.2-00001-g875e9b9-x86_64/test-install/pike/8.1.4/lib/modules/Crypto.pmod/Random.pmod:23):
| Bad function identifier offset for random_string:function(int(0..2147483647) : string(8bit)): 3 != 0
| 1: mixed a() { return Standards.BSON.decode("\5\0\0\0\0"); }
| 2: mixed b() { return ([]); }

3442:    p->identifier_references[no].identifier_offset !=    p->identifier_references[n].identifier_offset ||    p->identifier_references[no].inherit_offset != 0))) { + #ifdef PIKE_DEBUG +  dump_program_tables(Pike_compiler->new_program, 0); + #endif    ref_push_program (p);    decode_error(data, Pike_sp - 1,    "Bad function identifier offset for %S:%T: %d != %d\n",