Closed Bug 669024 Opened 13 years ago Closed 6 years ago

Startup crash in CSMP_PVFUNCS::CreateWorkerThreads with AMD Phenom II X6

Categories

(Core :: Graphics, defect)

x86
Windows XP
defect
Not set
critical

Tracking

()

RESOLVED WONTFIX

People

(Reporter: AlexALX, Unassigned)

References

Details

(Keywords: crash, Whiteboard: [startupcrash][platform-rel-AMD])

Crash Data

Attachments

(2 files)

User Agent: Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20100101 Firefox/5.0
Build ID: 20110614174314

Steps to reproduce:

Hello, sorry for my english, i very bad speak english.

After i buy new cpu Phenom II x6 1090t firefox starting crash or frozen after startup (1-3 sec) almost always closed without any errors or crash report. I have windows xp sp3 x86 and firefox 5.0, i tried download latest beta version, but still don't help. Also i tried disable all plugins and addons - still nothing.

Also when i disable 2 cores in bios (and have 4 or less cores) - no crashes, all work ok. Or when i set in windows Task Manager use 4 cores for firefox.exe process - then also all ok.

Sorry that so little information, but no crash report did not create...

I can give more information if needed, only say what and how.


Actual results:

Firefox closing or frozen.


Expected results:

Probably have phenom II x6 1090t + windows xp sp3 x86. Idk.
OS: Other → Windows XP
Hardware: All → x86
I forgot say - i also tried remove Documents and Settings\user_name\Application Data\Mozilla - do not help.

Now i test in windows 7, and all work fine, so this problem only on windows xp.
Attached file log
Hope i do all right.
Component: General → Graphics
Product: Firefox → Core
QA Contact: general → thebes
Hey? Any way to fix this? It's boring always set in windows xp Task Manager use 4 cores for firefox.exe process...
After update to firefox 6 beta this bug still here, after downgrade to firefox 4 this bug also here... But i find solution - run firefox in compatibility mode with windows 2000, then it don't crash, but use old style for menus/checkbox etc. I want normal fix! =( This will be fixed someday?
If you go to about:config and set layers.acceleration.disabled=true, it should fix your crash, right?
oh yes, thanks, now no crash with this option! So what problem with this option?
From your WinDbg trace:

0012cbe8 7c90df5a ntdll!KiFastSystemCallRet
0012cbec 7c8025db ntdll!NtWaitForSingleObject+0xc
0012cc50 7c802542 kernel32!WaitForSingleObjectEx+0xa8
0012cc64 4fe844c9 kernel32!WaitForSingleObject+0x12
0012cc78 4fe8458c d3d9!stWorkerThread::CreateThread+0x79
0012cc90 4fe7dae2 d3d9!CSMP_PVFUNCS::CreateWorkerThreads+0x5c
0012ccd0 4fdf2112 d3d9!x3DContextCreate+0x92
0012ce28 4fdf6d41 d3d9!CD3DHal::InitDevice+0x392
0012ce58 4fdf1a80 d3d9!CD3DBase::Init+0x31
0012cefc 106abbd3 d3d9!CEnum::CreateDevice+0x410
0012da58 10476e67 xul!mozilla::layers::DeviceManagerD3D9::Init(void)+0x28a [e:\builds\moz2_slave\rel-rel-w32-bld\build\gfx\layers\d3d9\devicemanagerd3d9.cpp @ 325]

This suggests that during D3D initialization, we hit some kind of race condition in D3D9. That would explain why you only hit it with 6 cores.

Not much we can do about that. The preference that I showed you how to disable, allows to completely avoid doing that, that's why it "fixes" the problem for you. In general, this problem seems very specific to your CPU so the only thing we could maybe do is detect your CPU and disable this feature on it, maybe on Windows XP only. I'd wait until more people complain before doing this. I think that 6-core Phenom + WinXP is a rather unusual combination of new hardware with old software.
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → WONTFIX
Same problem with my AMD Phenom X6 also running XP.
Thunderbird is also affected the same way.
Windows and all other programs work fine.
Disabling 2 cores in BIOS helps.
Exact same problem on AMD Phenom II X6 with XP SP3.  Status resolved won't fix is not what I like to see.  Please fix.
If this is crashing people, and is fixed by disabling accel-layers, shouldn't we blacklist accel-layers on such systems?
Status: RESOLVED → REOPENED
Ever confirmed: true
Resolution: WONTFIX → ---
Indeed, there's a clear trend here. 3 people already, all on phenom II x6. yes, must do!
Can anyone who can reproduce please go to about:crashes and post a crash link?
I can reproduce the crash, but don't know how to make about:crashes contribute.  With the default home page, Firefox crashes after five seconds every time.  If within the five seconds I can key in a URL, it mostly will go to the new URL, and only sometimes crashes trying to hit the new URL.  If it stays running, it stays running, and does not crash again.  I have left it up two days this way.  If I set a different home page, it has not crashed on start up for several attempts.  If I go to about:crashes, there are none.  If I make about:crashes the home page, it hasn't crashed in several attempts.  I don't think much of the idea to disable a layer "such systems".  If the layer is a good useful layer, it shouldn't crash should it.
david: please launch Firefox from the command line with the -safe-mode option, and directly on the about:crashes page. Like this:

firefox -safe-mode about:crashes
Obtained as follows:

 $ wget https://crash-analysis.mozilla.com/crash_analysis/20120505/20120505-pub-crashdata.csv.gz --no-check-certificate
 $ gzip -cd 20120505-pub-crashdata.csv.gz | grep AuthenticAMD\ family\ 16\ model\ 10 | grep Windows.NT.5.1 > crashes-phenom-II-x6-WinXP

Assumption here is that PhenomII x6 == AuthenticAMD\ family\ 16\ model\ 10
 $ bjacob:~/Downloads$ cat crashes-phenom-II-x6-WinXP | cut -f 3
http://crash-stats.mozilla.com/report/index/435a2d96-7e29-4501-ad64-c66892120505
http://crash-stats.mozilla.com/report/index/2cbf12c2-28da-4d87-8406-35c7d2120505
http://crash-stats.mozilla.com/report/index/edd32223-447d-4a6d-b630-8414d2120505
http://crash-stats.mozilla.com/report/index/2453868c-a79d-4a0a-ac1b-eb0e72120505
http://crash-stats.mozilla.com/report/index/b1b3ccd1-aff2-496d-83ce-113fb2120505
http://crash-stats.mozilla.com/report/index/4672c73d-1066-41d4-8b6f-f68a32120505
http://crash-stats.mozilla.com/report/index/cf4bfc0c-5524-451b-8a21-4c0872120505
http://crash-stats.mozilla.com/report/index/ed943a54-a866-4c13-9396-f0eaa2120505
http://crash-stats.mozilla.com/report/index/1fb0b4d8-3689-4722-bbc6-d1c262120505
http://crash-stats.mozilla.com/report/index/6f18981d-c22b-42b4-9a32-118b12120505
http://crash-stats.mozilla.com/report/index/424b152f-57cf-4a86-9c4c-352302120505
http://crash-stats.mozilla.com/report/index/1e613dc7-0a2b-4c66-a702-349e12120505
http://crash-stats.mozilla.com/report/index/a2ee82c6-c4b5-4eba-8da8-126ca2120505
http://crash-stats.mozilla.com/report/index/5b2aebc6-ca91-4607-bff2-c88112120505
http://crash-stats.mozilla.com/report/index/d21a5bfb-b0a1-4409-9bc9-397012120505
http://crash-stats.mozilla.com/report/index/93f17bf3-0caf-4349-a10f-94b2e2120505
http://crash-stats.mozilla.com/report/index/071ef217-958e-42f6-a704-ea3b42120505
http://crash-stats.mozilla.com/report/index/7e844400-720f-4607-a4cd-b29032120505
http://crash-stats.mozilla.com/report/index/3c04cdc5-fb12-489d-8ef2-69c242120505
http://crash-stats.mozilla.com/report/index/07cb18de-5696-4572-bc68-b07572120505
http://crash-stats.mozilla.com/report/index/668b77ea-6afc-4021-9505-39d1a2120505
http://crash-stats.mozilla.com/report/index/828edbbb-f8c0-48da-a7e5-51a132120505
http://crash-stats.mozilla.com/report/index/541c0489-df06-42a8-8093-5648f2120505
http://crash-stats.mozilla.com/report/index/b4ea3d72-eefc-4568-8929-cf1d92120505
http://crash-stats.mozilla.com/report/index/483dae9a-d088-4dea-afe2-72f9b2120505
http://crash-stats.mozilla.com/report/index/e6ffa0ce-3bac-4dda-ae7c-a9f6e2120505
http://crash-stats.mozilla.com/report/index/ae6506d8-c0b9-42f5-9ce8-36a5a2120505
http://crash-stats.mozilla.com/report/index/ed3ce896-ce08-4fe8-9c9c-c90fd2120505
http://crash-stats.mozilla.com/report/index/4aa909ff-2237-4ab1-9ccb-9b07e2120505
http://crash-stats.mozilla.com/report/index/502cdc1a-2efb-4eeb-9db4-e58b62120505
http://crash-stats.mozilla.com/report/index/79089df3-092a-4198-b6d6-53fa02120505
http://crash-stats.mozilla.com/report/index/0ba4de6c-72b3-4261-b483-b1b792120505
http://crash-stats.mozilla.com/report/index/01f38c85-79c2-47cf-9fac-7bf3c2120505
http://crash-stats.mozilla.com/report/index/7d7a498c-c3cd-4d13-bb4c-2af732120505
http://crash-stats.mozilla.com/report/index/2530e8f8-3940-41e6-83bc-6f10b2120505
http://crash-stats.mozilla.com/report/index/7b06e484-e5df-4a49-954a-8ed4e2120505
http://crash-stats.mozilla.com/report/index/4c49b7eb-c94b-4d0b-9147-52bd02120505
http://crash-stats.mozilla.com/report/index/0723be42-aed0-434a-917b-a72622120505
http://crash-stats.mozilla.com/report/index/7ce8fd21-bde8-4373-b483-ef9482120505
http://crash-stats.mozilla.com/report/index/adb21a93-c1e5-4202-933e-548e52120505
http://crash-stats.mozilla.com/report/index/c54ebff3-caab-423d-ad3a-c676e2120505
http://crash-stats.mozilla.com/report/index/4955b2fb-9930-4075-be11-36a1e2120505
http://crash-stats.mozilla.com/report/index/bace2974-ed78-424f-8ecf-28afa2120505
http://crash-stats.mozilla.com/report/index/18ddaa57-7f2b-4991-b2a9-54e9d2120505
http://crash-stats.mozilla.com/report/index/7220502e-909a-412a-b49c-41cb22120505
http://crash-stats.mozilla.com/report/index/46b7811a-76e8-4aca-8289-752ed2120505
http://crash-stats.mozilla.com/report/index/2a63df78-9dae-4ff0-91d2-2ad442120505
http://crash-stats.mozilla.com/report/index/1dbc3d8f-bc77-46e3-8bb9-012a82120505
http://crash-stats.mozilla.com/report/index/f793777c-3f65-4b91-b0f5-09f3d2120505
http://crash-stats.mozilla.com/report/index/977dfcd8-bd15-48ea-b636-462bc2120505
http://crash-stats.mozilla.com/report/index/2adc67b4-f4b4-4cdd-96b3-354ad2120505
http://crash-stats.mozilla.com/report/index/56ee7347-219a-4b2e-a301-f86ab2120505
http://crash-stats.mozilla.com/report/index/8d080181-ba7c-4cc6-9e6c-2273a2120505
http://crash-stats.mozilla.com/report/index/56faea6f-75ab-483f-af06-83a582120505
http://crash-stats.mozilla.com/report/index/b6a63e39-83a8-4b77-92b6-a2d722120505
http://crash-stats.mozilla.com/report/index/ec35549a-8331-4a2c-92c4-38b362120505
http://crash-stats.mozilla.com/report/index/3f2f9830-647f-4780-8700-c8ac92120505
http://crash-stats.mozilla.com/report/index/61dbd089-b58e-4cc3-8f0e-ef2102120505
http://crash-stats.mozilla.com/report/index/9249502c-9630-429f-a34d-527c62120505
http://crash-stats.mozilla.com/report/index/dfed675e-08f2-432c-96c0-62f7c2120505
http://crash-stats.mozilla.com/report/index/fb681927-04cb-42a2-94d8-ed6012120505
http://crash-stats.mozilla.com/report/index/4a8b1f30-e668-44af-a459-c10942120505
http://crash-stats.mozilla.com/report/index/d3d867c4-6f53-41a4-b458-d5c792120505
http://crash-stats.mozilla.com/report/index/16f2a399-b0c0-450e-9d07-94f512120505
http://crash-stats.mozilla.com/report/index/11f4b41d-a2a3-4a1b-be5e-6fa5b2120505
http://crash-stats.mozilla.com/report/index/b4454f65-2466-4c35-b589-301c92120505
http://crash-stats.mozilla.com/report/index/f4ab7fd6-ce19-4334-b5d5-479da2120505
http://crash-stats.mozilla.com/report/index/7ccf0b58-6e0d-44f1-802c-519cb2120505
http://crash-stats.mozilla.com/report/index/cceff73e-2911-4fa8-b964-38d282120505
http://crash-stats.mozilla.com/report/index/83c7e4ce-a97e-49e9-9321-27c722120505
http://crash-stats.mozilla.com/report/index/5e3e3699-39ba-4d45-9f7e-bdd502120505
http://crash-stats.mozilla.com/report/index/eb7951c1-08e9-4228-ac8d-c39e32120505
http://crash-stats.mozilla.com/report/index/f7a8ed2c-9d23-45ed-80e1-1ffb62120505
http://crash-stats.mozilla.com/report/index/7a624915-f8c7-48b8-a53d-7ca4e2120505
http://crash-stats.mozilla.com/report/index/f33ecc25-511a-492c-a3e5-346bc2120505
http://crash-stats.mozilla.com/report/index/b1625b16-e89e-409f-b8e1-9b3a82120505
http://crash-stats.mozilla.com/report/index/49d0b817-72df-41a6-805b-45eca2120505
http://crash-stats.mozilla.com/report/index/997cbaba-5eff-4a25-9573-906be2120505
http://crash-stats.mozilla.com/report/index/458126a3-2aca-4952-bfe8-a4dd42120505
http://crash-stats.mozilla.com/report/index/8c0bec90-00d4-4eb5-bb77-53d172120505
http://crash-stats.mozilla.com/report/index/ab45d9ea-2d63-4cab-a34b-92f062120505
http://crash-stats.mozilla.com/report/index/c5274bcc-d7d9-4db3-a1d3-91c2f2120505
http://crash-stats.mozilla.com/report/index/5a49877d-35d7-4f3d-88a5-a6f1b2120505
http://crash-stats.mozilla.com/report/index/58fcbf5c-3b16-48eb-b4a0-037182120505
http://crash-stats.mozilla.com/report/index/0557d593-676e-4889-a502-ed3fa2120505
 $ cat crashes-phenom-II-x6-WinXP | grep D3D9\ Layers? | grep -v D3D9\ Layers[+-] | wc -l
31

Aha -- out of these 85 crashes, 31 are during D3D9 Layers initialization i.e. the present bug. So this is very severe bug: by itslef, it increases firefox crashiness by over 50% for Phenom II x6 WinXP users!

The 31 relevant crash links:

 $ bjacob:~/Downloads$ cat crashes-phenom-II-x6-WinXP | grep D3D9\ Layers? | grep -v D3D9\ Layers[+-] | cut -f 3
http://crash-stats.mozilla.com/report/index/435a2d96-7e29-4501-ad64-c66892120505
http://crash-stats.mozilla.com/report/index/cf4bfc0c-5524-451b-8a21-4c0872120505
http://crash-stats.mozilla.com/report/index/1fb0b4d8-3689-4722-bbc6-d1c262120505
http://crash-stats.mozilla.com/report/index/6f18981d-c22b-42b4-9a32-118b12120505
http://crash-stats.mozilla.com/report/index/1e613dc7-0a2b-4c66-a702-349e12120505
http://crash-stats.mozilla.com/report/index/5b2aebc6-ca91-4607-bff2-c88112120505
http://crash-stats.mozilla.com/report/index/d21a5bfb-b0a1-4409-9bc9-397012120505
http://crash-stats.mozilla.com/report/index/7e844400-720f-4607-a4cd-b29032120505
http://crash-stats.mozilla.com/report/index/3c04cdc5-fb12-489d-8ef2-69c242120505
http://crash-stats.mozilla.com/report/index/828edbbb-f8c0-48da-a7e5-51a132120505
http://crash-stats.mozilla.com/report/index/483dae9a-d088-4dea-afe2-72f9b2120505
http://crash-stats.mozilla.com/report/index/e6ffa0ce-3bac-4dda-ae7c-a9f6e2120505
http://crash-stats.mozilla.com/report/index/ae6506d8-c0b9-42f5-9ce8-36a5a2120505
http://crash-stats.mozilla.com/report/index/ed3ce896-ce08-4fe8-9c9c-c90fd2120505
http://crash-stats.mozilla.com/report/index/4aa909ff-2237-4ab1-9ccb-9b07e2120505
http://crash-stats.mozilla.com/report/index/0723be42-aed0-434a-917b-a72622120505
http://crash-stats.mozilla.com/report/index/7ce8fd21-bde8-4373-b483-ef9482120505
http://crash-stats.mozilla.com/report/index/adb21a93-c1e5-4202-933e-548e52120505
http://crash-stats.mozilla.com/report/index/61dbd089-b58e-4cc3-8f0e-ef2102120505
http://crash-stats.mozilla.com/report/index/9249502c-9630-429f-a34d-527c62120505
http://crash-stats.mozilla.com/report/index/dfed675e-08f2-432c-96c0-62f7c2120505
http://crash-stats.mozilla.com/report/index/4a8b1f30-e668-44af-a459-c10942120505
http://crash-stats.mozilla.com/report/index/d3d867c4-6f53-41a4-b458-d5c792120505
http://crash-stats.mozilla.com/report/index/b4454f65-2466-4c35-b589-301c92120505
http://crash-stats.mozilla.com/report/index/f4ab7fd6-ce19-4334-b5d5-479da2120505
http://crash-stats.mozilla.com/report/index/7ccf0b58-6e0d-44f1-802c-519cb2120505
http://crash-stats.mozilla.com/report/index/eb7951c1-08e9-4228-ac8d-c39e32120505
http://crash-stats.mozilla.com/report/index/f33ecc25-511a-492c-a3e5-346bc2120505
http://crash-stats.mozilla.com/report/index/49d0b817-72df-41a6-805b-45eca2120505
http://crash-stats.mozilla.com/report/index/8c0bec90-00d4-4eb5-bb77-53d172120505
http://crash-stats.mozilla.com/report/index/58fcbf5c-3b16-48eb-b4a0-037182120505
Bas: The crashes are occurring under AllowD3D9WithReinitializeCallback. Is this something that's called when a problem occurred and we're trying to reinitialize D3D9 layers?

What do you prefer among these options:
 1) blacklist d3d9 layers on phenom II x6 on winxp?
 2) don't AllowD3D9WithReinitializeCallback on phenom II x6 on winxp? Assuming I got it right above.
I reset the home page to default.  Crash repeats.  Then Run firefox -safe-mode about:crashes .  Program stays running on a few tries.
What is the root cause?
Crash continues to be repeatable, but a few more details.  Instead of keying in a URL, I key into the Firefox search bar, click Search.  Nothing happens.  Then click the Firefox link to new features or choose from thousands of add ons.  Those work!  Repeats.
Even when Firefox appears to be running, the Firefox search does not run.
Close Firefox.  Repeat crash sequence a few times.  Try restore previous session.  Get that link working.  Then try Yahoo mail.  Yahoo treats me as a new user instead of knowing my ID and going directly to the mail.
(In reply to Benoit Jacob [:bjacob] from comment #19)
> Bas: The crashes are occurring under AllowD3D9WithReinitializeCallback. Is
> this something that's called when a problem occurred and we're trying to
> reinitialize D3D9 layers?
> 
> What do you prefer among these options:
>  1) blacklist d3d9 layers on phenom II x6 on winxp?
>  2) don't AllowD3D9WithReinitializeCallback on phenom II x6 on winxp?
> Assuming I got it right above.

Is there any correlation with driver versions? And how old is that driver version? Think we can get QA to get a Phenom II x6 and try to reproduce this?
So are we looking at a CPU/chipset bug? Very odd.
Maybe? No clue really, just want to get rid of this crasher.
At last, a documented crash:  
http://crash-stats.mozilla.com/report/index/bp-6e86c747-fd1e-4b73-ad13-03f762120510

The earlier theory that giving Firefox a home page prevented the crash has proved false.  After a dozen or more starts over a few days, the crash in six seconds returned even with pre-set home pages.  Once it returned it became persistent.  I now have to click something on the home page to keep it running.  This is not a reliable work around.  Some times it crashes at six seconds no matter what I tried to do to keep it interested in running.  The above crash appeared on one of these attempts to keep it running.  This is the only documented crash to have happened.  it has not repeated in the past two days.
Three duplicate bugs already, we should really prioritize this. The only nontrivial part is how to detect AuthenticAMD family 16 model 10 but since breakpad knows that info already, it should be just a matter of checking how it does.
That all comes from the CPUID instruction; we should already be calling it in the SSE detection code, so just maybe need to expose some more booleans.
Severity: normal → critical
Crash Signature: [@ CSMP_PVFUNCS::CreateWorkerThreads(int, unsigned long)]
Keywords: crash
Whiteboard: [startupcrash]
Summary: phenom II x6 crash after startup → [WinXP] phenom II x6 crash after startup
Version: 5 Branch → Trunk
Hi all,

I've had this problem for awhile on other programs and recently upgraded to FF10.0.12esr from ff3.6.28 and started having this issue. FF3.6.28 was so great !! 

Anyway.. After investigating this issue with FF10.0.12, I think I've run across a fix by MS and am about to test it and thought I'd pass along the hotfix link to those that might want to try it as well. 

My temp workaround has been to bring up task manager and turn off the excess cores by right clicking on the explorer process and using set affinity and then clicking off the excess cores down to only 4 cores. You could do this specifically to other programs having issues but since FF crashes right out, I had to pick on explorer.exe 

The link to the support text about the issue. Please read this first before applying the hotfix. 
http://support.microsoft.com/kb/953028 

Hope this helps someone.  I'll comment back if the MS fix works and doesn't mess up anything else. 



KB Article Number(s): 953028
Language: English
Platform: i386
Location: (http://hotfixv4.microsoft.com/Windows%20XP/sp4/Fix233366/2600/free/348502_ENU_i386_zip.exe)
 
 
NOTE   Make sure that you include all the text between "(" and ")" when you visit this hotfix location.
Note that FF 10.0.12esr has known vulnerabilities. The latest ESR version is 17.0.5esr. See https://www.mozilla.org/security/known-vulnerabilities/firefoxESR.html
Thanks, well aware of vulnerabilities, but with all the firefox crashes( even with latest releases) and investigating this issue, needed a known very stable release that worked with Intel Cpu to compare with amd/intel multi core cpus. 

Not just a firefox issue, other programs are affected as well. 

    You have a computer that is running Windows Server 2003 or Windows XP.
    The computer has more than four cores or more than four logical processors installed.
    An application calls functions in the D3d9.dll library for DirectX 3D support.
Crash Signature: [@ CSMP_PVFUNCS::CreateWorkerThreads(int, unsigned long)] → [@ CSMP_PVFUNCS::CreateWorkerThreads(int, unsigned long)] [@ CSMP_PVFUNCS::CreateWorkerThreads]
This continues to be an issue for a handful of users with AMD Phenom II X6 processors on Windows XP. There have 20 crashes reported against Firefox 45 since it was released.
Summary: [WinXP] phenom II x6 crash after startup → Startup crash in CSMP_PVFUNCS::CreateWorkerThreads with AMD Phenom II X6
platform-rel: --- → ?
Whiteboard: [startupcrash] → [startupcrash][platform-rel-AMD]
platform-rel: ? → ---
Closing because no crashes reported for 12 weeks.
Status: REOPENED → RESOLVED
Closed: 13 years ago6 years ago
Resolution: --- → WONTFIX
Closing because no crashes reported for 12 weeks.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: