# Seg fault at startup

**URL:** <https://discourse.cataclysmdda.org/t/seg-fault-at-startup/4378>\
**Category:** The Garage\
**Created:** [December 4, 2013, 1:00am UTC](https://discourse.cataclysmdda.org/t/seg-fault-at-startup/4378 "2013-12-04T01:00:19Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yomas](https://avatars.discourse-cdn.com/v4/letter/y/8dc957/32.png) [@Yomas](https://discourse.cataclysmdda.org/u/Yomas)\
**Post date:** [December 4, 2013, 1:00am UTC](https://discourse.cataclysmdda.org/t/seg-fault-at-startup/4378/1 "2013-12-04T01:00:19Z")

</div>

Hey guys!  
Everytime before I play, I do a pull from the git rep (I’m using cygwin), but since today I can’t start the game, as soon as I do ./cataclysm it immediately goes into a segmentation fault (core dumped)  
I tried deleting the cata folder and cloning a new one, but it doesn’t fix it. Any idea what might be wrong? I couldn’t find any log with the details of the seg fault, if there’s one, where do I find it?

---

<div class="post-metadata">

**Author:** ![Savidiy](https://avatars.discourse-cdn.com/v4/letter/s/a183cd/32.png) [@Savidiy](https://discourse.cataclysmdda.org/u/Savidiy)\
**Post date:** [December 4, 2013, 5:32am UTC](https://discourse.cataclysmdda.org/t/seg-fault-at-startup/4378/2 "2013-12-04T05:32:50Z")

</div>

[Ohoho! When there was a problem with thousands separator in json, I created a local variable LC\_NUMERIC, even for the 0.8 version. Deleted it and failed stopped.](http://smf.cataclysmdda.com/index.php?topic=4619.msg71087#msg71087)  
Perhaps you have the same problem

---

<div class="post-metadata">

**Author:** ![Shoes](https://avatars.discourse-cdn.com/v4/letter/s/8c91f0/32.png) [@Shoes](https://discourse.cataclysmdda.org/u/Shoes)\
**Post date:** [December 5, 2013, 1:04am UTC](https://discourse.cataclysmdda.org/t/seg-fault-at-startup/4378/3 "2013-12-05T01:04:27Z")

</div>

[quote=“Savidiy, post:2, topic:4378”][Ohoho! When there was a problem with thousands separator in json, I created a local variable LC\_NUMERIC, even for the 0.8 version. Deleted it and failed stopped.](http://smf.cataclysmdda.com/index.php?topic=4619.msg71087#msg71087)  
Perhaps you have the same problem[/quote]

I think I have the same problem, but I don’t understand your advice.

---

<div class="post-metadata">

**Author:** ![Savidiy](https://avatars.discourse-cdn.com/v4/letter/s/a183cd/32.png) [@Savidiy](https://discourse.cataclysmdda.org/u/Savidiy)\
**Post date:** [December 5, 2013, 4:44am UTC](https://discourse.cataclysmdda.org/t/seg-fault-at-startup/4378/4 "2013-12-05T04:44:03Z")

</div>

> [@Shoes](#):
>
> I think I have the same problem, but I don’t understand your advice.

A month or two ago 0.8 version cataclysm had a problem of localization. Russian Windows version has “,” separator and json used “.”. To resolve this problem, I created a local variable LC\_NUMERIC = en\_US (or similar). A few days ago, a cataclysmic event ceased to run. I deleted the local variable and everything worked.   
Maybe you have reason is different.

---

<div class="post-metadata">

**Author:** ![Doffeh](https://avatars.discourse-cdn.com/v4/letter/d/779978/32.png) [@Doffeh](https://discourse.cataclysmdda.org/u/Doffeh)\
**Post date:** [December 6, 2013, 12:53am UTC](https://discourse.cataclysmdda.org/t/seg-fault-at-startup/4378/5 "2013-12-06T00:53:11Z")

</div>

Sounds related. I started having the same issue after [https://github.com/CleverRaven/Cataclysm-DDA/pull/4823](https://github.com/CleverRaven/Cataclysm-DDA/pull/4823) … (Or any other pull close to that in terms of time and date)  
My windows is in English though, so not quite sure what the issue or fix spesifically is, but yeah;  
terminate called after throwing an instance of 'std::runtime\_error’  
what(): locale::facet::\_S\_create\_c\_locale name not valid  
Aborted (core dumped)  
is what I’m getting also.

Edit: win 7 en.

---

<div class="post-metadata">

**Author:** ![Shoes](https://avatars.discourse-cdn.com/v4/letter/s/8c91f0/32.png) [@Shoes](https://discourse.cataclysmdda.org/u/Shoes)\
**Post date:** [December 6, 2013, 1:22am UTC](https://discourse.cataclysmdda.org/t/seg-fault-at-startup/4378/6 "2013-12-06T01:22:24Z")

</div>

I posted an issue on github, hopefully someone will pick it up.

---

<div class="post-metadata">

**Author:** ![Yomas](https://avatars.discourse-cdn.com/v4/letter/y/8dc957/32.png) [@Yomas](https://discourse.cataclysmdda.org/u/Yomas)\
**Post date:** [December 6, 2013, 1:34am UTC](https://discourse.cataclysmdda.org/t/seg-fault-at-startup/4378/7 "2013-12-06T01:34:41Z")

</div>

my OS is also in english, Windows 7.  
Hope someone can find the fix.

---

<div class="post-metadata">

**Author:** ![Shoes](https://avatars.discourse-cdn.com/v4/letter/s/8c91f0/32.png) [@Shoes](https://discourse.cataclysmdda.org/u/Shoes)\
**Post date:** [December 11, 2013, 10:18pm UTC](https://discourse.cataclysmdda.org/t/seg-fault-at-startup/4378/8 "2013-12-11T22:18:37Z")

</div>

Anyone find a solution for this yet?

---

<div class="post-metadata">

**Author:** ![Shoes](https://avatars.discourse-cdn.com/v4/letter/s/8c91f0/32.png) [@Shoes](https://discourse.cataclysmdda.org/u/Shoes)\
**Post date:** [December 13, 2013, 8:39pm UTC](https://discourse.cataclysmdda.org/t/seg-fault-at-startup/4378/9 "2013-12-13T20:39:16Z")

</div>

AtomicDryad has a bandaid fix incoming for this, here is the fix :

edit src/init.cpp  
find  
#ifdef LOCALIZE  
// load names depending on current locale  
change to  
#ifdef LOCALIZE\_MY\_BEHIND

This worked for me.
