[alsa-devel] Segfault in pulseaudio since Alsa 1.1.7

Hyperion h1p8r10n at yandex.com
Tue Oct 23 09:06:52 CEST 2018


   Sorry, I have no more time to spend debugging :(

   Â

   Thus I guess that the true alsa maintainers will be much more efficient
   than me (I'm just doing quick and dirty hacking here).

   Â

   My XMOS USB soundcard now works with this workaround, please could you
   take a look at traces I posted in the discussion on LQ.org ?

   Â

   All the best

   JP

   Â

   23.10.2018, 08:53, "Jaroslav Kysela" <perex at perex.cz>:

     Dne 23.10.2018 v 08:43 Hyperion napsal(a):

     Â Â Â Â I have narrowed to the simpler patch below :
         Â
     Â Â Â Â Quote:
     Â Â Â Â diff -rNaud alsa-plugins-1.1.7/a52/pcm_a52.c
     Â Â Â Â alsa-plugins-1.1.7-new/a52/pcm_a52.c
     Â Â Â Â --- alsa-plugins-1.1.7/a52/pcm_a52.c 2018-10-16
     14:00:22.000000000
     Â Â Â Â +0200
     Â Â Â Â +++ alsa-plugins-1.1.7-new/a52/pcm_a52.c 2018-10-23
     08:35:15.699830909
     Â Â Â Â +0200
     Â Â Â Â @@ -978,7 +978,8 @@
     Â Â Â Â if ((err = a52_set_hw_constraint(rec)) < 0) {
     Â Â Â Â snd_pcm_ioplug_delete(&rec->io);
     Â Â Â Â - goto error;
     Â Â Â Â + free(rec);
     Â Â Â Â + return err;
     Â Â Â Â }
     Â Â Â Â *pcmp = rec->io.pcm;
         Â

     It does not appear like a correct change, because rec->slave is
     initialized in previous lines (snd_pcm_open calls). Could you
     inspect
     rec->slave in gdb ?
     Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
     Â Â Â Â Â Â Â Â Â Â Â Â Â Â Jaroslav
     Â
     Â

         Â
     Â Â Â Â 22.10.2018, 23:30, "Hyperion" <[1]h1p8r10n at yandex.com>:
           Â Â Â Hi,
           Â   Â
           Â Â Â Since the upgrade to Alsa 1.1.7, I get a
     segfault at
     Â Â Â Â Â Â pulseaudio
           Â Â Â startup. This have been discussed and
     documented here :
           Â Â Â
     [1][1][2]https://www.linuxquestions.org/questions/slackware-14/cu
     Â Â Â Â Â Â rrent-fri-oc
           Â Â Â t-19-puseaudio-segfauts-4175640773/
           Â   Â
           Â Â Â It seems that I found the origin of the bug :
     reverting these
     Â Â Â Â Â Â 2 commits
           Â Â Â fixes the problem :
           Â Â Â
     [2][2][3]http://git.alsa-project.org/?p=alsa-...792dc809c908cc
           Â Â Â
     [3][3][4]http://git.alsa-project.org/?p=alsa-...5dc6e1594291e7
           Â Â Â Then no more segfault in pulseaudio when
     accessing the USB
     Â Â Â Â Â Â soundcard.
           Â   Â
           Â Â Â Please could you fix it ?
           Â   Â
           Â Â Â Regards
           Â Â Â jp
     Â Â Â Â Â Â References
           Â Â Â Visible links
           Â Â Â 1.
     Â Â Â Â Â Â [4][5]https://www.linuxquestions.org/questions/slackware
     -14/current-fri
     Â Â Â Â Â Â -oct-19-puseaudio-segfauts-4175640773/
           Â Â Â 2.
     Â Â Â Â Â Â [5][6]http://git.alsa-project.org/?p=alsa-plugins.git;a=
     commitdiff;h=fc
     Â Â Â Â Â Â 3f5d51062ff438780e568995792dc809c908cc
           Â Â Â 3.
     Â Â Â Â Â Â [6][7]http://git.alsa-project.org/?p=alsa-plugins.git;a=
     commitdiff;h=6b
     Â Â Â Â Â Â 996865126dd559ef186002e45dc6e1594291e7
           Â Â Â Hidden links:
           Â Â Â 4.
     Â Â Â Â Â Â [7][8]https://www.linuxquestions.org/questions/slackware
     -14/current-fri
     Â Â Â Â Â Â -oct-19-puseaudio-segfauts-4175640773/
     Â Â Â Â Â Â _______________________________________________
     Â Â Â Â Â Â Alsa-devel mailing list
     Â Â Â Â Â Â [8][9]Alsa-devel at alsa-project.org
     Â Â Â Â Â Â [9][10]http://mailman.alsa-project.org/mailman/listinfo/
     alsa-devel
     Â References
     Â Â Â Â 1.
     [11]https://www.linuxquestions.org/questions/slackware-14/current-fr
     i-oc
     Â Â Â Â 2. [12]http://git.alsa-project.org/?p=alsa-...792dc809c908cc
     Â Â Â Â 3. [13]http://git.alsa-project.org/?p=alsa-...5dc6e1594291e7
     Â Â Â Â 4.
     [14]https://www.linuxquestions.org/questions/slackware-14/current-fr
     i-oct-19-puseaudio-segfauts-4175640773/
     Â Â Â Â 5.
     [15]http://git.alsa-project.org/?p=alsa-plugins.git;a=commitdiff;h=f
     c3f5d51062ff438780e568995792dc809c908cc
     Â Â Â Â 6.
     [16]http://git.alsa-project.org/?p=alsa-plugins.git;a=commitdiff;h=6
     b996865126dd559ef186002e45dc6e1594291e7
     Â Â Â Â 7.
     [17]https://www.linuxquestions.org/questions/slackware-14/current-fr
     i-oct-19-puseaudio-segfauts-4175640773/
     Â Â Â Â 8. mailto:[18]Alsa-devel at alsa-project.org
     Â Â Â Â 9.
     [19]http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
     Â _______________________________________________
     Â Alsa-devel mailing list
     Â [20]Alsa-devel at alsa-project.org
     Â [21]http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
     Â

     Â
     --
     Jaroslav Kysela <[22]perex at perex.cz>
     Linux Sound Maintainer; ALSA Project; Red Hat, Inc.
     _______________________________________________
     Alsa-devel mailing list
     [23]Alsa-devel at alsa-project.org
     [24]http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

References

   1. mailto:h1p8r10n at yandex.com
   2. https://www.linuxquestions.org/questions/slackware-14/cu
   3. http://git.alsa-project.org/?p=alsa-...792dc809c908cc
   4. http://git.alsa-project.org/?p=alsa-...5dc6e1594291e7
   5. https://www.linuxquestions.org/questions/slackware-14/current-fri
   6. http://git.alsa-project.org/?p=alsa-plugins.git;a=commitdiff;h=fc
   7. http://git.alsa-project.org/?p=alsa-plugins.git;a=commitdiff;h=6b
   8. https://www.linuxquestions.org/questions/slackware-14/current-fri
   9. mailto:Alsa-devel at alsa-project.org
  10. http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
  11. https://www.linuxquestions.org/questions/slackware-14/current-fri-oc
  12. http://git.alsa-project.org/?p=alsa-...792dc809c908cc
  13. http://git.alsa-project.org/?p=alsa-...5dc6e1594291e7
  14. https://www.linuxquestions.org/questions/slackware-14/current-fri-oct-19-puseaudio-segfauts-4175640773/
  15. http://git.alsa-project.org/?p=alsa-plugins.git;a=commitdiff;h=fc3f5d51062ff438780e568995792dc809c908cc
  16. http://git.alsa-project.org/?p=alsa-plugins.git;a=commitdiff;h=6b996865126dd559ef186002e45dc6e1594291e7
  17. https://www.linuxquestions.org/questions/slackware-14/current-fri-oct-19-puseaudio-segfauts-4175640773/
  18. mailto:Alsa-devel at alsa-project.org
  19. http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
  20. mailto:Alsa-devel at alsa-project.org
  21. http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
  22. mailto:perex at perex.cz
  23. mailto:Alsa-devel at alsa-project.org
  24. http://mailman.alsa-project.org/mailman/listinfo/alsa-devel


More information about the Alsa-devel mailing list