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

"Broken pipe" error on crystal tool hierarchy #11772

Closed
dinkopehar opened this issue Jan 26, 2022 · 2 comments
Closed

"Broken pipe" error on crystal tool hierarchy #11772

dinkopehar opened this issue Jan 26, 2022 · 2 comments
Labels
kind:bug A bug in the code. Does not apply to documentation, specs, etc. status:duplicate topic:stdlib

Comments

@dinkopehar
Copy link

While using crystal tool hierarchy on some of the files, I get broken pipe error:

$ crystal tool hierarchy src/entry_point_file.cr | /usr/bin/less

Error writing file: Broken pipe (IO::Error)
  from /build/source/src/io/evented.cr:156:7 in 'unbuffered_write'
  from /build/source/src/io/buffered.cr:219:5 in 'write_byte'
  from /build/source/src/io.cr:174:5 in 'print_type'
  from /build/source/src/compiler/crystal/tools/print_hierarchy.cr:144:7 in 'print_subtypes'
  from /build/source/src/compiler/crystal/tools/print_hierarchy.cr:168:9 in 'print_type'
  from /build/source/src/compiler/crystal/tools/print_hierarchy.cr:144:7 in 'print_subtypes'
  from /build/source/src/compiler/crystal/tools/print_hierarchy.cr:168:9 in 'print_type'
  from /build/source/src/compiler/crystal/tools/print_hierarchy.cr:144:7 in 'print_subtypes'
  from /build/source/src/compiler/crystal/tools/print_hierarchy.cr:168:9 in 'print_type'
  from /build/source/src/compiler/crystal/tools/print_hierarchy.cr:122:9 in 'tool'
  from /build/source/src/compiler/crystal/command.cr:108:7 in 'run'
  from /build/source/src/compiler/crystal.cr:11:1 in '__crystal_main'
  from /build/source/src/crystal/main.cr:110:5 in 'main'
  from /nix/store/563528481rvhc5kxwipjmg6rqrl95mdx-glibc-2.33-56/lib/libc.so.6 in '__libc_start_main'
  from ../sysdeps/x86_64/start.S:122:0 in '_start'
  from ???
Error: you've found a bug in the Crystal compiler. Please open an issue, including source code that will allow us to reproduce the bug: https://github.com/crystal-lang/crystal/issues

Crystal 1.2.2 (2021-11-23)
LLVM: 10.0.1
Default target: x86_64-unknown-linux-gnu

@dinkopehar dinkopehar added the kind:bug A bug in the code. Does not apply to documentation, specs, etc. label Jan 26, 2022
@Sija
Copy link
Contributor

Sija commented Jan 26, 2022

Duplicate of #9065

@asterite
Copy link
Member

Right, it affects all Crystal programs, and Crystal is made in Crystal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug A bug in the code. Does not apply to documentation, specs, etc. status:duplicate topic:stdlib
Projects
None yet
Development

No branches or pull requests

4 participants