xcalc and xlogo kills X server

  • This topic has 9 replies, 3 voices, and was last updated May 17-2:22 pm by anticapitalista.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #35984
    Member
    devilalice

      Hi ! Got an interesting trouble. Most probably, not AntiX related, but let me share the experience.

      I decided to launch old good xcalc (AntiX 19 32bit) and it immediately killed the X session. I tried launch it several times and it happened every time. Beside xcalc the same behavior is for xlogo also. At the end of /var/log/Xorg.log.old I see:


      [ 11088.503] (II) event7 – Power Button: device removed
      [ 11088.512] (II) event9 – cmpc_keys: device removed
      [ 11088.518] (II) event8 – Video Bus: device removed
      [ 11088.522] (II) event4 – Power Button: device removed
      [ 11088.525] (II) event5 – Sleep Button: device removed
      [ 11088.530] (II) event3 – eTurboTouch eTurboTouch: device removed
      [ 11088.545] (II) event14 – Intel Webcam: device removed
      [ 11088.553] (II) event0 – AT Translated Set 2 keyboard: device removed
      [ 11088.568] (II) UnloadModule: “synaptics”
      [ 11088.569] (II) UnloadModule: “libinput”
      [ 11088.569] (II) UnloadModule: “libinput”
      [ 11088.569] (II) UnloadModule: “libinput”
      [ 11088.570] (II) UnloadModule: “libinput”
      [ 11088.570] (II) UnloadModule: “libinput”
      [ 11088.570] (II) UnloadModule: “libinput”
      [ 11088.570] (II) UnloadModule: “libinput”
      [ 11088.573] (II) UnloadModule: “libinput”
      [ 11088.739] (II) Server terminated successfully (0). Closing log file.

      I investigated the settings of these utilities in /etc/X11/app-defaults and found, if I disable (add ! at the begin of the line) the setting:

      XLogo*iconPixmap: xlogo32 <- in /etc/X11/app-defaults/XLogo

      XCalc.IconPixmap: calculator <- in /etc/X11/app-defaults/XCalc

      Then the trouble has gone – both utilities start and operate correctly.

      About the hardware: the trouble met on my both laptops: Intel Atom N270 and Toshiba Libretto W105 – both use Driver “intel”: Atom by default, Toshiba – forced with conf file. Even if I remove the settings and Toshiba uses “modesetting” driver – the trouble stays on.

      What’s wrong with Pixmap ? I’d tried launch XLogo via strace, and found:


      read(4</etc/X11/app-defaults/XLogo>, “XLogo*iconPixmap: xlogo32\nXLo”…, 121) = 121
      close(4</etc/X11/app-defaults/XLogo>) = 0
      openat(AT_FDCWD, “/usr/include/X11/bitmaps/xlogo32”, O_RDONLY) = -1 ENOENT (Нет такого файла или каталога)
      openat(AT_FDCWD, “xlogo32”, O_RDONLY) = -1 ENOENT (Нет такого файла или каталога)
      access(“/usr/lib/X11/ru_RU.UTF-8/bitmaps/xlogo32”, R_OK) = -1 ENOENT (Нет такого файла или каталога)
      access(“/usr/lib/X11/ru/bitmaps/xlogo32”, R_OK) = -1 ENOENT (Нет такого файла или каталога)
      access(“/usr/lib/X11/bitmaps/xlogo32”, R_OK) = -1 ENOENT (Нет такого файла или каталога)
      access(“/etc/X11/ru_RU.UTF-8/bitmaps/xlogo32”, R_OK) = -1 ENOENT (Нет такого файла или каталога)
      access(“/etc/X11/ru/bitmaps/xlogo32”, R_OK) = -1 ENOENT (Нет такого файла или каталога)
      access(“/etc/X11/bitmaps/xlogo32”, R_OK) = -1 ENOENT (Нет такого файла или каталога)
      access(“/etc/X11/ru_RU.UTF-8/bitmaps/xlogo32”, R_OK) = -1 ENOENT (Нет такого файла или каталога)
      access(“/etc/X11/ru/bitmaps/xlogo32”, R_OK) = -1 ENOENT (Нет такого файла или каталога)
      access(“/etc/X11/bitmaps/xlogo32”, R_OK) = -1 ENOENT (Нет такого файла или каталога)
      access(“/usr/lib/X11/ru_RU.UTF-8/xlogo32.xbm”, R_OK) = -1 ENOENT (Нет такого файла или каталога)
      access(“/usr/lib/X11/ru/xlogo32.xbm”, R_OK) = -1 ENOENT (Нет такого файла или каталога)
      access(“/usr/lib/X11/xlogo32.xbm”, R_OK) = -1 ENOENT (Нет такого файла или каталога)
      access(“/etc/X11/ru_RU.UTF-8/xlogo32.xbm”, R_OK) = -1 ENOENT (Нет такого файла или каталога)
      access(“/etc/X11/ru/xlogo32.xbm”, R_OK) = -1 ENOENT (Нет такого файла или каталога)
      access(“/etc/X11/xlogo32.xbm”, R_OK) = -1 ENOENT (Нет такого файла или каталога)
      access(“/etc/X11/ru_RU.UTF-8/xlogo32.xbm”, R_OK) = -1 ENOENT (Нет такого файла или каталога)
      access(“/etc/X11/xlogo32.xbm”, R_OK) = -1 ENOENT (Нет такого файла или каталога)
      openat(AT_FDCWD, “/usr/share/X11/XtErrorDB”, O_RDONLY) = -1 ENOENT (Нет такого файла или каталога)
      getuid32() = 1000
      geteuid32() = 1000
      getuid32() = 1000
      write(2</home/da/xlogo_fail>, “Warning: Cannot convert string \””…, 56Warning: Cannot convert string “xlogo32″ to type Pixmap
      ) = 56
      uname({sysname=”Linux”, nodename=”aqua”, …}) = 0
      poll([{fd=3<socket:[382134]>, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=3, revents=POLLOUT}])
      writev(3<socket:[382134]>, [{iov_base=”\1\30\r\0\1\0\0\1\240\0\0\0\0\0\0\0d\0d\0\1\0\1\0\0\0\0\0\32(\0\0″…, iov_len=392}, {iov_base=NULL, iov_len=0}, {iov_base=””, iov_len=0}], 3) = 392
      poll([{fd=3<socket:[382134]>, events=POLLIN}], 1, -1) = 1 ([{fd=3, revents=POLLIN}])
      recvmsg(3<socket:[382134]>, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base=”\34\0\v\0\1\0\0\1’\0\0\0Nv\270\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0″…, iov_len=4096}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 256

      <several similar strings recvmsg(3<socket:[382134]>… >

      recvmsg(3<socket:[382134]>, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base=”\34\0\35\0\1\0\0\1Y\1\0\0^v\270\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0″, iov_len=4096}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 32
      recvmsg(3<socket:[382134]>, {msg_namelen=0}, 0) = -1 EAGAIN (Ресурс временно недоступен)
      recvmsg(3<socket:[382134]>, {msg_namelen=0}, 0) = -1 EAGAIN (Ресурс временно недоступен)
      recvmsg(3<socket:[382134]>, {msg_namelen=0}, 0) = -1 EAGAIN (Ресурс временно недоступен)
      gettimeofday({tv_sec=1586922986, tv_usec=749658}, NULL) = 0
      poll([{fd=3<socket:[382134]>, events=POLLIN}], 1, -1) = 1 ([{fd=3, revents=POLLIN|POLLHUP}])
      recvmsg(3<socket:[382134]>, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base=””, iov_len=4096}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 0
      write(2</home/da/xlogo_fail>, “XIO: fatal IO error 11 (Resourc”…, 77XIO: fatal IO error 11 (Resource temporarily unavailable) on X server “:0″
      ) = 77
      write(2</home/da/xlogo_fail>, ” after 30 requests (29 know”…, 71 after 30 requests (29 known processed) with 0 events remaining.
      ) = 71
      exit_group(1) = ?
      +++ exited with 1 +++

      I launched it so:
      chvt 2
      DISPLAY=:0 strace -yf xlogo >xlogo_fail 2>&1

      But I can’t understand how exactly interpret all above. Like “I don’t see bitmaps, so I kill X server” – XLogo says ? Are you serious ?! Well, appeared:

      $ LANG=C apt-cache policy xbitmaps
      xbitmaps:
      Installed: (none)
      Candidate: 1.1.1-2

      After the package had been installed, the trouble has gone. No need X be restarted. Let me point also: Atom has fresh installed Antix 19, Toshiba had been upgraded from 17. In /var/log/apt/history.log* there is no a mention of it.

      Probably it’s not only intel card trouble, so xbitmaps should be included into AntiX base/full installation. It’s a small package.

      #35986
      Forum Admin
      rokytnji
        Helpful
        Up
        0
        ::

        I decided to launch old good xcalc (AntiX 19 32bit) and it immediately killed the X session. I tried launch it several times and it happened every time. Beside xcalc the same behavior is for xlogo also.

        Howdy and Welcome. I would stepped in using dmesg in terminal with grep and name of app to see what is up.

        https://www.tldp.org/LDP/intro-linux/html/sect_04_06.html

        Sometimes I drive a crooked road to get my mind straight.
        Not all who Wander are Lost.
        I'm not outa place. I'm from outer space.

        Linux Registered User # 475019
        How to Search for AntiX solutions to your problems

        #36006
        Member
        devilalice
          Helpful
          Up
          0
          ::

          Thanks ! I always miss some source of information to check. Interesting things has been found in dmesg:

          [11088.399773] jwm[10520]: segfault at 4 ip 00505567 sp bfe199b8 error 4 in jwm[4f3000+28000]
          [11108.588661] elogind-daemon[1886]: Removed session 1.

          Timestamps are the same as those in Xorg.log.0.old, so most probably jwm itself is the source of the trouble:

          [ 11088.573] (II) UnloadModule: “libinput”
          [ 11088.739] (II) Server terminated successfully (0). Closing log file.

          Therefore X shows the usual closing messages, not errors – as it happened after jwm had died.

          Thanks for helping figure it out !

          #36024
          Forum Admin
          rokytnji
            Helpful
            Up
            0
            ::

            Just figured I’d mention. When I am lazy and don’t feel like looking up command line synatax for finding why some apps crash.

            I just poke and hope with changing gtk themes using antix control center > Desktop > Custom Look and Feel

            Play with the settings in there and see if crash goes away. Make a note of which theme is the cause if it is the cause.

            Sometimes I drive a crooked road to get my mind straight.
            Not all who Wander are Lost.
            I'm not outa place. I'm from outer space.

            Linux Registered User # 475019
            How to Search for AntiX solutions to your problems

            #36025
            Member
            devilalice
              Helpful
              Up
              0
              ::

              I’d check if it’s JWM trouble first. And switched to fluxbox. No problem with xlogo there. Then I switched back to JWM and tested different Widgets and Icon Themes, even Mouse Cursor. Also enabled “accessibility in GTK+ applications” under Other tab. No difference: if no xbitmaps package installed then total logoff appeared with any combination of settings. I suppose lxappearance settings are independent of chosen WM, so it proves JWM is the source of the trouble, no ?

              Am I right, you don’t meet the crash under JWM when start xlogo/xcalc ? So is it just me ?

              #36026
              Forum Admin
              anticapitalista
                Helpful
                Up
                0
                ::

                On my box:

                jwm crashes when xlogo is typed into a terminal. No crash with other window managers.
                Once xbitmaps is installed, no crash.

                Conclusion: Install xbitmaps and all window managers plus xlogo work ok.

                Philosophers have interpreted the world in many ways; the point is to change it.

                antiX with runit - leaner and meaner.

                #36031
                Member
                devilalice
                  Helpful
                  Up
                  0
                  ::

                  Thank you, anticapitalista ! One uncertainty less. It’s up to you how to apply the fix. It seems not much people use JWM.

                  #36033
                  Forum Admin
                  anticapitalista
                    Helpful
                    Up
                    0
                    ::

                    I’d bet that more people use jwm than run xlogo 🙂

                    Philosophers have interpreted the world in many ways; the point is to change it.

                    antiX with runit - leaner and meaner.

                    #36042
                    Member
                    devilalice
                      Helpful
                      Up
                      0
                      ::

                      Yes, but xcalc is much more useful. And it got the trouble too. In your case also ? I tested xlogo mostly as it is more simple.

                      #36043
                      Forum Admin
                      anticapitalista
                        Helpful
                        Up
                        0
                        ::

                        Yes, same issue with xcalc and jwm without xbitmaps.

                        But, since antiX base and full ship with galculator, I doubt xcalc is used much either.

                        New builds of antiX (gui) ie antiX-19.3 will ship with xbitmaps so many thanks for your post highlighting this bug for users that want to run xapps like xcalc/xlogo on jwm.

                        Philosophers have interpreted the world in many ways; the point is to change it.

                        antiX with runit - leaner and meaner.

                      Viewing 10 posts - 1 through 10 (of 10 total)
                      • You must be logged in to reply to this topic.