Stack smashing detected
See original GitHub issueI use Diozero with provider mmap on RaspberryPi 4 with Raspbios 64 bit (arm64).
Since version 1.1.1 I encounter problems (versions up to 1.1.0 do work): Version 1.1.1:
WARN com.diozero.util.LibraryLoader.loadLibrary - Error loading library 'diozero-system-utils' from classpath, trying System.loadLibrary: /tmp/libdiozero-system-utils8754972271102907794.so: /tmp/libdiozero-system-utils8754972271102907794.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mis
match)
Version 1.1.7:
*** stack smashing detected ***: <unknown> terminated
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (7 by maintainers)
Top Results From Across the Web
c - Stack smashing detected
Emit extra code to check for buffer overflows, such as stack smashing attacks. This is done by adding a guard variable to functions...
Read more >What is the "Stack Smashing Detected" Error? | Scaler Topics
The Stack smashing detected error is caused during the execution of a program when there is a chance for buffer overflow.
Read more >Stack smashing debugging guide - Gentoo Wiki
Enable debugging symbols in your make.conf: · Disable positional-independent executable to make addresses reproducible and rebuild problematic package: · Enable ...
Read more >What does “*** stack smashing detected ***: terminated” mean ...
It means that some function in the program is being too greedy, and has tried to use more stack space than the amount...
Read more >Stack Smashing Detected Error in C
the stack smashing detected Error in C ... Usually, the compiler (we are talking about the GCC compiler here) generates this error to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ok, I can reproduce on Ubuntu 64-bit as well as RaspiOS 64-bit but not on 32-bit RaspiOS. The issue appears to be in the native I2C code. If you run with “-Ddiozero.i2c.javaraf” it uses the Java code instead and this worked for me. There must be a bug in the JNI I2C code - I’ll continue to investigate.
Hi @wilbertjoosen, this is a different issue and related to glibc version differences. Can you please raise as a separate issue.