Skip to content
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

Camisole test crashing #54

Closed
chezyann opened this issue Nov 25, 2020 · 2 comments
Closed

Camisole test crashing #54

chezyann opened this issue Nov 25, 2020 · 2 comments

Comments

@chezyann
Copy link

chezyann commented Nov 25, 2020

Hi,

I freshly installed Isolate than Camisole under ubuntu 20.04 on an arm computer.

isolate-check-environment produces :

WARNING: the memory is not present. isolate --cg cannot be used.
Checking for cgroup support for cpuacct ... PASS
Checking for cgroup support for cpuset ... PASS
Checking for swap ... PASS
Checking for CPU frequency scaling ... PASS
Checking for kernel address space randomisation ... PASS
Checking for transparent hugepage support ... PASS

but camisole test crashes :

Traceback (most recent call last):
  File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/home/firefly/Documents/git/camisole/camisole/__main__.py", line 58, in <module>
    main()
  File "/home/firefly/Documents/git/camisole/camisole/__main__.py", line 54, in main
    sys.exit(func(args))
  File "/home/firefly/Documents/git/camisole/camisole/progs/test.py", line 12, in handle
    return asyncio.get_event_loop().run_until_complete(check)
  File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
    return future.result()
  File "/home/firefly/Documents/git/camisole/camisole/progs/languages.py", line 24, in print_working_languages
    success, raw = res[i].result()
  File "/home/firefly/Documents/git/camisole/camisole/ref.py", line 8, in test
    raw_result = await lang.run()
  File "/home/firefly/Documents/git/camisole/camisole/models.py", line 214, in run
    binary = await self.run_compilation(result)
  File "/home/firefly/Documents/git/camisole/camisole/models.py", line 183, in run_compilation
    cretcode, info, binary = await self.compile()
  File "/home/firefly/Documents/git/camisole/camisole/models.py", line 145, in compile
    async with isolator:
  File "/home/firefly/Documents/git/camisole/camisole/isolate.py", line 122, in __aenter__
    busy = {int(p.name) for p in self.isolate_conf.root.iterdir()}
  File "/home/firefly/Documents/git/camisole/camisole/utils.py", line 95, in __get__
    res = self.func(cls)
  File "/home/firefly/Documents/git/camisole/camisole/isolate.py", line 269, in isolate_conf
    parser.read_file(dummy_section())
  File "/usr/lib/python3.8/configparser.py", line 718, in read_file
    self._read(f, source)
  File "/usr/lib/python3.8/configparser.py", line 1017, in _read
    for lineno, line in enumerate(fp, start=1):
  File "/home/firefly/Documents/git/camisole/camisole/isolate.py", line 268, in dummy_section
    yield from f
  File "/usr/lib/python3.8/codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb7 in position 18: invalid start byte

I have no clue about what is going wrong, do you ?

Best regards :)

@zopieux
Copy link
Member

zopieux commented Nov 25, 2020

The isolate-conf being read contains non-utf-8 characters. I don't think our test setup modifies this file. Can you share the content of /etc/isolate?

@juli0z
Copy link

juli0z commented Jul 31, 2022

@juli0z juli0z closed this as completed Jul 31, 2022
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

3 participants