Project

General

Profile

Actions

Bug #67336

closed
VS AK

cephfs: test failing to decode backtrace/symlink with ceph-dencoder

Bug #67336: cephfs: test failing to decode backtrace/symlink with ceph-dencoder

Added by Venky Shankar over 2 years ago. Updated 3 months ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
Correctness/Safety
Target version:
Due date:
% Done:

0%

Source:
Q/A
Backport:
reef,squid
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Labels (FS):
Pull request ID:
Tags (freeform):
Fixed In:
v19.3.0-4251-gb251c8ae06
Released In:
v20.2.0~2236
Upkeep Timestamp:
2026-08-28T01:38:35+00:00

Description

Seen in main branch run: /a/teuthology-2024-08-01_20:24:16-fs-main-distro-default-smithi/7831079

2024-08-04T20:49:52.268 INFO:teuthology.orchestra.run.smithi037.stderr:2024-08-04T20:49:52.262+0000 7f774270df40  1 -- 172.21.15.37:0/2920269784 shutdown_connections
2024-08-04T20:49:52.268 INFO:teuthology.orchestra.run.smithi037.stderr:2024-08-04T20:49:52.262+0000 7f774270df40  1 -- 172.21.15.37:0/2920269784 wait complete.
2024-08-04T20:49:52.269 DEBUG:teuthology.orchestra.run.smithi037:> ceph-dencoder type inode_backtrace_t import - decode dump_json
2024-08-04T20:49:52.361 INFO:teuthology.orchestra.run.smithi037.stderr:error: stray data at end of buffer, offset 95
2024-08-04T20:49:52.372 DEBUG:teuthology.orchestra.run:got remote process result: 1

Related issues 2 (0 open — 2 closed)

Copied to CephFS - Backport #67532: squid: cephfs: test failing to decode backtrace/symlink with ceph-dencoderResolvedVenky Shankar

Actions
Copied to CephFS - Backport #67533: reef: cephfs: test failing to decode backtrace/symlink with ceph-dencoderRejectedVenky Shankar

Actions

VS Updated by Venky Shankar over 2 years ago Actions #1

Also here: /a/vshankar-2024-08-01_09:58:56-fs-wip-vshankar-testing-20240801.064407-debug-testing-default-smithi/7829835

2024-08-01T19:12:14.544 DEBUG:teuthology.orchestra.run.smithi139:> ceph-dencoder type string_wrapper import - decode dump_json
2024-08-01T19:12:14.611 INFO:teuthology.orchestra.run.smithi139.stderr:error: stray data at end of buffer, offset 11
2024-08-01T19:12:14.616 DEBUG:teuthology.orchestra.run:got remote process result: 1

VS Updated by Venky Shankar over 2 years ago Actions #2

  • Assignee set to Milind Changire

MC Updated by Milind Changire over 2 years ago Actions #3

The string "stray data at end of buffer" is found in decode methods of 2 classes:
  1. class DencoderBase : public Dencoder
  2. class MessageDencoderImpl : public Dencoder

So, I'm trying to see why doesn't the dencoder for class string_wrapper get selected for decoding.

Also, class string_wrapper isn't derived out of class Dencoder either.
As of now I'm not sure what's going on here or what should be happening for the command ceph-dencoder type string_wrapper import - decode dump_json

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

Milind Changire wrote in #note-3:

The string "stray data at end of buffer" is found in decode methods of 2 classes:
  1. class DencoderBase : public Dencoder
  2. class MessageDencoderImpl : public Dencoder

So, I'm trying to see why doesn't the dencoder for class string_wrapper get selected for decoding.

Also, class string_wrapper isn't derived out of class Dencoder either.
As of now I'm not sure what's going on here or what should be happening for the command ceph-dencoder type string_wrapper import - decode dump_json

This issue is easily reproducible. Suggest trying a manual invocation of ceph-dencoder in a vstart cluster or running the test with vstart_runner.

MC Updated by Milind Changire over 2 years ago Actions #5

It seems the length of the buffer in the bufferlist is 1 more than the (size + expected data) combined.
  1. size: 4 (int32_t)
  2. data: 27 ("/mnt/mycephfs/sym_dir/file1") <-- expected data
  3. len: 32
$ hexdump -C sl 
00000000  1b 00 00 00 2f 6d 6e 74  2f 6d 79 63 65 70 68 66  |..../mnt/mycephf|
00000010  73 2f 73 79 6d 5f 64 69  72 2f 66 69 6c 65 31 0a  |s/sym_dir/file1.|
00000020

Looks like there's a \n at the end.

MC Updated by Milind Changire over 2 years ago Actions #6

VS Updated by Venky Shankar over 2 years ago Actions #9

  • Status changed from New to Pending Backport
  • Assignee changed from Milind Changire to Adam Kupczyk
  • Backport set to reef,squid
  • Pull request ID set to 59025

UB Updated by Upkeep Bot over 2 years ago Actions #10

  • Copied to Backport #67532: squid: cephfs: test failing to decode backtrace/symlink with ceph-dencoder added

UB Updated by Upkeep Bot over 2 years ago Actions #11

  • Copied to Backport #67533: reef: cephfs: test failing to decode backtrace/symlink with ceph-dencoder added

UB Updated by Upkeep Bot over 2 years ago Actions #12

  • Tags (freeform) set to backport_processed

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

  • Status changed from Pending Backport to Resolved
  • Upkeep Timestamp set to 2025-07-08T18:13:26+00:00

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

  • Merge Commit set to b251c8ae067f5164a752127439aafd0314c83e51
  • Fixed In set to v19.3.0-4251-gb251c8ae06
  • Upkeep Timestamp changed from 2025-07-08T18:13:26+00:00 to 2025-08-02T04:50:28+00:00

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

  • Released In set to v20.2.0~2236
  • Upkeep Timestamp changed from 2025-08-02T04:50:28+00:00 to 2025-11-01T01:35:53+00:00

UB Updated by Upkeep Bot 3 months ago Actions #17

  • Tags (freeform) deleted (backport_processed)
  • Upkeep Timestamp changed from 2025-11-01T01:35:53+00:00 to 2026-08-28T01:38:35+00:00
Actions

Also available in: PDF Atom