Project

General

Profile

Bug #2556

Updated by tuxillo almost 11 years ago

Hi, 

 

 tmux has a memory leak somewhere and it was causing a lot of swap memory to be used. I started using truss(1) to see what it was doing and after 3-4 tracing attempts the tmux process was stuck in status "stopevent". After sending to it all sorts of signals (CONT, HUP, KILL) the process is kept stopped in the same situation. I also tried disabling tracing with ktrace(1) but it didn't help.  

  

 Eventually I tried to reboot the virtual machine but it got stuck for around 10 minutes without actually being able to shutdown. Last step was dropping to DDB and producing a dump. Dump is available on leaf on demand. See below the backtrace of the thread involved (tmux process) 

 

 Best regards, 
 
 Antonio Huete 

 

 ------ 

 

 (kgdb) thread 26 
 
 [Switching to thread 26 (pid 835/0, tmux)] 
 
 #0    0xffffffff8050dfb0 in lwkt_switch () at /home/source/dfbsd/sys/kern/lwkt_thread.c:872 
 
 872       /home/source/dfbsd/sys/kern/lwkt_thread.c: No such file or directory. 
 
 (kgdb) bt 
 
 #0    0xffffffff8050dfb0 in lwkt_switch () at /home/source/dfbsd/sys/kern/lwkt_thread.c:872 
 
 #1    0xffffffff80518f0e in tsleep (ident=ident@entry=0xffffffe071efc990, flags=flags@entry=1024,  
      
     wmesg=wmesg@entry=0xffffffff8097e168 "stopevent", timo=timo@entry=0) at /home/source/dfbsd/sys/kern/kern_synch.c:612 
 
 #2    0xffffffff80538091 in stopevent (p=p@entry=0xffffffe071efc780, event=event@entry=4, val=val@entry=7) 
     
     at /home/source/dfbsd/sys/kern/sys_process.c:771 
 
 #3    0xffffffff808c5a7a in syscall2 (frame=0xffffffe07280e9f8) at /home/source/dfbsd/sys/platform/pc64/x86_64/trap.c:1229 
 
 #4    0xffffffff808af75b in ?? () at /home/source/dfbsd/sys/platform/pc64/x86_64/exception.S:323 
 
 #5    0x00000000000000c5 in ?? () 
 
 #6    0x0000000000000000 in ?? () 


 


Back