<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>3427</bug_id>
          
          <creation_ts>2004-01-04 20:19:39 +0300</creation_ts>
          <short_desc>sometimes hangs xmms on exit</short_desc>
          <delta_ts>2006-02-17 15:28:08 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>xmms-out-crossfade</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Shigorin">mike</reporter>
          <assigned_to name="Michael Shigorin">mike</assigned_to>
          
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>11048</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2004-01-04 20:19:39 +0300</bug_when>
    <thetext>With crossfade+alsa, xmms-1.2.8 would constantly segfault and *sometimes* hang
on exit with *some* of the threads having finished and some more still alive,
like this:

~&gt; /sbin/pidof xmms
16337 16336 16293 16292

Only one thread does something interesting then:

~&gt; strace -p 16336
Process 16336 attached - interrupt to quit
close(11)                               = 0
close(12)                               = 0
shmget(1025, 65536, IPC_CREAT|0666)     = 2010873869
shmat(2010873869, 0, 0)                 = 0x40012000
mlock(0x40012000, 65536)                = -1 EPERM (Operation not permitted)
shmdt(0x40012000)                       = 0
shmctl(2010873869, IPC_64|IPC_STAT, 0xbf3fef4c) = 0
unlink(&quot;/tmp/alsa-dmix-16333-1073234389-218308&quot;) = 0
shmdt(0x4107a000)                       = 0
shmctl(2010808332, IPC_64|IPC_STAT, 0xbf3fef4c) = 0
semctl(393217, 0, IPC_RMID, 0xbf3fef58) = 0
_exit(0)                                = ?
Process 16336 detached

Tested with xmms-1.2.8-alt3 + xmms-out-alsa-1.2.8-alt3 +
xmms-out-crossfade-0.3.4-alt2; there&apos;s dmix setup in ~/.asound but removing the
file (with xmms restart) doesn&apos;t change the usual situation much.  Maybe it&apos;s
more racey though...

Plain OSS, plain ALSA, CF + builtin OSS, CF + OSS plugin all work just fine, but
CF + ALSA plugin misbehaves.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11049</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2004-01-04 20:22:37 +0300</bug_when>
    <thetext>2.4.2x / 2.6.0 -- all the same, btw.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11054</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2004-01-05 00:59:35 +0300</bug_when>
    <thetext>Hah!  corssfade&apos;s author fixed that with a one-liner :-)

1.2.8-alt4 on its way to Sisyphus.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15025</commentid>
    <comment_count>3</comment_count>
    <who name="Sergey Vlasov">vsu</who>
    <bug_when>2004-06-10 19:15:33 +0400</bug_when>
    <thetext>Broken again with xmms-1.2.10-alt2, xmms-out-crossfade-0.3.4-alt2,
xmms-out-alsa-1.2.10-alt2.

With crossfade+alsa, when exiting xmms without stopping the playback, xmms hangs
on exit:

$ pidof xmms
19231 19223 19222

$ strace -p 19223
Process 19223 attached - interrupt to quit
getppid()                               = 19222
poll([{fd=10, events=POLLIN}], 1, 2000) = 0
getppid()                               = 19222
poll([{fd=10, events=POLLIN}], 1, 2000) = 0
getppid()                               = 19222
poll([{fd=10, events=POLLIN}], 1, 2000) = 0
getppid()                               = 19222
poll([{fd=10, events=POLLIN}], 1, 2000) = 0
getppid()                               = 19222
poll([{fd=10, events=POLLIN}], 1, 2000) = 0
getppid()                               = 19222
poll( &lt;unfinished ...&gt;
Process 19223 detached

With both CF + OSS plugin and CF + builtin OSS in the same situation xmms segfaults.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29321</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2005-08-30 02:15:10 +0400</bug_when>
    <thetext>what&apos;s with 1.2.10-alt7?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35077</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2006-01-25 11:21:25 +0300</bug_when>
    <thetext>То ли было от чего другого, то ли полечилось -- уже не наблюдаю.
Заодно сейчас займусь 0.3.10.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>