Ok I tested again, each time when the recorded movie is short (say 30 sec) all 
is fine.
When it is long (several minutes+) then after stopping record (and choosing the 
file to save to) application hangs.
No CPU usage, no HDD usage.
Just waiting on poll().

Attaching  gdb and strace of both krecordmydesktop and its child process
recordmydesktop for which it seems to be waiting


I have free space both in /tmp/ and in target ~/
/dev/sdb6             7.7G   85M  7.6G   2% /tmp

df -h /home
/dev/sdb9             9.5G  8.1G 1001M  90% /

(movie would be around 30-50 mb long).

$ strace -p `pidof krecordmydesktop`x
Process 27648 attached - interrupt to quit
select(22, [3 10 11 14 16 17 19 20 21], [], [], {108, 808000} <unfinished ...>
Process 27648 detached

[EMAIL PROTECTED]:/proc/27648/fd$ file *
0:  broken symbolic link to `pipe:[67350]'
1:  symbolic link to `/home/rafal/.xsession-errors'
10: broken symbolic link to `socket:[2185696]'
11: broken symbolic link to `pipe:[2185698]'
12: broken symbolic link to `pipe:[2185698]'
13: broken symbolic link to `socket:[67294]'
14: broken symbolic link to `pipe:[2185699]'
15: broken symbolic link to `pipe:[2185699]'
16: broken symbolic link to `socket:[2185701]'
17: broken symbolic link to `socket:[2185771]'
18: symbolic link to `/var/tmp/kdecache-rafal/ksycoca'
19: broken symbolic link to `socket:[2185773]'
2:  symbolic link to `/home/rafal/.xsession-errors'
20: broken symbolic link to `/inotify'
3:  broken symbolic link to `socket:[2185693]'
4:  broken symbolic link to `pipe:[67229]'
5:  broken symbolic link to `pipe:[67229]'
6:  broken symbolic link to `pipe:[67230]'
7:  broken symbolic link to `pipe:[67230]'
8:  broken symbolic link to `pipe:[67231]'
9:  broken symbolic link to `pipe:[67231]'


Process recordmydesktop PID=27656  is son of this krecordmydesktop process

$ strace -p 27656
Process 27656 attached - interrupt to quit
futex(0x41d159e0, FUTEX_WAIT, 27658, NULL) = ? ERESTARTSYS (To be restarted)
--- SIGALRM (Alarm clock) @ 0 (0) ---
rt_sigreturn(0x6145c0)                  = -1 EINTR (Interrupted system call)
futex(0x41d159e0, FUTEX_WAIT, 27658, NULL) = ? ERESTARTSYS (To be restarted)
--- SIGALRM (Alarm clock) @ 0 (0) ---
[...]


----------------------------------------------------------------
----------------------------------------------------------------
----------------------------------------------------------------
gdb of recordmydesktop:   (the child process)


(gdb) thread apply all bt full

Thread 5 (Thread 0x41514950 (LWP 27657)):
#0  0x00007fb9e70efb99 in pthread_cond_wait@@GLIBC_2.3.2 () from 
/lib/libpthread.so.0
No symbol table info available.
#1  0x00007fb9e526c18b in _xcb_lock_io () from /usr/lib/libxcb.so.1
No symbol table info available.
#2  0x00007fb9e526da85 in xcb_poll_for_event () from /usr/lib/libxcb.so.1
No symbol table info available.
#3  0x00007fb9e7c4dc2d in ?? () from /usr/lib/libX11.so.6
No symbol table info available.
#4  0x00007fb9e7c35c2f in XNextEvent () from /usr/lib/libX11.so.6
No symbol table info available.
#5  0x0000000000409fad in ?? ()
No symbol table info available.
#6  0x00007fb9e70eb3f7 in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#7  0x00007fb9e5756b2d in clone () from /lib/libc.so.6
No symbol table info available.
#8  0x0000000000000000 in ?? ()
No symbol table info available.

Thread 4 (Thread 0x41d15950 (LWP 27658)):
#0  0x00007fb9e70f2174 in __lll_lock_wait () from /lib/libpthread.so.0
No symbol table info available.
#1  0x00007fb9e70edb08 in _L_lock_104 () from /lib/libpthread.so.0
No symbol table info available.
#2  0x00007fb9e70ed470 in pthread_mutex_lock () from /lib/libpthread.so.0
No symbol table info available.
#3  0x00007fb9e7c34a83 in ?? () from /usr/lib/libX11.so.6
No symbol table info available.
#4  0x00007fb9e7c4d2f5 in ?? () from /usr/lib/libX11.so.6
No symbol table info available.
#5  0x00007fb9e7c4df8d in _XReply () from /usr/lib/libX11.so.6
No symbol table info available.
#6  0x0000000000403ed4 in ?? ()
No symbol table info available.
#7  0x0000000000409876 in ?? ()
No symbol table info available.
#8  0x0000000000407d65 in ?? ()
No symbol table info available.
#9  0x00007fb9e70eb3f7 in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#10 0x00007fb9e5756b2d in clone () from /lib/libc.so.6
No symbol table info available.
#11 0x0000000000000000 in ?? ()
No symbol table info available.

Thread 3 (Thread 0x42516950 (LWP 27659)):
#0  0x00007fb9e70efb99 in pthread_cond_wait@@GLIBC_2.3.2 () from 
/lib/libpthread.so.0
No symbol table info available.
#1  0x000000000040a4d8 in ?? ()
No symbol table info available.
#2  0x00007fb9e70eb3f7 in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#3  0x00007fb9e5756b2d in clone () from /lib/libc.so.6
No symbol table info available.
#4  0x0000000000000000 in ?? ()
No symbol table info available.

Thread 2 (Thread 0x42d17950 (LWP 27660)):
#0  0x00007fb9e70efb99 in pthread_cond_wait@@GLIBC_2.3.2 () from 
/lib/libpthread.so.0
No symbol table info available.
#1  0x000000000040af2a in ?? ()
No symbol table info available.
#2  0x00007fb9e70eb3f7 in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#3  0x00007fb9e5756b2d in clone () from /lib/libc.so.6
No symbol table info available.
#4  0x0000000000000000 in ?? ()
No symbol table info available.

Thread 1 (Thread 0x7fb9e80ef6e0 (LWP 27656)):
#0  0x00007fb9e70ec796 in pthread_join () from /lib/libpthread.so.0
No symbol table info available.
#1  0x000000000040ec1a in ?? ()
No symbol table info available.
#2  0x0000000000403b5f in ?? ()
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#3  0x00007fb9e569d1c4 in __libc_start_main () from /lib/libc.so.6
No symbol table info available.
#4  0x0000000000403679 in ?? ()
No symbol table info available.
#5  0x00007ffff01265a8 in ?? ()
No symbol table info available.
#6  0x0000000000000000 in ?? ()
No symbol table info available.
#0  0x00007fb9e70ec796 in pthread_join () from /lib/libpthread.so.0


ok,
and now also:

----------------------------------------------------------------
----------------------------------------------------------------
----------------------------------------------------------------
----------------------------------------------------------------
gdb of krecordmydesktop:  

gdb -p `pidof krecordmydesktop`

(gdb) thread apply all backtrace full

Thread 1 (Thread 0x7fe6af6f76f0 (LWP 27648)):
#0  0x00007fe6a9001da2 in select () from /lib/libc.so.6
No symbol table info available.
#1  0x00007fe6ac6c7b83 in QEventLoop::processEvents (this=0x673c60, flags=4) at 
kernel/qeventloop_x11.cpp:294
        event = {type = 11, xany = {type = 11, serial = 18395, send_event = 0, 
display = 0x637a60, window = 0}, xkey = {type = 11, serial = 18395, send_event 
= 0, display = 0x637a60, window = 0, root = 93, subwindow = 2251801961168896, 
time = 0, x = 0, y = 0, 
    x_root = 539111481, y_root = 0, state = 0, keycode = 7729, same_screen = 
0}, xbutton = {type = 11, serial = 18395, send_event = 0, display = 0x637a60, 
window = 0, root = 93, subwindow = 2251801961168896, time = 0, x = 0, y = 0, 
x_root = 539111481, y_root = 0, 
    state = 0, button = 7729, same_screen = 0}, xmotion = {type = 11, serial = 
18395, send_event = 0, display = 0x637a60, window = 0, root = 93, subwindow = 
2251801961168896, time = 0, x = 0, y = 0, x_root = 539111481, y_root = 0, state 
= 0, is_hint = 49 '1', 
    same_screen = 0}, xcrossing = {type = 11, serial = 18395, send_event = 0, 
display = 0x637a60, window = 0, root = 93, subwindow = 2251801961168896, time = 
0, x = 0, y = 0, x_root = 539111481, y_root = 0, mode = 0, detail = 7729, 
same_screen = 0, focus = 7729, 
    state = 0}, xfocus = {type = 11, serial = 18395, send_event = 0, display = 
0x637a60, window = 0, mode = 93, detail = 0}, xexpose = {type = 11, serial = 
18395, send_event = 0, display = 0x637a60, window = 0, x = 93, y = 0, width = 
-2147483648, height = 524288, 
    count = 0}, xgraphicsexpose = {type = 11, serial = 18395, send_event = 0, 
display = 0x637a60, drawable = 0, x = 93, y = 0, width = -2147483648, height = 
524288, count = 0, major_code = 0, minor_code = 0}, xnoexpose = {type = 11, 
serial = 18395, send_event = 0, 
    display = 0x637a60, drawable = 0, major_code = 93, minor_code = 0}, 
xvisibility = {type = 11, serial = 18395, send_event = 0, display = 0x637a60, 
window = 0, state = 93}, xcreatewindow = {type = 11, serial = 18395, send_event 
= 0, display = 0x637a60, parent = 0, 
    window = 93, x = -2147483648, y = 524288, width = 0, height = 0, 
border_width = 0, override_redirect = 0}, xdestroywindow = {type = 11, serial = 
18395, send_event = 0, display = 0x637a60, event = 0, window = 93}, xunmap = 
{type = 11, serial = 18395, 
    send_event = 0, display = 0x637a60, event = 0, window = 93, from_configure 
= -2147483648}, xmap = {type = 11, serial = 18395, send_event = 0, display = 
0x637a60, event = 0, window = 93, override_redirect = -2147483648}, xmaprequest 
= {type = 11, serial = 18395, 
    send_event = 0, display = 0x637a60, parent = 0, window = 93}, xreparent = 
{type = 11, serial = 18395, send_event = 0, display = 0x637a60, event = 0, 
window = 93, parent = 2251801961168896, x = 0, y = 0, override_redirect = 0}, 
xconfigure = {type = 11, 
    serial = 18395, send_event = 0, display = 0x637a60, event = 0, window = 93, 
x = -2147483648, y = 524288, width = 0, height = 0, border_width = 0, above = 
539111481, override_redirect = 0}, xgravity = {type = 11, serial = 18395, 
send_event = 0, display = 0x637a60, 
    event = 0, window = 93, x = -2147483648, y = 524288}, xresizerequest = 
{type = 11, serial = 18395, send_event = 0, display = 0x637a60, window = 0, 
width = 93, height = 0}, xconfigurerequest = {type = 11, serial = 18395, 
send_event = 0, display = 0x637a60, 
    parent = 0, window = 93, x = -2147483648, y = 524288, width = 0, height = 
0, border_width = 0, above = 539111481, detail = 0, value_mask = 
33195802230784}, xcirculate = {type = 11, serial = 18395, send_event = 0, 
display = 0x637a60, event = 0, window = 93, 
    place = -2147483648}, xcirculaterequest = {type = 11, serial = 18395, 
send_event = 0, display = 0x637a60, parent = 0, window = 93, place = 
-2147483648}, xproperty = {type = 11, serial = 18395, send_event = 0, display = 
0x637a60, window = 0, atom = 93, 
    time = 2251801961168896, state = 0}, xselectionclear = {type = 11, serial = 
18395, send_event = 0, display = 0x637a60, window = 0, selection = 93, time = 
2251801961168896}, xselectionrequest = {type = 11, serial = 18395, send_event = 
0, display = 0x637a60, 
    owner = 0, requestor = 93, selection = 2251801961168896, target = 0, 
property = 0, time = 539111481}, xselection = {type = 11, serial = 18395, 
send_event = 0, display = 0x637a60, requestor = 0, selection = 93, target = 
2251801961168896, property = 0, time = 0}, 
  xcolormap = {type = 11, serial = 18395, send_event = 0, display = 0x637a60, 
window = 0, colormap = 93, c_new = -2147483648, state = 524288}, xclient = 
{type = 11, serial = 18395, send_event = 0, display = 0x637a60, window = 0, 
message_type = 93, 
    format = -2147483648, data = {b = '\0' <repeats 16 times>, "90\" ", s = {0, 
0, 0, 0, 0, 0, 0, 0, 12345, 8226}, l = {0, 0, 539111481, 33195802230784, 
33195802230784}}}, xmapping = {type = 11, serial = 18395, send_event = 0, 
display = 0x637a60, window = 0, 
    request = 93, first_keycode = 0, count = -2147483648}, xerror = {type = 11, 
display = 0x47db, resourceid = 0, serial = 6519392, error_code = 0 '\0', 
request_code = 0 '\0', minor_code = 0 '\0'}, xkeymap = {type = 11, serial = 
18395, send_event = 0, 
    display = 0x637a60, window = 0, key_vector = 
"]\000\000\000\000\000\000\000\000\000\000\200\000\000\b", '\0' <repeats 16 
times>}, pad = {140625819205643, 18395, 0, 6519392, 0, 93, 2251801961168896, 0, 
0, 539111481, 33195802230784, 33195802230784, 33200097198080, 
    33200097198080, 33204392165376, 33204392165376, 33217277067264, 
33217277067264, 33221572034560, 33221572034560, 33225867001856, 33225867001856, 
33225867001856, 33225867001856}}
        nevents = 0
        locker = {mtx = 0x674290}
        exclude_all = 10
        canWait = true
        tm = (timeval *) 0x7fe6acfb21b0
        highest = 21
        nsel = 0
        zerotm = {tv_sec = 0, tv_usec = 0}
        t = {0x7fe6acb4af2e "Read", 0x7fe6acb4af33 "Write", 0x7fe6acb4af39 
"Exception"}
#2  0x00007fe6ac73c5bf in QEventLoop::enterLoop (this=0x673c60) at 
kernel/qeventloop.cpp:201
        old_exitloop = false
#3  0x00007fe6ac73c2ab in QEventLoop::exec (this=0x673c60) at 
kernel/qeventloop.cpp:148
No locals.
#4  0x00007fe6ac723e00 in QApplication::exec (this=0x7fffb770c250) at 
kernel/qapplication.cpp:2761
No locals.
#5  0x000000000040cb08 in ?? ()
No symbol table info available.
#6  0x00007fe6a8f4f1c4 in __libc_start_main () from /lib/libc.so.6
No symbol table info available.
#7  0x000000000040c909 in ?? ()
No symbol table info available.
#8  0x00007fffb770c4d8 in ?? ()
No symbol table info available.
#9  0x0000000000000000 in ?? ()
No symbol table info available.
#0  0x00007fe6a9001da2 in select () from /lib/libc.so.6
(gdb) q
The program is running.  Quit anyway (and detach it)? (y or n) y
Detaching from program: /usr/bin/krecordmydesktop, process 27648

-- 
doesn't work - problems/hang while saving even after encode on the fly
https://bugs.launchpad.net/bugs/235376
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to