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

Buggy #45

Open
jonshouse1 opened this issue Mar 14, 2022 · 1 comment
Open

Buggy #45

jonshouse1 opened this issue Mar 14, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@jonshouse1
Copy link

Combinations of inserting and moving cursor cause crashes.

Program received signal SIGSEGV, Segmentation fault.
>                                                   ^[[D__GI___libc_realloc (oldmem=0x4b5b1b3e0a0d4b5b, bytes=1264261952) at malloc.c:3154
3154    malloc.c: No such file or directory.
(gdb) bt
#0  __GI___libc_realloc (oldmem=0x4b5b1b3e0a0d4b5b, bytes=1264261952) at malloc.c:3154
#1  0x0000555555556b36 in editor_row_insert_char ()
#2  0x0000555555556e1f in editor_insert_char ()
#3  0x0000555555557e43 in editor_process_keypress ()
#4  0x0000555555557f55 in main ()
(gdb) 
>

I tried to integrate this code into another project, also got some of these. This may be my doing as I made a number of terminal changes but I suspect it is an error in the core code.

free or corruption (!prev)

I am going to give up on using this project for now, promising start but very buggy and unclear about its own memory management.

I built it with gcc (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0) Linux Mint with the following options:

-O0 -Wall -g -fstack-protector-all

This seem to highlight some more bugs.

@Arsenic-ATG Arsenic-ATG added the bug Something isn't working label Mar 14, 2022
@Arsenic-ATG
Copy link
Owner

yes, I can confirm that this is a bug in the core code itself.

thanks for reporting this bug, I am investigating.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants