[alsa-devel] Segfault in pulseaudio since Alsa 1.1.7

Hyperion h1p8r10n at yandex.com
Tue Oct 23 19:41:29 CEST 2018


   validated !

   Â

   23.10.2018, 19:17, "Hyperion" <h1p8r10n at yandex.com>:

     Â Â Â Great !! looks like the real fix (I'm going to rebuild my
     version of
     Â Â Â alsa-plugins with it and let you know).
        Â
     Â Â Â Thanks
        Â
     Â Â Â JP
        Â
     Â Â Â 23.10.2018, 09:37, "Jaroslav Kysela" <[1]perex at perex.cz>:
     Â Â Â Â Â Dne 23.10.2018 v 09:06 Hyperion napsal(a):
          Â 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 ?
     Â Â Â Â Â Here is the better fix:
     Â Â Â Â Â [1][2]http://git.alsa-project.org/?p=alsa-plugins.git;a=co
     mmitdiff;h=a4
     Â Â Â Â Â e7e1282c57a2f4e83afe9a4008042d8b4c5bb9
     Â Â Â Â Â There was really a double pcm free, because:
          Â Â snd_pcm_ioplug_delete ->
          Â Â Â Â snd_pcm_close ->
          Â Â Â Â Â Â snd_pcm_ioplug_close ->
          Â Â Â Â Â Â Â Â a52_close() ->
          Â Â Â Â Â Â Â Â Â Â snd_pcm_close(rec->slave)
          Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
     Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
          Â Â Â Â Â Â Jaroslav
          Â
          Â Â
          Â All the best
          Â JP
          Â Â
          Â 23.10.2018, 08:53, "Jaroslav Kysela"
     <[2][3]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"
     Â Â Â Â Â <[3][4]h1p8r10n at yandex.com
          Â Â Â Â Â <mailto:[5][4]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][5][6]https://www.linuxquestions.org/questions/slackwar
     Â Â Â Â Â e-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][6][7]http://git.alsa-project.org/?p=alsa-...792dc809c9
     Â Â Â Â Â 08cc
          Â           Â Â Â
          Â Â Â Â Â
     [3][3][7][8]http://git.alsa-project.org/?p=alsa-...5dc6e15942
     Â Â Â Â Â 91e7
          Â           Â Â Â Then no
     more segfault in pulseaudio
     Â Â Â Â Â when accessing the USB
          Â Â Â Â Â Â Â Â Â Â Â soundcard.
          Â           Â Â Â
     Â
          Â           Â Â Â Please
     could you fix it ?
          Â           Â Â Â
     Â
          Â           Â Â Â Regards
          Â           Â Â Â jp
          Â Â Â Â Â Â Â Â Â Â Â References
          Â           Â Â Â Visible
     links
          Â           Â Â Â 1.
          Â Â Â Â Â Â Â Â Â Â Â
     [4][8][9]https://www.linuxquestions.org/questions
     Â Â Â Â Â /slackware-14/current-fri
          Â Â Â Â Â Â Â Â Â Â Â
     -oct-19-puseaudio-segfauts-4175640773/
          Â           Â Â Â 2.
          Â Â Â Â Â Â Â Â Â Â Â
     [5][9][10]http://git.alsa-project.org/?p=alsa-plug
     Â Â Â Â Â ins.git;a=commitdiff;h=fc
          Â Â Â Â Â Â Â Â Â Â Â
     3f5d51062ff438780e568995792dc809c908cc
          Â           Â Â Â 3.
          Â Â Â Â Â Â Â Â Â Â Â
     [6][10][11]http://git.alsa-project.org/?p=alsa-plu
     Â Â Â Â Â gins.git;a=commitdiff;h=6b
          Â Â Â Â Â Â Â Â Â Â Â
     996865126dd559ef186002e45dc6e1594291e7
          Â           Â Â Â Hidden
     links:
          Â           Â Â Â 4.
          Â Â Â Â Â Â Â Â Â Â Â
     [7][11][12]https://www.linuxquestions.org/question
     Â Â Â Â Â s/slackware-14/current-fri
          Â Â Â Â Â Â Â Â Â Â Â
     -oct-19-puseaudio-segfauts-4175640773/
          Â Â Â Â Â Â Â Â Â Â Â
     ______________________________________________
     Â Â Â Â Â _
          Â Â Â Â Â Â Â Â Â Â Â Alsa-devel mailing list
          Â Â Â Â Â Â Â Â Â Â Â
     [8][12][13]Alsa-devel at alsa-project.org
          Â Â Â Â Â
     <mailto:[14][13]Alsa-devel at alsa-project.org>
          Â Â Â Â Â Â Â Â Â Â Â
     [9][14][15]http://mailman.alsa-project.org/mailman
     Â Â Â Â Â /listinfo/alsa-devel
          Â Â Â Â Â Â References
          Â Â Â Â Â Â Â Â Â 1.
          Â Â Â Â Â
     [15][16]https://www.linuxquestions.org/questions/slackware-14/
     Â Â Â Â Â current-fri-oc
          Â Â Â Â Â Â Â Â Â 2.
     Â Â Â Â Â [16][17]http://git.alsa-project.org/?p=alsa-...792dc809c90
     8cc
          Â Â Â Â Â Â Â Â Â 3.
     Â Â Â Â Â [17][18]http://git.alsa-project.org/?p=alsa-...5dc6e159429
     1e7
          Â Â Â Â Â Â Â Â Â 4.
          Â Â Â Â Â
     [18][19]https://www.linuxquestions.org/questions/slackware-14/
     Â Â Â Â Â current-fri-oct-19-puseaudio-segfauts-4175640773/
          Â Â Â Â Â Â Â Â Â 5.
          Â Â Â Â Â
     [19][20]http://git.alsa-project.org/?p=alsa-plugins.git;a=comm
     Â Â Â Â Â itdiff;h=fc3f5d51062ff438780e568995792dc809c908cc
          Â Â Â Â Â Â Â Â Â 6.
          Â Â Â Â Â
     [20][21]http://git.alsa-project.org/?p=alsa-plugins.git;a=comm
     Â Â Â Â Â itdiff;h=6b996865126dd559ef186002e45dc6e1594291e7
          Â Â Â Â Â Â Â Â Â 7.
          Â Â Â Â Â
     [21][22]https://www.linuxquestions.org/questions/slackware-14/
     Â Â Â Â Â current-fri-oct-19-puseaudio-segfauts-4175640773/
          Â Â Â Â Â Â Â Â Â 8.
     mailto:[23][22]Alsa-devel at alsa-project.org
          Â Â Â Â Â
     <mailto:[24][23]Alsa-devel at alsa-project.org>
          Â Â Â Â Â Â Â Â Â 9.
     Â Â Â Â Â [24][25]http://mailman.alsa-project.org/mailman/listinfo/a
     lsa-devel
          Â Â Â Â Â Â
     _______________________________________________
          Â Â Â Â Â Â Alsa-devel mailing list
          Â Â Â Â Â Â [25][26]Alsa-devel at alsa-project.org
     Â Â Â Â Â <mailto:[27][26]Alsa-devel at alsa-project.org>
          Â Â Â Â Â Â
     [27][28]http://mailman.alsa-project.org/mailman/listinfo/als
     Â Â Â Â Â a-devel
          Â Â Â Â Â Â
          Â Â
          Â --
          Â Jaroslav Kysela <[28][29]perex at perex.cz
     <mailto:[30][29]perex at perex.cz>>
          Â Linux Sound Maintainer; ALSA Project; Red Hat, Inc.
          Â _______________________________________________
          Â Alsa-devel mailing list
          Â [30][31]Alsa-devel at alsa-project.org
     Â Â Â Â Â <mailto:[32][31]Alsa-devel at alsa-project.org>
          Â
     [32][33]http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
          Â
     Â Â Â Â Â --
     Â Â Â Â Â Jaroslav Kysela <[33][34]perex at perex.cz>
     Â Â Â Â Â Linux Sound Maintainer; ALSA Project; Red Hat, Inc.
     References
     Â Â Â 1.
     [35]http://git.alsa-project.org/?p=alsa-plugins.git;a=commitdiff;h=a
     4e7e1282c57a2f4e83afe9a4008042d8b4c5bb9
     Â Â Â 2. mailto:[36]perex at perex.cz
     Â Â Â 3. mailto:[37]h1p8r10n at yandex.com
     Â Â Â 4. mailto:[38]h1p8r10n at yandex.com
     Â Â Â 5.
     [39]https://www.linuxquestions.org/questions/slackware-14/cu
     Â Â Â 6. [40]http://git.alsa-project.org/?p=alsa-...792dc809c908cc
     Â Â Â 7. [41]http://git.alsa-project.org/?p=alsa-...5dc6e1594291e7
     Â Â Â 8.
     [42]https://www.linuxquestions.org/questions/slackware-14/current-fr
     i
     Â Â Â 9.
     [43]http://git.alsa-project.org/?p=alsa-plugins.git;a=commitdiff;h=f
     c
     Â Â 10.
     [44]http://git.alsa-project.org/?p=alsa-plugins.git;a=commitdiff;h=6
     b
     Â Â 11.
     [45]https://www.linuxquestions.org/questions/slackware-14/current-fr
     i
     Â Â 12. mailto:[46]Alsa-devel at alsa-project.org
     Â Â 13. mailto:[47]Alsa-devel at alsa-project.org
     Â Â 14.
     [48]http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
     Â Â 15.
     [49]https://www.linuxquestions.org/questions/slackware-14/current-fr
     i-oc
     Â Â 16. [50]http://git.alsa-project.org/?p=alsa-...792dc809c908cc
     Â Â 17. [51]http://git.alsa-project.org/?p=alsa-...5dc6e1594291e7
     Â Â 18.
     [52]https://www.linuxquestions.org/questions/slackware-14/current-fr
     i-oct-19-puseaudio-segfauts-4175640773/
     Â Â 19.
     [53]http://git.alsa-project.org/?p=alsa-plugins.git;a=commitdiff;h=f
     c3f5d51062ff438780e568995792dc809c908cc
     Â Â 20.
     [54]http://git.alsa-project.org/?p=alsa-plugins.git;a=commitdiff;h=6
     b996865126dd559ef186002e45dc6e1594291e7
     Â Â 21.
     [55]https://www.linuxquestions.org/questions/slackware-14/current-fr
     i-oct-19-puseaudio-segfauts-4175640773/
     Â Â 22. mailto:[56]Alsa-devel at alsa-project.org
     Â Â 23. mailto:[57]Alsa-devel at alsa-project.org
     Â Â 24.
     [58]http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
     Â Â 25. mailto:[59]Alsa-devel at alsa-project.org
     Â Â 26. mailto:[60]Alsa-devel at alsa-project.org
     Â Â 27.
     [61]http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
     Â Â 28. mailto:[62]perex at perex.cz
     Â Â 29. mailto:[63]perex at perex.cz
     Â Â 30. mailto:[64]Alsa-devel at alsa-project.org
     Â Â 31. mailto:[65]Alsa-devel at alsa-project.org
     Â Â 32.
     [66]http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
     Â Â 33. mailto:[67]perex at perex.cz
     _______________________________________________
     Alsa-devel mailing list
     [68]Alsa-devel at alsa-project.org
     [69]http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

References

   1. mailto:perex at perex.cz
   2. http://git.alsa-project.org/?p=alsa-plugins.git;a=commitdiff;h=a4
   3. mailto:perex at perex.cz
   4. mailto:h1p8r10n at yandex.com
   5. mailto:[4]h1p8r10n at yandex.com
   6. https://www.linuxquestions.org/questions/slackwar
   7. http://git.alsa-project.org/?p=alsa-...792dc809c9
   8. http://git.alsa-project.org/?p=alsa-...5dc6e15942
   9. https://www.linuxquestions.org/questions
  10. http://git.alsa-project.org/?p=alsa-plug
  11. http://git.alsa-project.org/?p=alsa-plu
  12. https://www.linuxquestions.org/question
  13. mailto:Alsa-devel at alsa-project.org
  14. mailto:[13]Alsa-devel at alsa-project.org
  15. http://mailman.alsa-project.org/mailman
  16. https://www.linuxquestions.org/questions/slackware-14/
  17. http://git.alsa-project.org/?p=alsa-...792dc809c908cc
  18. http://git.alsa-project.org/?p=alsa-...5dc6e1594291e7
  19. https://www.linuxquestions.org/questions/slackware-14/
  20. http://git.alsa-project.org/?p=alsa-plugins.git;a=comm
  21. http://git.alsa-project.org/?p=alsa-plugins.git;a=comm
  22. https://www.linuxquestions.org/questions/slackware-14/
  23. mailto:[22]Alsa-devel at alsa-project.org
  24. mailto:[23]Alsa-devel at alsa-project.org
  25. http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
  26. mailto:Alsa-devel at alsa-project.org
  27. mailto:[26]Alsa-devel at alsa-project.org
  28. http://mailman.alsa-project.org/mailman/listinfo/als
  29. mailto:perex at perex.cz
  30. mailto:[29]perex at perex.cz
  31. mailto:Alsa-devel at alsa-project.org
  32. mailto:[31]Alsa-devel at alsa-project.org
  33. http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
  34. mailto:perex at perex.cz
  35. http://git.alsa-project.org/?p=alsa-plugins.git;a=commitdiff;h=a4e7e1282c57a2f4e83afe9a4008042d8b4c5bb9
  36. mailto:perex at perex.cz
  37. mailto:h1p8r10n at yandex.com
  38. mailto:h1p8r10n at yandex.com
  39. https://www.linuxquestions.org/questions/slackware-14/cu
  40. http://git.alsa-project.org/?p=alsa-...792dc809c908cc
  41. http://git.alsa-project.org/?p=alsa-...5dc6e1594291e7
  42. https://www.linuxquestions.org/questions/slackware-14/current-fri
  43. http://git.alsa-project.org/?p=alsa-plugins.git;a=commitdiff;h=fc
  44. http://git.alsa-project.org/?p=alsa-plugins.git;a=commitdiff;h=6b
  45. https://www.linuxquestions.org/questions/slackware-14/current-fri
  46. mailto:Alsa-devel at alsa-project.org
  47. mailto:Alsa-devel at alsa-project.org
  48. http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
  49. https://www.linuxquestions.org/questions/slackware-14/current-fri-oc
  50. http://git.alsa-project.org/?p=alsa-...792dc809c908cc
  51. http://git.alsa-project.org/?p=alsa-...5dc6e1594291e7
  52. https://www.linuxquestions.org/questions/slackware-14/current-fri-oct-19-puseaudio-segfauts-4175640773/
  53. http://git.alsa-project.org/?p=alsa-plugins.git;a=commitdiff;h=fc3f5d51062ff438780e568995792dc809c908cc
  54. http://git.alsa-project.org/?p=alsa-plugins.git;a=commitdiff;h=6b996865126dd559ef186002e45dc6e1594291e7
  55. https://www.linuxquestions.org/questions/slackware-14/current-fri-oct-19-puseaudio-segfauts-4175640773/
  56. mailto:Alsa-devel at alsa-project.org
  57. mailto:Alsa-devel at alsa-project.org
  58. http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
  59. mailto:Alsa-devel at alsa-project.org
  60. mailto:Alsa-devel at alsa-project.org
  61. http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
  62. mailto:perex at perex.cz
  63. mailto:perex at perex.cz
  64. mailto:Alsa-devel at alsa-project.org
  65. mailto:Alsa-devel at alsa-project.org
  66. http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
  67. mailto:perex at perex.cz
  68. mailto:Alsa-devel at alsa-project.org
  69. http://mailman.alsa-project.org/mailman/listinfo/alsa-devel


More information about the Alsa-devel mailing list