Skip to content

SIGSEGV in native code of Java HyperAPI library after hyperd was killed unexpectedly #133

@jannik-loescher-knime

Description

@jannik-loescher-knime

Java API, Linux 0.0.20027, 0.0.20746:

Calling com.tableau.hyperapi.Result#nextRow() when the hyperd process is not available anymore causes a segmentation fault SIGSEGV in native code, crashing the whole JVM.
We run the JVM+hyperd in an containerized environment and processes consuming too much memory are getting killed to enforce memory bounds.

How to reproduce:

  1. Open a (reasonably large) Hyper file using the Tableau Java Hyper API
  2. Execute a SELECT * FROM table query on the file
  3. While the query is being read, kill the hyperd process forcefully: kill -9 $(pgrep hyperd)

Expected behavior:
A catchable Java Exception is thrown, similarly to com.tableau.hyperapi.Inserter#execute() ("Failed to insert into table […]:The Hyper server closed the connection unexpectedly.")

Crash report: hs_err_pid1794671.log

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