[Digikam-devel] [Bug 243497] Digikam does not exit when "quit", stuck in select
Chris Samuel
kde at csamuel.org
Sat Jul 3 14:34:33 BST 2010
https://bugs.kde.org/show_bug.cgi?id=243497
--- Comment #1 from Chris Samuel <kde csamuel org> 2010-07-03 15:34:31 ---
It appears to be trying to read from a UNIX domain socket, but getting no
answer.
chris at quad:~$ strace -p 9914
Process 9914 attached - interrupt to quit
select(76, [3 7 8 9 12 42 43 54 55 58 59 60 61 69 70 71 72 73 74 75], [], [],
{0, 966567}) = 0 (Timeout)
read(7, 0x2693ba4, 4096) = -1 EAGAIN (Resource temporarily
unavailable)
select(76, [3 7 8 9 12 42 43 54 55 58 59 60 61 69 70 71 72 73 74 75], [], [],
{0, 998707}) = 0 (Timeout)
read(7, 0x2693ba4, 4096) = -1 EAGAIN (Resource temporarily
unavailable)
select(76, [3 7 8 9 12 42 43 54 55 58 59 60 61 69 70 71 72 73 74 75], [], [],
{0, 998794}) = 0 (Timeout)
read(7, 0x2693ba4, 4096) = -1 EAGAIN (Resource temporarily
unavailable)
select(76, [3 7 8 9 12 42 43 54 55 58 59 60 61 69 70 71 72 73 74 75], [], [],
{0, 998785}) = 0 (Timeout)
read(7, 0x2693ba4, 4096) = -1 EAGAIN (Resource temporarily
unavailable)
select(76, [3 7 8 9 12 42 43 54 55 58 59 60 61 69 70 71 72 73 74 75], [], [],
{0, 998792}) = 0 (Timeout)
read(7, 0x2693ba4, 4096) = -1 EAGAIN (Resource temporarily
unavailable)
select(76, [3 7 8 9 12 42 43 54 55 58 59 60 61 69 70 71 72 73 74 75], [], [],
{0, 998791}) = 0 (Timeout)
read(7, 0x2693ba4, 4096) = -1 EAGAIN (Resource temporarily
unavailable)
select(76, [3 7 8 9 12 42 43 54 55 58 59 60 61 69 70 71 72 73 74 75], [], [],
{0, 998782}) = 0 (Timeout)
read(7, 0x2693ba4, 4096) = -1 EAGAIN (Resource temporarily
unavailable)
select(76, [3 7 8 9 12 42 43 54 55 58 59 60 61 69 70 71 72 73 74 75], [], [],
{0, 998790}) = 0 (Timeout)
read(7, 0x2693ba4, 4096) = -1 EAGAIN (Resource temporarily
unavailable)
select(76, [3 7 8 9 12 42 43 54 55 58 59 60 61 69 70 71 72 73 74 75], [], [],
{0, 998790}) = 0 (Timeout)
read(7, 0x2693ba4, 4096) = -1 EAGAIN (Resource temporarily
unavailable)
select(76, [3 7 8 9 12 42 43 54 55 58 59 60 61 69 70 71 72 73 74 75], [], [],
{0, 998786}) = 0 (Timeout)
read(7, 0x2693ba4, 4096) = -1 EAGAIN (Resource temporarily
unavailable)
select(76, [3 7 8 9 12 42 43 54 55 58 59 60 61 69 70 71 72 73 74 75], [], [],
{0, 998996}) = 0 (Timeout)
read(7, 0x2693ba4, 4096) = -1 EAGAIN (Resource temporarily
unavailable)
select(76, [3 7 8 9 12 42 43 54 55 58 59 60 61 69 70 71 72 73 74 75], [], [],
{0, 998783}) = 0 (Timeout)
read(7, 0x2693ba4, 4096) = -1 EAGAIN (Resource temporarily
unavailable)
select(76, [3 7 8 9 12 42 43 54 55 58 59 60 61 69 70 71 72 73 74 75], [], [],
{0, 998799}^C <unfinished ...>
chris at quad:~$ ls -l /proc/9914/fd/7
lrwx------ 1 chris chris 64 2010-07-03 23:22 /proc/9914/fd/7 -> socket:[321098]
chris at quad:~$ sudo netstat -np | fgrep 321098
unix 3 [ ] STREAM CONNECTED 321098 9914/digikam
chris at quad:~$ sudo lsof | fgrep 321098
digikam 9914 chris 7u unix 0xffff8801e18e8c00 0t0 321098
socket
Running an strace on digikam from the start for calls to connect(), socket(),
open() and select() reveals that the socket for file descriptor 7 appears to be
connected to the X server:
10212 socket(PF_FILE, SOCK_STREAM, 0) = 7
10212 connect(7, {sa_family=AF_FILE, path=@"/tmp/.X11-unix/X0"}, 20) = 0
That's about my limit for ideas on digging into what's going on here - any
ideas ?
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Digikam-devel
mailing list