Package: xcircuit
Version: 3.7.57.dfsg-1
Severity: normal

Dear Maintainer,

While following the tutorials on the XCircuit's official page I noticed an
action which makes it crash. The steps that result in the crash are as follows:

1. Open xcircuit
2. File -> Read XCircuit File (the "File List Window" screen will open)
3. Write in the text box "/usr/share/doc"
4. Press return
5. xcircuit crashes with the following output

    X Error of failed request:  BadAlloc (insufficient resources for operation)
      Major opcode of failed request:  53 (X_CreatePixmap)
      Serial number of failed request:  7021
      Current serial number in output stream:  8448

The numbers in the last two lines may change while reproducing the bug, but the
code 53 is always the same. The remaining options on the File List Window seem
to make no difference, the crash is consistent.

My suspicion for the cause of the bug might be due to the large number of items
in that directory.

    $ ls /usr/share/doc | wc -l  
    3043

Almost all of them are folders, so all of them need to be displayed even with
the "filter" option turned on. This hypothesis is consistent with the following
experiment: 

1. Repeat the steps above but using "/usr/bin" instead and with the "filter"
    option ticked. (For me, only the X11 folder is displayed and there is no
    crash.)
2. Untick the "filter" option
3. xcircuit crashes

    $ ls /usr/bin | wc -l          
    3017


Thank you for your time,
Hope my hypothesis helps,
Gonçalo

PS: I was trying to navigate to the xcircuit examples folder when I found
the bug.

-- System Information:
Debian Release: 8.7
  APT prefers stable
  APT policy: (900, 'stable'), (100, 'stable-updates')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages xcircuit depends on:
ii  libc6      2.19-18+deb8u7
ii  libice6    2:1.0.9-1+b1
ii  libsm6     2:1.2.2-1+b1
ii  libtcl8.6  8.6.2+dfsg-2
ii  libtk8.6   8.6.2-1
ii  libx11-6   2:1.6.2-3
ii  libxpm4    1:3.5.12-0+deb8u1
ii  libxt6     1:1.1.4-1+b1
ii  zlib1g     1:1.2.8.dfsg-2+b1

xcircuit recommends no packages.

xcircuit suggests no packages.

-- no debconf information

Reply via email to