question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Stack smashing detected

See original GitHub issue

I 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:closed
  • Created 2 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
mattjlewiscommented, Mar 31, 2021

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.

0reactions
mattjlewiscommented, Oct 2, 2021

Hi @wilbertjoosen, this is a different issue and related to glibc version differences. Can you please raise as a separate issue.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found