Page 1 of 1

[Ubuntu Mate] Problem with running freshly compiled Crawl

PostPosted: Wednesday, 8th February 2017, 16:00
by Kiel97
Hi,
After doing all steps from quickstart and install instructions, I managed to compile console DCSS 0.19 on my own. However when I in Terminal go to source folder and type "./crawl" game is not launching and prints output:
  Code:
We crashed! This is likely due to a bug in Crawl.
Please submit a bug report at https://crawl.develz.org/mantis/ and include:
- The crash report: morgue/crash--20170208-164616.txt
- Your save file: saves/.cs
- A description of what you were doing when this crash occurred.


Unable to open file 'morgue/crash--20170208-164616.txt' for writing: No such file or directory
Version: Dungeon Crawl Stone Soup 0.20-a0-613-g92415a4
Platform: unix
Bits: 32
Game mode: normal
Tiles: no

Command line: ./crawl

RC options:
restart_after_game = false


Crash caused by signal #11: Segmentation fault

Obtained 10 stack frames.
./crawl(_Z17write_stack_traceP8_IO_FILEi+0x1d) [0x1c7662]: write_stack_trace(_IO_FILE*, int)
./crawl(_Z13do_crash_dumpv+0x26b) [0x1cc604]: do_crash_dump()
./crawl(_Z20crash_signal_handleri+0x5b) [0x1c7878]: crash_signal_handler(int)
/lib/arm-linux-gnueabihf/libc.so.6(+0x25250) [0x76b79250]:
./crawl(_ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_15CrawlStoreValueESt10_Select1stIS9_ESt4lessIS5_ESaIS9_EE22_M_emplace_hint_uniqueIJRKSt21piecewise_construct_tSt5tupleIJRS7_EESK_IJEEEEESt17_Rb_tree_iteratorIS9_ESt23_Rb_tree_const_iteratorIS9_EDpOT_+0x37) [0x178f8c]: std::_Rb_tree_iterator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, CrawlStoreValue> > std::_Rb_tree<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, CrawlStoreValue>, std::_Select1st<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, CrawlStoreValue> >, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, CrawlStoreValue> > >::_M_emplace_hint_unique<std::piecewise_construct_t const&, std::tuple<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&>, std::tuple<> >(std::_Rb_tree_const_iterator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, CrawlStoreValue> >, std::piecewise_construct_t const&, std::tuple<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&>&&, std::tuple<>&&)
./crawl(_ZN14CrawlHashTable9get_valueERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0xab) [0x479ac0]: CrawlHashTable::get_value(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
./crawl(_Z9init_deckR8item_def+0x97) [0x1d3470]: init_deck(item_def&)
./crawl(_Z20init_item_name_cachev+0x1b3) [0x2b304c]: init_item_name_cache()
./crawl(main+0x75) [0x16fbce]:
/lib/arm-linux-gnueabihf/libc.so.6(__libc_start_main+0x9d) [0x76b6a8aa]:

Trying to run gdb.
iconv: error trying to exec 'iconv': dup2: Bad file descriptor
warning: File "/home/pi/crawl/crawl-ref/source/crawl-gdb.py" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".

Compilation info:
<<<<<<<<<<<
Compiled with GCC 5.3.1 20160413 on Feb  8 2017 at 16:10:11
Build platform: arm-linux-gnueabihf
Platform: arm-linux-gnueabihf
CFLAGS: -O2 -pipe -Wall -Wformat-security -Wundef -Wno-array-bounds -Wno-format-zero-length -Wmissing-declarations -Wredundant-decls -Wno-parentheses -Wwrite-strings -Wshadow -pedantic -Wuninitialized -Iutil -I. -isystem /usr/include/lua5.1 -Irltiles -DWIZARD -DASSERTS -DCLUA_BINDINGS -D_GNU_SOURCE -isystem /usr/include/ncursesw
LDFLAGS: -rdynamic -fuse-ld=gold -O2
>>>>>>>>>>>

Place info:
branch = 0, depth = 1

Level id: D:1
Level build method = ABSENT, level layout type  = ABSENT, absdepth0 = 0

Markers:
<<<<<<<<<<<<<<<<<<<<<<
>>>>>>>>>>>>>>>>>>>>>>
Player:
{{{{{{{{{{{
Name:    []
Species: Yak
Job:     Unemployed

HP: 0/0; mods: 0/0
MP: 0/0; mod: 0
Stats: 0 (0) 0 (0) 0 (0)
Position: (0, 0) <OoB>, god: No God (0), turn_is_over: 0, banished: 0

Skills (mode: auto)
Name            | can_train | train | training | level | points | progress
Fighting        |           |   0   |     0    |    0  |      0 | 0/1
Short Blades    |           |   0   |     0    |    0  |      0 | 0/7
Axes            |           |   0   |     0    |    0  |      0 | 0/1
Maces & Flails  |           |   0   |     0    |    0  |      0 | 0/6
Polearms        |           |   0   |     0    |    0  |      0 | 0/59
Staves          |           |   0   |     0    |    0  |      0 | 0/1
Slings          |           |   0   |     0    |    0  |      0 | 0/5
Bows            |           |   0   |     0    |    0  |      0 | 0/50
Crossbows       |           |   0   |     0    |    0  |      0 | 0/1
Throwing        |           |   0   |     0    |    0  |      0 | 0/4
Dodging         |           |   0   |     0    |    0  |      0 | 0/1
Stealth         |           |   0   |     0    |    0  |      0 | 0/3
Shields         |           |   0   |     0    |    0  |      0 | 0/1
Spellcasting    |           |   0   |     0    |    0  |      0 | 0/1
Conjurations    |           |   0   |     0    |    0  |      0 | 0/2
Hexes           |           |   0   |     0    |    0  |      0 | 0/50
Charms          |           |   0   |     0    |    0  |      0 | 0/1
Summonings      |           |   0   |     0    |    0  |      0 | 0/2
Necromancy      |           |   0   |     0    |    0  |      0 | 0/59
Translocations  |           |   0   |     0    |    0  |      0 | 0/1
Transmutations  |           |   0   |     0    |    0  |      0 | 0/1
Fire Magic      |           |   0   |     0    |    0  |      0 | 0/50
Ice Magic       |           |   0   |     0    |    0  |      0 | 0/1
Air Magic       |           |   0   |     0    |    0  |      0 | 0/1
Earth Magic     |           |   0   |     0    |    0  |      0 | 0/59
Poison Magic    |           |   0   |     0    |    0  |      0 | 0/1
Invocations     |           |   0   |     0    |    0  |      0 | 0/1
Evocations      |           |   0   |     0    |    0  |      0 | 0/59

Spell bugs:

Durations:

Attributes:
    #59: 1

Mutations:

Inventory bugs:

Equipment:

}}}}}}}}}}}


Screenshot:
@

clua stack:
dlua stack:
Lua persistent data:
<<<<<<<<<<<<<<<<<<<<<<
error (persist_to_string): >>>>>>>>>>>>>>>>>>>>>>

Lua marker contents:
<<<<<<<<<<<<<<<<<<<<<<
>>>>>>>>>>>>>>>>>>>>>>
Segmentation fault (core dumped)

I tried also to install game from Download section, but Ubuntu says crawl package is corrupted and is not installing it.
I'm using UBUNTU MATE 16.04.1 LTS installed at Raspberry Pi 3B

Is this my fault or should I report this bug to Mantis?

Re: [Ubuntu Mate] Problem with running freshly compiled Craw

PostPosted: Saturday, 11th February 2017, 18:41
by Rast
Well the part where crawl can't write to the morgue directory could be a sign of bigger problems.

Re: [Ubuntu Mate] Problem with running freshly compiled Craw

PostPosted: Tuesday, 24th October 2017, 08:28
by Alizeh
I am still facing the issue. Can anyone help. :(

Re: [Ubuntu Mate] Problem with running freshly compiled Craw

PostPosted: Tuesday, 24th October 2017, 13:05
by advil
While it is, I've heard, possible to build dcss on ARM/Raspberry Pi, it isn't really something that gets done a lot, or one of our standard/supported build targets. It appears to be crashing very early on in game initialization in some low-level c++ std library string code. I don't know why this would happen, but it doesn't look like a crawl bug, rather, something fairly basic about libc/stl. I think you'd need someone with raspberry pi expertise to really diagnose this.

Edit: oh, and I doubt the ubuntu package is an ARM build, so it's not going to work at all.