# Segmentation Fault on Finalizing Items

**URL:** <https://discourse.cataclysmdda.org/t/segmentation-fault-on-finalizing-items/23367>\
**Category:** The Garage\
**Created:** [April 22, 2020, 2:57pm UTC](https://discourse.cataclysmdda.org/t/segmentation-fault-on-finalizing-items/23367 "2020-04-22T14:57:27Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![paul\_blazek](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/paul_blazek/32/7949_2.png) [@paul\_blazek](https://discourse.cataclysmdda.org/u/paul_blazek)\
**Post date:** [April 22, 2020, 2:57pm UTC](https://discourse.cataclysmdda.org/t/segmentation-fault-on-finalizing-items/23367/1 "2020-04-22T14:57:27Z")

</div>

I’ve just created a new world and am trying to start a random character:

![image](https://us1.discourse-cdn.com/flex016/uploads/cataclysmdda/original/2X/1/1be22ec4918119a09be52b2bcb764e973b701f60.png)  
NOTE: I am using about 200 mods. I’m sure this factors into the problem somewhere, but I got things working in the previous edition. Is this an out of memory error?

Crash Log:  
The program has crashed.  
See the log file for a stack trace.  
CRASH LOG FILE: ./config/crash.log  
VERSION: 0.E  
TYPE: Signal  
MESSAGE: SIGSEGV: Segmentation fault  
STACK TRACE:

#0  
(dbghelp: @ 0x620c16[cataclysm-tiles.exe+0x220c16]),  
(libbacktrace: Z21debug\_write\_backtraceRSo+0x56@0x620c16),  
(libbacktrace: 0x620c16 [unknown src]:0 [unknown func]),  
#1  
(dbghelp: @ 0x605d1f[cataclysm-tiles.exe+0x205d1f]),  
(libbacktrace: log\_crash+0x4af@0x605d1f),  
(libbacktrace: 0x605d1f [unknown src]:0 [unknown func]),  
#2  
(dbghelp: @ 0x6069f2[cataclysm-tiles.exe+0x2069f2]),  
(libbacktrace: signal\_handler+0x32@0x6069f2),  
(libbacktrace: 0x6069f2 [unknown src]:0 [unknown func]),  
#3  
(dbghelp: SMPEG\_error+0x4b034@0x10521d0[cataclysm-tiles.exe+0xc521d0]),  
(libbacktrace: gnu\_exception\_handler+0x70@0x10521d0),  
(libbacktrace: 0x10521d0 /home/narc/src/mxe/tmp-gcc-x86\_64-w64-mingw32.static/gcc-5.4.0.build\_/mingw-w64-v5.0.2/mingw-w64-crt/crt/crt\_handler.c:223 \_gnu\_exception\_handler),  
#4  
(dbghelp: \_C\_specific\_handler+0x98@0x7ffba6418048[msvcrt.dll+0x28048]),  
(backtrace\_syminfo failed: errno = -1, msg = no symbol table in PE/COFF executable),  
(backtrace\_pcinfo failed: errno = -1, msg = no debug info in PE/COFF executable),  
#5  
(dbghelp: \_chkstk+0x11f@0x7ffba68e11cf[ntdll.dll+0xa11cf]),  
(backtrace\_syminfo failed: errno = -1, msg = no symbol table in PE/COFF executable),  
(backtrace\_pcinfo failed: errno = -1, msg = no debug info in PE/COFF executable),  
#6  
(dbghelp: RtlRaiseException+0x399@0x7ffba68aa209[ntdll.dll+0x6a209]),  
(backtrace\_syminfo failed: errno = -1, msg = no symbol table in PE/COFF executable),  
(backtrace\_pcinfo failed: errno = -1, msg = no debug info in PE/COFF executable),  
#7  
(dbghelp: KiUserExceptionDispatcher+0x2e@0x7ffba68dfe3e[ntdll.dll+0x9fe3e]),  
(backtrace\_syminfo failed: errno = -1, msg = no symbol table in PE/COFF executable),  
(backtrace\_pcinfo failed: errno = -1, msg = no debug info in PE/COFF executable),  
#8  
(dbghelp: @ 0x870ba5[cataclysm-tiles.exe+0x470ba5]),  
(libbacktrace: ZN12Item\_factory12finalize\_preER5itype+0x1915@0x870ba5),  
(libbacktrace: 0x870ba5 [unknown src]:0 [unknown func]),  
#9  
(dbghelp: @ 0x879d6f[cataclysm-tiles.exe+0x479d6f]),  
(libbacktrace: ZN12Item\_factory8finalizeEv+0x7f@0x879d6f),  
(libbacktrace: 0x879d6f [unknown src]:0 [unknown func]),  
#10  
(dbghelp: @ 0x7c3816[cataclysm-tiles.exe+0x3c3816]),  
(libbacktrace: ZN17DynamicDataLoader20finalize\_loaded\_dataER10loading\_ui+0x10a6@0x7c3816),  
(libbacktrace: 0x7c3816 [unknown src]:0 [unknown func]),  
#11  
(dbghelp: @ 0x70ed4b[cataclysm-tiles.exe+0x30ed4b]),  
(libbacktrace: ZN4game19load\_world\_modfilesER10loading\_ui+0x61b@0x70ed4b),  
(libbacktrace: 0x70ed4b [unknown src]:0 [unknown func]),  
#12  
(dbghelp: @ 0x73d1e5[cataclysm-tiles.exe+0x33d1e5]),  
(libbacktrace: ZN4game5setupEv+0xa5@0x73d1e5),  
(libbacktrace: 0x73d1e5 [unknown src]:0 [unknown func]),  
#13  
(dbghelp: @ 0x98e661[cataclysm-tiles.exe+0x58e661]),  
(libbacktrace: ZN9main\_menu17new\_character\_tabEv+0x1521@0x98e661),  
(libbacktrace: 0x98e661 [unknown src]:0 [unknown func]),  
#14  
(dbghelp: @ 0x993d9a[cataclysm-tiles.exe+0x593d9a]),  
(libbacktrace: ZN9main\_menu14opening\_screenEv+0x87a@0x993d9a),  
(libbacktrace: 0x993d9a [unknown src]:0 [unknown func]),  
#15  
(dbghelp: IMG\_LoadWEBP\_RW+0x67ab0b@0x17beb4b[cataclysm-tiles.exe+0x13beb4b]),  
(libbacktrace: main+0x151b@0x17beb4b),  
(libbacktrace: 0x17beb4b [unknown src]:0 [unknown func]),  
#16  
(dbghelp: @ 0x4013ed[cataclysm-tiles.exe+0x13ed]),  
(libbacktrace: _tmainCRTStartup+0x23d@0x4013ed),  
(libbacktrace: 0x4013ed /home/narc/src/mxe/tmp-gcc-x86\_64-w64-mingw32.static/gcc-5.4.0.build_/mingw-w64-v5.0.2/mingw-w64-crt/crt/crtexe.c:336 \__tmainCRTStartup),  
 #17  
(dbghelp: @ 0x4014fb[cataclysm-tiles.exe+0x14fb]),  
(libbacktrace: WinMainCRTStartup+0x1b@0x4014fb),  
(libbacktrace: 0x4014fb /home/narc/src/mxe/tmp-gcc-x86\_64-w64-mingw32.static/gcc-5.4.0.build_/mingw-w64-v5.0.2/mingw-w64-crt/crt/crtexe.c:186 WinMainCRTStartup),  
#18  
(dbghelp: BaseThreadInitThunk+0x14@0x7ffba4907bd4[KERNEL32.DLL+0x17bd4]),  
(backtrace\_syminfo failed: errno = -1, msg = no symbol table in PE/COFF executable),  
(backtrace\_pcinfo failed: errno = -1, msg = no debug info in PE/COFF executable),  
#19  
(dbghelp: RtlUserThreadStart+0x21@0x7ffba68ace51[ntdll.dll+0x6ce51]),  
(backtrace\_syminfo failed: errno = -1, msg = no symbol table in PE/COFF executable),  
(backtrace\_pcinfo failed: errno = -1, msg = no debug info in PE/COFF executable),  
NOTE: I’ve added a space after each @ in the crash file to prevent discourse from thinking I’m mentioning users.

The program has crashed.  
See the log file for a stack trace.  
Anyone know what is causing this and/or the solution?  
Thanks to anyone who replies!

---

<div class="post-metadata">

**Author:** ![Zhilkin](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/zhilkin/32/3749_2.png) [@Zhilkin](https://discourse.cataclysmdda.org/u/Zhilkin)\
**Post date:** [April 22, 2020, 5:51pm UTC](https://discourse.cataclysmdda.org/t/segmentation-fault-on-finalizing-items/23367/2 "2020-04-22T17:51:37Z")

</div>

You are using some incompatible mod.

Upload your world and mod folders somewhere.

---

<div class="post-metadata">

**Author:** ![paul\_blazek](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/paul_blazek/32/7949_2.png) [@paul\_blazek](https://discourse.cataclysmdda.org/u/paul_blazek)\
**Post date:** [April 22, 2020, 5:55pm UTC](https://discourse.cataclysmdda.org/t/segmentation-fault-on-finalizing-items/23367/3 "2020-04-22T17:55:28Z")

</div>

I’ve been editing the mods so that they work together & with the newer edition.  
What causes the Segmentation fault error and how do I fix it?

Here is my mods.json file:  
[

“dda”,

“aftershock”,

“aft”,

“crt\_expansion”,

“EngineeringEssentials”,

“M.A.G.Armory”,

“magiclysm”,

“Nechronica\_Redux”,

“mutant\_npcs”,

“psychiclysm”,

“collectablemod”,

“XEAS”,

“rice”,

“adv\_gear”,

“a\_mutated\_arsenal”,

“Summons\_animals”,

“ArmUpPAUtil”,

“ArmUpSurvEx”,

“arsenal\_breach”,

“blazemod”,

“Tanks”,

“battletech”,

“bimjakker”,

“bioco”,

“Bionic\_Space\_Expander”,

“bio\_recipes”,

“Bootleg\_Walkers”,

“bsa\_gel\_wall”,

“bsam”,

“CBM\_Arms”,

“camping\_tools”,

“climate\_defying\_farming”,

“Cloth Rollmat”,

“SD\_Magcrafting”,

“dried\_fruits”,

“dual\_wield\_22”,

“Medieval\_Stuff”,

“Dumb Sabaton Memes Mod”,

“ExArch”,

“Alchemic\_Bomb\_ALC”,

“fallout”,

“Uekibati\_mod”,

“Daizu\_mod”,

“Flour\_mod”,

“antifunguskit”,

“guncotton”,

“pistol\_cross”,

“eps\_cbm”,

“light\_ammo”,

“More tea leaf”,

“MST\_Extra”,

“materials\_plants”,

“extgear”,

“demon\_spider\_a”,

“modern\_weapon”,

“More\_Armors”,

“more\_survive\_notes”,

“mo\_veh”,

“NBC Items Pack 09.2”,

“craftgp”,

“pipe\_revolver\_mod”,

“Pix’s Mutations”,

“pizza\_delivery”,

“porawep”,

“Power\_Armor\_Additions”,

“pressure\_weapon”,

“offal-sausage”,

“rf\_food\_keeper”,

“futurearmory”,

“space\_heater”,

“Survivors\_Lost\_item”,

“cool\_mod”,

“VermilionMod”,

“thermal\_ups”,

“Thrown”,

“tool\_bundle”,

“with\_extra\_mushrooms”,

“can\_mod”,

“anti\_fungal\_gears”,

“homemade\_fungicide”,

“crazy\_labs”,

“DinoMod”,

“DracoDogMod”,

“DracoPigMod”,

“modular\_turrets\_remake”,

“mo\_insects”,

“mo\_monsters”,

“mutant\_animals”,

“PK\_REBALANCE”,

“mutant\_insects\_PK”,

“secronom”,

“alt\_map\_key”,

“ks\_variety\_pack”,

“Cata++”,

“convenientconstructions”,

“even\_more\_mutations”,

“food\_irradiator”,

“locked\_locker”,

“Mining\_Mod”,

“more\_survivor\_stuff”,

“mug\_NPCs”,

“my\_sweet\_cataclysm”,

“MMA”,

“recruitment\_options”,

“cb12\_random\_stuff”,

“vamp\_stuff”,

“Arcana”,

“vamp\_stuff+arcana”,

“basement\_extension”,

“P\_Caches”,

“Dorf\_Life”,

“Food\_crops”,

“cityside”,

“More\_crops”,

“morlock\_village”,

“oa\_early\_game\_mutations\_mod”,

“Ore\_crops”,

“randomized\_mall”,

“trailerpark”,

“Airdrops\_n\_Alchemy”,

“ammo\_boxes”,

“Arts’ Guns”,

“battle\_maid”,

“BayonetCharge!”,

“cb12\_more\_scenarios”,

“Superhero”,

“GOV\_BANDITS”,

“M\_NM\_wpns”,

“crazypets”,

“irradiate-food”,

“incinerator”,

“jury\_rigged\_robots”,

“mad\_cyber”,

“Make\_a\_Lot\_of\_Items\_Mod”,

“nanites”,

“Red’s Odd Additions”,

“beamswordmod”,

“shardsOtherStuff”,

“egg\_eggplant\_plants\_mod”,

“cursed\_thighs”,

“Touyou”,

“Touhou”,

“Xeno’s SAS4”,

“xtal”,

“winning\_dda”,

“MkMaxxi’s Gunslinger Mod”,

“More\_Military”,

“more\_char\_creation”,

“Mutation\_Changes”,

“necro\_find”,

“Odds\_N\_Ends”,

“StatsThroughSkills”,

“tamebugs”,

“blaze\_extension\_M2”,

“SD\_Winterclothes”,

“ZSFIXED\_cddaxp”

]

---

<div class="post-metadata">

**Author:** ![anothersimulacrum](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/anothersimulacrum/32/10770_2.png) [@anothersimulacrum](https://discourse.cataclysmdda.org/u/anothersimulacrum)\
**Post date:** [April 22, 2020, 6:43pm UTC](https://discourse.cataclysmdda.org/t/segmentation-fault-on-finalizing-items/23367/4 "2020-04-22T18:43:30Z")

</div>

Sorry, but you have so many mods there’s basically no way anyone can debug this - something is happening during item finalization that causes a crash.  
I’d advise you to go through your mod list and disable them one by one to narrow down what could be causing a crash.

---

<div class="post-metadata">

**Author:** ![kevin.granade](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/kevin.granade/32/1316_2.png) [@kevin.granade](https://discourse.cataclysmdda.org/u/kevin.granade)\
**Post date:** [April 22, 2020, 6:45pm UTC](https://discourse.cataclysmdda.org/t/segmentation-fault-on-finalizing-items/23367/5 "2020-04-22T18:45:51Z")

</div>

My suggestion is to bisect your mods to at least narrow down the one triggering the issue.  
Disable half of them and see if it still happens, if it does, cut that list in half, if not switch to the other half.  
Repeat.

That should get you one mod in about 8 atempts.

---

<div class="post-metadata">

**Author:** ![paul\_blazek](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/paul_blazek/32/7949_2.png) [@paul\_blazek](https://discourse.cataclysmdda.org/u/paul_blazek)\
**Post date:** [April 22, 2020, 6:52pm UTC](https://discourse.cataclysmdda.org/t/segmentation-fault-on-finalizing-items/23367/6 "2020-04-22T18:52:22Z")

</div>

Thanks!  
I was hoping there was another way to debug things to determine the exact problem, but this will work fine.

---

<div class="post-metadata">

**Author:** ![paul\_blazek](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/paul_blazek/32/7949_2.png) [@paul\_blazek](https://discourse.cataclysmdda.org/u/paul_blazek)\
**Post date:** [April 23, 2020, 5:25pm UTC](https://discourse.cataclysmdda.org/t/segmentation-fault-on-finalizing-items/23367/7 "2020-04-23T17:25:18Z")

</div>

I’ve pinpointed the two mods (fallout & More\_Tea\_Leaf) that were breaking the game. I also have a rough idea of what is causing the problem.

Both of the mods give this error on the first stage of loading:  
DEBUG : Received unrecognized iuse function CAFF, using iuse::none instead

FUNCTION : use\_function Item\_factory::usage\_from\_string(const string&) const  
FILE : src/item\_factory.cpp  
LINE : 2871

Not sure what CAFF is, but I’m removing all references to it to see if that fixes the mods.  
Seems like a minor bug in DDA that using iuse::none breaks the game.

---

<div class="post-metadata">

**Author:** ![paul\_blazek](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/paul_blazek/32/7949_2.png) [@paul\_blazek](https://discourse.cataclysmdda.org/u/paul_blazek)\
**Post date:** [April 23, 2020, 5:30pm UTC](https://discourse.cataclysmdda.org/t/segmentation-fault-on-finalizing-items/23367/8 "2020-04-23T17:30:55Z")

</div>

Success! I’ve remove all references to CAFF and both of the mods work now!

---

<div class="post-metadata">

**Author:** ![Kenan](https://avatars.discourse-cdn.com/v4/letter/k/e495f1/32.png) [@Kenan](https://discourse.cataclysmdda.org/u/Kenan)\
**Post date:** [April 23, 2020, 5:31pm UTC](https://discourse.cataclysmdda.org/t/segmentation-fault-on-finalizing-items/23367/9 "2020-04-23T17:31:51Z")

</div>

@paul_blazek  
Use the latest Fallout and More\_Tea\_Leaf from @TheGoatgod in [https://github.com/TheGoatGod/Goats-Mod-Compilation](https://github.com/TheGoatGod/Goats-Mod-Compilation) , i’ve fixed these by removing CAFF and fixing More\_Tea\_Leaf

What’s causing the issue for you is PK\_Rebalancing, i’m still looking for the fix, it will take some time, i’m using 167 mods and **exactly** PK\_rebalancing causes this

---

<div class="post-metadata">

**Author:** ![Kenan](https://avatars.discourse-cdn.com/v4/letter/k/e495f1/32.png) [@Kenan](https://discourse.cataclysmdda.org/u/Kenan)\
**Post date:** [April 23, 2020, 8:55pm UTC](https://discourse.cataclysmdda.org/t/segmentation-fault-on-finalizing-items/23367/10 "2020-04-23T20:55:04Z")

</div>

Copy and paste this file - _ **drop.json** _ to _ **PKs\_Rebalancing-master/items** _ and overwrite the _ **drop.json** _ file, this will make the mod work and fix the segmentation fault errors  
[https://mega.nz/file/qV9lwJjR#aeZtLLAh8AOL6fPQQqzMud2Gz8-2J6z09GcXN9ynjQc](https://mega.nz/file/qV9lwJjR#aeZtLLAh8AOL6fPQQqzMud2Gz8-2J6z09GcXN9ynjQc)

---

<div class="post-metadata">

**Author:** ![paul\_blazek](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/paul_blazek/32/7949_2.png) [@paul\_blazek](https://discourse.cataclysmdda.org/u/paul_blazek)\
**Post date:** [April 23, 2020, 9:02pm UTC](https://discourse.cataclysmdda.org/t/segmentation-fault-on-finalizing-items/23367/11 "2020-04-23T21:02:57Z")

</div>

Thanks for helping! Everything is working again!

---

<div class="post-metadata">

**Author:** ![TheGoatgod](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/thegoatgod/32/8026_2.png) [@TheGoatgod](https://discourse.cataclysmdda.org/u/TheGoatgod)\
**Post date:** [April 24, 2020, 9:59am UTC](https://discourse.cataclysmdda.org/t/segmentation-fault-on-finalizing-items/23367/12 "2020-04-24T09:59:29Z")

</div>

if this was in my compilation i must of removed it, this will be in 0.6 update or download latest ([unofficial](https://github.com/TheGoatGod/Goats-Mod-Compilation))

---

<div class="post-metadata">

**Author:** ![TheGoatgod](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/thegoatgod/32/8026_2.png) [@TheGoatgod](https://discourse.cataclysmdda.org/u/TheGoatgod)\
**Post date:** [April 24, 2020, 10:02am UTC](https://discourse.cataclysmdda.org/t/segmentation-fault-on-finalizing-items/23367/13 "2020-04-24T10:02:24Z")

</div>

could i get the mods that you have eddited for experimental? it will help my mod pack and other users. and if you come across these errors can you post them here [issues](https://github.com/TheGoatGod/Goats-Mod-Compilation/issues/new/choose)

---

<div class="post-metadata">

**Author:** ![paul\_blazek](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/paul_blazek/32/7949_2.png) [@paul\_blazek](https://discourse.cataclysmdda.org/u/paul_blazek)\
**Post date:** [April 24, 2020, 2:44pm UTC](https://discourse.cataclysmdda.org/t/segmentation-fault-on-finalizing-items/23367/14 "2020-04-24T14:44:20Z")

</div>

I don’t remember which mods I’ve edited previously (I had them previously edited for the experimental 10206 release), in order to fix things to Edition E I do remember making tedious changes to spell format in secronom. Do you want all the mods as a zip or just secronom? (or some other grouping)

---

<div class="post-metadata">

**Author:** ![TheGoatgod](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/thegoatgod/32/8026_2.png) [@TheGoatgod](https://discourse.cataclysmdda.org/u/TheGoatgod)\
**Post date:** [April 24, 2020, 2:59pm UTC](https://discourse.cataclysmdda.org/t/segmentation-fault-on-finalizing-items/23367/15 "2020-04-24T14:59:20Z")

</div>

/mods/  
/secronom  
ill work the rest out, thanks. are the mods for experimental now or E. release? and do they all work? i cant remember if i changed spell formats but a quick check will see if the mods have diffrent code thanks paul

im going to make a post on the garage about mod errors and bugs

---

<div class="post-metadata">

**Author:** ![paul\_blazek](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/paul_blazek/32/7949_2.png) [@paul\_blazek](https://discourse.cataclysmdda.org/u/paul_blazek)\
**Post date:** [April 24, 2020, 3:37pm UTC](https://discourse.cataclysmdda.org/t/segmentation-fault-on-finalizing-items/23367/16 "2020-04-24T15:37:10Z")

</div>

So a zip of all mods and a zip of secronom? I can do that.  
The mods that were listed above as my mods.json all “work” currently together. By which I mean that they do not crash the game. I’m not sure if they perform as desired, and I am getting various non-critical errors on startup. I’m not sure about the others. All of the mods that I listed there I fixed to work with E Edition. Some of the others are likely set for Experimental 10206, which was my previous edition.  
/mods/: [https://mega.nz/file/uglwmIZL#JPDALc24WuKU0kyL5Pq5YY\_BTtZuOkizX6CA7LsG-Bg](https://mega.nz/file/uglwmIZL#JPDALc24WuKU0kyL5Pq5YY_BTtZuOkizX6CA7LsG-Bg)  
/secronom: [https://mega.nz/file/vk1xwCQB#lo5izlzPkGCBg-kDlVKRciM8tN0JK9h9nrWUd3uQCls](https://mega.nz/file/vk1xwCQB#lo5izlzPkGCBg-kDlVKRciM8tN0JK9h9nrWUd3uQCls)
