質問編集履歴
2
WSL
title
CHANGED
File without changes
|
body
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
”gcc -g -pthread threadAttr.c”を打ち”Segmentation fault (コアダンプ)”と出力されたが、コアファイルがなく、出力されない原因が知りたいです。
|
3
3
|
|
4
4
|
|
5
|
-
実行環境です。
|
5
|
+
実行環境です。WSL (Windows Subsystem for Linux)を使用しています。
|
6
6
|
lsb_release -a
|
7
7
|
No LSB modules are available.
|
8
8
|
Distributor ID: Debian
|
1
OS・バージョン情報を追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,6 +1,15 @@
|
|
1
1
|
実行ファイルを実行したところ”Segmentation fault”が発生したのでコアファイルを出力するため、
|
2
2
|
”gcc -g -pthread threadAttr.c”を打ち”Segmentation fault (コアダンプ)”と出力されたが、コアファイルがなく、出力されない原因が知りたいです。
|
3
3
|
|
4
|
+
|
5
|
+
実行環境です。
|
6
|
+
lsb_release -a
|
7
|
+
No LSB modules are available.
|
8
|
+
Distributor ID: Debian
|
9
|
+
Description: Debian GNU/Linux 10 (buster)
|
10
|
+
Release: 10
|
11
|
+
Codename: buster
|
12
|
+
|
4
13
|
```C
|
5
14
|
#include <stdio.h>
|
6
15
|
#include <stdlib.h>
|