public inbox for frysk-bugzilla@sourceware.org
help / color / mirror / Atom feed
From: "jan dot kratochvil at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: frysk-bugzilla@sourceware.org
Subject: [Bug general/3863] libunwind occasionally does not return frame function names.
Date: Fri, 12 Jan 2007 11:26:00 -0000	[thread overview]
Message-ID: <20070112112639.27179.qmail@sourceware.org> (raw)
In-Reply-To: <20070111215705.3863.npremji@redhat.com>


------- Additional Comments From jan dot kratochvil at redhat dot com  2007-01-12 11:26 -------
Disowning this Bug as it is not libunwind related.

libunwind only fails to resolve the symbols after the fd (file descriptor)
process table gets filled up (>1024 fds).

You can debug it by:
valgrind --track-fds=yes ./frysk-core/TestRunner -r 1000
'testStressMultiThreadedDetach(frysk.util.StressTestFStack)'

resulting in libunwind's failings:
Warning: invalid file descriptor 1019 in syscall open()

and the final reported leaked fds:
Open file descriptor 178: /lib/libc-2.5.so
   at 0x40515C2: open64 (open64.c:45)
   by 0x85A5E5A: dwfl_linux_proc_find_elf (linux-proc-maps.c:297)
   by 0x85A407D: find_file (dwfl_module_getdwarf.c:103)
   by 0x85A4B71: find_dw (dwfl_module_getdwarf.c:395)
   by 0x85A4CC6: dwfl_module_getdwarf (dwfl_module_getdwarf.c:462)
   by 0x85AADB2: dwfl_module_getsrc (dwfl_module_getsrc.c:57)
   by 0x85A6CA3: dwfl_getsrc (dwfl_getsrc.c:55)
   by 0x8161192: _ZN3lib2dw4Dwfl11dwfl_getsrcEJxx (Dwfl.cxx:138)
   by 0x81583B6: _ZN3lib2dw4Dwfl13getSourceLineEJPNS0_8DwflLineEx (Dwfl.java:110)
   by 0x8133C36: frysk::rt::StackFrame::StackFrame(lib::unwind::FrameCursor*,
frysk::proc::Task*, frysk::rt::StackFrame*) (StackFrame.java:127)
   by 0x8133952:
_ZN5frysk2rt12StackFactory16createStackFrameEJPNS0_10StackFrameEPNS_4proc4TaskEi
(StackFactory.java:79)
   by 0x8133AB4:
_ZN5frysk2rt12StackFactory16createStackFrameEJPNS0_10StackFrameEPNS_4proc4TaskE
(StackFactory.java:112)

Open file descriptor 177: /usr/lib/debug/lib/ld-2.5.so.debug
   at 0x40515C2: open64 (open64.c:45)
   by 0x85A501E: try_open (find-debuginfo.c:79)
   by 0x85A53D4: dwfl_standard_find_debuginfo (find-debuginfo.c:178)
   by 0x85A45AF: find_debuginfo (dwfl_module_getdwarf.c:178)
   by 0x85A4BEA: find_dw (dwfl_module_getdwarf.c:417)
   by 0x85A4CC6: dwfl_module_getdwarf (dwfl_module_getdwarf.c:462)
   by 0x85AADB2: dwfl_module_getsrc (dwfl_module_getsrc.c:57)
   by 0x85A6CA3: dwfl_getsrc (dwfl_getsrc.c:55)
   by 0x8161192: _ZN3lib2dw4Dwfl11dwfl_getsrcEJxx (Dwfl.cxx:138)
   by 0x81583B6: _ZN3lib2dw4Dwfl13getSourceLineEJPNS0_8DwflLineEx (Dwfl.java:110)
   by 0x8133C08: frysk::rt::StackFrame::StackFrame(lib::unwind::FrameCursor*,
frysk::proc::Task*, frysk::rt::StackFrame*) (StackFrame.java:125)
   by 0x8133B12: frysk::rt::StackFrame::StackFrame(lib::unwind::FrameCursor*,
frysk::proc::Task*) (StackFrame.java:92)


There is some leakage, libdwfl's dwfl_end() is not called appropriately.
As it is called from the Dwfl binding's finalize() I assume there are some
leaked Java object references.
But I did not analyse it more as the bug looks to lie in the Java land.
Also running of the testcase above eats about 0.5GB of memory also suggesting
some leakage occurs there.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|jan dot kratochvil at redhat|frysk-bugzilla at sourceware
                   |dot com                     |dot org


http://sourceware.org/bugzilla/show_bug.cgi?id=3863

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


       reply	other threads:[~2007-01-12 11:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20070111215705.3863.npremji@redhat.com>
2007-01-12 11:26 ` jan dot kratochvil at redhat dot com [this message]
2007-01-15 18:43 ` mark at klomp dot org
2007-03-02 21:50 ` jan dot kratochvil at redhat dot com
     [not found] <20070111215705.3863.nurdin.premji.frysk@gmail.com>
2007-10-10 11:57 ` mark at klomp dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070112112639.27179.qmail@sourceware.org \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=frysk-bugzilla@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).