Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. TSLIB segfault on exit??
QtWS25 Last Chance

TSLIB segfault on exit??

Scheduled Pinned Locked Moved Mobile and Embedded
5 Posts 2 Posters 3.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    terryfryar
    wrote on last edited by
    #1

    Using Qt Embedded 4.7.4 on codesourcery toolchain (arm). Successfully build/installed Qt and tslib, but when running a Qt application like so:

    TSLIB_CONFFILE=/etc/ts.conf QWS_MOUSE_PROTO=Tslib ./calculator -qws

    I get a segmentation fault on exit? If I use any input driver except for tslib, I get no fault. I've cleaned the ts.conf file carefully. Has anyone seen tslib based Qt embedded apps segfault on exit?? The app works just fine, but segfaults on exit.

    The tslib's calibration and test programs work just fine, btw....no segfaults.

    Thanks!

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mlong
      wrote on last edited by
      #2

      Have you run the app in a debugger to see exactly where it is segfaulting?

      Software Engineer
      My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

      1 Reply Last reply
      0
      • T Offline
        T Offline
        terryfryar
        wrote on last edited by
        #3

        It's crashing in the QWSTslibMouseHandlerPrivate dtor, in a call to ts_close().

        Oddly, if I link in tslib to the application directly I get no segfault on exit??

        1 Reply Last reply
        0
        • T Offline
          T Offline
          terryfryar
          wrote on last edited by
          #4

          Well...now it is segfaulting no matter if I link in tslib or not? I wonder what has changed?

          1 Reply Last reply
          0
          • T Offline
            T Offline
            terryfryar
            wrote on last edited by
            #5

            Here's my config and qmake.conf for Qt...can someone review and make sure I'm ok?? Maybe I'm missing a switch?

            ./configure -prefix /usr/local/Trolltech/Qt-arm-4.7.4 -embedded arm -platform qws/linux-x86-g++ -xplatform qws/linux-arm-gnueabi-g++ -depths 16,24,32 -no-mmx -no-3dnow -no-sse -no-sse2 -no-cups -no-largefile -no-accessibility -no-qt3support -no-openssl -no-gtkstyle -qt-gfx-vnc -qt-mouse-pc -plugin-mouse-pc -qt-mouse-linuxinput -release -no-glib -opensource -qt-mouse-linuxtp -plugin-mouse-linuxtp -qt-mouse-tslib -I/usr/local/Trolltech/tslib/include -L/usr/local/Trolltech/tslib/lib -R/usr/local/Trolltech/tslib/lib

            qmake.conf tunings:

            QMAKE_CFLAGS += -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-strict-volatile-bitfields
            QMAKE_CXXFLAGS += -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-strict-volatile-bitfields

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved