Bug: keeps creating  tmp mozilla_audio_sample over and over [involves Fedora Linux Distro]
Status: RESOLVED
Priority: --
Resolution: WORKSFORME
Created: 2021-06-12 23:53:39+00:00
Resolved: 2021-10-16 05:20:36+00:00

User Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:89.0) Gecko/20100101 Firefox/89.0

Steps to reproduce:

I just start thunderbird and it was really slow. So I ran a strace on it and found it kept looking for smplayer and creating mozilla_audio_sample audio file.

It starts off with mozilla_audio_sample, then it creates mozilla_audio_sample-1, ...-2, ... -3. I think with every restart, it notices the old file exists, sometimes...



Actual results:

Thunderbird was slow: 

From strace:
HANGS here for a while: 

futex(0x7f2b0ca5775c, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, NULL, FUTEX_BITSET_MATCH_ANY 

Then repeats:
getpid()                                = 58345
getpid()                                = 58345
getpid()                                = 58345
close(117)                              = 0
futex(0x7f2b0ca576d0, FUTEX_UNLOCK_PI_PRIVATE) = 0
close(116)                              = 0
newfstatat(AT_FDCWD, "/External/tmp/mozilla_audio_sample-3", {st_mode=S_IFREG|0600, st_size=66194, ...}, 0) = 0
newfstatat(AT_FDCWD, "/External/tmp/mozilla_audio_sample-3", {st_mode=S_IFREG|0600, st_size=66194, ...}, AT_SYMLINK_NOFOLLOW) = 0
unlink("/External/tmp/mozilla_audio_sample-3") = 0
rt_sigprocmask(SIG_BLOCK, ~[], [], 8)   = 0
clone(child_stack=0x7f2b21abdeb0, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tid=[59083], tls=0x7f2b21abe640, child_tidptr=0x7f2b21abe910) = 59083
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
futex(0x7f2b0b2e2170, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, NULL, FUTEX_BITSET_MATCH_ANY) = 0
futex(0x7f2b0b2e20e8, FUTEX_WAKE_PRIVATE, 1) = 0
recvmsg(4, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="\1\1`\7\0\0\0\0\n\0\300\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., iov_len=4096}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 896
recvmsg(4, {msg_namelen=0}, 0)          = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=4, events=POLLIN}, {fd=5, events=POLLIN}, {fd=7, events=POLLIN}, {fd=29, events=POLLIN}], 4, 0) = 1 ([{fd=29, revents=POLLIN}])
read(29, "\372", 1)                     = 1
poll([{fd=4, events=POLLIN}, {fd=5, events=POLLIN}, {fd=7, events=POLLIN}, {fd=29, events=POLLIN}], 4, 0) = 0 (Timeout)
 ... repeat above line MANY times ...

poll([{fd=4, events=POLLIN}, {fd=5, events=POLLIN}, {fd=7, events=POLLIN}, {fd=29, events=POLLIN}], 4, 0) = 0 (Timeout)

recvmsg(4, {msg_namelen=0}, 0)          = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=4, events=POLLIN}, {fd=5, events=POLLIN}, {fd=7, events=POLLIN}, {fd=29, events=POLLIN}], 4, 0) = 0 (Timeout)
recvmsg(4, {msg_namelen=0}, 0)          = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=4, events=POLLIN}, {fd=5, events=POLLIN}, {fd=7, events=POLLIN}, {fd=29, events=POLLIN}], 4, 0) = 0 (Timeout)
recvmsg(4, {msg_namelen=0}, 0)          = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=4, events=POLLIN}, {fd=5, events=POLLIN}, {fd=7, events=POLLIN}, {fd=29, events=POLLIN}], 4, 0) = 0 (Timeout)
futex(0x7f2b2c3b6c3c, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f2b2c3b6be0, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f2b2c3b6c38, FUTEX_WAKE_PRIVATE, 2147483647) = 1
futex(0x7f2b2c3b6be0, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f2b2c3b6c3c, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f2b2c3b6be0, FUTEX_WAKE_PRIVATE, 1) = 1
recvmsg(4, {msg_namelen=0}, 0)          = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=4, events=POLLIN}, {fd=5, events=POLLIN}, {fd=7, events=POLLIN}, {fd=29, events=POLLIN}], 4, 0) = 0 (Timeout)
recvmsg(4, {msg_namelen=0}, 0)          = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=4, events=POLLIN}, {fd=5, events=POLLIN}, {fd=7, events=POLLIN}, {fd=29, events=POLLIN}], 4, 0) = 0 (Timeout)
openat(AT_FDCWD, "/doug/home/.mime.types", O_RDONLY) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/doug/home/.local/share/mime/mime.cache", {st_mode=S_IFREG|0664, st_size=1924, ...}, 0) = 0
newfstatat(AT_FDCWD, "/usr/share/kde-settings/kde-profile/default/share/mime/mime.cache", 0x7ffdef1874c0, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/share/kde-settings/kde-profile/default/share/mime/globs", 0x7ffdef1874c0, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/share/kde-settings/kde-profile/default/share/mime/magic", 0x7ffdef1874c0, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/local/share/mime/mime.cache", 0x7ffdef1874c0, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/local/share/mime/globs", 0x7ffdef1874c0, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/local/share/mime/magic", 0x7ffdef1874c0, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/share/mime/mime.cache", {st_mode=S_IFREG|0644, st_size=158072, ...}, 0) = 0
openat(AT_FDCWD, "/usr/share/applications/smplayer.desktop", O_RDONLY) = 116
newfstatat(116, "", {st_mode=S_IFREG|0644, st_size=5365, ...}, AT_EMPTY_PATH) = 0
read(116, "[Desktop Entry]\nCategories=Qt;KD"..., 4096) = 4096
read(116, "\320\265\321\200\nName[sr]=\320\241\320\234\320\237\320\273\320\265\321\230\320\265\321\200\nI"..., 4096) = 1269
read(116, "", 4096)                     = 0
close(116)                              = 0
access("/External/Qt/5.15.2/gcc_64/bin/smplayer", X_OK) = -1 ENOENT (No such file or directory)
access("/External/Android/android-sdk-linux/platform-tools/smplayer", X_OK) = -1 ENOENT (No such file or directory)
access("/External/Qt/Tools/QtCreator/bin/smplayer", X_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/postgresql/9.3/bin/smplayer", X_OK) = -1 ENOENT (No such file or directory)
access("/Proto/bin/smplayer", X_OK)     = -1 ENOENT (No such file or directory)
access("/bin/smplayer", X_OK)           = 0
getuid()                                = 1000
newfstatat(AT_FDCWD, "/bin/smplayer", {st_mode=S_IFREG|0755, st_size=4099448, ...}, 0) = 0
rt_sigprocmask(SIG_BLOCK, ~[], [], 8)   = 0
clone(child_stack=0x7f2b1ed33eb0, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tid=[59084], tls=0x7f2b1ed34640, child_tidptr=0x7f2b1ed34910) = 59084
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
futex(0x7f2b1188f640, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, NULL, FUTEX_BITSET_MATCH_ANY) = 0
futex(0x7f2b1188f5b8, FUTEX_WAKE_PRIVATE, 1) = 0
futex(0x7f2b4845ab34, FUTEX_WAKE_PRIVATE, 1) = 1
openat(AT_FDCWD, "/External/tmp/mozilla_audio_sample", O_WRONLY|O_CREAT|O_EXCL|O_TRUNC, 0600) = -1 EEXIST (File exists)
openat(AT_FDCWD, "/External/tmp/mozilla_audio_sample-1", O_WRONLY|O_CREAT|O_EXCL|O_TRUNC, 0600) = -1 EEXIST (File exists)
openat(AT_FDCWD, "/External/tmp/mozilla_audio_sample-2", O_WRONLY|O_CREAT|O_EXCL|O_TRUNC, 0600) = -1 EEXIST (File exists)
openat(AT_FDCWD, "/External/tmp/mozilla_audio_sample-3", O_WRONLY|O_CREAT|O_EXCL|O_TRUNC, 0600) = 116
close(116)                              = 0
openat(AT_FDCWD, "/External/tmp/mozilla_audio_sample-3", O_WRONLY) = 116
write(116, "RIFF\212\2\1\0WAVEfmt \20\0\0\0\1\0\1\0D\254\0\0\210X\1\0"..., 66194) = 66194
getpid()                                = 58345
getpid()                                = 58345
openat(AT_FDCWD, "/External/tmp/mozilla_audio_sample-3", O_RDONLY) = 117
newfstatat(117, "", {st_mode=S_IFREG|0600, st_size=66194, ...}, AT_EMPTY_PATH) = 0
read(117, "RIFF\212\2\1\0WAVEfmt \20\0\0\0\1\0\1\0D\254\0\0\210X\1\0"..., 4096) = 4096
getpid()                                = 58345
getpid()                                = 58345
getpid()                                = 58345
getpid()                                = 58345
write(139, "W", 1)                      = 1
write(139, "W", 1)                      = 1
futex(0x7f2b0ca576d0, FUTEX_UNLOCK_PI_PRIVATE) = 0

Then Back to being stopped at :
futex(0x7f2b0ca57758, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, NULL ...



Expected results:

No clue why it keeps creating the temporary file mozilla_audio_sample .
The UI hang coincides with the MUTEX lock from the strace above.