Ticket #299 (new defect)

Opened 6 years ago

Last modified 6 years ago

telldus-core-2.1.1 not closing filedescriptors/sockets properly on ARM/Raspberry Pi?

Reported by: peter af geijerstam <peter.af.geijerstam@…> Owned by:
Priority: major Milestone: 2.1.3
Component: other Version: 2.1.1
Keywords: Cc:
Blocked By: Blocking:
Platform: Linux Sensitive: no
Verified by Telldus: no

Description

During investigations on why telldusd becomes unresponsive after a day or two, I found that filedescriptors were kept open. Not sure if this is the cause of the problem but it seems logical. After each invocation of tdtool i have as many more open files as i have devices (six of them) by a new thread-id. Not sure if this has anything to do with #216 or #271, it does compile on my Raspberry Pi but the fix from 488ab8 does not help with the bug.

lsof | grep /tmp/Telldus | wc -l && tdtool --list > /dev/null && lsof | grep /tmp/Telldus | wc -l
24
30

lsof | grep /tmp/Telldus | wc -l && tdtool --list > /dev/null && lsof | grep /tmp/Telldus | wc -l
30
36

lsof | grep /tmp/Telldus | wc -l && tdtool --list > /dev/null && lsof | grep /tmp/Telldus | wc -l
36
42

The file /tmp/TelldusEvents is the one that is opened multiple times:

COMMAND     PID   TID       USER   FD      TYPE     DEVICE SIZE/OFF       NODE NAME
telldusd  21141           nobody    1u     unix 0xcbaa6200      0t0    3387972 /tmp/TelldusEvents
telldusd  21141           nobody    4u     unix 0xca7dec80      0t0    3390846 /tmp/TelldusEvents
telldusd  21141           nobody    5u     unix 0xca421900      0t0    3388417 /tmp/TelldusEvents
telldusd  21141           nobody    6u     unix 0xcbb09200      0t0    3388894 /tmp/TelldusEvents
telldusd  21141           nobody    8u     unix 0xca7dee40      0t0    3391133 /tmp/TelldusEvents
telldusd  21141           nobody    9u     unix 0xcbaa6c80      0t0    3391332 /tmp/TelldusEvents
telldusd  21141 21142     nobody    1u     unix 0xcbaa6200      0t0    3387972 /tmp/TelldusEvents
telldusd  21141 21142     nobody    4u     unix 0xca7dec80      0t0    3390846 /tmp/TelldusEvents
telldusd  21141 21142     nobody    5u     unix 0xca421900      0t0    3388417 /tmp/TelldusEvents
telldusd  21141 21142     nobody    6u     unix 0xcbb09200      0t0    3388894 /tmp/TelldusEvents
telldusd  21141 21142     nobody    8u     unix 0xca7dee40      0t0    3391133 /tmp/TelldusEvents
telldusd  21141 21142     nobody    9u     unix 0xcbaa6c80      0t0    3391332 /tmp/TelldusEvents
telldusd  21141 21143     nobody    1u     unix 0xcbaa6200      0t0    3387972 /tmp/TelldusEvents
telldusd  21141 21143     nobody    4u     unix 0xca7dec80      0t0    3390846 /tmp/TelldusEvents
telldusd  21141 21143     nobody    5u     unix 0xca421900      0t0    3388417 /tmp/TelldusEvents
telldusd  21141 21143     nobody    6u     unix 0xcbb09200      0t0    3388894 /tmp/TelldusEvents
telldusd  21141 21143     nobody    8u     unix 0xca7dee40      0t0    3391133 /tmp/TelldusEvents
telldusd  21141 21143     nobody    9u     unix 0xcbaa6c80      0t0    3391332 /tmp/TelldusEvents
telldusd  21141 21144     nobody    1u     unix 0xcbaa6200      0t0    3387972 /tmp/TelldusEvents
telldusd  21141 21144     nobody    4u     unix 0xca7dec80      0t0    3390846 /tmp/TelldusEvents
telldusd  21141 21144     nobody    5u     unix 0xca421900      0t0    3388417 /tmp/TelldusEvents
telldusd  21141 21144     nobody    6u     unix 0xcbb09200      0t0    3388894 /tmp/TelldusEvents
telldusd  21141 21144     nobody    8u     unix 0xca7dee40      0t0    3391133 /tmp/TelldusEvents
telldusd  21141 21144     nobody    9u     unix 0xcbaa6c80      0t0    3391332 /tmp/TelldusEvents
telldusd  21141 21145     nobody    1u     unix 0xcbaa6200      0t0    3387972 /tmp/TelldusEvents
telldusd  21141 21145     nobody    4u     unix 0xca7dec80      0t0    3390846 /tmp/TelldusEvents
telldusd  21141 21145     nobody    5u     unix 0xca421900      0t0    3388417 /tmp/TelldusEvents
telldusd  21141 21145     nobody    6u     unix 0xcbb09200      0t0    3388894 /tmp/TelldusEvents
telldusd  21141 21145     nobody    8u     unix 0xca7dee40      0t0    3391133 /tmp/TelldusEvents
telldusd  21141 21145     nobody    9u     unix 0xcbaa6c80      0t0    3391332 /tmp/TelldusEvents
telldusd  21141 21146     nobody    1u     unix 0xcbaa6200      0t0    3387972 /tmp/TelldusEvents
telldusd  21141 21146     nobody    4u     unix 0xca7dec80      0t0    3390846 /tmp/TelldusEvents
telldusd  21141 21146     nobody    5u     unix 0xca421900      0t0    3388417 /tmp/TelldusEvents
telldusd  21141 21146     nobody    6u     unix 0xcbb09200      0t0    3388894 /tmp/TelldusEvents
telldusd  21141 21146     nobody    8u     unix 0xca7dee40      0t0    3391133 /tmp/TelldusEvents
telldusd  21141 21146     nobody    9u     unix 0xcbaa6c80      0t0    3391332 /tmp/TelldusEvents

Change History

comment:1 Changed 6 years ago by stefan persson <stefan.persson@…>

  • Milestone set to 2.1.2
Note: See TracTickets for help on using tickets.