Backtraces showing ??:0 instead of file/line

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By brainsick
:warning: Old Version Published before Godot 3 was released.

When Godot crashes, it shows a backtrace.

todd@todd-ab28d3:~/repos/remote/brainsick-godot$ ERROR: _base_get_text: Index p_to_column=1 out of size (text[p_to_line].length() + 1=1)
   At: scene/gui/text_edit.cpp:3294.
ERROR: _base_get_text: Index p_to_column=1 out of size (text[p_to_line].length() + 1=1)
   At: scene/gui/text_edit.cpp:3294.
ERROR: operator[]: FATAL: Index p_index=0 out of size (size()=0)
   At: ./core/vector.h:146.
handle_crash: Program crashed with signal 4
Dumping the backtrace. Please include this when reporting the bug on https://github.com/godotengine/godot/issues
[1] /lib/x86_64-linux-gnu/libc.so.6(+0x37140) [0x7f7ce2144140] (??:0)
[2] Vector<wchar_t>::operator[](int) const (??:0)
[3] TextEdit::_notification(int) (??:0)
[4] TextEdit::_notificationv(int, bool) (??:0)
[5] Object::notification(int, bool) (??:0)
[6] CanvasItem::_update_callback() (??:0)
[7] MethodBind0::call(Object*, Variant const**, int, Variant::CallError&) (??:0)
[8] Object::call(StringName const&, Variant const**, int, Variant::CallError&) (??:0)
[9] MessageQueue::_call_function(Object*, StringName const&, Variant const*, int, bool) (??:0)
[10] MessageQueue::flush() (??:0)
[11] SceneTree::iteration(float) (??:0)
[12] Main::iteration() (??:0)
[13] OS_X11::run() (??:0)
[14] /home/todd/repos/remote/brainsick-godot/bin/godot.x11.tools.64(main+0xd5) [0x55d6ddd9a27f] (??:0)
[15] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1) [0x7f7ce212e1c1] (??:0)
[16] /home/todd/repos/remote/brainsick-godot/bin/godot.x11.tools.64(_start+0x2a) [0x55d6ddd9a0ca] (??:0)
-- END OF BACKTRACE --

Mine are just showing (??:0) for the source file/line. How do I fix that? This is a self-compiled binary, Ubuntu 17.10, platform x11, target debug.

Similarly, the Godot 3.0 Beta 2 crash backtrace also shows ??:0 and ??:?.

todd@todd-ab28d3:~/Downloads/Godot3.0Beta2$ ERROR: operator[]: FATAL: Index p_index=0 out of size (size()=0)
   At: ./core/vector.h:146.
handle_crash: Program crashed with signal 4
Dumping the backtrace. Please include this when reporting the bug on https://github.com/godotengine/godot/issues
[1] /lib/x86_64-linux-gnu/libc.so.6(+0x37140) [0x7f9b32a55140] (??:0)
[2] /home/todd/Downloads/Godot3.0Beta2/Godot_v3.0-beta2_x11.64() [0x67ba2b] (??:0)
[3] /home/todd/Downloads/Godot3.0Beta2/Godot_v3.0-beta2_x11.64() [0xf6bc5b] (??:?)
[4] /home/todd/Downloads/Godot3.0Beta2/Godot_v3.0-beta2_x11.64() [0x195fa14] (??:?)
[5] /home/todd/Downloads/Godot3.0Beta2/Godot_v3.0-beta2_x11.64() [0x120c909] (??:?)
[6] /home/todd/Downloads/Godot3.0Beta2/Godot_v3.0-beta2_x11.64() [0x45e01d] (??:0)
[7] /home/todd/Downloads/Godot3.0Beta2/Godot_v3.0-beta2_x11.64() [0x19ca819] (??:?)
[8] /home/todd/Downloads/Godot3.0Beta2/Godot_v3.0-beta2_x11.64() [0x1b04eaa] (??:?)
[9] /home/todd/Downloads/Godot3.0Beta2/Godot_v3.0-beta2_x11.64() [0x1730dcf] (??:?)
[10] /home/todd/Downloads/Godot3.0Beta2/Godot_v3.0-beta2_x11.64() [0xe81d16] (??:?)
[11] /home/todd/Downloads/Godot3.0Beta2/Godot_v3.0-beta2_x11.64() [0x4bfdaf] (??:0)
[12] /home/todd/Downloads/Godot3.0Beta2/Godot_v3.0-beta2_x11.64() [0x44f38d] (??:0)
[13] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1) [0x7f9b32a3f1c1] (??:0)
[14] /home/todd/Downloads/Godot3.0Beta2/Godot_v3.0-beta2_x11.64() [0x45ad3f] (??:0)
-- END OF BACKTRACE --

Am I supposed to do something with the corresponding .debugsymbols file or is that only read/used by gdb?

:bust_in_silhouette: Reply From: brainsick

I still don’t have a solution for this. I’ve tried the steps detailed here.

First, enable core dumps for our Ubuntu 17.10 shell session:

todd@todd-ab28d3:~$ ulimit -c
0
todd@todd-ab28d3:~$ ulimit -c unlimited
todd@todd-ab28d3:~$ ulimit -c
unlimited

Then, cause a crash:

todd@todd-ab28d3:~/repos/remote/brainsick-godot-tests/tests/qa$ ~/Downloads/Godot3.0Beta2/Godot_v3.0-beta2_x11.64 -s pbatest.gd
No touch devices found
OpenGL ES 3.0 Renderer: AMD Radeon (TM) R9 Fury Series (AMD FIJI / DRM 3.18.0 / 4.13.0-21-generic, LLVM 5.0.0)
GLES3: max ubo light: 409
GLES3: max ubo reflections: 455, ubo size: 144
ARVR: Registered interface: Native mobile
handle_crash: Program crashed with signal 11
Dumping the backtrace. Please include this when reporting the bug on https://github.com/godotengine/godot/issues
[1] /lib/x86_64-linux-gnu/libc.so.6(+0x37140) [0x7f6f8360a140] (??:0)
[2] /home/todd/Downloads/Godot3.0Beta2/Godot_v3.0-beta2_x11.64() [0x176c712] (??:?)
[3] /home/todd/Downloads/Godot3.0Beta2/Godot_v3.0-beta2_x11.64() [0x1798e1e] (??:?)
[4] /home/todd/Downloads/Godot3.0Beta2/Godot_v3.0-beta2_x11.64() [0x17c0cf4] (??:?)
[5] /home/todd/Downloads/Godot3.0Beta2/Godot_v3.0-beta2_x11.64() [0x19ca819] (??:?)
[6] /home/todd/Downloads/Godot3.0Beta2/Godot_v3.0-beta2_x11.64() [0x177f73f] (??:?)
[7] /home/todd/Downloads/Godot3.0Beta2/Godot_v3.0-beta2_x11.64() [0x5131d9] (??:0)
[8] /home/todd/Downloads/Godot3.0Beta2/Godot_v3.0-beta2_x11.64() [0x56b655] (??:0)
[9] /home/todd/Downloads/Godot3.0Beta2/Godot_v3.0-beta2_x11.64() [0x19ca712] (??:?)
[10] /home/todd/Downloads/Godot3.0Beta2/Godot_v3.0-beta2_x11.64() [0x177f73f] (??:?)
[11] /home/todd/Downloads/Godot3.0Beta2/Godot_v3.0-beta2_x11.64() [0x5131d9] (??:0)
[12] /home/todd/Downloads/Godot3.0Beta2/Godot_v3.0-beta2_x11.64() [0x56b655] (??:0)
[13] /home/todd/Downloads/Godot3.0Beta2/Godot_v3.0-beta2_x11.64() [0x176caa1] (??:?)
[14] /home/todd/Downloads/Godot3.0Beta2/Godot_v3.0-beta2_x11.64() [0x1a2b3b7] (??:?)
[15] /home/todd/Downloads/Godot3.0Beta2/Godot_v3.0-beta2_x11.64() [0x4bfdaf] (??:0)
[16] /home/todd/Downloads/Godot3.0Beta2/Godot_v3.0-beta2_x11.64() [0x44f38d] (??:0)
[17] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1) [0x7f6f835f41c1] (??:0)
[18] /home/todd/Downloads/Godot3.0Beta2/Godot_v3.0-beta2_x11.64() [0x45ad3f] (??:0)
-- END OF BACKTRACE --
Aborted (core dumped)
todd@todd-ab28d3:~/repos/remote/brainsick-godot-tests/tests/qa$ ls -l core
-rw------- 1 todd todd 373612544 Jan  5 15:47 core

Fire up gdb, load the symbols file, and print a backtrace:

todd@todd-ab28d3:~/repos/remote/brainsick-godot-tests/tests/qa$ gdb ~/Downloads/Godot3.0Beta2/Godot_v3.0-beta2_x11.64 core
GNU gdb (Ubuntu 8.0.1-0ubuntu1) 8.0.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /home/todd/Downloads/Godot3.0Beta2/Godot_v3.0-beta2_x11.64...Reading symbols from /home/todd/Downloads/Godot3.0Beta2/Godot_v3.0-beta2_x11.64.debugsymbols...(no debugging symbols found)...done.
(no debugging symbols found)...done.

warning: core file may not match specified executable file.
[New LWP 20231]
[New LWP 20232]
[New LWP 20233]
[New LWP 20235]
[New LWP 20236]
[New LWP 20237]
[New LWP 20238]
[New LWP 20239]
[New LWP 20240]
[New LWP 20241]
[New LWP 20244]
[New LWP 20243]
[New LWP 20242]
[New LWP 20234]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/home/todd/Downloads/Godot3.0Beta2/Godot_v3.0-beta2_x11.64 -s pbatest.gd'.
Program terminated with signal SIGABRT, Aborted.
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
51	../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
[Current thread is 1 (Thread 0x7f6f83fdd4c0 (LWP 20231))]
(gdb) symbol-file ~/Downloads/Godot3.0Beta2/Godot_v3.0-beta2_x11.64.debugsymbols 
Load new symbol table from "~/Downloads/Godot3.0Beta2/Godot_v3.0-beta2_x11.64.debugsymbols"? (y or n) y
Reading symbols from ~/Downloads/Godot3.0Beta2/Godot_v3.0-beta2_x11.64.debugsymbols...(no debugging symbols found)...done.
(gdb) bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1  0x00007f6f8360bf5d in __GI_abort () at abort.c:90
#2  0x00000000004d6f79 in handle_crash(int) ()
#3  <signal handler called>
#4  0x000000000176c712 in void _scale_bilinear<1>(unsigned char const*, unsigned char*, unsigned int, unsigned int, unsigned int, unsigned int) ()
#5  0x00007ffd790a10c0 in ?? ()
#6  0x0000000000000000 in ?? ()
(gdb) quit

This is the directory setup:

todd@todd-ab28d3:~/repos/remote/brainsick-godot-tests/tests/qa$ ls -l ~/Downloads/Godot3.0Beta2/*
-rw-rw-r-- 1 todd todd 310021359 Dec 22 01:22 /home/todd/Downloads/Godot3.0Beta2/Godot_v3.0-beta2_export_templates.tpz
-rwxr-xr-x 1 todd todd  39752648 Dec 21 14:51 /home/todd/Downloads/Godot3.0Beta2/Godot_v3.0-beta2_x11.64
-rw-r--r-- 1 todd todd   5816519 Dec 21 08:10 /home/todd/Downloads/Godot3.0Beta2/Godot_v3.0-beta2_x11.64.debugsymbols
-rw-rw-r-- 1 todd todd  18853570 Dec 22 01:21 /home/todd/Downloads/Godot3.0Beta2/Godot_v3.0-beta2_x11.64.zip
todd@todd-ab28d3:~/repos/remote/brainsick-godot-tests/tests/qa$ file ~/Downloads/Godot3.0Beta2/*
/home/todd/Downloads/Godot3.0Beta2/Godot_v3.0-beta2_export_templates.tpz: Zip archive data, at least v2.0 to extract
/home/todd/Downloads/Godot3.0Beta2/Godot_v3.0-beta2_x11.64:               ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.24, BuildID[sha1]=4ff0e6002647dccca180d483bac3f3bead5e821b, stripped
/home/todd/Downloads/Godot3.0Beta2/Godot_v3.0-beta2_x11.64.debugsymbols:  ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter *empty*, for GNU/Linux 2.6.24, BuildID[sha1]=4ff0e6002647dccca180d483bac3f3bead5e821b, not stripped
/home/todd/Downloads/Godot3.0Beta2/Godot_v3.0-beta2_x11.64.zip:           Zip archive data, at least v2.0 to extract

Finally, despair and lament that I’m having the same issues with self compiled.

Is it the nature that godot behave currently?

ryancheung | 2019-01-19 02:38