Git Product home page Git Product logo

Comments (1)

tung avatar tung commented on August 22, 2024

Got a similar segfault, where rloc_pos_ok sends goodpos the level global:

Program received signal SIGSEGV, Segmentation fault.
0x081d0d8a in goodpos ()
(gdb) backtrace
#0  0x081d0d8a in goodpos ()
#1  0x081d388d in rloc_pos_ok ()
#2  0x081d3f24 in rloc ()
#3  0x081b890c in shkinit ()
#4  0x081b8bdb in stock_room ()
#5  0x081c7a34 in fill_room ()
#6  0x081cbc72 in sp_level_coder ()
#7  0x081cbf99 in load_special ()
#8  0x0812feec in makemaz ()
#9  0x0812a8df in makelevel ()
#10 0x0812c1e9 in mklev ()
#11 0x080a5db5 in goto_level ()
#12 0x080cc4a0 in prev_level ()
#13 0x080a5632 in doup ()
#14 0x080ecc7b in domove ()
#15 0x080f469b in domovecmd ()
#16 0x0808a697 in do_command ()
#17 0x080675ec in command_input ()
#18 0x080679c1 in nh_command ()
#19 0x08235e59 in nhnet_command ()
#20 0x0805e837 in commandloop ()
#21 0x0805ec68 in rungame ()
#22 0x0804ad5a in mainmenu ()
#23 0x0804ae7c in main ()

I think the new level compiler calls functions that use level before it's assigned properly as the return value of mklev, causing these intermittent segfaults. Setting level pre-emptively in the special level coder should solve this.

from dynahack.

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.