[lldb-dev] [Bug 48237] New: Memory leak, when executing expressions

2020-11-20 Thread via lldb-dev
https://bugs.llvm.org/show_bug.cgi?id=48237

Bug ID: 48237
   Summary: Memory leak, when executing expressions
   Product: lldb
   Version: 11.0
  Hardware: PC
OS: Linux
Status: NEW
  Severity: normal
  Priority: P
 Component: All Bugs
  Assignee: lldb-dev@lists.llvm.org
  Reporter: mplan...@os.inf.tu-dresden.de
CC: jdevliegh...@apple.com, llvm-b...@lists.llvm.org

Hello,

When I attach to a process and executes some expressions, lldb allocates memory
to JIT-compile the code inside the process address space. Unfortunately, lldb
does not clean up this memory upon exit.

## How to reproduce

I create a multithreaded program 'victim-malloc' that makes free(malloc()) in a
busy loop. First, I let the program run, then I record the memory map of the
program:

$ cat  /proc/$(pidof victim-malloc)/maps > /tmp/a

I attach to the program using lldb and run an expression

$ lldb-11 -p $(pidof victim-malloc)
(lldb) expression -- (int) printf("Hello");

I exit from lldb, record the memory map second time and look at the diff.

$ cat  /proc/$(pidof victim-malloc)/maps > /tmp/b
$ diff -p /tmp/a /tmp/b

Here is the result:

*** /tmp/a  2020-11-20 10:21:25.434149021 +0100
--- /tmp/b  2020-11-20 10:22:35.098652870 +0100
***
*** 57,65 
--- 57,69 
  7f7bc770c000-7f7bc770d000 r--p 0001b000 fd:01 541618
/lib/x86_64-linux-gnu/libpthread-2.31.so
  7f7bc770d000-7f7bc770e000 rw-p 0001c000 fd:01 541618
/lib/x86_64-linux-gnu/libpthread-2.31.so
  7f7bc770e000-7f7bc7714000 rw-p  00:00 0 
+ 7f7bc7747000-7f7bc7748000 r-xp  00:00 0 
+ 7f7bc7748000-7f7bc7749000 rw-p  00:00 0 
+ 7f7bc7749000-7f7bc774a000 r--p  00:00 0 
  7f7bc774a000-7f7bc774b000 r--p  fd:01 528343
/lib/x86_64-linux-gnu/ld-2.31.so
  7f7bc774b000-7f7bc776b000 r-xp 1000 fd:01 528343
/lib/x86_64-linux-gnu/ld-2.31.so
  7f7bc776b000-7f7bc7773000 r--p 00021000 fd:01 528343
/lib/x86_64-linux-gnu/ld-2.31.so
+ 7f7bc7773000-7f7bc7774000 rwxp  00:00 0 
  7f7bc7774000-7f7bc7775000 r--p 00029000 fd:01 528343
/lib/x86_64-linux-gnu/ld-2.31.so
  7f7bc7775000-7f7bc7776000 rw-p 0002a000 fd:01 528343
/lib/x86_64-linux-gnu/ld-2.31.so
  7f7bc7776000-7f7bc000 rw-p  00:00 0 


New regions were created by lldb and not cleaned up after exit.

-- 
You are receiving this mail because:
You are the assignee for the bug.___
lldb-dev mailing list
lldb-dev@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev


[lldb-dev] LLVM 11.0.1 Release Schedule

2020-11-20 Thread Tom Stellard via lldb-dev

Hi,

Here is the LLVM 11.0.1 Release Schedule:

Nov. 25:  -rc1
Dec. 8-rc2/Deadline to request backports
Dec. 15   -final

I had proposed[1] changing the stable release schedules back in
May, but due to a lack of improvement in the automated testing 
situation, I didn't feel comfortable implementing it this time around.
I may try to revisit it again for a future release.  There was general 
consensus for the process clarifications in that proposal, though, and 
I'm still planning to do a documentation update based on that discussion.


If you have fixes you want to get into the 11.0.1 release please file a 
bug and put `release-11.0.1` in the Blocks field.


Thanks,
Tom

[1] http://lists.llvm.org/pipermail/llvm-dev/2020-May/141730.html

___
lldb-dev mailing list
lldb-dev@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev