application unload 시 trap(exception) 문제 디버깅 (strace 이용)

anonke의 이미지

Linux 기반에서 SW를 개발하고 있습니다. SW unload 시 trap(exception)이 발생하는데 traceback이나 stack 정보가 남아있지 않습니다. strace를 통해 trace를 했으나, 정확한 분석이 어렵네요.. 왜 trap이 발생했는지 유추가 가능한지요..? 고수님들 부탁드려요.. (Processor id : 19716, therad id : 19739)

[pid 19739] select(0, NULL, NULL, NULL, {0, 408000}
[pid 19739] <... select resumed> ) = 0 (Timeout)
[pid 19739] select(0, NULL, NULL, NULL, {1, 0}
[pid 19739] <... select resumed> ) = 0 (Timeout)
[pid 19739] select(0, NULL, NULL, NULL, {1, 0}
[pid 19739] <... select resumed> ) = 0 (Timeout)
[pid 19739] select(0, NULL, NULL, NULL, {1, 0}
[pid 19739] <... select resumed> ) = 0 (Timeout)
[pid 19739] select(0, NULL, NULL, NULL, {1, 0}
[pid 19739] <... select resumed> ) = 0 (Timeout)
[pid 19739] select(0, NULL, NULL, NULL, {1, 0}
[pid 19734] open("/proc/19716/task/19739/status", O_RDONLY
[pid 19734] tgkill(19716, 19739, SIGRT_0
[pid 19739] <... select resumed> ) = ? ERESTARTNOHAND (To be restarted)
[pid 19739] --- SIGRT_0 (Unknown signal 32) @ 0 (0) ---
[pid 19739] futex(0x5558425f20, 0x80 /* FUTEX_??? */, 2
[pid 19739] <... futex resumed> ) = 0
[pid 19739] clock_gettime(CLOCK_REALTIME,
[pid 19739] <... clock_gettime resumed> {1359423205, 805637802}) = 0
[pid 19739] gettid(
[pid 19739] <... gettid resumed> ) = 19739
[pid 19739] readlink("/proc/19716/exe",
[pid 19739] <... readlink resumed> "/run/opt/nortel/aec1000/3.0.0/bin/cpp_cm", 1024) = 40
[pid 19739] prctl(0x10 /* PR_??? */, 0x55847fdbf8, 0x400, 0, 0
[pid 19739] <... prctl resumed> ) = 0
[pid 19739] gettimeofday(
[pid 19739] <... gettimeofday resumed> {1359423205, 808338}, NULL) = 0
[pid 19739] newlstat("/etc/localtime",
[pid 19739] <... newlstat resumed> {st_mode=S_IFLNK|0777, st_size=30, ...}) = 0
[pid 19739] newstat("/etc/localtime",
[pid 19739] <... newstat resumed> {st_mode=S_IFREG|0644, st_size=380, ...}) = 0
[pid 19739] newstat("/etc/localtime",
[pid 19739] <... newstat resumed> {st_mode=S_IFREG|0644, st_size=380, ...}) = 0
[pid 19739] sendto(6, "<175>Jan 29 10:33:25 cpp_cm[1971"..., 177, MSG_NOSIGNAL, ptrace: umoven: Input/output error
[pid 19739] <... sendto resumed> ) = 177
[pid 19739] futex(0x5558425f20, 0x81 /* FUTEX_??? */, 1
[pid 19739] <... futex resumed> ) = 1
[pid 19739] --- SIGSEGV (Segmentation fault) @ 0 (0) ---
[pid 19739] gettid(
[pid 19739] <... gettid resumed> ) = 19739
[pid 19739] rt_sigprocmask(SIG_SETMASK, NULL,
[pid 19739] <... rt_sigprocmask resumed> ~[QUIT ILL TRAP IOT FPE KILL BUS SYS STOP XCPU XFSZ RT_1], 16) = 0
[pid 19739] rt_sigprocmask(SIG_BLOCK, ~[QUIT ILL TRAP IOT FPE BUS SYS XCPU XFSZ RT_0 RT_1],
[pid 19739] <... rt_sigprocmask resumed> ~[QUIT ILL TRAP IOT FPE KILL BUS SYS STOP XCPU XFSZ RT_1], 16) = 0
[pid 19739] gettid(
[pid 19739] <... gettid resumed> ) = 19739
[pid 19739] mmap(0x1ef00007000000, 135168, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, 1874593424, 0x4d1b
[pid 19739] <... mmap resumed> ) = 0x556fcc6000
[pid 19739] mprotect(0x556fcc7000, 126976, PROT_READ|PROT_WRITE
[pid 19739] <... mprotect resumed> ) = 0
[pid 19739] gettid(
[pid 19739] <... gettid resumed> ) = 19739
[pid 19739] gettid(
[pid 19739] <... gettid resumed> ) = 19739
[pid 19739] sigaltstack(NULL
[pid 19739] <... sigaltstack resumed> , {ss_sp=0x556fba2000, ss_flags=SS_ONSTACK, ss_size=126976}) = 0
[pid 19739] gettid(
[pid 19739] <... gettid resumed> ) = 19739
[pid 19739] gettid(
[pid 19739] <... gettid resumed> ) = 19739
[pid 19739] getppid(
[pid 19739] <... getppid resumed> ) = 1
[pid 19739] gettid(
[pid 19739] <... gettid resumed> ) = 19739
[pid 19739] gettimeofday(
[pid 19739] <... gettimeofday resumed> {1359423205, 826996}, NULL) = 0
[pid 19739] sendto(3, "<178>Jan 29 10:33:25 cpp_cm: MTC"..., 111, MSG_NOSIGNAL, ptrace: umoven: Input/output error
[pid 19739] <... sendto resumed> ) = 111
[pid 19739] rt_sigprocmask(SIG_UNBLOCK, [QUIT ILL TRAP IOT FPE BUS SEGV SYS XCPU XFSZ],
[pid 19739] <... rt_sigprocmask resumed> NULL, 16) = 0
[pid 19739] prctl(0x10 /* PR_??? */, 0x556fbc06c0, 0, 0, 0
[pid 19739] <... prctl resumed> ) = 0
[pid 19739] gettimeofday(
[pid 19739] <... gettimeofday resumed> {1359423205, 829736}, NULL) = 0
[pid 19739] sendto(3, "<175>Jan 29 10:33:25 cpp_cm: ee_"..., 153, MSG_NOSIGNAL, ptrace: umoven: Input/output error
[pid 19739] <... sendto resumed> ) = 153
[pid 19739] gettid(
[pid 19739] <... gettid resumed> ) = 19739
[pid 19739] gettimeofday(
[pid 19739] <... gettimeofday resumed> {1359423205, 832627}, NULL) = 0
[pid 19739] sendto(3, "<178>Jan 29 10:33:25 cpp_cm: MTC"..., 98, MSG_NOSIGNAL, ptrace: umoven: Input/output error
[pid 19739] <... sendto resumed> ) = 98
[pid 19739] gettid(
[pid 19739] <... gettid resumed> ) = 19739
[pid 19739] gettimeofday(
[pid 19739] <... gettimeofday resumed> {1359423205, 835436}, NULL) = 0
[pid 19739] sendto(3, "<178>Jan 29 10:33:25 cpp_cm: MTC"..., 70, MSG_NOSIGNAL, ptrace: umoven: Input/output error
[pid 19739] <... sendto resumed> ) = 70
[pid 19739] open("/proc/19716/maps", O_RDONLY
[pid 19739] <... open resumed> ) = 31
[pid 19739] newfstat(31,
[pid 19739] <... newfstat resumed> {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
[pid 19739] mmap(NULL, 65536, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 1489531888, 0x323352a
[pid 19739] <... mmap resumed> ) = 0x556fd18000
[pid 19739] read(31,
[pid 19739] <... read resumed> "07000000-07001000 ---p 07000000 "..., 1024) = 1024
[pid 19739] read(31,
[pid 19739] <... read resumed> "
[pid 19739] read(31,
[pid 19739] <... read resumed> "V20000111 (deleted)\n555c420000-5"..., 1024) = 1024
[pid 19739] read(31,
[pid 19739] <... read resumed> "0 00:08 172032294 "..., 1024) = 1024
[pid 19739] read(31,
[pid 19739] <... read resumed> "deleted)\n555c435000-555c436000 r"..., 1024) = 1024
[pid 19739] +++ killed by SIGSEGV +++
PANIC: handle_group_exit: 19739 leader 19716
Process 19739 detached

댓글 달기

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
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.