Bug 362935

Summary: [AsusWRT] Assertion 'sizeof(TTEntryC) <= 88' failed
Product: [Developer tools] valgrind Reporter: Sergey <sknaumov>
Component: generalAssignee: Julian Seward <jseward>
Status: RESOLVED FIXED    
Severity: major CC: wangyiduo999
Priority: NOR    
Version: 3.12 SVN   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description Sergey 2016-05-11 11:14:17 UTC
When I tried to verify whether bug 362934 was fixed in upstream, I integrated SVN trunk valgrind as of 11.05.2016 into AsusWRT-Merlin 380.58. Again the only change is in configure script: armv7*) -> arm*).

Now valgrind fails with assertion:

admin@RT-AC5300-0810:/tmp/home/root# valgrind qharvestd -F -c/tmp/qharvestd.conf
==802== Memcheck, a memory error detector
==802== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==802== Using Valgrind-3.12.0.SVN and LibVEX; rerun with -h for copyright info
==802== Command: qharvestd -F -c/tmp/qharvestd.conf
==802== 

valgrind: m_transtab.c:2459 (vgPlain_init_tt_tc): Assertion 'sizeof(TTEntryC) <= 88' failed.
Segmentation fault

admin@RT-AC5300-0810:/tmp/home/root# cat /proc/cpuinfo
Processor       : ARMv7 Processor rev 0 (v7l)
processor       : 0
BogoMIPS        : 2798.38

processor       : 1
BogoMIPS        : 2798.38

Features        : swp half thumb fastmult edsp 
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x3
CPU part        : 0xc09
CPU revision    : 0

Hardware        : Northstar Prototype
Revision        : 0000
Serial          : 0000000000000000
Comment 1 Julian Seward 2016-07-05 07:25:19 UTC
valgrind: m_transtab.c:2459 (vgPlain_init_tt_tc): Assertion 'sizeof(TTEntryC) <= 88' failed
was a temporary problem; I am sure it has now been fixed.
Comment 2 Sergey 2016-07-05 11:19:30 UTC
Just tried the latest r15901 on a slightly different platform (ASUS RT-AC87U) and with different executable.
Result is the same:

admin@RT-AC87U-0C18:/tmp/home/root# valgrind ssh
==704== Memcheck, a memory error detector
==704== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==704== Using Valgrind-3.12.0.SVN and LibVEX; rerun with -h for copyright info
==704== Command: ssh
==704== 

valgrind: m_transtab.c:2459 (vgPlain_init_tt_tc): Assertion 'sizeof(TTEntryC) <= 88' failed.
Segmentation fault
Comment 3 wangyiduo999 2016-07-11 19:20:30 UTC
I also have the same problem with my arm device

/usr/sbin # valgrind ls -l
==24846== Memcheck, a memory error detector
==24846== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==24846== Using Valgrind-3.12.0.SVN and LibVEX; rerun with -h for copyright info
==24846== Command: ls -l
==24846== 

valgrind: m_transtab.c:2459 (vgPlain_init_tt_tc): Assertion 'sizeof(TTEntryC) <= 88' failed.
Segmentation fault
/usr/sbin #
Comment 4 Julian Seward 2016-07-21 12:46:50 UTC
Err, sorry for the stupid bug.  That value needs to be 96 on arm-linux, not 88.
Comment 5 Julian Seward 2016-07-21 12:48:13 UTC
Fixed, r15912.