Bug 27411 - memcheck assertion
Summary: memcheck assertion
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: valgrind (show other bugs)
Version: unstable
Hardware: all Linux
: P3 blocker
Assignee: placeholder@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-06 14:57 MSK by Alexey Gladkov
Modified: 2012-06-18 05:01 MSK (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Gladkov 2012-06-06 14:57:53 MSK
It seems that the valgrind-3.6.1-alt3 is completely broken:

$ echo 'int main(void) { return 0; } '|gcc -xc -o test -
$ valgrind ./test 
==11438== Memcheck, a memory error detector
==11438== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==11438== Using Valgrind-3.6.1 and LibVEX; rerun with -h for copyright info
==11438== Command: ./test
==11438== 
--11438-- Warning: DWARF2 CFI reader: unhandled DW_OP_ opcode 0x2a

valgrind: m_debuginfo/readdwarf.c:2338 (copy_convert_CfiExpr_tree): Assertion 'srcix >= 0 && srcix < VG_(sizeXA)(srcxa)' failed.
==11438==    at 0x3802D6D7: ??? (in /usr/lib64/valgrind/memcheck-amd64-linux)

sched status:
  running_tid=0


Note: see also the FAQ in the source distribution.
It contains workarounds to several common problems.
In particular, if Valgrind aborted or crashed after
identifying problems in your program, there's a good chance
that fixing those problems will prevent Valgrind aborting or
crashing, especially if it happened in m_mallocfree.c.

If that doesn't help, please report this bug to: www.valgrind.org

In the bug report, send all the above text, the valgrind
version, and what OS and version you are using.  Thanks.
Comment 1 Dmitry V. Levin 2012-06-06 18:08:00 MSK
А раньше эта сборка работала...
Comment 2 Sergey Vlasov 2012-06-07 12:28:24 MSK
https://bugs.kde.org/show_bug.cgi?id=277045

Видимо, с новым gcc придётся наконец обновить и valgrind до 3.7.0.
Comment 3 Dmitry V. Levin 2012-06-07 15:23:31 MSK
(In reply to comment #2)
> https://bugs.kde.org/show_bug.cgi?id=277045
> 
> Видимо, с новым gcc придётся наконец обновить и valgrind до 3.7.0.

Кто будет обновлять? ;)
Comment 4 Alexey Gladkov 2012-06-13 02:19:26 MSK
Кстати, valgrind-3.7.0 не будет собираться с новым automake:

coregrind/Makefile.am:498: `pkglibdir' is not a legitimate directory for `DATA'
Makefile.am:64: `pkglibdir' is not a legitimate directory for `DATA'

В svn это уже исправили. Не знаю как у вас принято, но возможно стоит собирать версию из svn.
Comment 5 Alexey Gladkov 2012-06-14 00:43:47 MSK
Для себя заткнул пока проблему сборкой:

http://git.altlinux.org/people/legion/packages/valgrind.git?p=valgrind.git;a=commit;h=001cfa27201f6e20448b1153e6a4d5f5876515f7
Comment 6 Dmitry V. Levin 2012-06-14 01:25:59 MSK
(In reply to comment #5)
> Для себя заткнул пока проблему сборкой:
> 
> http://git.altlinux.org/people/legion/packages/valgrind.git?p=valgrind.git;a=commit;h=001cfa27201f6e20448b1153e6a4d5f5876515f7

Ее можно использовать для подготовки сборки в Сизиф?
Comment 7 Alexey Gladkov 2012-06-14 02:04:28 MSK
Я собрал 3.7.0, обновил RH патчи, сбэкпортировал несколько фиксов из апстрима.
Думаю да.
Comment 8 Dmitry V. Levin 2012-06-14 02:48:55 MSK
(In reply to comment #7)
> Я собрал 3.7.0, обновил RH патчи, сбэкпортировал несколько фиксов из апстрима.
> Думаю да.

А valgrind-3.7.0-gcc-version.patch откуда?
Comment 9 Alexey Gladkov 2012-06-14 03:12:38 MSK
(В ответ на комментарий №8)
> А valgrind-3.7.0-gcc-version.patch откуда?

Из апстрима, но это просто их код. Я не знаю номера ревизии.
Comment 10 Repository Robot 2012-06-18 05:01:50 MSK
valgrind-3.7.0-alt1 -> sisyphus:

* Mon Jun 18 2012 Dmitry V. Levin <ldv@altlinux> 3.7.0-alt1
- Updated to 3.7.0 release (closes: #27411).
- Backported upstream build fixes.
- Merged with Fedora valgrind-3.7.0-4 (by legion@).