Skip to content

Cygwin support lacking #2278

@mliguori-crestron

Description

@mliguori-crestron

To Reproduce
I followed the steps on the quickstart section of the readme file. Building seems to be fine on my Windows 10 Enterprise within Cygwin. When running, I get a segfault which is listed below. I have reviewed the basic.md instructions, I don't understand why the parser::iterate() didn't work. I'm not sure if it is a bug in the code, non-compatible configuration [despite being able to build], or if I have missed something. Please advise.

simjson release
As per the instruction the wget is on the master branch. Note: using the v3.10.1 release doesn't seem to make a difference.

Configuration

$ uname -a
CYGWIN_NT-10.0-19045 MACHINE-NAME 3.3.5-341.x86_64 2022-05-13 12:27 UTC x86_64 Cygwin
$ c++ --version
c++ (GCC) 11.3.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ gdb quickstart.exe
GNU gdb (GDB) (Cygwin 11.2-1) 11.2
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-cygwin".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from quickstart.exe...
(gdb) run
Starting program: /cygdrive/c/_SLPM/Coding/simdjson-testing/quickstart.exe
[New Thread 24448.0x664]
[New Thread 24448.0x3ed4]
[New Thread 24448.0x4fb4]
[New Thread 24448.0x743c]

Thread 1 "quickstart" received signal SIGSEGV, Segmentation fault.
0x00000001004197ee in simdjson::haswell::(anonymous namespace)::simd::base8_numeric<unsigned char>::load(unsigned char const*) ()
(gdb) up
#1  0x000000010041a20a in simdjson::haswell::(anonymous namespace)::simd::simd8x64<unsigned char>::simd8x64(unsigned char const*) ()
(gdb) up
#2  0x0000000100407679 in void simdjson::haswell::(anonymous namespace)::stage1::json_structural_indexer::step<128ul>(unsigned char const*, simdjson::haswell::(anonymous namespace)::stage1::buf_block_reader<128ul>&) ()
(gdb) up
#3  0x000000010041b06c in simdjson::error_code simdjson::haswell::(anonymous namespace)::stage1::json_structural_indexer::index<128ul>(unsigned char const*, unsigned long, simdjson::haswell::dom_parser_implementation&, simdjson::stage1_mode) ()
(gdb) up
#4  0x0000000100409568 in simdjson::haswell::dom_parser_implementation::stage1(unsigned char const*, unsigned long, simdjson::stage1_mode) ()
(gdb) up
#5  0x000000010042e66d in simdjson::fallback::ondemand::parser::iterate(simdjson::padded_string_view) & ()
(gdb) up
#6  0x00000001004019bf in main ()
(gdb)

Metadata

Metadata

Assignees

No one assigned

    Labels

    platform coverageMakes simdjson run on more machines or compilers.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions