Subject: bug#278: /build/gdb-Ji3G0U/gdb-8.2/gdb/symfile.c:891: internal-error: sect_index_text not initialized

From: Nico Orru <[email-masked]>
Date: Wed, 02 Jan 2019 23:24:05 +0000

Package: gdb
Version: 8.2-1
Severity: normal

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

I'm running gdb from within Eclipse. I am writing an openfx plugin (.so) which gets loaded dynamically by the host application (Natron).

It is not straightforward to track this down - suggestions welcome.

The gdb execution fails with the following error:

New UI allocated
GNU gdb (Debian 8.2-1) 8.2
Copyright (C) 2018 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".
(gdb) [Thread debugging using libthread_db enabled]                                                                                                                                                                                       
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffeaf95700 (LWP 10314)]
[New Thread 0x7fffe8dcd700 (LWP 10315)]
[New Thread 0x7fffe2f86700 (LWP 10316)]
/build/gdb-Ji3G0U/gdb-8.2/gdb/symfile.c:891: internal-error: sect_index_text not initialized
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) n

This is a bug, please report it.  For instructions, see:
<http://www.gnu.org/software/gdb/bugs/>.

/build/gdb-Ji3G0U/gdb-8.2/gdb/symfile.c:891: internal-error: sect_index_text not initialized
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Create a core file of GDB? (y or n) y

*** End of the template - remove these template lines ***

-- System Information:
Distributor ID:	Devuan
Description:	Devuan GNU/Linux 1.0.0 (jessie)
Release:	1.0.0
Codename:	jessie
Architecture: x86_64

Kernel: Linux 4.19.0-1-amd64 (SMP w/16 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8), LANGUAGE=en_GB:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled

Versions of packages gdb depends on:
ii  libbabeltrace1  1.5.6-2
ii  libc6           2.28-3
ii  libexpat1       2.2.6-1
ii  libipt2         2.0-2
ii  liblzma5        5.2.2-1.3
ii  libncursesw6    6.1+20181013-1
ii  libpython3.7    3.7.2~rc1-1
ii  libreadline7    7.0-5
ii  libtinfo6       6.1+20181013-1
ii  zlib1g          1:1.2.11.dfsg-1

Versions of packages gdb recommends:
ii  libc6-dbg [libc-dbg]  2.28-3

Versions of packages gdb suggests:
pn  gdb-doc    <none>
pn  gdbserver  <none>

-- no debconf information