[Linux] core file 생성시 pid가 자꾸 붙네요.. ㅠㅠㅠ

gijung73의 이미지

특정 서버에서 pid 생략 적용이 안되어 이렇게 자문을 구합니다.

pid가 붙으면서 현장에 core적용을 못하고 있습니다.
disk full 걱정이 되기에..

환경은 다음과 같이 같으며 적용을 하였습니다.

# uname -a
Linux (none) 2.6.26.3 #790 Wed Jan 28 15:54:46 EST 2009 mips unknown
# pwd
/proc/sys/kernel
# cat core_uses_pid
0
# cat core_pattern
core.%e
# ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) unlimited
stack(kbytes) 8192
coredump(blocks) unlimited
memory(kbytes) unlimited
locked memory(kbytes) 32
process 2048
nofiles 1024
vmemory(kbytes) unlimited
locks unlimited

위와 같이 셋팅을 하였지만, core file의 pid값이 생략되어야 할텐데 특정 서버에서 자꾸 생성됩니다.
많은 조언 부탁 드립니다.

pastime의 이미지

If a multithreaded process (or, more precisely, a process that shares its memory with another process by being created with the CLONE_VM flag of clone(2)) dumps core, then the process ID is always appended to the core filename, unless the process ID was already included elsewhere in the filename via a %p specification in /proc/sys/kernel/core_pattern.

뭔가 다른 방법을 생각해 보셔야 할 듯..

gijung73의 이미지

답변 갑사합니다.

그러고 보니..
멀티쓰레드 process에 한하여 pid가 붙고, 그렇지 않은 process는 pid가 안붙도록 적용이 된 것이었네요.

혹시 멀티쓰레드 process에 대해서도 pid가 붙지 않도록 설정할 수 있는 방법이 있을런지요..
다른 개발자분께서는 어떻게 하고 있는지요..
예전에 제가 Solaris 6, 9 version을 사용했었을때는 core 라는 파일이름으로만 생성되어 발생시에는
엎어썼었거든요..

혹시 다른 분들은 저 같은 고뇌를 하시는 분은 없는지요

bushi의 이미지

[bushi@rose input]$ rpm -qi abrt
Name        : abrt                         Relocations: (not relocatable)
Version     : 1.0.6                             Vendor: Fedora Project
Release     : 1.fc12                        Build Date: 
Install Date:                                  Build Host: x86-02.phx2.fedoraproject.org
Group       : Applications/System           Source RPM: abrt-1.0.6-1.fc12.src.rpm
Size        : 603246                           License: GPLv2+
Signature   : RSA/8, 2010년 02월 04일 (목) 오전 01시 02분 01초, Key ID 9d1cc34857bbccba
Packager    : Fedora Project
URL         : <a href="https://fedorahosted.org/abrt/
Summary" rel="nofollow">https://fedorahosted.org/abrt/
Summary</a>     : Automatic bug detection and reporting tool
Description :
abrt is a tool to help users to detect defects in applications and
to create a bug report with all informations needed by maintainer to fix it.
It uses plugin system to extend its functionality.
[bushi@rose input]$

fedora12 에서 볼 수 있는데, core dump 가 발생했을 때 후처리를 담당합니다.
여러가지 정책을 적용할 수 있습니다.
fedora12 데스크탑을 개발용으로 쓰는 상황에선 ... 솔직히 좀 귀찮습니다.

OTL

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.