Why not login to Qiita and try out its useful features?

We'll deliver articles that match you.

You can read useful information later.

0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

WSL のコアファイルってどこに作られるの?と探した件

Posted at

結論

%USERPROFILE%AppData\Local\Temp\wsl-crashes にありました。

環境

wsl --version
WSL バージョン: 2.3.26.0
カーネル バージョン: 5.15.167.4-1
WSLg バージョン: 1.0.65
MSRDC バージョン: 1.2.5620
Direct3D バージョン: 1.611.1-81528511
DXCore バージョン: 10.0.26100.1-240331-1435.ge-release
Windows バージョン: 10.0.26100.2605
>wsl --list
Linux 用 Windows サブシステム ディストリビューション:
Ubuntu-24.04 (既定)

コアファイルのパターンを調べた

$ cat /proc/sys/kernel/core_pattern
|/wsl-capture-crash %t %E %p %s

なんだ、これ。

見つけた参考文献

この辺り

In wsl-2.3.17 core dumps are stored in \AppData\Local\Temp\wsl-crashes folder under your Windows home directory.

って書いてあって、その通りの場所に見つかりました。

file で確認したところ、形式はちゃんと ELF 64-bit LSB core file になってました。

結論

%USERPROFILE%AppData\Local\Temp\wsl-crashes にありました。

気が向いたら、加筆修正します(`・ω・´)ゞ

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up

Qiita Conference 2025 will be held!: 4/23(wed) - 4/25(Fri)

Qiita Conference is the largest tech conference in Qiita!

Keynote Speaker

ymrl、Masanobu Naruse, Takeshi Kano, Junichi Ito, uhyo, Hiroshi Tokumaru, MinoDriven, Minorun, Hiroyuki Sakuraba, tenntenn, drken, konifar

View event details
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?