Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

BUG: Zsh crashes



Dear zsh developers,

I have found a bug in zsh. You can crash zsh with for example a 
segmentation fault by autocompleting `rustc --pretty flowgraph` two times

# Reproduction:
type `rustc --pretty flowgraph`
press tab 2x

# Actual result:
Zsh crashes.
```
$ zsh
  bjorn@pc-bjorn  ~  rustc --pretty flowgraph==......_values:147: 
command not found: opts
*** Error in `zsh': double free or corruption (fasttop): 0x083a23d8 ***
Afgebroken                 #MEANS ABORTED
$ zsh
  bjorn@pc-bjorn  ~  rustc --pretty flowgraph==......_values:147: 
command not found: garbage
Segmentatiefout            #MEANS SEGMENTATION FAULT
$ zsh
  bjorn@pc-bjorn  ~  rustc --pretty flowgraph==......*** Error in 
`zsh': munmap_chunk(): invalid pointer: 0x096daee8 *** expanded
```

# Expected result:
Doesn't crash.

More information can be found at 
https://github.com/robbyrussell/oh-my-zsh/issues/5780 where I originally 
posted this bug, because I couldn't find where this bug report to.

With kind regards,

Bjorn


Messages sorted by: Reverse Date, Date, Thread, Author