This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hi, I do not think that wordexp() is described clearly as MT-unsafe on the specification. Wordexp() is not thread safe. Because, wordexp() uses __setenv() and __unsetenv() internally. # grep -n setenv ./posix/wordexp.c 857: __unsetenv ("IFS"); 1869: __setenv (env, value, 1); Therefore, if a lot of wordexp() is executed at the same time, SIGSEGV can be generated. Example:tst-worexp2.tar.gz Reference: http://sourceware.org/bugzilla/show_bug.cgi?id=4887
Attachment:
tst-wordexp2.tar.gz
Description: application/gzip-compressed
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |