Ticket #1143 (closed bug: wontfix)

Opened 3 years ago

Last modified 2 years ago

libtunepimp uses 100% cpu if 'broken pipe' occurs

Reported by: ted@midg3t.net Assigned to: rob
Priority: normal Milestone:
Component: libtunepimp Version:
Keywords: Cc: Fuchs
Browser: OS: Linux

Description (Last modified by Fuchs)

libtunepimp Debian package version 0.3.0-9.1

Using amaroK. I clicked the button to fill in metainfo tags using musicbrainz. It didn't seem to be getting anywhere so I closed the tag info dialog (there's meant to be a message "track not found in musicbrainz database" or a selection dialog should appear, though it seems that fairly often neither of these happen). After some time I saw 'amarokapp' using 100% cpu and a slowly increasing amount of memory - at 32% on a machine with 1G RAM (lots more than usual!).

I attached to the process with gdb. It's obviously spinning around this printf(). The SIGPIPE and me hitting 'c' happened in quick succession.

0xb7df50f3 in pthread_join () from /lib/tls/libpthread.so.0
(gdb) bt
#0  0xb7df50f3 in pthread_join () from /lib/tls/libpthread.so.0
#1  0x4d318951 in Thread::join () from /usr/lib/libtunepimp.so.2
#2  0x4d2f27d8 in FileLookupThread::~FileLookupThread ()
   from /usr/lib/libtunepimp.so.2
#3  0x4d2ea323 in TunePimp::~TunePimp () from /usr/lib/libtunepimp.so.2
#4  0x4d3125df in tp_Delete () from /usr/lib/libtunepimp.so.2
#5  0x4cf9a5b4 in ~KTRMRequestHandler (this=0x4d16f270)
    at /home/adeodato/devel/debian/amarok/amarok-1.4-beta1/build-tree/amarok-1.4-beta1/amarok/src/ktrm.cpp:149
#6  0x4cf982b0 in __tcf_1 ()
    at /home/adeodato/devel/debian/amarok/amarok-1.4-beta1/build-tree/amarok-1.4-beta1/amarok/src/ktrm.cpp:64
#7  0xb7e4c494 in exit () from /lib/tls/libc.so.6
#8  0xb7e34eb8 in __libc_start_main () from /lib/tls/libc.so.6
#9  0x0804cf41 in _start () at ../sysdeps/i386/elf/start.S:119
(gdb) c
Continuing.

Program received signal SIGPIPE, Broken pipe.
[Switching to Thread -1261933648 (LWP 9255)]
0xb7ee22e1 in write () from /lib/tls/libc.so.6
(gdb) c
Continuing.

Program received signal SIGPIPE, Broken pipe.
0xb7ee22e1 in write () from /lib/tls/libc.so.6
(gdb) c
Continuing.

Program received signal SIGPIPE, Broken pipe.
0xb7ee22e1 in write () from /lib/tls/libc.so.6
(gdb) c
Continuing.

Program received signal SIGPIPE, Broken pipe.
0xb7ee22e1 in write () from /lib/tls/libc.so.6
(gdb) c
Continuing.

Program received signal SIGPIPE, Broken pipe.
0xb7ee22e1 in write () from /lib/tls/libc.so.6
(gdb) c
Continuing.


Program received signal SIGPIPE, Broken pipe.
0xb7ee22e1 in write () from /lib/tls/libc.so.6
(gdb) bt
#0  0xb7ee22e1 in write () from /lib/tls/libc.so.6
#1  0xb7e82e2c in _IO_file_write () from /lib/tls/libc.so.6
#2  0xb7e81849 in _IO_file_setbuf () from /lib/tls/libc.so.6
#3  0xb7e8191f in _IO_do_write () from /lib/tls/libc.so.6
#4  0xb7e822c9 in _IO_file_overflow () from /lib/tls/libc.so.6
#5  0xb7e82fc0 in _IO_file_xsputn () from /lib/tls/libc.so.6
#6  0xb7e5cf89 in vfprintf () from /lib/tls/libc.so.6
#7  0xb7e65d83 in printf () from /lib/tls/libc.so.6
#8  0x4d2f4758 in LookupFile::extractAlbumList ()
   from /usr/lib/libtunepimp.so.2
#9  0x4d2f4e14 in LookupFile::lookup () from /usr/lib/libtunepimp.so.2
#10 0x4d2f56f8 in FileLookupThread::threadMain ()
   from /usr/lib/libtunepimp.so.2
#11 0x4d318a2f in Thread::threadMainStatic () from /usr/lib/libtunepimp.so.2
#12 0xb7df4ced in start_thread () from /lib/tls/libpthread.so.0
#13 0xb7ef1dde in clone () from /lib/tls/libc.so.6

Attachments

Change History

2006-03-09 17:39:54 changed by Fuchs

  • cc set to Fuchs.
  • description changed.

Are you sure this is no bug im amarok? Which version of amarok btw.? Did you test it with the latest amarok beta2 from Debian experimental?

Can't reproduce it here.

2006-12-15 20:00:22 changed by luks

  • status changed from new to closed.
  • resolution set to wontfix.

Given that libtunepimp now doesn't provide file lookups, I think this can be closed.


Add/Change #1143 (libtunepimp uses 100% cpu if 'broken pipe' occurs)




Action