Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-28000

X11/Remote: malloc(): memory corruption



    • Bug
    • Resolution: Invalid
    • P1: Critical
    • 5.0.0 RC 1
    • 5.0.0 Beta 2
    • GUI: Window management
    • None
    • XServer running on a OpenSuse 12.1, client on a OpenSuse 11.2 system


      Running any Qt application over remote/X11 crashes or at least I can see malloc compaining about memory errors.

      With setting "export MALLOC_CHECK_=2" I have the following gdb stack:

      #0 0xb68d98c5 in raise () from /lib/libc.so.6
      #1 0xb68db1d5 in abort () from /lib/libc.so.6
      #2 0xb691bf4b in malloc_printerr () from /lib/libc.so.6
      #3 0xb692040b in free () from /lib/libc.so.6
      #4 0xb34f9bf3 in XIFreeDeviceInfo () from /usr/lib/libXi.so.6
      #5 0xb355b1b6 in QXcbConnection::xi2SetupTabletDevices (this=0x8083ae8)
      at qxcbconnection_xi2.cpp:386
      #6 0xb355a974 in QXcbConnection::initializeXInput2 (this=0x8083ae8)
      at qxcbconnection_xi2.cpp:93
      #7 0xb353ad55 in QXcbConnection::QXcbConnection (this=0x8083ae8, nativeInterface=0x80835e8,
      displayName=0x0) at qxcbconnection.cpp:332
      #8 0xb35411a1 in QXcbIntegration::QXcbIntegration (this=0x807a4c8, parameters=...)
      at qxcbintegration.cpp:103
      #9 0xb3556589 in QXcbIntegrationPlugin::create (this=0x807a3b0, system=..., parameters=...)
      at main.cpp:58
      #10 0xb71e6b7a in qLoadPlugin1<QPlatformIntegration, QPlatformIntegrationPlugin, QStringList> (
      loader=0x8079580, key=..., parameter1=...)
      at ../../include/QtCore/5.0.0/QtCore/private/../../../../../src/corelib/plugin/qfactoryloader_p.h:115
      #11 0xb71e6585 in QPlatformIntegrationFactory::create (platform=..., paramList=...,
      platformPluginPath=...) at kernel/qplatformintegrationfactory.cpp:69
      #12 0xb71ecc34 in init_platform (pluginArgument=..., platformPluginPath=...)
      at kernel/qguiapplication.cpp:712
      #13 0xb71ed893 in QGuiApplicationPrivate::createPlatformIntegration (this=0x8075cc0)
      at kernel/qguiapplication.cpp:840
      #14 0xb71ed8ed in QGuiApplicationPrivate::createEventDispatcher (this=0x8075cc0)
      at kernel/qguiapplication.cpp:847
      #15 0xb7774fd1 in QApplicationPrivate::createEventDispatcher (this=0x8075cc0)
      at kernel/qapplication_qpa.cpp:84
      #16 0xb6e89c12 in QCoreApplication::init (this=0xbffff1d8) at kernel/qcoreapplication.cpp:609
      #17 0xb6e89a16 in QCoreApplication::QCoreApplication (this=0xbffff1d8, p=...)
      at kernel/qcoreapplication.cpp:546
      #18 0xb71ebfc2 in QGuiApplication::QGuiApplication (this=0xbffff1d8, p=...)
      at kernel/qguiapplication.cpp:355
      #19 0xb770b503 in QApplication::QApplication (this=0xbffff1d8, argc=@0xbffff1f0, argv=
      0xbffff284, _internal=327680) at kernel/qapplication.cpp:563
      #20 0x08051d70 in main (argc=1, argv=0xbffff284) at main.cpp:6

      #5 0xb355b1b6 in QXcbConnection::xi2SetupTabletDevices (this=0x8083ae8)
      at qxcbconnection_xi2.cpp:386
      386 XIFreeDeviceInfo(dev);
      (gdb) p dev
      $3 = (XIDeviceInfo *) 0x8094950
      (gdb) p *dev
      $4 =

      {deviceid = 2, name = 0x8097db0 "Virtual core pointer", use = 1, attachment = 3, enabled = 1, num_classes = 5, classes = 0x8097dd0}


        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.



              rodal Samuel Rødal
              uwer Uwe Rathmann
              0 Vote for this issue
              5 Start watching this issue



                Gerrit Reviews

                  There are no open Gerrit changes