Dr-Noob / cpufetch

Simple yet fancy CPU architecture fetching tool
GNU General Public License v2.0
1.88k stars 103 forks source link

"munmap_chunk(): invalid pointer" when executed on PowerPC 970 #153

Closed lukezenoob closed 1 year ago

lukezenoob commented 2 years ago

While this is a small project and I don't want to bother you with things like this, I am very eager to get this working on unusual hardware. Very happy you included PowerPC support.

The CPU in question is a dual-core, big endian, 64-bit PowerPC 970. It is running Gentoo Linux with GCC 11.3.

I receive the error munmap_chunk(): invalid pointer when running cpufetch. It compiles with no problem, i simply cannot execute it. --debug returns the same thing as well.

Dr-Noob commented 2 years ago

Thanks for reporting the issue. Can you please follow these guidelines and provide the information required so I can understand where the issue is?

Thanks!

lukezenoob commented 2 years ago

Hi, sorry, i've provided as much info as possible. Neither of the options worked. Perhaps it is an endianness problem?

Dr-Noob commented 2 years ago

Running valgrind should give some output. Did you try what's under "Stacktrace option 1 (best)" in the guidelines? "Stacktrace option 2" would also be helpful.

Without further information is impossible to fix the issue, since I don't know what is causing the failure.

Dr-Noob commented 1 year ago

I have applied several patches and merged them into master branch. Can you try again to check if cpufetch works now?

lukezenoob commented 1 year ago

I picked up an iMac G5 and version 1.04 is working on it! Not 1.02, which is the Gentoo ebuild i got it from. Screen Shot 2023-05-15 at 7 48 37 PM

Dr-Noob commented 1 year ago

Awesome!

It's expected to work under 1.04 but not under 1.02 since the bug was fixed in 1.04 (it confirms that the issue was the same as the one reported in #178). Closing now.