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 sending/receiving files segfaults on Raspberry Pi Model B #1512
Comments
Where did you get the glib downgrade patch from? |
On 21/03/2021 13:13, Licaon_Kter wrote:
Where did you get the glib downgrade patch from?
From Buster Backports:
<http://deb.debian.org/debian/pool/main/p/profanity/profanity_0.10.0-1~bpo10+1.debian.tar.xz>
It only changes two lines that query the date.
|
I don't have a Pi. @mwuttke97 will you work on this? |
On 22/03/2021 18:09, Michael Vetter wrote:
I don't have a Pi. @mwuttke97 <https://github.com/mwuttke97> will you
work on this?
I would appreciate some tips from C programmers, as I have no idea about
the nature of this segfault. I've already tried the -Wcast-align option.
I'm also curious whether someone else can reproduce it.
|
@pasis maybe you have an idea? |
@mwuttke97 maybe it would make sense to get in touch with some Debian ARM people too. |
Seeing the same on RPi1/256Mb How do I build a debug version if needed? |
On 23/03/2021 15:31, Licaon_Kter wrote:
Seeing the same on RPi1/256Mb
How do I build a debug version?
```
./configure-debug && make
```
|
@mwuttke97 did you run profanity under valgrind? |
We have |
Let's compile with this flag to detect memory erros in the debug build. See https://clang.llvm.org/docs/AddressSanitizer.html Regards: #1512
Sorry :-) Seems then we can't use valgrind since that does its own ASAN things. So maybe developers needs to set some flags by themselves to find these memory issues. https://fuzzing-project.org/tutorial-cflags.html might be of help. Regards: #1512
Pretty much the same output, right?
...built debug, gdb, omemo sendfile |
Yep |
Here's the assembly code of the two topmost functions on the stack: https://gist.github.com/mwuttke97/fff6cd6d776d925216a2874eaf41878b |
@licaon-kter: In the MUC, optmzr proposed to add the option
|
@mwuttke97: the root cause is that @jubalh To fix this and avoid in the future, config.h must be included in all(!) C files as the 1st header. |
So that off_t is defined in all files (so far http_upload.c and http_download.c too) the same way. Fix #1512
Tested by @mwuttke97, feedback via MUC. |
Confirmed here too, thanks :) |
The commands
/sendfile
and/url save
commands segfault on my Raspberry Pi.Expected Behavior
It should encrypt/decrypt and send/receive the file.
Current Behavior
Segmentation fault. Stack trace:
Note that
gcry_res = NULL
, even though this ought to be a pointer to a local variable from the caller (_add_omemo_stream
).The same segfault happens if I replace
*gcry_res = aes256gcm_crypt_file
with a constant assignment.Possible Solution
Steps to Reproduce (for bugs)
Context
I'd like to send and receive files on my Raspberry Pi.
Environment
Hardware info:
Software info:
Raspbian GNU/Linux 10
libgcrypt20/stable,now 1.8.4-5 armhf
libsignal-protocol-c2/stable,now 2.3.1+git20171007-3 armhf
(official Debian buster package)Libstrophe 0.10.1
-- self-compilledprofanity
on git master (withuse-glib-2.58.3.patch
applied)The text was updated successfully, but these errors were encountered: