ad-oliviero / uwufetch

A meme system info tool for Linux, based on nyan/uwu trend on r/linuxmasterrace.
GNU General Public License v3.0
747 stars 48 forks source link

[BUG] Segmentation fault if optimization is enabled #71

Closed ad-oliviero closed 3 years ago

ad-oliviero commented 3 years ago

Ok it's a little awkward to submit an issue to my own program. Anyway if uwufetch is compiled with -O3 or any other optimization it runs with a segmentation fault:

image

I don't know why is this happening, maybe it has something to do with parsing the config file.

Guaxinim5573 commented 3 years ago

This error is happening on line 262.

ad-oliviero commented 3 years ago

You are right, in my case the variable doesn't store anything (it should be the processor architecture), could you tell me if in your case is has some value? If for some reasons it is useless I'll remove it.

Guaxinim5573 commented 3 years ago

Yes, for me it has a value, it's x86_64.