Re: [dev] [dmenu] 4.9 segfault on input

From: Donald Allen <donaldcallen_AT_gmail.com>
Date: Thu, 7 Feb 2019 23:36:52 -0500

On Thu, 7 Feb 2019 at 23:33, Jordan Timmerman <skorlir_AT_gmail.com> wrote:
>
> Doing a print-based line-by-line binary search indicates the segfault
> occurs during a call to XmbLookupString.
>
> Does that ring any alarm bells for anyone?
>
> Seems to imply there's some kind of problem in my version of that X
> library, whichever one it is. Will keep looking.

Here's the output of ldd for dmenu on my system, showing all library
dependencies:

dca_AT_franz:~$ ldd `which dmenu`
        linux-vdso.so.1 (0x00007fff933d0000)
        libX11.so.6 => /usr/lib/libX11.so.6 (0x00007f2042e7d000)
        libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0x00007f2042c7a000)
        libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x00007f2042c33000)
        libXft.so.2 => /usr/lib/libXft.so.2 (0x00007f2042a1d000)
        libc.so.6 => /usr/lib/libc.so.6 (0x00007f2042859000)
        libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00007f204282f000)
        libdl.so.2 => /usr/lib/libdl.so.2 (0x00007f2042828000)
        libXext.so.6 => /usr/lib/libXext.so.6 (0x00007f2042616000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x00007f204234d000)
        libexpat.so.1 => /usr/lib/libexpat.so.1 (0x00007f2042311000)
        libuuid.so.1 => /usr/lib/libuuid.so.1 (0x00007f2042308000)
        libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007f20422e7000)
        libXrender.so.1 => /usr/lib/libXrender.so.1 (0x00007f20422d8000)
        /lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2
(0x00007f2042ff5000)
        libXau.so.6 => /usr/lib/libXau.so.6 (0x00007f20420d4000)
        libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00007f2041ece000)
        libbz2.so.1.0 => /usr/lib/libbz2.so.1.0 (0x00007f2041ebb000)
        libpng16.so.16 => /usr/lib/libpng16.so.16 (0x00007f2041e83000)
        libz.so.1 => /usr/lib/libz.so.1 (0x00007f2041c6c000)
        libharfbuzz.so.0 => /usr/lib/libharfbuzz.so.0 (0x00007f2041b6e000)
        libm.so.6 => /usr/lib/libm.so.6 (0x00007f20419e9000)
        libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x00007f20418c6000)
        libgraphite2.so.3 => /usr/lib/libgraphite2.so.3 (0x00007f20418a1000)
        libpcre.so.1 => /usr/lib/libpcre.so.1 (0x00007f204182e000)

You might want to compare with the output of ldd `which dmenu` on your system.

>
> On Thu, Feb 7, 2019 at 10:19 PM Jordan Timmerman <skorlir_AT_gmail.com> wrote:
> >
> > Well shucks. Okay. Thanks for trying! Must be something on my end.
> > Perhaps the version of a dynamically linked library could be affecting
> > it?
> >
> > On Thu, Feb 7, 2019 at 10:13 PM Donald Allen <donaldcallen_AT_gmail.com> wrote:
> > >
> > > On Thu, 7 Feb 2019 at 22:58, Jordan Timmerman <skorlir_AT_gmail.com> wrote:
> > > >
> > > > Hi Anselm,
> > > >
> > > > I run the following script:
> > > >
> > > > echo 'a\nb\nc' | dmenu
> > > >
> > > > I then press Enter. The program segaults.
> > >
> > > I just did this on an up-to-date Arch Linux system with dmenu 4.9
> > > installed and it does not seg-fault on my system.
> > >
> > > dca_AT_franz:/tmp$ echo 'a\nb\nc' | dmenu
> > > a\nb\nc
> > > dca_AT_franz:/tmp$
> > >
>
Received on Fri Feb 08 2019 - 05:36:52 CET

This archive was generated by hypermail 2.3.0 : Fri Feb 08 2019 - 05:48:07 CET