To reproduce:
$ hpithres <type Ctrl-d=""> ==> Segmentation fault (core dumped)
or
$ echo "rdr" | hpithres
Patch attached
Fixed with checkin #7659
Fixed with checkin #7659