Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

modkit (0.6.4) pileup - Segmentation fault

オープン
#726 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
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. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

nanoporetech/modkit のほかの issue

nanoporetech/modkit の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。