Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segfault on "Ctrl + /" invocation ... reproducible with "Ctrl + \" #508

Open
myrrc opened this issue Feb 11, 2024 · 6 comments
Open

Segfault on "Ctrl + /" invocation ... reproducible with "Ctrl + \" #508

myrrc opened this issue Feb 11, 2024 · 6 comments
Assignees
Labels

Comments

@myrrc
Copy link

myrrc commented Feb 11, 2024

~ hstr --version
hstr version "2.5.0" (2021-12-13T22:00:00)

~ cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.3 LTS"

Steps to reproduce: launch hstr and press "Ctrl+/".

GDB stacktrace (no debugging info, unfortunately)

#0  0x00007ffff7ce07e2 in __GI___libc_read (fd=0, buf=0x7fffffffd97f, nbytes=1)
    at ../sysdeps/unix/sysv/linux/read.c:26
#1  0x00007ffff7e3b6f9 in ?? () from /lib/x86_64-linux-gnu/libncursesw.so.6
#2  0x00007ffff7e3c28b in wgetch () from /lib/x86_64-linux-gnu/libncursesw.so.6
#3  0x000055555555a90f in ?? ()
#4  0x0000555555556e06 in ?? ()
#5  0x00007ffff7bf5d90 in __libc_start_call_main (main=main@entry=0x5555555569e0, argc=argc@entry=1, 
    argv=argv@entry=0x7fffffffe6d8) at ../sysdeps/nptl/libc_start_call_main.h:58
#6  0x00007ffff7bf5e40 in __libc_start_main_impl (main=0x5555555569e0, argc=1, argv=0x7fffffffe6d8, 
    init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe6c8)
    at ../csu/libc-start.c:392
#7  0x00005555555574a5 in ?? ()

I may send you core dump if you email me

@myrrc
Copy link
Author

myrrc commented Feb 11, 2024

~ foot --version
foot version: 1.11.0 -pgo +ime -graphemes -assertions

~ bash --version
GNU bash, version 5.1.16(1)-release (x86_64-pc-linux-gnu)

@dvorka dvorka self-assigned this Feb 11, 2024
@dvorka dvorka added the :finnadie: blocker label Feb 11, 2024
@dvorka dvorka added this to the 3.2 Stabilization milestone Feb 11, 2024
@dvorka
Copy link
Owner

dvorka commented Feb 11, 2024

@myrrc thank you for the report! Just in case you have time - could you please try latest hstr version (2.5.0 is pretty old):

Thank you!

@myrrc
Copy link
Author

myrrc commented Feb 11, 2024 via email

@dvorka dvorka modified the milestones: 3.2 Stabilization, 3.1 Feb 24, 2024
@dvorka
Copy link
Owner

dvorka commented Feb 24, 2024

Hints:

  • -O3 and non-initialized variables

@atleta
Copy link

atleta commented Feb 29, 2024

I'm having the same issue when I accidentally type Ctrl+\ (instead of Ctrl+/ which does work). Also on ubuntu and the segfault seems to be on the same line as above (../sysdeps/unix/sysv/linux/read.c:26). hstr version I'm using is "3.1.0" (2023-04-18T08:50:00) from the official ubuntu repo.

@dvorka
Copy link
Owner

dvorka commented Feb 29, 2024

@atleta thank you Laszlo for the detailed repro description! Ctrl + / worked without problems, but with Ctrl + \ it is reproducible! :finnadie:

@dvorka dvorka changed the title Segfault on "Ctrl + /" invocation Segfault on "Ctrl + /" invocation ... reproducible with "Ctrl + \" Feb 29, 2024
@dvorka dvorka pinned this issue Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants