Skip to content

Instantly share code, notes, and snippets.

@hpk42
Created September 17, 2019 15:33
Show Gist options
  • Save hpk42/8f7f26b9b443d109bb6f207d1e2f9c60 to your computer and use it in GitHub Desktop.
Save hpk42/8f7f26b9b443d109bb6f207d1e2f9c60 to your computer and use it in GitHub Desktop.
* thread #14: tid = 15760, 0x00007ffff08bc9f6 capi.abi3.so`dc_perform_imap_jobs + 358 at lib.rs:415, name = 'python', stop reason = signal SIGILL: illegal instruction operand
frame #0: 0x00007ffff08bc9f6 capi.abi3.so`dc_perform_imap_jobs + 358 at lib.rs:415
412 }
413
414 #[no_mangle]
-> 415 pub unsafe extern "C" fn dc_perform_imap_jobs(context: *mut dc_context_t) {
416 if context.is_null() {
417 eprintln!("ignoring careless call to dc_perform_imap_jobs()");
418 return;
@hpk42
Copy link
Author

hpk42 commented Sep 17, 2019

    lp.sec("ac2: wait for incoming location message")
    ev = ac2._evlogger.get_matching("DC_EVENT_MSGS_CHANGED")
    chat2 = ac2.create_chat_by_message(ev[2])
    for contact in chat2.get_contacts():
        if contact.addr == ac1.get_config("addr"):
            break
    else:
        assert 0, "could not find contact!"
  locations = chat2.get_locations(contact)

E AttributeError: 'Chat' object has no attribute 'get_locations'

tests/test_account.py:681: AttributeError
=================== 1 failed, 48 deselected in 8.64 seconds ====================
Process 15735 stopped

  • thread #14: tid = 15760, 0x00007ffff08bc9f6 capi.abi3.sodc_perform_imap_jobs + 358 at lib.rs:415, name = 'python', stop reason = signal SIGILL: illegal instruction operand frame #0: 0x00007ffff08bc9f6 capi.abi3.sodc_perform_imap_jobs + 358 at lib.rs:415
    412 }
    413
    414 #[no_mangle]
    -> 415 pub unsafe extern "C" fn dc_perform_imap_jobs(context: *mut dc_context_t) {
    416 if context.is_null() {
    417 eprintln!("ignoring careless call to dc_perform_imap_jobs()");
    418 return;
    (lldb)

@hpk42
Copy link
Author

hpk42 commented Sep 17, 2019

currently writing location-streaming tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment