Skip to content

fread.c init() causes segfault #4369

Description

@j-woz

This visible symbol causes a segfault during fread in my environment- could it be changed to something like:

static void freadInit(void)

void init() {

Activity

  1. MichaelChirico commented on Apr 10, 2020

    @MichaelChirico
    Member

    Thanks for the report, could you please share full details about your environment?

  2. j-woz commented on Apr 13, 2020

    @j-woz
    Author

    We have a composite application that links Tcl, Python, R, and a C++ -based simulator together, plus MPI for communication. It uses data.table . This app works fine on a normal Linux system but fails on on a Cray system with the KNL 7230 and GCC 8.3.0 . The change above fixes the problem.

  3. MichaelChirico commented on Jul 25, 2025

    @MichaelChirico
    Member

    I think this is about static linking, we have encountered similar issues in other situations in our environment.

  4. aitap commented on Jul 26, 2025

    @aitap
    Member
  5. MichaelChirico commented on Jul 26, 2025

    @MichaelChirico
    Member

    Oh! great point. Do you think it's worth changing the name anyway? init() doesn't seem the greatest for what it does

    (anyway closing here, can discuss in the PR)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions