I get the same error (but not always!) and others with the patch. That's
why Gregory hasn't merged it into pu yet I think. I looked at the code
changes, and they all look very good to me... it's strange that it's not
working.
Post by Paul van der WaltHi all,
Sorry I've been out of touch for a year. Hopefully that won't
happen again. I just caught up on reading the mailing list. So glad
to see that you all are continuing to improve this lovely little
player.
I just git pulled about a year of updates!
I've got master, then I did a git merge on pa-stream-restore. That
seemed to do what it was supposed to (stop maxing my system volume
every time I launch cmus) but now cmus segfaults when I quit.
*** glibc detected *** cmus: double free or corruption (fasttop): 0x0865dc20 ***
======= Backtrace: =========
/lib/i686/cmov/libc.so.6(+0x6b281)[0xb762b281]
/lib/i686/cmov/libc.so.6(+0x6cad8)[0xb762cad8]
/lib/i686/cmov/libc.so.6(cfree+0x6d)[0xb762fbbd]
/home/jasonwoof/software/virt/lib/cmus/op/pulse.so(+0x19e6)[0xb77949e6]
cmus(op_exit_plugins+0x43)[0x8064ce3]
cmus(main+0x54e)[0x8071a5e]
/lib/i686/cmov/libc.so.6(__libc_start_main+0xe6)[0xb75d6c76]
cmus[0x8050401]
======= Memory map: ========
08048000-0807c000 r-xp 00000000 fe:02 47189 /home/jasonwoof/software/virt/bin/cmus
0807c000-0807e000 rw-p 00033000 fe:02 47189 /home/jasonwoof/software/virt/bin/cmus
0807e000-08083000 rw-p 00000000 00:00 0
084e7000-08692000 rw-p 00000000 00:00 0 [heap]
b4a00000-b4a21000 rw-p 00000000 00:00 0
b4a21000-b4b00000 ---p 00000000 00:00 0
b4bdc000-b4bdd000 ---p 00000000 00:00 0
b4bdd000-b53dd000 rw-p 00000000 00:00 0
b558e000-b558f000 ---p 00000000 00:00 0
b558f000-b5d8f000 rw-p 00000000 00:00 0
b5d8f000-b5d90000 ---p 00000000 00:00 0
b5d90000-b6590000 rw-p 00000000 00:00 0
b6590000-b6591000 ---p 00000000 00:00 0
b6591000-b6d91000 rw-p 00000000 00:00 0
b6ef8000-b6f15000 r-xp 00000000 08:06 408909 /lib/libgcc_s.so.1
b6f15000-b6f16000 rw-p 0001c000 08:06 408909 /lib/libgcc_s.so.1
b6f32000-b6f42000 r-xp 00000000 08:06 418067 /lib/i686/cmov/libresolv-2.11.2.so
b6f42000-b6f43000 r--p 00010000 08:06 418067 /lib/i686/cmov/libresolv-2.11.2.so
b6f43000-b6f44000 rw-p 00011000 08:06 418067 /lib/i686/cmov/libresolv-2.11.2.so
b6f44000-b6f46000 rw-p 00000000 00:00 0
b6f46000-b70ab000 r-xp 00000000 08:06 585740 /usr/lib/libvorbisenc.so.2.0.7
b70ab000-b70bc000 rw-p 00165000 08:06 585740 /usr/lib/libvorbisenc.so.2.0.7
b70bc000-b7107000 r-xp 00000000 08:06 585660 /usr/lib/libFLAC.so.8.2.0
b7107000-b7108000 rw-p 0004b000 08:06 585660 /usr/lib/libFLAC.so.8.2.0
b7108000-b711b000 r-xp 00000000 08:06 418081 /lib/i686/cmov/libnsl-2.11.2.so
b711b000-b711c000 r--p 00012000 08:06 418081 /lib/i686/cmov/libnsl-2.11.2.so
b711c000-b711d000 rw-p 00013000 08:06 418081 /lib/i686/cmov/libnsl-2.11.2.so
b711d000-b711f000 rw-p 00000000 00:00 0
b711f000-b7123000 r-xp 00000000 08:06 585448 /usr/lib/libXdmcp.so.6.0.0
b7123000-b7124000 rw-p 00003000 08:06 585448 /usr/lib/libXdmcp.so.6.0.0
b7124000-b7128000 r-xp 00000000 08:06 409169 /lib/libattr.so.1.1.0
b7128000-b7129000 rw-p 00003000 08:06 409169 /lib/libattr.so.1.1.0
b7129000-b7161000 r-xp 00000000 08:06 408974 /lib/libdbus-1.so.3.4.0
b7161000-b7162000 r--p 00037000 08:06 408974 /lib/libdbus-1.so.3.4.0
b7162000-b7163000 rw-p 00038000 08:06 408974 /lib/libdbus-1.so.3.4.0
b7163000-b7167000 r-xp 00000000 08:06 582162 /usr/lib/libasyncns.so.0.1.0
b7167000-b7168000 rw-p 00003000 08:06 582162 /usr/lib/libasyncns.so.0.1.0
b7168000-b71c9000 r-xp 00000000 08:06 581033 /usr/lib/libsndfile.so.1.0.23
b71c9000-b71cb000 rw-p 00061000 08:06 581033 /usr/lib/libsndfile.so.1.0.23
b71cb000-b71cf000 rw-p 00000000 00:00 0
b71cf000-b71d6000 r-xp 00000000 08:06 408890 /lib/libwrap.so.0.7.6
b71d6000-b71d7000 rw-p 00007000 08:06 408890 /lib/libwrap.so.0.7.6
b71d7000-b71e3000 r-xp 00000000 08:06 581443 /usr/lib/libXi.so.6.1.0
b71e3000-b71e4000 rw-p 0000c000 08:06 581443 /usr/lib/libXi.so.6.1.0
b71e4000-b71f2000 r-xp 00000000 08:06 584535 /usr/lib/libXext.so.6.4.0
b71f2000-b71f3000 rw-p 0000d000 08:06 584535 /usr/lib/libXext.so.6.4.0
b71f3000-b71f6000 r-xp 00000000 08:06 409019 /lib/libuuid.so.1.3.0
b71f6000-b71f7000 rw-p 00002000 08:06 409019 /lib/libuuid.so.1.3.0
b71f7000-b720f000 r-xp 00000000 08:06 581824 /usr/lib/libxcb.so.1.1.0
b720f000-b7210000 rw-p 00017000 08:06 581824 /usr/lib/libxcb.so.1.1.0
b7210000-b7217000 r-xp 00000000 08:06 418072 /lib/i686/cmov/librt-2.11.2.so
b7217000-b7218000 r--p 00006000 08:06 418072 /lib/i686/cmov/librt-2.11.2.so
b7218000-b7219000 rw-p 00007000 08:06 418072 /lib/i686/cmov/librt-2.11.2.so
b7219000-b721c000 r-xp 00000000 08:06 408951 /lib/libcap.so.2.19
b721c000-b721d000 rw-p 00002000 08:06 408951 /lib/libcap.so.2.19
b721d000-b7222000 r-xp 00000000 08:06 584356 /usr/lib/libgdbm.so.3.0.0
b7222000-b7223000 rw-p 00004000 08:06 584356 /usr/lib/libgdbm.so.3.0.0
b7223000-b726d000 r-xp 00000000 08:06 696290 /usr/lib/libpulsecommon-0.9.21.so
b726d000-b726e000 rw-p 00049000 08:06 696290 /usr/lib/libpulsecommon-0.9.21.so
b726e000-b7272000 r-xp 00000000 08:06 584796 /usr/lib/libXtst.so.6.1.0
b7272000-b7273000 rw-p 00004000 08:06 584796 /usr/lib/libXtst.so.6.1.0
b7273000-b727a000 r-xp 00000000 08:06 581991 /usr/lib/libSM.so.6.0.1
b727a000-b727b000 rw-p 00006000 08:06 581991 /usr/lib/libSM.so.6.0.1
b727b000-b728f000 r-xp 00000000 08:06 696604 /usr/lib/libICE.so.6.3.0
b728f000-b7291000 rw-p 00013000 08:06 696604 /usr/lib/libICE.so.6.3.0
b7291000-b7292000 rw-p 00000000 00:00 0
b7292000-b73ab000 r-xp 00000000 08:06 695042 /usr/lib/libX11.so.6.3.0
b73ab000-b73af000 rw-p 00118000 08:06 695042 /usr/lib/libX11.so.6.3.0
b73af000-b73ef000 r-xp 00000000 08:06 697321 /usr/lib/libpulse.so.0.12.2
b73ef000-b73f0000 rw-p 00040000 08:06 697321 /usr/lib/libpulse.so.0.12.2
b73f0000-b7417000 r-xp 00000000 08:06 582113 /usr/lib/libvorbis.so.0.4.4
b7417000-b7418000 rw-p 00026000 08:06 582113 /usr/lib/libvorbis.so.0.4.4
b7418000-b742d000 r-xp 00000000 08:06 586200 /usr/lib/libmad.so.0.2.1
b742d000-b742e000 rw-p 00014000 08:06 586200 /usr/lib/libmad.so.0.2.1
b7443000-b744a000 r--s 00000000 08:06 499650 /usr/lib/gconv/gconv-modules.cache
b744a000-b75bf000 r--p 00000000 08:06 547937 /usr/lib/locale/locale-archive
b75bf000-b75c0000 rw-p 00000000 00:00 0
b75c0000-b7700000 r-xp 00000000 08:06 418082 /lib/i686/cmov/libc-2.11.2.so
b7700000-b7702000 r--p 0013f000 08:06 418082 /lib/i686/cmov/libc-2.11.2.so
b7702000-b7703000 rw-p 00141000 08:06 418082 /lib/i686/cmov/libc-2.11.2.so
b7703000-b7706000 rw-p 00000000 00:00 0
b7706000-b772a000 r-xp 00000000 08:06 418066 /lib/i686/cmov/libm-2.11.2.so
b772a000-b772b000 r--p 00023000 08:06 418066 /lib/i686/cmov/libm-2.11.2.so
b772b000-b772c000 rw-p 00024000 08:06 418066 /lib/i686/cmov/libm-2.11.2.so
b772c000-b772e000 r-xp 00000000 08:06 418074 /lib/i686/cmov/libdl-2.11.2.so
b772e000-b772f000 r--p 00001000 08:06 418074 /lib/i686/cmov/libdl-2.11.2.so
b772f000-b7730000 rw-p 00002000 08:06 418074 /lib/i686/cmov/libdl-2.11.2.so
b7730000-b7731000 rw-p 00000000 00:00 0
b7731000-b7774000 r-xp 00000000 08:06 408825 /lib/libncursesw.so.5.7
b7774000-b7777000 rw-p 00042000 08:06 408825 /lib/libncursesw.so.5.7
b7777000-b778c000 r-xp 00000000 08:06 418071 /lib/i686/cmov/libpthread-2.11.2.so
b778c000-b778d000 r--p 00014000 08:06 418071 /lib/i686/cmov/libpthread-2.11.2.so
b778d000-b778e000 rw-p 00015000 08:06 418071 /lib/i686/cmov/libpthread-2.11.2.sozsh: abort cmus
this happens every time. I tried with softvol=true and softvol=false
I thought I could help with testing this before I set PA's stupid flat-volumes thing to no.
#0 0xb7fe2424 in __kernel_vsyscall ()
#1 0xb7e1e751 in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#2 0xb7e21b82 in abort () at abort.c:92
#3 0xb7e5518d in __libc_message (do_abort=2, fmt=0xb7f19738 "*** glibc detected *** %s: %s: 0x%s ***\n")
at ../sysdeps/unix/sysv/linux/libc_fatal.c:189
#4 0xb7e5f281 in malloc_printerr (action=<value optimized out>, str=0x6 <Address 0x6 out of bounds>, ptr=0xb1329200)
at malloc.c:6267
#5 0xb7e60ad8 in _int_free (av=<value optimized out>, p=<value optimized out>) at malloc.c:4795
#6 0xb7e63bbd in __libc_free (mem=0xb1329200) at malloc.c:3739
#7 0xb7fc6dda in __op_pulse_exit () at pulse.c:329
#8 0xb7fc6df0 in op_pulse_exit () at pulse.c:336
#9 0x08068d97 in op_exit_plugins () at output.c:171
#10 0x08076e2b in exit_all () at ui_curses.c:2173
#11 0x08076ff5 in main (argc=1, argv=0xbffff658) at ui_curses.c:2272
==11652== Memcheck, a memory error detector
==11652== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==11652== Using Valgrind-3.6.0.SVN-Debian and LibVEX; rerun with -h for copyright info
==11652== Command: cmus
==11652==
==11652== Invalid free() / delete / delete[]
==11652== at 0x4023B6A: free (vg_replace_malloc.c:366)
==11652== by 0x478FDD9: __op_pulse_exit (pulse.c:329)
==11652== by 0x478FDEF: op_pulse_exit (pulse.c:336)
==11652== by 0x8068D96: op_exit_plugins (output.c:171)
==11652== by 0x8076E2A: exit_all (ui_curses.c:2173)
==11652== by 0x8076FF4: main (ui_curses.c:2272)
==11652== Address 0x78abc70 is 0 bytes inside a block of size 43 free'd
==11652== at 0x4023B6A: free (vg_replace_malloc.c:366)
==11652== by 0x478FDD9: __op_pulse_exit (pulse.c:329)
==11652== by 0x4790502: op_pulse_mixer_exit (pulse.c:560)
==11652== by 0x8068D7D: op_exit_plugins (output.c:169)
==11652== by 0x8076E2A: exit_all (ui_curses.c:2173)
==11652== by 0x8076FF4: main (ui_curses.c:2272)
==11652==
==11652==
==11652== in use at exit: 1,227,638 bytes in 32,534 blocks
==11652== total heap usage: 249,503 allocs, 216,970 frees, 9,623,074 bytes allocated
==11652==
==11652== definitely lost: 0 bytes in 0 blocks
==11652== indirectly lost: 0 bytes in 0 blocks
==11652== possibly lost: 370,348 bytes in 123 blocks
==11652== still reachable: 857,290 bytes in 32,411 blocks
==11652== suppressed: 0 bytes in 0 blocks
==11652== Rerun with --leak-check=full to see details of leaked memory
==11652==
==11652== For counts of detected and suppressed errors, rerun with: -v
==11652== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 176 from 13)
and just to make sure this isn't only an issue when merging master and
pa-stream-restore, I tried a clean checkout of pa-stream-restore, and I see
what appears to be the same crash on exit.
Oh, and I just double-checked that I do _not_ get the crash when running from
master (without merging in pa-stream-restore.)
Please let me know if there's more testing/diagnostics I can do to get further
info on this, or if you cannot reproduce this, please give me some pointers as
to where to look for cleaning this up.
I'm running pulseaudio-0.9.21-3 on debian unstable.
Thank you, - Jason
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d