Project

General

Profile

Actions

Bug #69669

closed
JC JC

cephfs-top: exception when terminal size greater than PAD_WIDTH

Bug #69669: cephfs-top: exception when terminal size greater than PAD_WIDTH

Added by Jos Collin almost 2 years ago. Updated 3 months ago.

Status:
Resolved
Priority:
Low
Assignee:
Category:
Administration/Usability
Target version:
Due date:
% Done:

0%

Source:
Community (dev)
Backport:
reef,squid
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Labels (FS):
Pull request ID:
Tags (freeform):
Fixed In:
v19.3.0-7521-gc6fbca3d87
Released In:
v20.2.0~1146
Upkeep Timestamp:
2026-08-28T01:34:59+00:00

Description

cephfs-top shows "exception: curses function returned NULL", when cephfs-top starts in a smaller window (pad_width <= 300) and the user resize the window width > 300 and navigates to the other displays.

We have fixed a similar exception during init: https://github.com/ceph/ceph/pull/59566/commits/a59f007695dd8f4e121613709f4de520eda55ab9. But that's not enough.
The problem is we are using a smaller pad (width = 300), created at init. Then we resize the terminal and try to create new subwindows in the pad, eachtime we navigate. This is not possible and cephfs-top crashes.

The solution is,
We need to fix this by creating a newpad everytime we create a new display, so that the newly created subwindows could accommodate or the subwindow size should be calculated accordingly to create a smaller display to stay with in the pad. I would go with the former, as would create a better display.


Related issues 2 (0 open — 2 closed)

Copied to CephFS - Backport #69926: reef: cephfs-top: exception when terminal size greater than PAD_WIDTHResolvedJos Collin

Actions
Copied to CephFS - Backport #69927: squid: cephfs-top: exception when terminal size greater than PAD_WIDTHResolvedJos Collin

Actions

JC Updated by Jos Collin almost 2 years ago Actions #1

  • Status changed from New to In Progress
  • Assignee set to Jos Collin
  • Pull request ID set to 61621

JC Updated by Jos Collin almost 2 years ago Actions #2

  • Status changed from In Progress to Fix Under Review

JC Updated by Jos Collin almost 2 years ago Actions #3

  • Description updated (diff)

VS Updated by Venky Shankar almost 2 years ago Actions #4

  • Project changed from Ceph to CephFS
  • Category set to Administration/Usability
  • Status changed from Fix Under Review to Pending Backport
  • Target version set to v20.0.0
  • Backport set to reef,squid

UB Updated by Upkeep Bot almost 2 years ago Actions #5

  • Copied to Backport #69926: reef: cephfs-top: exception when terminal size greater than PAD_WIDTH added

UB Updated by Upkeep Bot almost 2 years ago Actions #6

  • Copied to Backport #69927: squid: cephfs-top: exception when terminal size greater than PAD_WIDTH added

UB Updated by Upkeep Bot almost 2 years ago Actions #7

  • Tags (freeform) set to backport_processed

UB Updated by Upkeep Bot over 1 year ago Actions #8

  • Merge Commit set to c6fbca3d87eb97156402f3ba059d5428229a7a9b
  • Fixed In set to v19.3.0-7521-gc6fbca3d87e
  • Upkeep Timestamp set to 2025-07-08T18:12:14+00:00

JC Updated by Jos Collin over 1 year ago Actions #9

  • Status changed from Pending Backport to Resolved

UB Updated by Upkeep Bot over 1 year ago Actions #10

  • Fixed In changed from v19.3.0-7521-gc6fbca3d87e to v19.3.0-7521-gc6fbca3d87
  • Upkeep Timestamp changed from 2025-07-08T18:12:14+00:00 to 2025-07-14T16:46:01+00:00

UB Updated by Upkeep Bot about 1 year ago Actions #11

  • Released In set to v20.2.0~1146
  • Upkeep Timestamp changed from 2025-07-14T16:46:01+00:00 to 2025-11-01T01:27:21+00:00

UB Updated by Upkeep Bot 3 months ago Actions #12

  • Tags (freeform) deleted (backport_processed)
  • Upkeep Timestamp changed from 2025-11-01T01:27:21+00:00 to 2026-08-28T01:34:59+00:00
Actions

Also available in: PDF Atom