Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault #2595

Open
FrenzyExists opened this issue May 22, 2024 · 6 comments · Fixed by #2599
Open

Segmentation fault #2595

FrenzyExists opened this issue May 22, 2024 · 6 comments · Fixed by #2599

Comments

@FrenzyExists
Copy link

Problem

image

Specs

image

Description

Attempted to both run the already compiled binary and also compile my own. Used the Fedora 36 instructions since 40 would not apply (and when i tested out of curiosity it did not worked).

Other

Can't uninstall it either

@kassoulet
Copy link

I have the same on Fedora 40.

Thread 1 "tic80" received signal SIGSEGV, Segmentation fault.
0x0000000000462fbe in isDevMode (studio=0xa551f0) at /home/gautier/src/TIC-80/src/studio/studio.c:1751
1751	    const char *devmode = tic_tool_metatag(tic->cart.code.data, "devmode", tic_get_script(tic)->singleComment);
(gdb) bt
#0  0x0000000000462fbe in isDevMode (studio=0xa551f0) at /home/gautier/src/TIC-80/src/studio/studio.c:1751
#1  0x0000000000463582 in processShortcuts (studio=0xa551f0) at /home/gautier/src/TIC-80/src/studio/studio.c:1863
#2  0x0000000000463bfa in renderStudio (studio=0xa551f0) at /home/gautier/src/TIC-80/src/studio/studio.c:2028
#3  0x00000000004646c3 in studio_tick (studio=0xa551f0, input=...) at /home/gautier/src/TIC-80/src/studio/studio.c:2259
#4  0x000000000045bdf2 in gpuTick () at /home/gautier/src/TIC-80/src/system/sdl/main.c:1716
#5  0x000000000045c4d5 in start (argc=1, argv=0x7fffffffdc48, folder=0x958000 <appFolder.4> "/home/gautier/.local/share/com.nesbox.tic/TIC-80/") at /home/gautier/src/TIC-80/src/system/sdl/main.c:1934
#6  0x000000000045c5e2 in main (argc=1, argv=0x7fffffffdc48) at /home/gautier/src/TIC-80/src/system/sdl/main.c:2081

@Skeptim
Copy link
Contributor

Skeptim commented May 23, 2024

Which version of TIC-80 is it?
That seems related to DevMode, do you have the same issue before and after this PR: #2581 ?

@kassoulet
Copy link

Yep, I confirm tic80 starts normally using commit d8c554f

nesbox added a commit that referenced this issue May 25, 2024
nesbox added a commit that referenced this issue May 25, 2024
@andreyorst
Copy link

still happens to me on current main (921d5e6) when loading a cart, for example, the config cart.

@nesbox nesbox reopened this Jun 3, 2024
@nesbox
Copy link
Owner

nesbox commented Jun 8, 2024

@andreyorst can't reproduce it, could you pls test CI binaries https://nightly.link/nesbox/TIC-80/workflows/build/main?
Thank you.

@andreyorst
Copy link

tried out the nightly build and the crash didn't happen. However, I tried rebuilding the current master, tested it after build in the build/bin without problems, then did make install to a local directory, and got the crash again.

So perhaps the language shared libraries are unavailable after make install?

The complete steps are:

  1. build, install
    cmake -DCMAKE_INSTALL_PREFIX=~/.local/ -DSDL_ALSA=On ..
    make install -j8
    
  2. run from the system menu
  3. load config
  4. run
  5. crash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants