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

modkit (0.6.4) pileup - Segmentation fault

未关闭
#726 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
48/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
rust

调研方向

Start by reproducing the crash with modkit 0.6.4 using pileup on the reported modBAM, reference, --modified-bases values, and --allow-non-primary option; compare with the successful command that omits those options. The issue does not name source files or tests, so trace the pileup path that parses these options and handles non-primary alignments. Done means the same input completes without a segmentation fault and produces pileup output.

由索引模型根据 Issue 内容生成。

描述

bug troubleshooting

Dear modkit developers,

I am encountering a "Segmentation fault (core dumped)" error when running modkit pileup on a modBAM file with the --modified-bases and --allow-non-primary options.

This issue does not seem related to a specific mark or the number of threads used. It occurs both when working with a single chromosome and when processing the entire genome. However, omitting the two options mentioned above allows the process to run smoothly.

Could you please help me resolve this issue?

Thank you and best regards,

Mattia

(base) [mfurlan@cnode01 pipelines]$ ${modkitPath}/modkit pileup
${BAMsPaths}/minimap2_filtered.bam
${ResultsPath}/${chr}_pileup.output.bed
--region ${chr}
--threads 1

parsing region chr21
discarded 0 contigs with zero aligned reads
attempting to sample at least 10042 reads
calculating threshold value with probabilites from reads
setting threshold 0.6855469 (qual: 175) for base C, percentile 10, 125760 total probabilites
setting threshold 0.7207031 (qual: 184) for base T, percentile 10, 161779 total probabilites
setting threshold 0.8925781 (qual: 228) for base G, percentile 10, 134269 total probabilites
setting threshold 0.6464844 (qual: 165) for base A, percentile 10, 190579 total probabilites
using general workers
Done, processed 334986 rows.

(base) [mfurlan@cnode01 pipelines]$ head ${ResultsPath}/${chr}_pileup.output.bed
chr21 5035650 5035651 19229 1 + 5035650 5035651 255,0,0 1 0.00 0 1 0 0 0 0 0
chr21 5035651 5035652 19229 1 + 5035651 5035652 255,0,0 1 0.00 0 1 0 0 0 0 0
chr21 5035652 5035653 m 1 + 5035652 5035653 255,0,0 1 0.00 0 1 0 0 0 0 0
chr21 5035652 5035653 19228 1 + 5035652 5035653 255,0,0 1 0.00 0 1 0 0 0 0 0
chr21 5035653 5035654 a 1 + 5035653 5035654 255,0,0 1 0.00 0 1 0 0 0 0 0
chr21 5035653 5035654 17596 1 + 5035653 5035654 255,0,0 1 0.00 0 1 0 0 0 0 0
chr21 5035653 5035654 69426 1 + 5035653 5035654 255,0,0 1 0.00 0 1 0 0 0 0 0
chr21 5035654 5035655 19229 1 + 5035654 5035655 255,0,0 1 0.00 0 1 0 0 0 0 0
chr21 5035655 5035656 17802 1 + 5035655 5035656 255,0,0 1 0.00 0 1 0 0 0 0 0
chr21 5035655 5035656 19227 1 + 5035655 5035656 255,0,0 1 0.00 0 1 0 0 0 0 0

(base) [mfurlan@cnode01 pipelines]$ ${modkitPath}/modkit pileup
${BAMsPaths}/minimap2_filtered.bam
${ResultsPath}/${chr}_pileup.output.bed
--region ${chr}
--threads 1
--reference ${genomeFastaPath}
--modified-bases C:m A:a A:17596 T:17802 C:19228 A:69426 G:19229 T:19227
--allow-non-primary

parsing region chr21
discarded 0 contigs with zero aligned reads
parsed 8 base modification(s). Base modifications other than 'A:17596,A:69426,A:a,C:19228,C:m,G:19229,T:17802,T:19227' will be counted as 'N_other'.
adding single-base motif: 'A 0'
adding single-base motif: 'C 0'
adding single-base motif: 'G 0'
adding single-base motif: 'T 0'
0 B written to output: chr21_pileup.output.bed [0 B/s] Segmentation fault (core dumped)

主要语言
Rust
星标
280
派生
35
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

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

nanoporetech/modkit 的其他 Issue

查看 nanoporetech/modkit 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

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