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

Sporadic crashes when trying to open a file #24

Open
pgengler opened this issue Nov 22, 2014 · 2 comments
Open

Sporadic crashes when trying to open a file #24

pgengler opened this issue Nov 22, 2014 · 2 comments
Labels

Comments

@pgengler
Copy link
Owner

Sometimes (not always), when using tab completion to open a file into a new buffer, pinot crashes.

@pgengler pgengler added the bug label Nov 22, 2014
@pgengler
Copy link
Owner Author

Here's a GDB backtrace from one such crash:

(gdb) bt
#0  malloc_consolidate (av=av@entry=0x7ffff6d37760 <main_arena>) at malloc.c:4151
#1  0x00007ffff69f8878 in _int_malloc (av=0x7ffff6d37760 <main_arena>, bytes=1152) at malloc.c:3423
#2  0x00007ffff69fb230 in __GI___libc_malloc (bytes=1152) at malloc.c:2891
#3  0x0000000000430576 in nmalloc (howmuch=howmuch@entry=1152) at utils.cpp:431
#4  0x000000000043121c in display_string (buf=0x7c8308 "../do-code-exercise/scrape.txt", start_col=start_col@entry=0, len=160, dollars=dollars@entry=false) at winio.cpp:246
#5  0x00000000004317f6 in display_string (buf=..., start_col=start_col@entry=0, len=<optimized out>, dollars=dollars@entry=false) at winio.cpp:193
#6  0x0000000000420d8d in update_statusbar_line (curranswer=..., index=<optimized out>) at prompt.cpp:662
#7  0x0000000000422265 in get_prompt_string (actual=..., allow_tabs=allow_tabs@entry=true, allow_files=allow_files@entry=true, curranswer=..., history_list=history_list@entry=0x0,
    refresh_func=refresh_func@entry=0x434330 <edit_refresh()>, menu=menu@entry=64, list=list@entry=0x7fffffffd307) at prompt.cpp:768
#8  0x0000000000422a07 in do_prompt (allow_tabs=allow_tabs@entry=true, allow_files=allow_files@entry=true, menu=64, key=..., curranswer=..., history_list=history_list@entry=0x0,
    refresh_func=0x434330 <edit_refresh()>, msg=0x4398c0 "File to insert into new buffer [from %s] ") at prompt.cpp:918
#9  0x0000000000414864 in do_insertfile (execute=execute@entry=false) at files.cpp:1013
#10 0x0000000000414f7d in do_insertfile_void () at files.cpp:1190
#11 0x0000000000420473 in do_input () at pinot.cpp:1280
#12 0x0000000000406dc5 in main (argc=2, argv=0x7fffffffdb78) at pinot.cpp:2010

@pgengler
Copy link
Owner Author

One thing to note is that the crash occurs while tab-completing the filename, not while actually opening the file.

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

1 participant