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

            Bug ID: 472409
           Summary: Assertion '!overlap' failed.
    Classification: Developer tools
           Product: valgrind
           Version: 3.21.0
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: jsew...@acm.org
          Reporter: ste...@konink.de
  Target Milestone: ---

SUMMARY
Valgrind on Alpine Linux debugging a Qt6 application gave me several issues.
The first issue was already resolved in git a few days ago
(453c7111133ce9dc5dce043e03b7b58efdbf46cd). This has been patched today in
Alpine Linux.

I end up with the trace below.


STEPS TO REPRODUCE
1.  valgrind --tool=none --track-fds=yes ./myapp

OBSERVED RESULT

==2489== Nulgrind, the minimal Valgrind tool
==2489== Copyright (C) 2002-2017, and GNU GPL'd, by Nicholas Nethercote.
==2489== Using Valgrind-3.21.0 and LibVEX; rerun with -h for copyright info
==2489== Command: ./myapp -platform xcb
==2489== 
==2491== 
==2491== FILE DESCRIPTORS: 3 open (3 std) at exit.
==2491== 

valgrind: m_debuginfo/debuginfo.c:914 (truncate_DebugInfoMapping_overlaps):
Assertion '!overlap' failed.

host stacktrace:
==2489==    at 0x5801C37D: show_sched_status_wrk (m_libcassert.c:406)
==2489==    by 0x5801C5D9: report_and_quit (m_libcassert.c:477)
==2489==    by 0x5801C7AA: vgPlain_assert_fail (m_libcassert.c:543)
==2489==    by 0x5803323E: vgPlain_di_notify_mmap (debuginfo.c:1151)
==2489==    by 0x580598A2: vgModuleLocal_generic_PRE_sys_mmap
(syswrap-generic.c:2465)
==2489==    by 0x58010329: vgSysWrap_amd64_linux_sys_mmap_before
(syswrap-amd64-linux.c:413)
==2489==    by 0x5800EF24: vgPlain_client_syscall (syswrap-main.c:2240)
==2489==    by 0x5800B88E: handle_syscall (scheduler.c:1206)
==2489==    by 0x5800E0B6: vgPlain_scheduler (scheduler.c:1552)
==2489==    by 0x58062ADE: run_a_thread_NORETURN (syswrap-linux.c:102)

sched status:
  running_tid=1

Thread 1: status = VgTs_Runnable syscall 9 (lwpid 2489)
==2489==    at 0x4035244: mmap (syscall_arch.h:61)
==2489==    by 0x4059E37: map_library (dynlink.c:646)
==2489==    by 0x405A667: load_library (dynlink.c:1181)
==2489==    by 0x405BA53: dlopen (dynlink.c:2163)
==2489==    by 0x59A53A2: ??? (in /usr/lib/libQt6Core.so.6.5.1)
==2489==    by 0x59A61C1: ??? (in /usr/lib/libQt6Core.so.6.5.1)
==2489==    by 0x59A6417: ??? (in /usr/lib/libQt6Core.so.6.5.1)
==2489==    by 0x5824A2F: QFactoryLoader::instance(int) const (in
/usr/lib/libQt6Core.so.6.5.1)
==2489==    by 0x4FB09E3: ??? (in /usr/lib/libQt6Gui.so.6.5.1)
==2489==    by 0x4FB4E51: QImageWriter::supportedImageFormats() (in
/usr/lib/libQt6Gui.so.6.5.1)
==2489==    by 0x13C65098: ??? (in
/usr/lib/qt6/plugins/multimedia/libffmpegmediaplugin.so)
==2489==    by 0x13C6A179: ??? (in
/usr/lib/qt6/plugins/multimedia/libffmpegmediaplugin.so)
==2489==    by 0x97FE0D9: QPlatformMediaIntegration::instance() (in
/usr/lib/libQt6Multimedia.so.6.5.1)
==2489==    by 0x9813EDE: QVideoSink::QVideoSink(QObject*) (in
/usr/lib/libQt6Multimedia.so.6.5.1)
==2489==    by 0x97857CE: QQuickVideoOutput::QQuickVideoOutput(QQuickItem*) (in
/usr/lib/libQt6MultimediaQuick.so.6.5.1)
==2489==    by 0x978FA6B: ??? (in /usr/lib/libQt6MultimediaQuick.so.6.5.1)
==2489==    by 0x4C3DFFB: QQmlType::create(void**, unsigned long) const (in
/usr/lib/libQt6Qml.so.6.5.1)
==2489==    by 0x4C3E0AB: QQmlType::createWithQQmlData() const (in
/usr/lib/libQt6Qml.so.6.5.1)
==2489==    by 0x4BFEEFA: QQmlObjectCreator::createInstance(int, QObject*,
bool) (in /usr/lib/libQt6Qml.so.6.5.1)
==2489==    by 0x4C006B4:
QQmlObjectCreator::setPropertyBinding(QQmlPropertyData const*,
QV4::CompiledData::Binding const*) (in /usr/lib/libQt6Qml.so.6.5.1)
==2489==    by 0x4C02B5E:
QQmlObjectCreator::setupBindings(QFlags<QQmlObjectCreator::BindingMode>) (in
/usr/lib/libQt6Qml.so.6.5.1)
==2489==    by 0x4C0A262: QQmlObjectCreator::populateInstance(int, QObject*,
QObject*, QQmlPropertyData const*, QV4::CompiledData::Binding const*) (in
/usr/lib/libQt6Qml.so.6.5.1)
==2489==    by 0x4BFEA4B: QQmlObjectCreator::createInstance(int, QObject*,
bool) (in /usr/lib/libQt6Qml.so.6.5.1)
==2489==    by 0x4BFB424: QQmlObjectCreator::create(int, QObject*,
QQmlInstantiationInterrupt*, int) (in /usr/lib/libQt6Qml.so.6.5.1)
==2489==    by 0x4BFE84E: QQmlObjectCreator::createInstance(int, QObject*,
bool) (in /usr/lib/libQt6Qml.so.6.5.1)
==2489==    by 0x4C006B4:
QQmlObjectCreator::setPropertyBinding(QQmlPropertyData const*,
QV4::CompiledData::Binding const*) (in /usr/lib/libQt6Qml.so.6.5.1)
==2489==    by 0x4C02B5E:
QQmlObjectCreator::setupBindings(QFlags<QQmlObjectCreator::BindingMode>) (in
/usr/lib/libQt6Qml.so.6.5.1)
==2489==    by 0x4C0A262: QQmlObjectCreator::populateInstance(int, QObject*,
QObject*, QQmlPropertyData const*, QV4::CompiledData::Binding const*) (in
/usr/lib/libQt6Qml.so.6.5.1)
==2489==    by 0x4BFEA4B: QQmlObjectCreator::createInstance(int, QObject*,
bool) (in /usr/lib/libQt6Qml.so.6.5.1)
==2489==    by 0x4C006B4:
QQmlObjectCreator::setPropertyBinding(QQmlPropertyData const*,
QV4::CompiledData::Binding const*) (in /usr/lib/libQt6Qml.so.6.5.1)
==2489==    by 0x4C02B5E:
QQmlObjectCreator::setupBindings(QFlags<QQmlObjectCreator::BindingMode>) (in
/usr/lib/libQt6Qml.so.6.5.1)
==2489==    by 0x4C0A262: QQmlObjectCreator::populateInstance(int, QObject*,
QObject*, QQmlPropertyData const*, QV4::CompiledData::Binding const*) (in
/usr/lib/libQt6Qml.so.6.5.1)
==2489==    by 0x4BFEA4B: QQmlObjectCreator::createInstance(int, QObject*,
bool) (in /usr/lib/libQt6Qml.so.6.5.1)
==2489==    by 0x4BFB424: QQmlObjectCreator::create(int, QObject*,
QQmlInstantiationInterrupt*, int) (in /usr/lib/libQt6Qml.so.6.5.1)
==2489==    by 0x4B9044D:
QQmlComponentPrivate::beginCreate(QQmlRefPointer<QQmlContextData>) (in
/usr/lib/libQt6Qml.so.6.5.1)
==2489==    by 0x4B9073A: QQmlComponentPrivate::doBeginCreate(QQmlComponent*,
QQmlContext*) (in /usr/lib/libQt6Qml.so.6.5.1)
==2489==    by 0x4B92A19: QQmlComponentPrivate::createWithProperties(QObject*,
QMap<QString, QVariant> const&, QQmlContext*,
QQmlComponentPrivate::CreateBehavior) (in /usr/lib/libQt6Qml.so.6.5.1)
==2489==    by 0x4B92CB8: QQmlComponent::create(QQmlContext*) (in
/usr/lib/libQt6Qml.so.6.5.1)
==2489==    by 0x4B7B72A:
QQmlApplicationEnginePrivate::finishLoad(QQmlComponent*) (in
/usr/lib/libQt6Qml.so.6.5.1)
==2489==    by 0x4B7BCC3: QQmlApplicationEngine::load(QUrl const&) (in
/usr/lib/libQt6Qml.so.6.5.1)
==2489==    by 0x111AFF: main (in /home/skinkie/blxview++/build/myapp)
client stack range: [0x1FFEFF6000 0x1FFF000FFF] client SP: 0x1FFEFFBFA0
valgrind stack range: [0x1002D3C000 0x1002E3BFFF] top usage: 8368 of 1048576

Thread 2: status = VgTs_WaitSys syscall 7 (lwpid 2490)
==2489==    at 0x4054F0A: ??? (syscall_cp.s:29)
==2489==    by 0x40520ED: __syscall_cp_c (pthread_cancel.c:33)
==2489==    by 0x4045BF9: poll (poll.c:9)
==2489==    by 0x6286ABF: ??? (in /usr/lib/libglib-2.0.so.0.7600.4)
==2489==    by 0x62243ED: g_main_context_iteration (in
/usr/lib/libglib-2.0.so.0.7600.4)
==2489==    by 0x59A691D:
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (in
/usr/lib/libQt6Core.so.6.5.1)
==2489==    by 0x57C163A:
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (in
/usr/lib/libQt6Core.so.6.5.1)
==2489==    by 0x58A4D1F: QThread::exec() (in /usr/lib/libQt6Core.so.6.5.1)
==2489==    by 0x6340F3A: ??? (in /usr/lib/libQt6DBus.so.6.5.1)
==2489==    by 0x58E3B71: ??? (in /usr/lib/libQt6Core.so.6.5.1)
==2489==    by 0x4052BB5: start (pthread_create.c:207)
==2489==    by 0x4054ED6: ??? (clone.s:22)
client stack range: [0x7AF2000 0x7B12FFF] client SP: 0x7B125E8
valgrind stack range: [0x1004DCD000 0x1004ECCFFF] top usage: 5408 of 1048576

Thread 3: status = VgTs_WaitSys syscall 7 (lwpid 2492)
==2489==    at 0x4054F0A: ??? (syscall_cp.s:29)
==2489==    by 0x40520ED: __syscall_cp_c (pthread_cancel.c:33)
==2489==    by 0x4045BF9: poll (poll.c:9)
==2489==    by 0x70F8CB3: ??? (in /usr/lib/libxcb.so.1.1.0)
==2489==    by 0x70FA35A: xcb_wait_for_event (in /usr/lib/libxcb.so.1.1.0)
==2489==    by 0x7A2182D: ??? (in /usr/lib/libQt6XcbQpa.so.6.5.1)
==2489==    by 0x58E3B71: ??? (in /usr/lib/libQt6Core.so.6.5.1)
==2489==    by 0x4052BB5: start (pthread_create.c:207)
==2489==    by 0x4054ED6: ??? (clone.s:22)
client stack range: [0x7B2B000 0x7B4BFFF] client SP: 0x7B4B6B8
valgrind stack range: [0x1004ED1000 0x1004FD0FFF] top usage: 5408 of 1048576

Thread 4: status = VgTs_WaitSys syscall 7 (lwpid 2493)
==2489==    at 0x4054F0A: ??? (syscall_cp.s:29)
==2489==    by 0x40520ED: __syscall_cp_c (pthread_cancel.c:33)
==2489==    by 0x4045BF9: poll (poll.c:9)
==2489==    by 0x6286ABF: ??? (in /usr/lib/libglib-2.0.so.0.7600.4)
==2489==    by 0x62243ED: g_main_context_iteration (in
/usr/lib/libglib-2.0.so.0.7600.4)
==2489==    by 0x59A691D:
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (in
/usr/lib/libQt6Core.so.6.5.1)
==2489==    by 0x57C163A:
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (in
/usr/lib/libQt6Core.so.6.5.1)
==2489==    by 0x58A4D1F: QThread::exec() (in /usr/lib/libQt6Core.so.6.5.1)
==2489==    by 0x58E3B71: ??? (in /usr/lib/libQt6Core.so.6.5.1)
==2489==    by 0x4052BB5: start (pthread_create.c:207)
==2489==    by 0x4054ED6: ??? (clone.s:22)
client stack range: [0x7B82000 0x8382FFF] client SP: 0x8382638
valgrind stack range: [0x1005040000 0x100513FFFF] top usage: 7456 of 1048576

Thread 5: status = VgTs_WaitSys syscall 202 (lwpid 2494)
==2489==    at 0x4054F0A: ??? (syscall_cp.s:29)
==2489==    by 0x40520ED: __syscall_cp_c (pthread_cancel.c:33)
==2489==    by 0x40516DE: __timedwait_cp (__timedwait.c:24)
==2489==    by 0x40524F9: pthread_cond_timedwait (pthread_cond_timedwait.c:100)
==2489==    by 0x9CB115B: ??? (in /usr/lib/xorg/modules/dri/libgallium_dri.so)
==2489==    by 0x9D2D817: ??? (in /usr/lib/xorg/modules/dri/libgallium_dri.so)
==2489==    by 0x4052BB5: start (pthread_create.c:207)
==2489==    by 0x4054ED6: ??? (clone.s:22)
client stack range: [0x1396D000 0x1398DFFF] client SP: 0x1398D668
valgrind stack range: [0x1007376000 0x1007475FFF] top usage: 3256 of 1048576

Thread 6: status = VgTs_WaitSys syscall 202 (lwpid 2495)
==2489==    at 0x4054F0A: ??? (syscall_cp.s:29)
==2489==    by 0x40520ED: __syscall_cp_c (pthread_cancel.c:33)
==2489==    by 0x40516DE: __timedwait_cp (__timedwait.c:24)
==2489==    by 0x40524F9: pthread_cond_timedwait (pthread_cond_timedwait.c:100)
==2489==    by 0x9CB115B: ??? (in /usr/lib/xorg/modules/dri/libgallium_dri.so)
==2489==    by 0x9D2D817: ??? (in /usr/lib/xorg/modules/dri/libgallium_dri.so)
==2489==    by 0x4052BB5: start (pthread_create.c:207)
==2489==    by 0x4054ED6: ??? (clone.s:22)
client stack range: [0x13AD1000 0x13AF1FFF] client SP: 0x13AF1668
valgrind stack range: [0x100747A000 0x1007579FFF] top usage: 3928 of 1048576

EXPECTED RESULT

A working trace within the application.

SOFTWARE/OS VERSIONS
Qt Version: Qt 6.5.1

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

Reply via email to