Skip to content

Random tclhash.c crash/segment violation on CentOS 8 #901

@weweilep

Description

@weweilep

Crash is happening on both 1.8.3 and 1.8.4. Bot running the same scripts that worked fine on CentOS 7.x for years is now randomly crashing several times a day after migrating (and re-compiling) on CentOS 8 on two different hosts.

Log output:

[08:56:32] * Last context: tclhash.c/740 []
[08:56:32] * Please REPORT this BUG!
[08:56:32] * Check doc/BUG-REPORT on how to do so.
[08:56:32] * Wrote DEBUG
[08:56:32] * SEGMENT VIOLATION -- CRASHING!

DEBUG output from 1.8.3:

Debug (eggdrop v1.8.3) written Tue Nov 19 08:56:32 2019
Patch level: stable
Tcl library: /usr/share/tcl8.6
Tcl version: 8.6.8 (header version 8.6.8)
Tcl is threaded
Compiled with IPv6 support
Compiled with TLS support
Configure flags: none
Compile flags: gcc -g -O2 -pipe -Wall -I.. -I.. -DHAVE_CONFIG_H -I/usr/include
Link flags: gcc
Strip flags: touch
Context: tclhash.c/740, []
tclhash.c/725, []
tclhash.c/729, [Tcl proc: , param: $_raw1 $_raw2 $_raw3]
tclhash.c/740, []
tclhash.c/725, []
tclhash.c/729, [Tcl proc: *raw:PING, param: $_raw1 $_raw2 $_raw3]
tclhash.c/740, []
tclhash.c/725, []
tclhash.c/729, [Tcl proc: , param: $_raw1 $_raw2 $_raw3]
tclhash.c/740, []
tclhash.c/725, []
tclhash.c/729, [Tcl proc: *raw:PONG, param: $_raw1 $_raw2 $_raw3]
tclhash.c/740, []
tclhash.c/725, []
tclhash.c/729, [Tcl proc: , param: $_raw1 $_raw2 $_raw3]
tclhash.c/740 []

DEBUG output from 1.8.4:

Debug (eggdrop v1.8.4) written Sat Nov 16 07:19:01 2019
Patch level: stable
Tcl library: /usr/share/tcl8.6
Tcl version: 8.6.8 (header version 8.6.8)
Tcl is threaded
Compiled with IPv6 support
Compiled with TLS support
Configure flags: none
Compile flags: gcc -g -O2 -pipe -Wall -I.. -I.. -DHAVE_CONFIG_H -I/usr/include
Link flags: gcc
Strip flags: touch
Context: tclhash.c/749, []
tclhash.c/729, []
tclhash.c/734, [Tcl proc: , param: $_raw1 $_raw2 $_raw3]
tclhash.c/749, []
tclhash.c/729, []
tclhash.c/734, [Tcl proc: *raw:PING, param: $_raw1 $_raw2 $_raw3]
tclhash.c/749, []
tclhash.c/729, []
tclhash.c/734, [Tcl proc: , param: $_raw1 $_raw2 $_raw3]
tclhash.c/749, []
tclhash.c/729, []
tclhash.c/734, [Tcl proc: *raw:PING, param: $_raw1 $_raw2 $_raw3]
tclhash.c/749, []
tclhash.c/729, []
tclhash.c/734, [Tcl proc: , param: $_raw1 $_raw2 $_raw3]
tclhash.c/749 []

Change from CentOS 7 to 8 did appear to upgrade some backing packages (TCL from 8.5.x to 8.6.x and OpenSSL from 1.0.2 to 1.1.1)

Appears to randomly crash doing hash checks on PING/PONG? It is completely arbitrary how long it takes to reach a segment fault. It usually runs without issue for a few hours before crashing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions