Giter Site home page Giter Site logo

Segmentation Fault about st HOT 5 CLOSED

lukesmithxyz avatar lukesmithxyz commented on August 16, 2024 1
Segmentation Fault

from st.

Comments (5)

 avatar commented on August 16, 2024

GNU Debugger shows the following outpt

Starting program: /usr/local/bin/st
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Program received signal SIGSEGV, Segmentation fault.
tcache_get (tc_idx=9) at malloc.c:2943
2943 malloc.c: No such file or directory.

from st.

shumvgolove avatar shumvgolove commented on August 16, 2024

I've got similar error:

free(): invalid next size (normal)
Aborted (core dumped)

from st.

JohnnyVim avatar JohnnyVim commented on August 16, 2024

The problem is that the defaultbg value is set to 256, but there is no value for 256 in the colorname array.
There are two easy ways to fix this by editing the config.h file:

Option 1:
Assign a valid value to defaultbg in line 117. change unsigned int defaultbg = 256; to unsigned int defaultbg = 16; (16 would produce a black background color. You can choose a different color from the colorname array. Any number from 0 to 18 should work.)
Option 2:
Add back [255] = 0, before the "more colors can be added.." comment in line 105.

from st.

aasril avatar aasril commented on August 16, 2024

@JohnnyVim thanks. That solved the issue. What i did exactly was changing the value on line 117 to 0.

Worth to note that I expected to get black background because 0 refer to black, instead I get solarized theme background color. Not that I complained, by the way.

from st.

LukeSmithxyz avatar LukeSmithxyz commented on August 16, 2024

Sorry for not getting on this issue earlier, but it looks like you guys had converged on a fix. I've actually switched the background color to 0 now so this particular problem shouldn't be a problem on any other systems.

from st.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.