View Issue Details

IDProjectCategoryView StatusLast Update
0000392tcshGeneralpublic2022-10-05 18:24
ReporterRohanTalip Assigned To 
PrioritynormalSeveritymajorReproducibilitysometimes
Status newResolutionopen 
Product Version6.21.00 
Summary0000392: Segmentation faults on macOS Monterey 12.6
DescriptionIn one terminal window, after the issue seen in https://bugs.astron.com/view.php?id=391 was observed, typing commands that don't exist (initially accidentally) resulted in "Segmentation fault
Exit 139" being printed (I have printexitvalue set).

Later, trying to pipe the history to less also resulted in the same segmentation fault message, as did trying to use tab completion.

I am not sure how related this is to https://bugs.astron.com/view.php?id=391 (maybe the issue with job control / pipes corrupted some memory) but it seemed different enough to warrant a separate bug report.
Steps To ReproduceAssume "%N" below is my prompt, and "#" starts a comment.

%157 asdf list all nodejs | less

# Success.


%158 asdf list all nodejs | less

[1] + Done asdf list all nodejs |
       Suspended (tty output) /usr/local/bin/less
[1] 34808 34809


%159 jobs
[1] + Done asdf list all nodejs |
       Suspended (tty output) /usr/local/bin/less


%160 fg
asdf list all nodejs | /usr/local/bin/less
fg: No such job (badjob).
Exit 1


%161 asdf list all nodejs | less

# Success, I think. At least there was no exit status printed and no issue with the job control.

%162 asdf list all nodejs | grep ^18
18.0.0
18.1.0
18.2.0
18.3.0
18.4.0
18.5.0
18.6.0
18.7.0
18.8.0
18.9.0
18.9.1
18.10.0


# I accidentally typed tsc (which if configured correctly will compile/transpile TypeScript files into JavaScript files) :

%236 tsc
tsc: Command not found.
Segmentation fault
Exit 139

%237 npx tsc

# Success.


%238 tsc
tsc: Command not found.
Segmentation fault
Exit 139


# h is an alias for history:

%335 h | less
Segmentation fault
Exit 139


# "h 10" works as expected:

%337 h 10

%338 h | grep eslint | grep fix
Segmentation fault
Exit 1

%339 h | less
Segmentation fault
Exit 139


# gc is an alias for "git checkout"; I also have a completion for "gc"; trying to use tab completion resulted in "Segmentation fault" :

%367 gc sr<TAB>Segmentation fault

error: pathspec 'sr' did not match any file(s) known to git
Exit 1

# Later:

%460 gc ro<TAB>Segmentation fault

%570 aabb
aabb: Command not found.
Segmentation fault
Exit 139

%571 echo $version
tcsh 6.21.00 (Astron) 2019-05-08 (x86_64-apple-darwin) options wide,nls,dl,bye,al,kan,sm,rh,color,filec

%572 aaa
aaa: Command not found.
Segmentation fault
Exit 139

%581 complete gc
'p/1/`git branch | cut -c 3-`/'


# Other valid commands not requiring pipes or job control or tab completion seem to work fine.
Additional InformationOther less long-lived tcsh sessions that have also seen the issue in https://bugs.astron.com/view.php?id=391 don't exhibit these segmentation fault issues:

%42 aabb
aabb: Command not found.
Exit 1
Tagsbug

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2022-10-05 18:24 RohanTalip New Issue
2022-10-05 18:24 RohanTalip Tag Attached: bug