Skip to content

Segfault in tests #9

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

Open
rekado opened this issue Jan 26, 2015 · 1 comment
Open

Segfault in tests #9

rekado opened this issue Jan 26, 2015 · 1 comment

Comments

@rekado
Copy link

rekado commented Jan 26, 2015

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?

@swh
Copy link
Owner

swh commented Jan 26, 2015

Looks like a bug in the core library somewhere. I can reproduce here, but I don't have a debugging environment to figure out where the segfault is happening.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants