Giter Site home page Giter Site logo

[macos/clang] Tests are failing about zsv HOT 4 CLOSED

iamazeem avatar iamazeem commented on May 12, 2024
[macos/clang] Tests are failing

from zsv.

Comments (4)

liquidaty avatar liquidaty commented on May 12, 2024

These failures do not happen on native OSX (intel or M-1). could this be a problem with the runner environment?

from zsv.

iamazeem avatar iamazeem commented on May 12, 2024

I'm not sure whether it's a runner problem or not.
I've tested both macOS-10.15 and macos-11. Tests fail on both.

Could you share the native OSX and clang versions you're testing it with?

from zsv.

iamazeem avatar iamazeem commented on May 12, 2024

I've generated a build without tests.
zsv version is working fine here.

Please download and test macos/clang build from here and test it on your side.
CI run without tests: https://github.com/liquidaty/zsv/runs/6692905229

from zsv.

iamazeem avatar iamazeem commented on May 12, 2024

@liquidaty: I spent some time to figure out why the tests were failing for macosx/gcc, macosx/clang, and freebsd/gcc.
Added some debug logs and commands to verify whether the test binaries are valid or not.

For example:

test-echo : ${BUILD_DIR}/bin/zsv_echo${EXE}
	@${TEST_NAME}
	@echo $<
	@file $<
	@ls -Gghl $<
	$< --help
	@${PREFIX} $< ${TEST_DATA_DIR}/loans_1.csv ${REDIRECT} /tmp/[email protected]
	@${CMP} /tmp/[email protected] expected/[email protected] && ${TEST_PASS} || ${TEST_FAIL}

and, the output:

test-echo: 
/Users/runner/work/zsv/zsv/build/Darwin/rel/gcc-11/bin/zsv_echo
/Users/runner/work/zsv/zsv/build/Darwin/rel/gcc-11/bin/zsv_echo: Mach-O 64-bit executable x86_64
-rwxr-xr-x  1 staff    67K Jun 15 12:30 /Users/runner/work/zsv/zsv/build/Darwin/rel/gcc-11/bin/zsv_echo
/Users/runner/work/zsv/zsv/build/Darwin/rel/gcc-11/bin/zsv_echo --help
Usage: csv_echo [-b, --with-bom] [filename]
  Reads CSV input and prints CSV output with BOM prefix
Options:
    -b, --with-bom: print byte-order mark
/bin/sh: line 1:  8759 Illegal instruction: 4  /Users/runner/work/zsv/zsv/build/Darwin/rel/gcc-11/bin/zsv_echo /Users/runner/work/zsv/zsv/data/loans_1.csv > /tmp/test-echo.out
make[2]: *** [test-echo] Error 132
make[1]: *** [test-echo] Error 2
make: *** [test] Error 2

The above logs show that the binary itself is working fine.
Only when it's given the input file is when it starts crashing.

You might want to run generate all the test binaries and analyze those under gdb and/or valgrind to figure out the exact reason of the crash.

from zsv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.