No description
Find a file
Eero Nurkkala c04bd94037 pulsecore: thread-posix.c: remove unnecessary assignment
pthread_create(&t->id, NULL, internal_thread_func, t) already
assigns the t->id parameter during the thread construction.
There shouldn't be need to redo this again.

If the system is configured with the thread sanitizer, with meson:
'meson -Db_sanitize=thread', it's apparent that the unnecessary
assignment only causes potential trouble:

08:06:11 MAKE_CHECK='1' /home/test/pulse/pulseaudio/build/src/tests/once-test
Running suite(s): Once
0%: Checks: 1, Failures: 0, Errors: 1
../src/tests/once-test.c:119:E:once:once_test:0: (after this point) Early exit with return value 66

WARNING: ThreadSanitizer: data race (pid=102975)
  Read of size 8 at 0x7b0c000012c0 by main thread:
    #0 pa_thread_join ../src/pulsecore/thread-posix.c:143 (libpulsecommon-13.99.so+0x8aca4)
    #1 once_test ../src/tests/once-test.c:105 (once-test+0x2b13)
    #2 srunner_run <null> (once-test+0x58e5)
    #3 __libc_start_main <null> (libc.so.6+0x270b2)

  Previous write of size 8 at 0x7b0c000012c0 by thread T61:
    #0 internal_thread_func ../src/pulsecore/thread-posix.c:76 (libpulsecommon-13.99.so+0x8a715)
    #1 <null> <null> (libtsan.so.0+0x2d1af)

  Location is heap block of size 40 at 0x7b0c000012c0 allocated by main thread:
    #0 calloc <null> (libtsan.so.0+0x305ca)
    #1 pa_xmalloc0 ../src/pulse/xmalloc.c:74 (libpulse.so.0+0x6355b)
    #2 _pa_xnew0_internal ../src/pulse/xmalloc.h:75 (libpulsecommon-13.99.so+0x8a267)
    #3 pa_thread_new ../src/pulsecore/thread-posix.c:92 (libpulsecommon-13.99.so+0x8a828)
    #4 once_test ../src/tests/once-test.c:102 (once-test+0x2a98)
    #5 srunner_run <null> (once-test+0x58e5)
    #6 __libc_start_main <null> (libc.so.6+0x270b2)

  Thread T61 'once' (tid=110679, finished) created by main thread at:
    #0 pthread_create <null> (libtsan.so.0+0x5ea99)
    #1 pa_thread_new ../src/pulsecore/thread-posix.c:97 (libpulsecommon-13.99.so+0x8a8aa)
    #2 once_test ../src/tests/once-test.c:102 (once-test+0x2a98)
    #3 srunner_run <null> (once-test+0x58e5)
    #4 __libc_start_main <null> (libc.so.6+0x270b2)

SUMMARY: ThreadSanitizer: data race ../src/pulsecore/thread-posix.c:143 in pa_thread_join

ThreadSanitizer: reported 1 warnings

Fix this warning by removing the unnecessary assignment.

Signed-off-by: Eero Nurkkala <eero.nurkkala@offcode.fi>
2020-11-23 19:09:31 +00:00
.gitlab/issue_templates gitlab: Remove trailing whitespace from the issue template 2020-10-31 09:44:21 +02:00
coverity build: Add Coverity scan model 2017-03-06 08:22:33 +01:00
doc doc: Add an example stream-restore fallback table file. 2011-10-01 13:25:16 +01:00
doxygen meson: Add doxygen target 2020-08-10 19:50:57 +03:00
m4 .gitignore: add m4/extern-inline.m4 and remove-ptcdate.sed 2018-06-21 06:29:32 +05:30
man man: client.conf: Explain that autospawn=no doesn't disable systemd autostarting 2020-09-11 11:15:09 +03:00
po Translated using Weblate (Bulgarian) 2020-11-21 19:49:45 +02:00
scripts gitlab: Make container updates automatic 2019-12-21 05:15:31 +00:00
shell-completion shell-completion: zsh: Correct a typo 2020-08-14 22:31:33 +08:00
src pulsecore: thread-posix.c: remove unnecessary assignment 2020-11-23 19:09:31 +00:00
vala meson: Install vala apis 2019-06-08 11:57:00 +02:00
.gitignore gitignore: Ignore cscope files 2018-10-21 17:00:31 +01:00
.gitlab-ci.yml ci: Fix comment 2020-10-13 17:14:00 +03:00
.mailmap add a .mailmap file for git shortlog 2009-02-04 22:41:45 +01:00
autogen.sh update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
bootstrap.sh bootstrap.sh: don't set sysconfdir and localstatedir configure options 2019-08-13 16:49:31 +03:00
CODE_OF_CONDUCT.md Adopt a Code of Conduct 2018-09-26 02:39:00 +00:00
configure.ac glib-mainloop: Drop deprecated g_get_current_time() usage 2020-11-23 19:02:33 +00:00
git-version-gen git-version-gen: Avoid further processing when tarball-version is present 2015-10-20 16:55:23 +02:00
GPL * rename "LICENSE" to "LGPL" 2006-04-20 12:33:00 +00:00
LGPL * rename "LICENSE" to "LGPL" 2006-04-20 12:33:00 +00:00
libpulse-mainloop-glib.pc.in build: Fix static linking 2012-07-17 11:05:34 +05:30
libpulse-simple.pc.in build: Fix static linking 2012-07-17 11:05:34 +05:30
libpulse.pc.in build: Fix static linking 2012-07-17 11:05:34 +05:30
LICENSE qpaeq: change license from AGPL to LGPL v2.1 2017-09-19 21:29:44 +03:00
Makefile.am build-sys: Add doxygen/meson.build to distfiles 2020-09-20 19:10:03 -04:00
meson.build glib-mainloop: Drop deprecated g_get_current_time() usage 2020-11-23 19:02:33 +00:00
meson_options.txt build-sys: Set the GStreamer RTP backend to disabled by default 2020-10-23 12:11:46 -04:00
NEWS Update NEWS 2019-09-20 16:50:01 +03:00
orc.mak build-sys: Move ORC_SOURCE definitions outside of "if HAVE_ORC" 2014-01-24 22:56:27 +02:00
PROTOCOL Rename "available group" to "availability group" 2020-08-10 20:54:21 +03:00
pulseaudio-text.svg merge 'lennart' branch back into trunk. 2007-10-28 19:13:50 +00:00
pulseaudio.supp Add a Valgrind suppression file 2014-09-21 11:00:51 +03:00
pulseaudio.svg Add PulseAudio logo to tree. 2006-08-28 06:25:41 +00:00
PulseAudioConfig.cmake.in build-sys: Provide a simple CMake Config setup (similar to pkgconfig) 2011-10-19 23:49:23 +01:00
PulseAudioConfigVersion.cmake.in build-sys: Provide a simple CMake Config setup (similar to pkgconfig) 2011-10-19 23:49:23 +01:00
README doc: Update README to point to GitLab 2018-07-30 17:44:20 +05:30
todo build-sys: Stop using symdef headers for modules 2017-12-12 12:58:52 +05:30

PULSEAUDIO SOUND SERVER

WEB SITE:
	http://pulseaudio.org/

GIT:
	https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git

GitLab:
	https://gitlab.freedesktop.org/pulseaudio/pulseaudio

MAILING LIST:
	http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss

GIT COMMITS MAILING LIST:
	http://lists.freedesktop.org/mailman/listinfo/pulseaudio-commits

TRAC/BUGZILLA TICKET CHANGES MAILING LIST:
	http://lists.freedesktop.org/mailman/listinfo/pulseaudio-bugs

IRC:
	#pulseaudio on irc.freenode.org

FRESHMEAT:
	http://freshmeat.net/projects/pulseaudio/

OHLOH:
	http://www.ohloh.net/projects/4038

AUTHORS:
	Several

HACKING:
	In order to run pulseaudio from the build dir __OPTIMIZE__ should be
	disabled (look at src/pulsecore/core-util.h::pa_run_from_build_tree()),
	this can be done by passing "CFLAGS=-O0" to the configure script:
	  ./autogen.sh
	  CFLAGS="-ggdb3 -O0" LDFLAGS="-ggdb3" ./configure
	  make
	  ./src/pulseaudio -n -F src/default.pa -p $(pwd)/src/

SPELLING:
        PulseAudio