cout << 6;
cout << endl;
or any cout << <integer>
valgrind will report
unhandled instruction: 0xF1010200
Linux raspberrypi 3.6.11+ #538 PREEMPT Fri Aug 30 20:42:08 BST 2013 armv61 GNU/Linux
gcc 4.7.2 (Debian 4.7.2-5+rpi1)
This error has been discussed in the valgrind bug list:
and they respond:
which ultimately ends with this comment:This is "SETEND BE" (encoding A1), which means "switch to big-endian mode".
So (a) this program is doing something pretty weird and (b) I'm not surprised valgrind isn't supporting it.
Looking at the backtrace I suspect this is the following memcmp-for-rpi implementation: https://github.com/bavison/arm-mem/blob ... cmp.S#L214
I have the same issue as the valgrind bug OP.On further consideration it's not merely a question of "little enthusiasm", but more like "would require major rework of the ARM-level JIT machinery to fix". So I'm going to WONTFIX this.
Before I submit a formal bug, I thought I'd ask...is this being encountered by anyone else?
That memcmp may be lark, but it does seem strange to switch to Big Endian there.