teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

2

WSL

2021/02/14 02:49

投稿

hashibiro
hashibiro

スコア10

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・バージョン情報を追加

2021/02/14 02:49

投稿

hashibiro
hashibiro

スコア10

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>