New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Coredump when compiled with nwcc #750

Open
michaelortmann opened this Issue Nov 2, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@michaelortmann
Member

michaelortmann commented Nov 2, 2018

Eggdrop can now be compiled with nwcc, but -g3 must not be in CFLAGS.

Therefore, the following coredump is less useful, but maybe anyone has got an idea, what is going wrong here.

nwcc 0.8.3
Eggdrop 1.8.3+sendfprint
Linux 4.18.16
glibc 2.28
Tcl 8.6.8
OpenSSL 1.1.1
$ ./eggdrop -nt

Eggdrop v1.8.3+sendfprint (C) 1997 Robey Pointer (C) 2010-2018 Eggheads
--- Loading eggdrop v1.8.3+sendfprint (Fri Nov  2 2018)
Listening for telnet connections on 0.0.0.0:2513 (all).
Listening for telnet connections on 0.0.0.0:2523 (users).
TclStackFree: incorrect freePtr (0x253bfd0 != 0x2515490). Call out of sequence?
Aborted (core dumped)
$ coredumpctl debug
[...]
       Storage: /var/lib/systemd/coredump/core.eggdrop.1000.d90a48d675f24d14817bec9b6e62f54c.11293.1541185638000000.lz4
       Message: Process 11293 (eggdrop) of user 1000 dumped core.
                
                Stack trace of thread 11293:
                #0  0x00007f9e9cb05d7f raise (libc.so.6)
                #1  0x00007f9e9caf0672 abort (libc.so.6)
                #2  0x00007f9e9d4c592f Tcl_PanicVA (libtcl8.6.so)
                #3  0x00007f9e9d4c5a4a Tcl_Panic (libtcl8.6.so)
                #4  0x00007f9e9d483a28 TclStackFree (libtcl8.6.so)
                #5  0x00007f9e9d3f2c68 TclInvokeStringCommand (libtcl8.6.so)
                #6  0x00007f9e9d3f7e16 TclNRRunCallbacks (libtcl8.6.so)
                #7  0x00007f9e9d3f9cac TclEvalEx (libtcl8.6.so)
                #8  0x00007f9e9d4b4711 Tcl_FSEvalFileEx (libtcl8.6.so)
                #9  0x00007f9e9d4b4809 Tcl_EvalFile (libtcl8.6.so)
                #10 0x0000000000487ef8 n/a (/home/michael/eggdrop/eggdrop-1.8.3)
                #11 0x00000000004290be n/a (/home/michael/eggdrop/eggdrop-1.8.3)
                #12 0x000000000046c650 n/a (/home/michael/eggdrop/eggdrop-1.8.3)
                #13 0x00007f9e9caf2223 __libc_start_main (libc.so.6)
                #14 0x0000000000405fce n/a (/home/michael/eggdrop/eggdrop-1.8.3)

GNU gdb (GDB) 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-pc-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/michael/eggdrop/eggdrop-1.8.3...(no debugging symbols found)...done.

warning: core file may not match specified executable file.
[New LWP 11293]
[New LWP 11294]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Core was generated by `./eggdrop -nt'.
Program terminated with signal SIGABRT, Aborted.
#0  0x00007f9e9cb05d7f in raise () from /usr/lib/libc.so.6
[Current thread is 1 (Thread 0x7f9e9caccb80 (LWP 11293))]
(gdb) bt full
#0  0x00007f9e9cb05d7f in raise () from /usr/lib/libc.so.6
No symbol table info available.
#1  0x00007f9e9caf0672 in abort () from /usr/lib/libc.so.6
No symbol table info available.
#2  0x00007f9e9d4c592f in Tcl_PanicVA () from /usr/lib/libtcl8.6.so
No symbol table info available.
#3  0x00007f9e9d4c5a4a in Tcl_Panic () from /usr/lib/libtcl8.6.so
No symbol table info available.
#4  0x00007f9e9d483a28 in TclStackFree () from /usr/lib/libtcl8.6.so
No symbol table info available.
#5  0x00007f9e9d3f2c68 in TclInvokeStringCommand () from /usr/lib/libtcl8.6.so
No symbol table info available.
#6  0x00007f9e9d3f7e16 in TclNRRunCallbacks () from /usr/lib/libtcl8.6.so
No symbol table info available.
#7  0x00007f9e9d3f9cac in TclEvalEx () from /usr/lib/libtcl8.6.so
No symbol table info available.
#8  0x00007f9e9d4b4711 in Tcl_FSEvalFileEx () from /usr/lib/libtcl8.6.so
No symbol table info available.
#9  0x00007f9e9d4b4809 in Tcl_EvalFile () from /usr/lib/libtcl8.6.so
No symbol table info available.
#10 0x0000000000487ef8 in readtclprog ()
No symbol table info available.
#11 0x00000000004290be in chanprog ()
No symbol table info available.
#12 0x000000000046c650 in main ()
No symbol table info available.
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment