Skip to content

Segfault in tests #9

@rekado

Description

@rekado

I have compiled version 0.5.0 (latest release on Github) to package LRDF for GNU GSD. Upon running "make check", one of the tests fails with a segfault.

make  check-TESTS
make[2]: Entering directory '/tmp/nix-build-lrdf-0.5.0.drv-0/LRDF-0.5.0/examples'
make[3]: Entering directory '/tmp/nix-build-lrdf-0.5.0.drv-0/LRDF-0.5.0/examples'
PASS: showtaxonomy
PASS: dumpstatements
PASS: export_test
PASS: subclass_test
PASS: add_test
PASS: instances_test
../test-driver: line 107:  5738 Segmentation fault      (core dumped) "$@" > $log_file 2>&1
FAIL: remove_test
PASS: multi_test
PASS: scale_test
PASS: setting_test
============================================================================
Testsuite summary for 
============================================================================
# TOTAL: 10
# PASS:  9
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================
See examples/test-suite.log
============================================================================
Makefile:771: recipe for target 'test-suite.log' failed
make[3]: *** [test-suite.log] Error 1
make[3]: Leaving directory '/tmp/nix-build-lrdf-0.5.0.drv-0/LRDF-0.5.0/examples'
Makefile:877: recipe for target 'check-TESTS' failed
make[2]: *** [check-TESTS] Error 2
make[2]: Leaving directory '/tmp/nix-build-lrdf-0.5.0.drv-0/LRDF-0.5.0/examples'
Makefile:1013: recipe for target 'check-am' failed
make[1]: *** [check-am] Error 2
make[1]: Leaving directory '/tmp/nix-build-lrdf-0.5.0.drv-0/LRDF-0.5.0/examples'
Makefile:486: recipe for target 'check-recursive' failed
make: *** [check-recursive] Error 1

The log says

===============================
   : examples/test-suite.log
===============================

# TOTAL: 10
# PASS:  9
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: remove_test
=================

liblrdf: error -  - file '/usr/local/share/ladspa/rdf/swh-plugins.rdf' open failed - No such file or directory
FAIL remove_test (exit status: 139)

In my build environment /usr/local/ simply is not available. Shouldn't this fail gracefully rather than result in a segfault?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions