← Back to team overview

desktop-packages team mailing list archive

[Bug 1406901] [NEW] MemorySanitizer reports warning for each application linked against Qt

 

Public bug reported:

When compiling a program with clang  and MemorySanitizer you get the
following:

Uninitialized bytes in __interceptor_strcmp at offset 0 inside [0x60800000ded8, 2)
==10413== WARNING: MemorySanitizer: use-of-uninitialized-value
    #0 0x7fdfc0c6575d in QMetaType::registerType(char const*, void (*)(void*), void* (*)(void const*)) (/usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x18975d)
    #1 0x7fdfc1178e4d in _init (/usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x1b7e4d)
    #2 0x7fdfc2496139 in call_init /build/buildd/eglibc-2.19/elf/dl-init.c:78
    #3 0x7fdfc2496222 in call_init /build/buildd/eglibc-2.19/elf/dl-init.c:36
    #4 0x7fdfc2496222 in _dl_init /build/buildd/eglibc-2.19/elf/dl-init.c:126
    #5 0x7fdfc2487309 (/lib64/ld-linux-x86-64.so.2+0x1309)

  Uninitialized value was created by a heap allocation
    #0 0x7fdfc3845e23 in __interceptor_malloc /home/ben/development/llvm/3.5/final/llvm.src/projects/compiler-rt/lib/msan/msan_interceptors.cc:835:3
    #1 0x7fdfc0b591bf in QByteArray::realloc(int) (/usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x7d1bf)
    #2 0x7fff5f7611cf (<unknown module>)

SUMMARY: MemorySanitizer: use-of-uninitialized-value ??:0
QMetaType::registerType(char const*, void (*)(void*), void* (*)(void
const*))

I used the official clang 3.5 ubuntu 14.04 binaries provided by llvm.org
- http://llvm.org/releases/download.html#3.5.0

libqtcore4:
  Installed: 4:4.8.5+git192-g085f851+dfsg-2ubuntu4
  Candidate: 4:4.8.5+git192-g085f851+dfsg-2ubuntu4
  Version table:
 *** 4:4.8.5+git192-g085f851+dfsg-2ubuntu4 0
        500 http://us.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
        100 /var/lib/dpkg/status

Description:    Ubuntu 14.04.1 LTS
Release:        14.04

** Affects: qt4-x11 (Ubuntu)
     Importance: Undecided
         Status: New

** Package changed: apport (Ubuntu) => qt4-x11 (Ubuntu)

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to apport in Ubuntu.
https://bugs.launchpad.net/bugs/1406901

Title:
  MemorySanitizer reports warning for each application linked against Qt

Status in qt4-x11 package in Ubuntu:
  New

Bug description:
  When compiling a program with clang  and MemorySanitizer you get the
  following:

  Uninitialized bytes in __interceptor_strcmp at offset 0 inside [0x60800000ded8, 2)
  ==10413== WARNING: MemorySanitizer: use-of-uninitialized-value
      #0 0x7fdfc0c6575d in QMetaType::registerType(char const*, void (*)(void*), void* (*)(void const*)) (/usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x18975d)
      #1 0x7fdfc1178e4d in _init (/usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x1b7e4d)
      #2 0x7fdfc2496139 in call_init /build/buildd/eglibc-2.19/elf/dl-init.c:78
      #3 0x7fdfc2496222 in call_init /build/buildd/eglibc-2.19/elf/dl-init.c:36
      #4 0x7fdfc2496222 in _dl_init /build/buildd/eglibc-2.19/elf/dl-init.c:126
      #5 0x7fdfc2487309 (/lib64/ld-linux-x86-64.so.2+0x1309)

    Uninitialized value was created by a heap allocation
      #0 0x7fdfc3845e23 in __interceptor_malloc /home/ben/development/llvm/3.5/final/llvm.src/projects/compiler-rt/lib/msan/msan_interceptors.cc:835:3
      #1 0x7fdfc0b591bf in QByteArray::realloc(int) (/usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x7d1bf)
      #2 0x7fff5f7611cf (<unknown module>)

  SUMMARY: MemorySanitizer: use-of-uninitialized-value ??:0
  QMetaType::registerType(char const*, void (*)(void*), void* (*)(void
  const*))

  I used the official clang 3.5 ubuntu 14.04 binaries provided by
  llvm.org - http://llvm.org/releases/download.html#3.5.0

  libqtcore4:
    Installed: 4:4.8.5+git192-g085f851+dfsg-2ubuntu4
    Candidate: 4:4.8.5+git192-g085f851+dfsg-2ubuntu4
    Version table:
   *** 4:4.8.5+git192-g085f851+dfsg-2ubuntu4 0
          500 http://us.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
          100 /var/lib/dpkg/status

  Description:    Ubuntu 14.04.1 LTS
  Release:        14.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qt4-x11/+bug/1406901/+subscriptions


Follow ups

References