Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Windows] Can't create more than ~23K threads under ASan #52

Closed
ramosian-glider opened this issue Aug 31, 2015 · 7 comments
Closed

[Windows] Can't create more than ~23K threads under ASan #52

ramosian-glider opened this issue Aug 31, 2015 · 7 comments

Comments

@ramosian-glider
Copy link
Member

Originally reported on Google Code with ID 52

What subject says.

Reported by timurrrr on 2012-03-19 13:24:52

@ramosian-glider
Copy link
Member Author

See r1253 - the test passes natively and with Clang, but crashes on a CHECK under ASan
at ~23500-23700 threads (the value varies a bit).

Reported by timurrrr on 2012-03-19 13:26:26

@ramosian-glider
Copy link
Member Author

Forgot to mention: it's the "real" CreateThread which fails

Reported by timurrrr on 2012-03-19 13:58:24

@ramosian-glider
Copy link
Member Author

Is this 32- or 64-bit? 
I would not expect 32-bit to survive so many threads -- just not enough address space.
What's the limit on 32-bit linux? 

Reported by konstantin.s.serebryany on 2012-03-19 16:14:04

@ramosian-glider
Copy link
Member Author

It's 32-bit.
The native app works fine and it is extracted from a small Chromium test run with a
hundred of other tests in the same process.
I was able to spawn 100k+ threads in a native execution.
It might be that our shadow allocation point conflicts with where the stack of the
new thread should be...

I've noticed that this particular test is disabled under TSan and Dr.Memory so this
isn't a high priority issue.

Reported by timurrrr on 2012-03-19 17:29:47

  • Labels added: Priority-Low
  • Labels removed: Priority-Medium

@ramosian-glider
Copy link
Member Author

I don't think this is an issue at all, just a feature. 
asan takes much more address space than non-asan. 
It is quite normal that on 32-bit we can't run as many threads as non-asan. 
Unless the limit of the thread number on Windows is much smaller than on linux (with
the same thread stack size), I suggest to close this as "WontFix".

Reported by konstantin.s.serebryany on 2012-03-19 17:34:01

@ramosian-glider
Copy link
Member Author

Ok, sounds reasonable.
I thought of something like this too :)

Will reopen if this affects anything else.

Reported by timurrrr on 2012-03-19 17:47:19

  • Status changed: WontFix

@ramosian-glider
Copy link
Member Author

Adding Project:AddressSanitizer as part of GitHub migration.

Reported by ramosian.glider on 2015-07-30 09:12:58

  • Labels added: ProjectAddressSanitizer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant