View Issue Details

IDProjectCategoryView StatusLast Update
0000841LDMud 3.5Runtimepublic2018-01-30 04:59
Reporterabathur Assigned ToGnomi  
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionfixed 
Target Version3.5.0Fixed in Version3.5.0 
Summary0000841: Hard crash with inline closures
DescriptionWe ran into a hard crash earlier this week while I've been working on a representative LPC test case for developing a syntax highlighter (this was on 3.3.719). Today I had time to do some more work on the syntax test and was able to reproduce a crash in 3.5.0.3 (more precisely: Current Commit: 3.5.0.3-8-g874d088). I assume this is the same crash on both versions, but I can't swear by that.

I took a while this afternoon to drill down to a pretty minimal test case, which is attached (yes; even though the closures don't reference each other, both are necessary.) Also found this in the log:

2015.06.06 22:51:52 allocation from free list for 80 bytes: block 0x2fb39ae (user 0x2fb39be) magic match failed, expected 624a92f0, found 624a92f00000
Steps To Reproduce1.) find_and_load_object(closure_crash.c)
2.) wait a few seconds (the two runs I did with this final draft of the test case took 3-4 seconds to actually crash).

Note: assumes your MUD will apply reset() in order to self-destruct. If not you may need to modify the file or use some other means of destructing it.
TagsNo tags attached.

Activities

abathur

2015-06-07 01:19

reporter  

closure_crash.c (141 bytes)

guest

2015-06-18 22:17

viewer   ~0002257

Fix committed in revision f6469558302de635caf768dd561054d7555baf73 to master branch (see changeset 999 for details). Thank you for reporting!

Gnomi

2015-06-18 22:36

manager   ~0002258

Thanks for the test case. With that file the bug was pretty easy to find.

zesstra

2015-06-18 23:04

administrator   ~0002259

Should we port it to 3.3?

Gnomi

2015-06-19 18:54

manager   ~0002260

Yes, at a first glance seems to be the same on 3.3, so I'll fix it there, too.

Gnomi

2018-01-29 19:59

manager   ~0002308

Fix committed in revision f6469558302de635caf768dd561054d7555baf73 to master branch (see changeset 1394 for details). Thank you for reporting!

Gnomi

2018-01-29 22:57

manager   ~0002359

Fix committed in revision f6469558302de635caf768dd561054d7555baf73 to master branch (see changeset 2721 for details). Thank you for reporting!

Gnomi

2018-01-30 04:59

manager   ~0002410

Fix committed in revision f6469558302de635caf768dd561054d7555baf73 to master branch (see changeset 3807 for details). Thank you for reporting!

Issue History

Date Modified Username Field Change
2015-06-07 01:19 abathur New Issue
2015-06-07 01:19 abathur File Added: closure_crash.c
2015-06-18 21:34 Gnomi Assigned To => Gnomi
2015-06-18 21:34 Gnomi Status new => assigned
2015-06-18 22:17 Source_changeset_attached => ldmud.git master f6469558
2015-06-18 22:17 guest Note Added: 0002257
2015-06-18 22:17 guest Status assigned => resolved
2015-06-18 22:17 guest Resolution open => fixed
2015-06-18 22:36 Gnomi Note Added: 0002258
2015-06-18 22:58 zesstra Project LDMud => LDMud 3.5
2015-06-18 22:58 zesstra Fixed in Version => 3.5.0
2015-06-18 22:58 zesstra Target Version => 3.5.0
2015-06-18 23:04 zesstra Note Added: 0002259
2015-06-19 18:54 Gnomi Note Added: 0002260
2018-01-29 19:59 Gnomi Source_changeset_attached => ldmud.git master f6469558
2018-01-29 19:59 Gnomi Note Added: 0002308
2018-01-29 22:57 Gnomi Source_changeset_attached => ldmud.git master f6469558
2018-01-29 22:57 Gnomi Note Added: 0002359
2018-01-30 04:59 Gnomi Source_changeset_attached => ldmud.git master f6469558
2018-01-30 04:59 Gnomi Note Added: 0002410