Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[io] Crash when removing leaf count array of non-primitive type

未关闭
#22,097 4 条评论 0 个 reaction 已指派 2 人 在 GitHub 查看

维护者通常 1 天内回复

@pcanal 已经在做这个了。

开始于 2026年4月29日。

评估

这个 Issue 还没有评估数据。

描述

bug experiment in:I/O
Check duplicate issues.
  • Checked for duplicates
Description

In the context of schema evolution for CMS SoA data structures, we are seeing the following crash:

Fatal: kFALSE violated at line 1712 of `/path/to/root/io/io/src/TStreamerInfoReadBuffer.cxx'

This happens when removing a leaf count array of non-primitive type.

Reproducer

A reproducer is SoAEvolv.tar.gz, which is writing

struct Example {
   int fB;

   ClassDefNV(Example, 2)
};

struct SoAEvolv {
   int fElements = 0;
   int *fA = nullptr; //[fElements]
   Example *fE = nullptr; //[fElements]

   ClassDefNV(SoAEvolv, 2)
};

and then reading back into

struct SoAEvolv {
   int fElements = 0;
   int *fA = 0; //[fElements]

   ClassDefNV(SoAEvolv, 3)
};
ROOT version

6.36, but also latest master

Installation method

CMSSW, but also from source

Operating system

Linux

Additional context

FYI @Electricks94

主要语言
C++
星标
3.3k
派生
1.6k
平均合并
2 天 16 小时
30 天内合并 PR
194

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

root-project/root 的其他 Issue

查看 root-project/root 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。