Skip to content

Valgrind report uninitialized variable somewhere for DInsightMainWindow::getInfoViewLabel() #14

@petterreinholdtsen

Description

@petterreinholdtsen

When running insight under valgrind, I get these messages:

==8413== Conditional jump or move depends on uninitialised value(s)
==8413==    at 0x14240A90: ???
==8413==    by 0x116EC8E7: ???

By running with valgrind --vgdb=full --vgdb-error=1 --error-limit=no insight and attaching with gdb, I get this full backtrace:

#0  0x0000000014240a90 in ?? ()
#1  0x00000000116eb32c in ?? ()
#2  0x00000000116eb330 in ?? ()
#3  0x0000000000989681 in ?? ()
#4  0x00000000116eb32e in ?? ()
#5  0x0000000000989681 in ?? ()
#6  0x00000000116ec8e6 in ?? ()
#7  0x00000000116ebed8 in ?? ()
#8  0x00000000116ec8e6 in ?? ()
#9  0x0000000000989681 in ?? ()
#10 0x00000000116eb316 in ?? ()
#11 0x00000000116ec8e8 in ?? ()
#12 0x0000000000000001 in ?? ()
#13 0x00000000114266c0 in ?? ()
#14 0x00000000114266c0 in ?? ()
#15 0x00000000116ed240 in ?? ()
#16 0x00000000072b92a2 in ?? () from /usr/lib/x86_64-linux-gnu/libpcre2-16.so.0
#17 0x00000000072df31e in pcre2_jit_match_16 ()
   from /usr/lib/x86_64-linux-gnu/libpcre2-16.so.0
#18 0x00000000072e4833 in pcre2_match_16 ()
   from /usr/lib/x86_64-linux-gnu/libpcre2-16.so.0
#19 0x0000000005ca7276 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#20 0x0000000005caa3b7 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#21 0x0000000005caa7bd in QRegularExpression::match(QString const&, int, QRegularExpression::MatchType, QFlags<QRegularExpression::MatchOption>) const ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#22 0x0000000005caa817 in QRegularExpression::globalMatch(QString const&, int, QRegularExpression::MatchType, QFlags<QRegularExpression::MatchOption>) const ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#23 0x0000000005c7f200 in QString::replace(QRegularExpression const&, QString const&) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#24 0x000000000012ea21 in DInsightMainWindow::ReplaceString (key=..., regExps=...)
    at /usr/include/x86_64-linux-gnu/qt5/QtCore/qarraydata.h:209
#25 0x000000000012ff9b in DInsightMainWindow::getInfoViewLabel (this=0x1ffefffbb0, 
    key=0x115f84b0 "attachmentsNotFound") at src/gui/dinsightmainwindow.cpp:2038
#26 0x0000000000131f17 in DInsightMainWindow::updateInfo (this=0x1ffefffbb0, 
    parentNode=0x1172a330) at src/gui/dinsightmainwindow.cpp:808
#27 0x00000000001333fb in DInsightMainWindow::enumerateProjects (this=0x1ffefffbb0, 
    rootDir=...) at src/gui/dinsightmainwindow.cpp:369
#28 0x00000000001368ec in DInsightMainWindow::DInsightMainWindow (this=0x1ffefffbb0)
    at src/gui/dinsightmainwindow.cpp:263
#29 0x00000000001213b5 in main (argc=<optimized out>, argv=<optimized out>)
    at src/main.cpp:150

I gave it a go, but was unable to make heads and tail to try to track down exactly which structure contain uninitialized memory, so reporting it here in case others have better luck.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions