okbob / pspg

Unix pager (with very rich functionality) designed for work with tables. Designed for PostgreSQL, but MySQL is supported too. Works well with pgcli too. Can be used as CSV or TSV viewer too. It supports searching, selecting rows, columns, or block and export selected area to clipboard.
BSD 2-Clause "Simplified" License
2.43k stars 85 forks source link

Crashes #199

Closed janlimpens closed 2 years ago

janlimpens commented 2 years ago

On longer result sets I am consistently getting:

> select * from xxx;
pspg crashed by signal 11
Segmentation fault (core dumped)
Time: 2.984 ms

after scrolling quite a few pages down if odd line coloring is on

5.5.2 on debian sid installed via linux brew

okbob commented 2 years ago

Is it related to 5.5.2 release only?

What is longer result? Can you send me example of data where pspg fails? Can you find this query against system tables?

Can you show your pspg configuration?

janlimpens commented 2 years ago

I just found out it has to do with coloring odd lines (Highlight odd records). Once I set this to off, no more crashes. While this fixes it for me, you may want to have a look into it. Great software, by the way! Kudos!!!

janlimpens commented 2 years ago

I had it in both 5.5.1 and 5.5.2

okbob commented 2 years ago

yes, now I was able to reproduce it. I'll fix. Thank you for report

okbob commented 2 years ago

Should be fixed in 5.5.3 (master). Please, test it.

janlimpens commented 2 years ago

a bit late, but just to confirm, it's been fixed.

okbob commented 2 years ago

Thank you for check :)

út 21. 12. 2021 v 15:04 odesílatel Jan @.***> napsal:

a bit late, but just to confirm, it's been fixed.

— Reply to this email directly, view it on GitHub https://github.com/okbob/pspg/issues/199#issuecomment-998805624, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEFO44SINQ4BWTGH7UQCJTUSCCPBANCNFSM5J6HSXBA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you modified the open/close state.Message ID: @.***>