質問編集履歴

5

rpm -qa 追加

2016/09/09 07:10

投稿

TakaMuro
TakaMuro

スコア7

test CHANGED
File without changes
test CHANGED
File without changes

4

rpm -qa |grep debuginfo

2016/09/09 07:09

投稿

TakaMuro
TakaMuro

スコア7

test CHANGED
File without changes
test CHANGED
@@ -6,70 +6,6 @@
6
6
 
7
7
 
8
8
 
9
- OS:Red Hat Enterprise Linux Server release 6.2 (Santiago)
10
-
11
-
12
-
13
- webサーバ:
14
-
15
- Server version: Apache/2.2.15 (Unix)
16
-
17
- Server built: Jul 12 2016 07:03:49
18
-
19
- Server's Module Magic Number: 20051115:25
20
-
21
- Server loaded: APR 1.3.9, APR-Util 1.3.9
22
-
23
- Compiled using: APR 1.3.9, APR-Util 1.3.9
24
-
25
- Architecture: 64-bit
26
-
27
- Server MPM: Prefork
28
-
29
- threaded: no
30
-
31
- forked: yes (variable process count)
32
-
33
- Server compiled with....
34
-
35
- -D APACHE_MPM_DIR="server/mpm/prefork"
36
-
37
- -D APR_HAS_SENDFILE
38
-
39
- -D APR_HAS_MMAP
40
-
41
- -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
42
-
43
- -D APR_USE_SYSVSEM_SERIALIZE
44
-
45
- -D APR_USE_PTHREAD_SERIALIZE
46
-
47
- -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
48
-
49
- -D APR_HAS_OTHER_CHILD
50
-
51
- -D AP_HAVE_RELIABLE_PIPED_LOGS
52
-
53
- -D DYNAMIC_MODULE_LIMIT=128
54
-
55
- -D HTTPD_ROOT="/etc/httpd"
56
-
57
- -D SUEXEC_BIN="/usr/sbin/suexec"
58
-
59
- -D DEFAULT_PIDLOG="run/httpd.pid"
60
-
61
- -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
62
-
63
- -D DEFAULT_LOCKFILE="logs/accept.lock"
64
-
65
- -D DEFAULT_ERRORLOG="logs/error_log"
66
-
67
- -D AP_TYPES_CONFIG_FILE="conf/mime.types"
68
-
69
- -D SERVER_CONFIG_FILE="conf/httpd.conf"
70
-
71
-
72
-
73
9
  ###発生している問題・エラーメッセージ
74
10
 
75
11
  [/var/log/messages-20160829]
@@ -387,3 +323,33 @@
387
323
  '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
388
324
 
389
325
  なお、compat-glibc-2.5-46.2.x86_64とcompat-glibc-headers-2.5-46.2.x86_64のバージョン2.12-1.192.el6.x86_64への変更はやり方がわからずそのままです。
326
+
327
+
328
+
329
+ ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー
330
+
331
+ # rpm -qa |grep debuginfo
332
+
333
+ ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
334
+
335
+ libselinux-debuginfo-2.0.94-7.el6.x86_64
336
+
337
+ apr-util-debuginfo-1.3.9-3.el6_0.1.x86_64
338
+
339
+ pcre-debuginfo-7.8-7.el6.x86_64
340
+
341
+ glibc-debuginfo-common-2.12-1.192.el6.x86_64
342
+
343
+ expat-debuginfo-2.0.1-11.el6_2.x86_64
344
+
345
+ httpd-debuginfo-2.2.15-54.el6_8.x86_64
346
+
347
+ glibc-debuginfo-2.12-1.192.el6.x86_64
348
+
349
+ apr-debuginfo-1.3.9-5.el6_2.x86_64
350
+
351
+ openldap-debuginfo-2.4.40-12.el6.x86_64
352
+
353
+ zlib-debuginfo-1.2.3-29.el6.x86_64
354
+
355
+ db4-debuginfo-4.7.25-20.el6_7.x86_64

3

新たなコアファイルの採取とgdbコマンド

2016/09/09 05:19

投稿

TakaMuro
TakaMuro

スコア7

test CHANGED
File without changes
test CHANGED
@@ -102,10 +102,6 @@
102
102
 
103
103
 
104
104
 
105
-
106
-
107
- ---------------------------------------------------------------
108
-
109
105
  新たにコアファイルを取り直し、再度コマンドを打ってみました。
110
106
 
111
107
 
@@ -388,6 +384,6 @@
388
384
 
389
385
  pcre-7.8-6.el6.x86_64 php-5.3.3-40.el6_6.x86_64
390
386
 
391
-
392
-
393
387
  '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
388
+
389
+ なお、compat-glibc-2.5-46.2.x86_64とcompat-glibc-headers-2.5-46.2.x86_64のバージョン2.12-1.192.el6.x86_64への変更はやり方がわからずそのままです。

2

コアファイルを取り直し、再度gdbコマンド実行

2016/09/09 03:14

投稿

TakaMuro
TakaMuro

スコア7

test CHANGED
File without changes
test CHANGED
@@ -102,13 +102,19 @@
102
102
 
103
103
 
104
104
 
105
+
106
+
107
+ ---------------------------------------------------------------
108
+
105
- コアファイルが収集できたので以下のコマンド入力
109
+ 新たにコアファイルを取り直し、再度コマンドを打ってみました。
106
-
110
+
111
+
112
+
107
- # gdb /usr/sbin/httpd -c /tmp/apache-core/core.5677
113
+ # gdb /usr/sbin/httpd -c core.10880
108
-
109
-
110
-
114
+
115
+
116
+
111
- (結果)
117
+ '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
112
118
 
113
119
  GNU gdb (GDB) Red Hat Enterprise Linux (7.2-75.el6)
114
120
 
@@ -128,71 +134,147 @@
128
134
 
129
135
  <http://www.gnu.org/software/gdb/bugs/>...
130
136
 
131
- Reading symbols from /usr/sbin/httpd...(no debugging symbols found)...done.
137
+ Reading symbols from /usr/sbin/httpd...Reading symbols from /usr/lib/debug/usr/sbin/httpd.debug...done.
138
+
132
-
139
+ done.
140
+
141
+ [New Thread 13348]
142
+
133
- [New Thread 6052]
143
+ [New Thread 10880]
134
-
144
+
135
- [New Thread 6053]
145
+ [New Thread 13349]
136
-
137
- [New Thread 5677]
146
+
138
-
139
- [New Thread 6047]
147
+ [New Thread 13347]
148
+
140
-
149
+ Missing separate debuginfo for /lib64/libm.so.6
150
+
151
+ Try: yum --enablerepo='*-debug*' install /usr/lib/debug/.build-id/98/9fe3a42ca8cebdcc185a743896f23a0cf537ed
152
+
153
+ Missing separate debuginfo for /lib64/libcrypt.so.1
154
+
155
+ Try: yum --enablerepo='*-debug*' install /usr/lib/debug/.build-id/12/8802b73016be233837ea9f2dcbc2153acc2d6a
156
+
157
+ Missing separate debuginfo for /lib64/libpthread.so.0
158
+
159
+ Try: yum --enablerepo='*-debug*' install /usr/lib/debug/.build-id/c5/6dd1b811fc0d9263248ebb308c73fcbcd80fc1
160
+
161
+ Missing separate debuginfo for /lib64/libc.so.6
162
+
163
+ Try: yum --enablerepo='*-debug*' install /usr/lib/debug/.build-id/a1/db9754d1f523a6f16ada929d6764a133dc6fa2
164
+
165
+ Missing separate debuginfo for /lib64/libdl.so.2
166
+
167
+
168
+
169
+
170
+
141
- [New Thread 6049]
171
+ ~~~~中略~~~~~
142
-
172
+
173
+
174
+
175
+
176
+
143
- [New Thread 6048]
177
+ Missing separate debuginfo for /lib64/librt.so.1
178
+
144
-
179
+ Try: yum --enablerepo='*-debug*' install /usr/lib/debug/.build-id/95/159178f1a4a3dbdc7819fbea2c80e5fcdd6bac
180
+
181
+
182
+
183
+ warning: .dynamic section for "/lib64/ld-linux-x86-64.so.2" is not at the expected address (wrong library or version mismatch?)
184
+
185
+
186
+
145
- [New Thread 6051]
187
+ warning: Can't read pathname for load map: 入力/出力エラーです.
146
-
147
- [New Thread 6050]
188
+
148
-
149
- Reading symbols from /lib64/libm.so.6...(no debugging symbols found)...done.
189
+ Reading symbols from /lib64/libm.so.6...Reading symbols from /usr/lib/debug/lib64/libm-2.12.so.debug...done.
190
+
191
+ done.
150
192
 
151
193
  Loaded symbols for /lib64/libm.so.6
152
194
 
153
- Reading symbols from /lib64/libpcre.so.0...(no debugging symbols found)...done.
195
+ Reading symbols from /lib64/libpcre.so.0...
196
+
197
+ warning: the debug information found in "/usr/lib/debug//lib64/libpcre.so.0.0.1.debug" does not match "/lib64/libpcre.so.0" (CRC mismatch).
198
+
199
+
200
+
201
+
202
+
203
+ warning: the debug information found in "/usr/lib/debug/lib64/libpcre.so.0.0.1.debug" does not match "/lib64/libpcre.so.0" (CRC mismatch).
204
+
205
+
206
+
207
+ (no debugging symbols found)...done.
154
208
 
155
209
  Loaded symbols for /lib64/libpcre.so.0
156
210
 
157
- Reading symbols from /lib64/libselinux.so.1...(no debugging symbols found)...done.
158
-
159
- Loaded symbols for /lib64/libselinux.so.1
211
+ Reading symbols from /lib64/libselinux.so.1...
160
-
212
+
161
- Reading symbols from /usr/lib64/libaprutil-1.so.0...(no debugging symbols found)...done.
213
+ warning: the debug information found in "/usr/lib/debug//lib64/libselinux.so.1.debug" does not match "/lib64/libselinux.so.1" (CRC mismatch).
162
-
163
- Loaded symbols for /usr/lib64/libaprutil-1.so.0
214
+
164
-
165
- Reading symbols from /lib64/libcrypt.so.1...(no debugging symbols found)...done.
215
+
166
-
216
+
217
+
218
+
219
+
220
+
167
- Loaded symbols for /lib64/libcrypt.so.1
221
+ ~~~~中略~~~~~
168
-
222
+
223
+
224
+
225
+
226
+
227
+
228
+
169
- Reading symbols from /lib64/libexpat.so.1...(no debugging symbols found)...done.
229
+ done.
170
-
230
+
171
- Loaded symbols for /lib64/libexpat.so.1
231
+ Loaded symbols for /lib64/libexpat.so.1.5.2
172
-
232
+
173
- Reading symbols from /lib64/libdb-4.7.so...(no debugging symbols found)...done.
233
+ Reading symbols from /lib64/libdb-4.7.so...
234
+
235
+ warning: the debug information found in "/usr/lib/debug//lib64/libdb-4.7.so.debug" does not match "/lib64/libdb-4.7.so" (CRC mismatch).
236
+
237
+
238
+
239
+
240
+
241
+ warning: the debug information found in "/usr/lib/debug/lib64/libdb-4.7.so.debug" does not match "/lib64/libdb-4.7.so" (CRC mismatch).
242
+
243
+
244
+
245
+ (no debugging symbols found)...done.
174
246
 
175
247
  Loaded symbols for /lib64/libdb-4.7.so
176
248
 
177
- Reading symbols from /usr/lib64/libapr-1.so.0...(no debugging symbols found)...done.
249
+ Reading symbols from /usr/lib64/libapr-1.so.0.3.9...Reading symbols from /usr/lib/debug/usr/lib64/libapr-1.so.0.3.9.debug...done.
250
+
178
-
251
+ done.
252
+
179
- Loaded symbols for /usr/lib64/libapr-1.so.0
253
+ Loaded symbols for /usr/lib64/libapr-1.so.0.3.9
180
-
254
+
181
- Reading symbols from /lib64/libpthread.so.0...(no debugging symbols found)...done.
255
+ Reading symbols from /lib64/libpthread.so.0...Reading symbols from /usr/lib/debug/lib64/libpthread-2.12.so.debug...done.
182
256
 
183
257
  [Thread debugging using libthread_db enabled]
184
258
 
259
+ done.
260
+
185
261
  Loaded symbols for /lib64/libpthread.so.0
186
262
 
187
- Reading symbols from /lib64/libc.so.6...(no debugging symbols found)...done.
263
+ Reading symbols from /lib64/libc.so.6...Reading symbols from /usr/lib/debug/lib64/libc-2.12.so.debug...done.
264
+
265
+ done.
188
266
 
189
267
  Loaded symbols for /lib64/libc.so.6
190
268
 
191
- Reading symbols from /lib64/libdl.so.2...(no debugging symbols found)...done.
269
+ Reading symbols from /lib64/libdl.so.2...Reading symbols from /usr/lib/debug/lib64/libdl-2.12.so.debug...done.
270
+
271
+ done.
192
272
 
193
273
  Loaded symbols for /lib64/libdl.so.2
194
274
 
195
- Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols found)...done.
275
+ Reading symbols from /lib64/ld-linux-x86-64.so.2...Reading symbols from /usr/lib/debug/lib64/ld-2.12.so.debug...done.
276
+
277
+ done.
196
278
 
197
279
  Loaded symbols for /lib64/ld-linux-x86-64.so.2
198
280
 
@@ -200,57 +282,25 @@
200
282
 
201
283
  Loaded symbols for /lib64/libuuid.so.1
202
284
 
203
-
204
-
205
- 中略
206
-
207
-
208
-
209
- Loaded symbols for /etc/httpd/modules/mod_autoindex.so
210
-
211
- Reading symbols from /etc/httpd/modules/mod_negotiation.so...(no debugging symbols found)...done.
212
-
213
- Loaded symbols for /etc/httpd/modules/mod_negotiation.so
214
-
215
- Reading symbols from /etc/httpd/modules/mod_dir.so...(no debugging symbols found)...done.
216
-
217
- Loaded symbols for /etc/httpd/modules/mod_dir.so
218
-
219
- Reading symbols from /etc/httpd/modules/mod_alias.so...(no debugging symbols found)...done.
220
-
221
- Loaded symbols for /etc/httpd/modules/mod_alias.so
222
-
223
- Reading symbols from /etc/httpd/modules/mod_rewrite.so...(no debugging symbols found)...done.
224
-
225
- Loaded symbols for /etc/httpd/modules/mod_rewrite.so
226
-
227
- Reading symbols from /etc/httpd/modules/mod_cgi.so...(no debugging symbols found)...done.
228
-
229
- Loaded symbols for /etc/httpd/modules/mod_cgi.so
230
-
231
- Reading symbols from /etc/httpd/modules/mod_status.so...(no debugging symbols found)...done.
232
-
233
- Loaded symbols for /etc/httpd/modules/mod_status.so
234
-
235
- Reading symbols from /etc/httpd/modules/libphp5.so...(no debugging symbols found)...done.
236
-
237
- Loaded symbols for /etc/httpd/modules/libphp5.so
238
-
239
- Reading symbols from /usr/lib64/libgmp.so.3...(no debugging symbols found)...done.
240
-
241
- Loaded symbols for /usr/lib64/libgmp.so.3
242
-
243
- Reading symbols from /lib64/libbz2.so.1...(no debugging symbols found)...done.
285
+ Reading symbols from /lib64/libfreebl3.so...(no debugging symbols found)...done.
244
-
286
+
245
- Loaded symbols for /lib64/libbz2.so.1
287
+ Loaded symbols for /lib64/libfreebl3.so
246
-
247
- Reading symbols from /lib64/libz.so.1...(no debugging symbols found)...done.
288
+
248
-
249
- Loaded symbols for /lib64/libz.so.1
250
-
251
- Reading symbols from /lib64/libnsl.so.1...(no debugging symbols found)...done.
289
+ Reading symbols from /lib64/libnss_files.so.2...Reading symbols from /usr/lib/debug/lib64/libnss_files-2.12.so.debug...done.
290
+
252
-
291
+ done.
292
+
293
+
294
+
295
+
296
+
253
- Loaded symbols for /lib64/libnsl.so.1
297
+ ~~~~中略~~~~~
298
+
299
+
300
+
301
+
302
+
303
+
254
304
 
255
305
  Reading symbols from /usr/lib64/libxml2.so.2...(no debugging symbols found)...done.
256
306
 
@@ -288,14 +338,12 @@
288
338
 
289
339
  Loaded symbols for /lib64/libkeyutils.so.1
290
340
 
291
- Reading symbols from /lib64/libresolv.so.2...(no debugging symbols found)...done.
341
+ Reading symbols from /lib64/libresolv.so.2...Reading symbols from /usr/lib/debug/lib64/libresolv-2.12.so.debug...done.
342
+
343
+ done.
292
344
 
293
345
  Loaded symbols for /lib64/libresolv.so.2
294
346
 
295
- Reading symbols from /etc/httpd/modules/mod_ssl.so...(no debugging symbols found)...done.
296
-
297
- Loaded symbols for /etc/httpd/modules/mod_ssl.so
298
-
299
347
  Reading symbols from /usr/lib64/libSM.so.6...(no debugging symbols found)...done.
300
348
 
301
349
  Loaded symbols for /usr/lib64/libSM.so.6
@@ -312,46 +360,34 @@
312
360
 
313
361
  Loaded symbols for /lib64/libgcc_s.so.1
314
362
 
315
- Reading symbols from /lib64/librt.so.1...(no debugging symbols found)...done.
363
+ Reading symbols from /lib64/librt.so.1...Reading symbols from /usr/lib/debug/lib64/librt-2.12.so.debug...done.
364
+
316
-
365
+ done.
366
+
367
+
368
+
369
+
370
+
317
- Loaded symbols for /lib64/librt.so.1
371
+ warning: Can't read pathname for load map: 入力/出力エラーです.
318
-
319
- Reading symbols from /usr/lib64/libxcb.so.1...(no debugging symbols found)...done.
320
-
321
- Loaded symbols for /usr/lib64/libxcb.so.1
322
-
323
- Reading symbols from /usr/lib64/libXau.so.6...(no debugging symbols found)...done.
324
-
325
- Loaded symbols for /usr/lib64/libXau.so.6
326
372
 
327
373
  Core was generated by `/usr/sbin/httpd'.
328
374
 
329
375
  Program terminated with signal 11, Segmentation fault.
330
376
 
331
- #0 0x00007f2a9c2c4058 in ?? ()
377
+ #0 0x00007f105bef705c in ?? ()
332
-
378
+
333
- Missing separate debuginfos, use: debuginfo-install httpd-2.2.15-54.el6_8.x86_64
379
+ Missing separate debuginfos, use: debuginfo-install bzip2-libs-1.0.5-7.el6_0.x86_64 db4-4.7.25-18.el6_4.x86_64
380
+
334
-
381
+ gmp-4.3.1-7.el6_2.2.x86_64 keyutils-libs-1.4-5.el6.x86_64 krb5-libs-1.10.3-33.el6.x86_64 libICE-1.0.6-1.el6.x86_64
382
+
335
-
383
+ libSM-1.2.1-2.el6.x86_64 libX11-1.6.0-2.2.el6.x86_64 libXau-1.0.6-4.el6.x86_64 libcom_err-1.41.12-21.el6.x86_64
384
+
336
-
385
+ libgcc-4.4.7-11.el6.x86_64 libselinux-2.0.94-5.8.el6.x86_64 libuuid-2.17.2-12.18.el6.x86_64 libxcb-1.9.1-2.el6.x86_64
386
+
337
- ここでwhereを入力すると
387
+ libxml2-2.7.6-17.el6_6.1.x86_64 nss-softokn-freebl-3.14.3-18.el6_6.x86_64 openssl-1.0.1e-30.el6_6.4.x86_64
338
-
339
- (gdb)where
388
+
340
-
341
- #0 0x00007f2a9c2c4058 in ?? ()
389
+ pcre-7.8-6.el6.x86_64 php-5.3.3-40.el6_6.x86_64
342
-
390
+
391
+
392
+
343
- #1 0x00007f2a9c2c30a0 in ?? ()
393
+ '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
344
-
345
- #2 0x0000000000000000 in ?? ()
346
-
347
-
348
-
349
- となり、行き詰ってしまいました。
350
-
351
-
352
-
353
- これはいったいどうすべきなのでしょうか。
354
-
355
- 当方、インフラ管理者しかおらずデバッグが詳しくありません。
356
-
357
- ご教示のほどお願い申し上げます。

1

内容の訂正

2016/09/09 03:10

投稿

TakaMuro
TakaMuro

スコア7

test CHANGED
File without changes
test CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  以下のOS、WEBサーバを運用しております。
4
4
 
5
- httpdをyum updateしたところ、segfaultエラーが多発するようになりました。
5
+ 以前、 Acronisでバックアップするため一度シャットダウン、CDブートによるバックアップ後に再起動をかけたところ、segfaultエラーが多発するようになりました。
6
6
 
7
7
 
8
8