I was able to reproduce the situation and did a kernel bisection to confirm, and it reveals that you were right :
$ git bisect log ... # first fixed commit: [d6379b5ba0f381ea8ec2403b9985100a946a5866] [kernel] dont collect some tracing instance files
I test the above commit on Cosmic and sosreport no longer hangs at the kernel plugin when rasdaemon is installed.
I'll push a the fix during the week-end or next week.
I was able to reproduce the situation and did a kernel bisection to confirm, and it reveals that you were right :
$ git bisect log ea8ec2403b99851 00a946a5866] [kernel] dont collect some tracing instance files
...
# first fixed commit: [d6379b5ba0f381
I test the above commit on Cosmic and sosreport no longer hangs at the kernel plugin when rasdaemon is installed.
I'll push a the fix during the week-end or next week.