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

omemo fingerprint autocompletion leads to crash #1117

Closed
jubalh opened this issue Jun 6, 2019 · 0 comments · Fixed by #1118
Closed

omemo fingerprint autocompletion leads to crash #1117

jubalh opened this issue Jun 6, 2019 · 0 comments · Fixed by #1118
Assignees
Labels
Milestone

Comments

@jubalh
Copy link
Member

jubalh commented Jun 6, 2019

#0  0x00007f5b0f89bd8b in __GI_raise (sig=sig@entry=6)
    at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007f5b0f885549 in __GI_abort () at abort.c:79
#2  0x00007f5b0f885421 in __assert_fail_base
    (fmt=0x7f5b0f9ebf48 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x4a86e6 "roster != NULL", file=0x4a86c0 "src/xmpp/roster_list.c", line=498, function=<optimized out>)
    at assert.c:92
#3  0x00007f5b0f894262 in __GI___assert_fail
    (assertion=0x4a86e6 "roster != NULL", file=0x4a86c0 "src/xmpp/roster_list.c", line=498, function=0x4a8910 <__PRETTY_FUNCTION__.12661> "roster_contact_autocomplete") at assert.c:101
#4  0x000000000042e309 in roster_contact_autocomplete
    (search_str=0x7fffe2854c70 "", previous=0) at src/xmpp/roster_list.c:498
#5  0x000000000048833c in autocomplete_param_with_func
    (input=0x23dfc90 "/omemo fingerprint ", command=0x4c71f3 "/omemo fingerprint", func=0x42e2d5 <roster_contact_autocomplete>, previous=0) at src/tools/autocomplete.c:273
#6  0x0000000000482d97 in _omemo_autocomplete
    (window=0x24ed0b0, input=0x23dfc90 "/omemo fingerprint ", previous=0)
    at src/command/cmd_ac.c:2188
#7  0x0000000000481142 in _cmd_ac_complete_params
    (window=0x24ed0b0, input=0x23dfc90 "/omemo fingerprint ", previous=0)
    at src/command/cmd_ac.c:1539
#8  0x000000000047f4ae in cmd_ac_complete
    (window=0x24ed0b0, input=0x23dfc90 "/omemo fingerprint ", previous=0)
    at src/command/cmd_ac.c:991
#9  0x0000000000453a1b in _inp_rl_tab_handler (count=1, key=9) at src/ui/inputwin.c:534
#10 0x00007f5b0faf4276 in _rl_dispatch_subseq
    (key=9, map=<optimized out>, got_subseq=<optimized out>) at ../readline.c:862
#11 0x00007f5b0faf4771 in _rl_dispatch (key=<optimized out>, map=<optimized out>)
    at ../readline.c:805
#12 0x00007f5b0faf483d in readline_internal_char () at ../readline.c:639
#13 0x00007f5b0fb0ec25 in rl_callback_read_char () at ../callback.c:262
#14 0x0000000000452e25 in inp_readline () at src/ui/inputwin.c:166
#15 0x0000000000429eae in prof_run (log_level=0x4cd810 "INFO", account_name=0x0)
    at src/profanity.c:112
#16 0x00000000004a704e in main (argc=1, argv=0x7fffe28552b8) at src/main.c:170
@jubalh jubalh added the bug label Jun 6, 2019
@jubalh jubalh added this to the 0.7.0 milestone Jun 6, 2019
@jubalh jubalh self-assigned this Jun 6, 2019
jubalh added a commit that referenced this issue Jun 6, 2019
Some of the omemo commands depend on the roster being present.
Several of those functions call `assert()` if that's not the case.

Modify omemo autocompletion in such a way that only things that don't
need the roster will be completed. Only works on first level.

When typing `/omemo` it will still complete to `/omemo start` but not
offer suggestions for that, but print a message that you need to be
connected.

Fix #1117
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant