https://bugs.kde.org/show_bug.cgi?id=390765

            Bug ID: 390765
           Summary: Stack traces given by Memcheck aren't helpful
           Product: valgrind
           Version: 3.13.0
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: memcheck
          Assignee: jsew...@acm.org
          Reporter: sara...@163.com
  Target Milestone: ---

Created attachment 110834
  --> https://bugs.kde.org/attachment.cgi?id=110834&action=edit
test.c

Platform is mips linux
# cat /proc/version
Linux version 3.4.11-rt19 (gcc version 4.6.2 (Buildroot 2011.11) ) #2 SMP
PREEMPT

Compile attached test.c  with below command:
mips-linux-gcc -g -O0 -fno-omit-frame-pointer -fno-stack-check test.c

There's no file number shown in valgrind report:
# valgrind --trace-children=yes --leak-check=yes --num-callers=20 /tmp/a.out

==2957== Memcheck, a memory error detector
==2957== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==2957== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info
==2957== Command: /tmp/a.out
==2957==
==2957== Invalid write of size 4
==2957==    at 0x4000B90: ??? (in /lib/ld-uClibc.so.0)
==2957==    by 0x4000B3C: ??? (in /lib/ld-uClibc.so.0)
==2957==  Address 0x7e8bdcbc is on thread 1's stack
==2957==  4 bytes below stack pointer
==2957==
==2957== Conditional jump or move depends on uninitialised value(s)
==2957==    at 0x48B4A44: ??? (in /lib/libc.so.0)
==2957==    by 0x48ADBE4: ??? (in /lib/libc.so.0)
==2957==
buf=test buf

in func1:x[10]=10
/tmp/a.out: can't resolve symbol '__libc_freeres'
==2957==
==2957== HEAP SUMMARY:
==2957==     in use at exit: 0 bytes in 0 blocks
==2957==   total heap usage: 0 allocs, 0 frees, 0 bytes allocated
==2957==
==2957== All heap blocks were freed -- no leaks are possible
==2957==
==2957== For counts of detected and suppressed errors, rerun with: -v
==2957== Use --track-origins=yes to see where uninitialised values come from
==2957== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to