Skip to content
This repository has been archived by the owner on Oct 6, 2023. It is now read-only.

Crashing Apache after Windows 7 to 10 updgrade #80

Open
Rarst opened this issue Apr 27, 2019 · 13 comments
Open

Crashing Apache after Windows 7 to 10 updgrade #80

Rarst opened this issue Apr 27, 2019 · 13 comments

Comments

@Rarst
Copy link
Contributor

Rarst commented Apr 27, 2019

I've upgraded my desktop from Windows 7 to 10, without any changes to my portable Apache/MySQL/PHP web stack.

After the update having tideways_xhprof binary enabled started to crash Apache on general browsing of PHP pages (not trying to profile) with following message:

AH00428: Parent: child process 1700 exited with status 3221225477 -- Restarting.

Binary version php_tideways_xhprof-5.0.0-master-39806cc8-7.3-vc15-x86_64.dll

Any pointers how can I try tweak or troubleshoot this?

@beberlei
Copy link
Contributor

@Rarst is the crash related to Tideways? Does it go away when you remove the tideways DLL?

@Rarst
Copy link
Contributor Author

Rarst commented Apr 27, 2019

Yes, as far as I see it, if I comment out DLL and restart Apache the crash goes away (and the other way around).

@Rarst
Copy link
Contributor Author

Rarst commented Apr 27, 2019

I thought to look in Windows event log, and it explicitly attributes the crash to tideways DLL:

Имя журнала:   Application
Источник:      Windows Error Reporting
Дата:          27.04.2019 19:02:05
Код события:   1001
Категория задачи:Отсутствует
Уровень:       Сведения
Ключевые слова:Классический
Пользователь:  Н/Д
Компьютер:     RDesktop
Описание:
Контейнер ошибки 1992549849512067040, тип 4
Имя события: APPCRASH
Отклик: Нет данных
Идентификатор CAB: 0

Сигнатура проблемы:
P1: httpd.exe
P2: 2.4.35.0
P3: 5ba258a6
P4: php_tideways_xhprof-5.0.0-master-39806cc8-7.3-vc15-x86_64.dll
P5: 7.3.5.0
P6: 5ca9cd33
P7: c0000005
P8: 0000000000002096
P9: 
P10: 

Вложенные файлы:
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERD750.tmp.dmp
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERD7FD.tmp.WERInternalMetadata.xml
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERD80D.tmp.xml
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERD81F.tmp.csv
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERD83F.tmp.txt

Эти файлы можно найти здесь:
\\?\C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_httpd.exe_5318c1e8295b9b94c628952db8ee2f64d5d0cd_2847c5e2_0741dbd4

Символ анализа: 
Повторный поиск решения: 0
Идентификатор отчета: 2cf39dab-0ad5-4eed-bdeb-c9d913c9350e
Состояние отчета: 268435456
Хэшированный контейнер: 7598eb501958302ebba6f587f96cbfe0
Идентификатор GUID CAB: 0
Xml события:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Windows Error Reporting" />
    <EventID Qualifiers="0">1001</EventID>
    <Level>4</Level>
    <Task>0</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2019-04-27T16:02:05.422234400Z" />
    <EventRecordID>461</EventRecordID>
    <Channel>Application</Channel>
    <Computer>RDesktop</Computer>
    <Security />
  </System>
  <EventData>
    <Data>1992549849512067040</Data>
    <Data>4</Data>
    <Data>APPCRASH</Data>
    <Data>Нет данных</Data>
    <Data>0</Data>
    <Data>httpd.exe</Data>
    <Data>2.4.35.0</Data>
    <Data>5ba258a6</Data>
    <Data>php_tideways_xhprof-5.0.0-master-39806cc8-7.3-vc15-x86_64.dll</Data>
    <Data>7.3.5.0</Data>
    <Data>5ca9cd33</Data>
    <Data>c0000005</Data>
    <Data>0000000000002096</Data>
    <Data>
    </Data>
    <Data>
    </Data>
    <Data>
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERD750.tmp.dmp
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERD7FD.tmp.WERInternalMetadata.xml
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERD80D.tmp.xml
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERD81F.tmp.csv
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERD83F.tmp.txt</Data>
    <Data>\\?\C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_httpd.exe_5318c1e8295b9b94c628952db8ee2f64d5d0cd_2847c5e2_0741dbd4</Data>
    <Data>
    </Data>
    <Data>0</Data>
    <Data>2cf39dab-0ad5-4eed-bdeb-c9d913c9350e</Data>
    <Data>268435456</Data>
    <Data>7598eb501958302ebba6f587f96cbfe0</Data>
    <Data>0</Data>
  </EventData>
</Event>

Имя журнала:   Application
Источник:      Application Error
Дата:          27.04.2019 19:02:04
Код события:   1000
Категория задачи:(100)
Уровень:       Ошибка
Ключевые слова:Классический
Пользователь:  Н/Д
Компьютер:     RDesktop
Описание:
Имя сбойного приложения: httpd.exe, версия: 2.4.35.0, метка времени: 0x5ba258a6
Имя сбойного модуля: php_tideways_xhprof-5.0.0-master-39806cc8-7.3-vc15-x86_64.dll, версия: 7.3.5.0, метка времени: 0x5ca9cd33
Код исключения: 0xc0000005
Смещение ошибки: 0x0000000000002096
Идентификатор сбойного процесса: 0x3c80
Время запуска сбойного приложения: 0x01d4fd1286fa300e
Путь сбойного приложения: C:\server\camp\vendor\camp-stack\apache\Apache24\bin\httpd.exe
Путь сбойного модуля: C:\server\camp\resources\dll\php_tideways_xhprof-5.0.0-master-39806cc8-7.3-vc15-x86_64.dll
Идентификатор отчета: 2cf39dab-0ad5-4eed-bdeb-c9d913c9350e
Полное имя сбойного пакета: 
Код приложения, связанного со сбойным пакетом: 
Xml события:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Application Error" />
    <EventID Qualifiers="0">1000</EventID>
    <Level>2</Level>
    <Task>100</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2019-04-27T16:02:04.165241900Z" />
    <EventRecordID>460</EventRecordID>
    <Channel>Application</Channel>
    <Computer>RDesktop</Computer>
    <Security />
  </System>
  <EventData>
    <Data>httpd.exe</Data>
    <Data>2.4.35.0</Data>
    <Data>5ba258a6</Data>
    <Data>php_tideways_xhprof-5.0.0-master-39806cc8-7.3-vc15-x86_64.dll</Data>
    <Data>7.3.5.0</Data>
    <Data>5ca9cd33</Data>
    <Data>c0000005</Data>
    <Data>0000000000002096</Data>
    <Data>3c80</Data>
    <Data>01d4fd1286fa300e</Data>
    <Data>C:\server\camp\vendor\camp-stack\apache\Apache24\bin\httpd.exe</Data>
    <Data>C:\server\camp\resources\dll\php_tideways_xhprof-5.0.0-master-39806cc8-7.3-vc15-x86_64.dll</Data>
    <Data>2cf39dab-0ad5-4eed-bdeb-c9d913c9350e</Data>
    <Data>
    </Data>
    <Data>
    </Data>
  </EventData>
</Event>

@beberlei
Copy link
Contributor

Unfortunately I don't know at all how to debug a segfault on Windows :-( There needs to be some way to get a stacktrace, or at least the file and line where the crash occurred somehow.

@Rarst
Copy link
Contributor Author

Rarst commented Apr 27, 2019

There is a Report.wer attached to the event, not sure if it has anything helpful:

Version=1
EventType=APPCRASH
EventTime=132008545242491059
ReportType=2
Consent=1
UploadTime=132008545244902167
ReportStatus=268435456
ReportIdentifier=fe206e37-fcc0-49f8-8e8a-839ddb09330e
IntegratorReportIdentifier=2cf39dab-0ad5-4eed-bdeb-c9d913c9350e
Wow64Host=34404
NsAppName=httpd.exe
OriginalFilename=httpd.exe
AppSessionGuid=00003c80-0000-0006-0e30-fa8612fdd401
TargetAppId=W:0006d41f7cbedb096e3159e743f918ff1db000000904!0000188ec7d89d55d879a16fac22355f57ec9dbbd076!httpd.exe
TargetAppVer=2018//09//19:14:09:42!9799!httpd.exe
BootId=4294967295
ServiceSplit=3420043216
TargetAsId=4888
IsFatal=1
EtwNonCollectReason=1
Response.BucketId=7598eb501958302ebba6f587f96cbfe0
Response.BucketTable=4
Response.LegacyBucketId=1992549849512067040
Response.type=4
Sig[0].Name=Имя приложения
Sig[0].Value=httpd.exe
Sig[1].Name=Версия приложения
Sig[1].Value=2.4.35.0
Sig[2].Name=Отметка времени приложения
Sig[2].Value=5ba258a6
Sig[3].Name=Имя модуля с ошибкой
Sig[3].Value=php_tideways_xhprof-5.0.0-master-39806cc8-7.3-vc15-x86_64.dll
Sig[4].Name=Версия модуля с ошибкой
Sig[4].Value=7.3.5.0
Sig[5].Name=Отметка времени модуля с ошибкой
Sig[5].Value=5ca9cd33
Sig[6].Name=Код исключения
Sig[6].Value=c0000005
Sig[7].Name=Смещение исключения
Sig[7].Value=0000000000002096
DynamicSig[1].Name=Версия ОС
DynamicSig[1].Value=10.0.17763.2.0.0.768.101
DynamicSig[2].Name=Код языка
DynamicSig[2].Value=1049
DynamicSig[22].Name=Дополнительные сведения 1
DynamicSig[22].Value=29aa
DynamicSig[23].Name=Дополнительные сведения 2
DynamicSig[23].Value=29aab2adb31ed4c9e1f5406beb011584
DynamicSig[24].Name=Дополнительные сведения 3
DynamicSig[24].Value=524b
DynamicSig[25].Name=Дополнительные сведения 4
DynamicSig[25].Value=524b8f5f9d0acf95a6888ab43ff7b0b5
UI[2]=C:\server\camp\vendor\camp-stack\apache\Apache24\bin\httpd.exe
UI[5]=Поиск решения в Интернете (рекомендуется)
UI[6]=Отложить поиск решения (рекомендуется)
UI[7]=Закрыть
UI[8]=Apache HTTP Server: не работает, закрыто
UI[9]=Возникшая проблема привела к прекращению работы приложения. Windows уведомит вас, если будет найдено решение этой проблемы.
UI[10]=&Закрыть
LoadedModule[0]=C:\server\camp\vendor\camp-stack\apache\Apache24\bin\httpd.exe
LoadedModule[1]=C:\WINDOWS\SYSTEM32\ntdll.dll
LoadedModule[2]=C:\WINDOWS\System32\KERNEL32.DLL
LoadedModule[3]=C:\WINDOWS\System32\KERNELBASE.dll
LoadedModule[4]=C:\WINDOWS\System32\ucrtbase.dll
LoadedModule[5]=C:\server\camp\vendor\camp-stack\apache\Apache24\bin\libaprutil-1.dll
LoadedModule[6]=C:\server\camp\vendor\camp-stack\apache\Apache24\bin\libhttpd.dll
LoadedModule[7]=C:\WINDOWS\SYSTEM32\VCRUNTIME140.dll
LoadedModule[8]=C:\server\camp\vendor\camp-stack\apache\Apache24\bin\libapr-1.dll
LoadedModule[9]=C:\WINDOWS\System32\WS2_32.dll
LoadedModule[10]=C:\WINDOWS\System32\RPCRT4.dll
LoadedModule[11]=C:\WINDOWS\System32\ADVAPI32.dll
LoadedModule[12]=C:\server\camp\vendor\camp-stack\apache\Apache24\bin\libapriconv-1.dll
LoadedModule[13]=C:\WINDOWS\System32\msvcrt.dll
LoadedModule[14]=C:\WINDOWS\System32\SHELL32.dll
LoadedModule[15]=C:\WINDOWS\System32\sechost.dll
LoadedModule[16]=C:\WINDOWS\System32\cfgmgr32.dll
LoadedModule[17]=C:\WINDOWS\System32\shcore.dll
LoadedModule[18]=C:\server\camp\vendor\camp-stack\apache\Apache24\bin\pcre.dll
LoadedModule[19]=C:\WINDOWS\System32\combase.dll
LoadedModule[20]=C:\WINDOWS\System32\bcryptPrimitives.dll
LoadedModule[21]=C:\WINDOWS\SYSTEM32\MSWSOCK.dll
LoadedModule[22]=C:\WINDOWS\System32\windows.storage.dll
LoadedModule[23]=C:\WINDOWS\System32\msvcp_win.dll
LoadedModule[24]=C:\WINDOWS\System32\profapi.dll
LoadedModule[25]=C:\WINDOWS\System32\powrprof.dll
LoadedModule[26]=C:\WINDOWS\System32\shlwapi.dll
LoadedModule[27]=C:\WINDOWS\System32\GDI32.dll
LoadedModule[28]=C:\WINDOWS\System32\gdi32full.dll
LoadedModule[29]=C:\WINDOWS\System32\USER32.dll
LoadedModule[30]=C:\WINDOWS\System32\win32u.dll
LoadedModule[31]=C:\WINDOWS\System32\kernel.appcore.dll
LoadedModule[32]=C:\WINDOWS\System32\cryptsp.dll
LoadedModule[33]=C:\Windows\system32\guard64.dll
LoadedModule[34]=C:\WINDOWS\system32\version.dll
LoadedModule[35]=C:\WINDOWS\System32\ole32.dll
LoadedModule[36]=C:\WINDOWS\system32\fltlib.dll
LoadedModule[37]=C:\WINDOWS\system32\rsaenh.dll
LoadedModule[38]=C:\WINDOWS\System32\bcrypt.dll
LoadedModule[39]=C:\WINDOWS\SYSTEM32\CRYPTBASE.dll
LoadedModule[40]=C:\server\camp\vendor\camp-stack\apache\Apache24\modules\mod_access_compat.so
LoadedModule[41]=C:\server\camp\vendor\camp-stack\apache\Apache24\modules\mod_actions.so
LoadedModule[42]=C:\server\camp\vendor\camp-stack\apache\Apache24\modules\mod_alias.so
LoadedModule[43]=C:\server\camp\vendor\camp-stack\apache\Apache24\modules\mod_allowmethods.so
LoadedModule[44]=C:\server\camp\vendor\camp-stack\apache\Apache24\modules\mod_asis.so
LoadedModule[45]=C:\server\camp\vendor\camp-stack\apache\Apache24\modules\mod_auth_basic.so
LoadedModule[46]=C:\server\camp\vendor\camp-stack\apache\Apache24\modules\mod_authn_core.so
LoadedModule[47]=C:\server\camp\vendor\camp-stack\apache\Apache24\modules\mod_authn_file.so
LoadedModule[48]=C:\server\camp\vendor\camp-stack\apache\Apache24\modules\mod_authz_core.so
LoadedModule[49]=C:\server\camp\vendor\camp-stack\apache\Apache24\modules\mod_authz_groupfile.so
LoadedModule[50]=C:\server\camp\vendor\camp-stack\apache\Apache24\modules\mod_authz_host.so
LoadedModule[51]=C:\server\camp\vendor\camp-stack\apache\Apache24\modules\mod_authz_user.so
LoadedModule[52]=C:\server\camp\vendor\camp-stack\apache\Apache24\modules\mod_autoindex.so
LoadedModule[53]=C:\server\camp\vendor\camp-stack\apache\Apache24\modules\mod_cgi.so
LoadedModule[54]=C:\server\camp\vendor\camp-stack\apache\Apache24\modules\mod_dir.so
LoadedModule[55]=C:\server\camp\vendor\camp-stack\apache\Apache24\modules\mod_env.so
LoadedModule[56]=C:\server\camp\vendor\camp-stack\apache\Apache24\modules\mod_include.so
LoadedModule[57]=C:\server\camp\vendor\camp-stack\apache\Apache24\modules\mod_isapi.so
LoadedModule[58]=C:\server\camp\vendor\camp-stack\apache\Apache24\modules\mod_log_config.so
LoadedModule[59]=C:\server\camp\vendor\camp-stack\apache\Apache24\modules\mod_mime.so
LoadedModule[60]=C:\server\camp\vendor\camp-stack\apache\Apache24\modules\mod_negotiation.so
LoadedModule[61]=C:\server\camp\vendor\camp-stack\apache\Apache24\modules\mod_rewrite.so
LoadedModule[62]=C:\server\camp\vendor\camp-stack\apache\Apache24\modules\mod_setenvif.so
LoadedModule[63]=C:\server\camp\bin\php\php7apache2_4.dll
LoadedModule[64]=C:\server\camp\bin\php\php7ts.dll
LoadedModule[65]=C:\WINDOWS\SYSTEM32\IPHLPAPI.DLL
LoadedModule[66]=C:\WINDOWS\SYSTEM32\DNSAPI.dll
LoadedModule[67]=C:\WINDOWS\System32\NSI.dll
LoadedModule[68]=C:\server\camp\bin\php\ext\php_opcache.dll
LoadedModule[69]=C:\server\camp\bin\php\ext\php_curl.dll
LoadedModule[70]=C:\WINDOWS\System32\WLDAP32.dll
LoadedModule[71]=C:\WINDOWS\System32\Normaliz.dll
LoadedModule[72]=C:\server\camp\vendor\camp-stack\apache\Apache24\bin\libcrypto-1_1-x64.dll
LoadedModule[73]=C:\server\camp\vendor\camp-stack\apache\Apache24\bin\libssl-1_1-x64.dll
LoadedModule[74]=C:\server\camp\vendor\camp-stack\apache\Apache24\bin\libssh2.dll
LoadedModule[75]=C:\server\camp\vendor\camp-stack\apache\Apache24\bin\nghttp2.dll
LoadedModule[76]=C:\server\camp\bin\php\ext\php_mbstring.dll
LoadedModule[77]=C:\server\camp\bin\php\ext\php_mysqli.dll
LoadedModule[78]=C:\server\camp\bin\php\ext\php_openssl.dll
LoadedModule[79]=C:\WINDOWS\System32\CRYPT32.dll
LoadedModule[80]=C:\WINDOWS\System32\MSASN1.dll
LoadedModule[81]=C:\server\camp\bin\php\ext\php_pdo_mysql.dll
LoadedModule[82]=C:\server\camp\bin\php\ext\php_pdo_sqlite.dll
LoadedModule[83]=C:\server\camp\vendor\camp-stack\apcu\php_apcu.dll
LoadedModule[84]=C:\server\camp\resources\dll\php_tideways_xhprof-5.0.0-master-39806cc8-7.3-vc15-x86_64.dll
LoadedModule[85]=C:\WINDOWS\SYSTEM32\secur32.dll
LoadedModule[86]=C:\WINDOWS\SYSTEM32\SSPICLI.DLL
LoadedModule[87]=C:\Windows\System32\rasadhlp.dll
LoadedModule[88]=C:\WINDOWS\System32\fwpuclnt.dll
State[0].Key=Transport.DoneStage1
State[0].Value=1
OsInfo[0].Key=vermaj
OsInfo[0].Value=10
OsInfo[1].Key=vermin
OsInfo[1].Value=0
OsInfo[2].Key=verbld
OsInfo[2].Value=17763
OsInfo[3].Key=ubr
OsInfo[3].Value=437
OsInfo[4].Key=versp
OsInfo[4].Value=0
OsInfo[5].Key=arch
OsInfo[5].Value=9
OsInfo[6].Key=lcid
OsInfo[6].Value=1058
OsInfo[7].Key=geoid
OsInfo[7].Value=241
OsInfo[8].Key=sku
OsInfo[8].Value=101
OsInfo[9].Key=domain
OsInfo[9].Value=0
OsInfo[10].Key=prodsuite
OsInfo[10].Value=768
OsInfo[11].Key=ntprodtype
OsInfo[11].Value=1
OsInfo[12].Key=platid
OsInfo[12].Value=10
OsInfo[13].Key=sr
OsInfo[13].Value=0
OsInfo[14].Key=tmsi
OsInfo[14].Value=216
OsInfo[15].Key=osinsty
OsInfo[15].Value=3
OsInfo[16].Key=iever
OsInfo[16].Value=11.437.17763.0-11.0.120
OsInfo[17].Key=portos
OsInfo[17].Value=0
OsInfo[18].Key=ram
OsInfo[18].Value=15840
OsInfo[19].Key=svolsz
OsInfo[19].Value=110
OsInfo[20].Key=wimbt
OsInfo[20].Value=0
OsInfo[21].Key=blddt
OsInfo[21].Value=180914
OsInfo[22].Key=bldtm
OsInfo[22].Value=1434
OsInfo[23].Key=bldbrch
OsInfo[23].Value=rs5_release
OsInfo[24].Key=bldchk
OsInfo[24].Value=0
OsInfo[25].Key=wpvermaj
OsInfo[25].Value=0
OsInfo[26].Key=wpvermin
OsInfo[26].Value=0
OsInfo[27].Key=wpbuildmaj
OsInfo[27].Value=0
OsInfo[28].Key=wpbuildmin
OsInfo[28].Value=0
OsInfo[29].Key=osver
OsInfo[29].Value=10.0.17763.437.amd64fre.rs5_release.180914-1434
OsInfo[30].Key=buildflightid
OsInfo[30].Value=86b9494f-7d1f-4bca-9c14-d8fcce7f6cca
OsInfo[31].Key=edition
OsInfo[31].Value=Core
OsInfo[32].Key=ring
OsInfo[32].Value=Retail
OsInfo[33].Key=expid
OsInfo[34].Key=containerid
OsInfo[35].Key=containertype
OsInfo[36].Key=edu
OsInfo[36].Value=0
FriendlyEventName=Остановка работы
ConsentKey=APPCRASH
AppName=Apache HTTP Server
AppPath=C:\server\camp\vendor\camp-stack\apache\Apache24\bin\httpd.exe
NsPartner=windows
NsGroup=windows8
ApplicationIdentity=4DF2765F2171ADE63E1F266EB059BAFF
MetadataHash=74178491

@beberlei
Copy link
Contributor

I asked around how to proceed and if you don't want to install Visual Studio then running with https://docs.microsoft.com/en-us/sysinternals/downloads/procdump could be an option to find out the stack trace. The DLLs are not build with debug symbols, which could complicate the stack trace details, but please check if you can find something out this way.

@Rarst
Copy link
Contributor Author

Rarst commented Apr 28, 2019

Ok, I installed procdump as postmortem debugger, reproduced the crash, got .dmp file, and fed it into WinDbg, and ran commands it suggested.

Here is the result;


Microsoft (R) Windows Debugger Version 10.0.18362.1 X86
Copyright (c) Microsoft Corporation. All rights reserved.


Loading Dump File [C:\Dumps\httpd.exe_190428_191609.dmp]
User Mini Dump File with Full Memory: Only application data is available

Comment: '
*** "c:\Software\procdump64.exe" -accepteula -ma -j "C:\Dumps" 7160 456 000002CDE8FD0000
*** Just-In-Time debugger. PID: 7160 Event Handle: 456 JIT Context: .jdinfo 0x2cde8fd0000'
Symbol search path is: srv*
Executable search path is: 
Windows 10 Version 17763 MP (8 procs) Free x64
Product: WinNt, suite: SingleUserTS Personal
17763.1.amd64fre.rs5_release.180914-1434
Machine Name:
Debug session time: Sun Apr 28 19:16:09.000 2019 (UTC + 3:00)
System Uptime: 0 days 9:34:25.358
Process Uptime: 0 days 0:01:13.000
................................................................
.........................
Loading unloaded module list
............................
This dump file has an exception of interest stored in it.
The stored exception information can be accessed via .ecxr.
(1bf8.2bf8): Access violation - code c0000005 (first/second chance not available)
For analysis of this file, run !analyze -v
ntdll!NtWaitForMultipleObjects+0x14:
00007fff`821001e4 c3              ret
0:064> .ecxr
rax=000002cde6944540 rbx=0000000000004248 rcx=0016c39300000004
rdx=000002cde8b2e060 rsi=0000000000000008 rdi=000002cde699a528
rip=00007fff5fb52096 rsp=000000f966efebd0 rbp=000000f966efee50
 r8=0000000000000150  r9=000002cde5771ec0 r10=000002cde5770cc0
r11=000002cde69de4e0 r12=0000000000000000 r13=0000000000000000
r14=000002cde699a7f8 r15=0000000000000008
iopl=0         nv up ei pl nz na pe nc
cs=0033  ss=002b  ds=002b  es=002b  fs=0053  gs=002b             efl=00010202
php_tideways_xhprof_5_0_0_master_39806cc8_7_3_vc15_x86_64!tideways_xhprof_execute_ex+0x996:
00007fff`5fb52096 488b4138        mov     rax,qword ptr [rcx+38h] ds:0016c393`0000003c=????????????????
0:064> !analyze -v
*******************************************************************************
*                                                                             *
*                        Exception Analysis                                   *
*                                                                             *
*******************************************************************************

*** WARNING: Unable to verify checksum for libhttpd.dll

KEY_VALUES_STRING: 1

    Key  : AV.Fault
    Value: Read

    Key  : Timeline.OS.Boot.DeltaSec
    Value: 34465

    Key  : Timeline.Process.Start.DeltaSec
    Value: 73


PROCESSES_ANALYSIS: 1

SERVICE_ANALYSIS: 1

STACKHASH_ANALYSIS: 1

TIMELINE_ANALYSIS: 1

Timeline: !analyze.Start
    Name: <blank>
    Time: 2019-04-28T16:35:08.792Z
    Diff: 1139792 mSec

Timeline: Dump.Current
    Name: <blank>
    Time: 2019-04-28T16:16:09.0Z
    Diff: 0 mSec

Timeline: Process.Start
    Name: <blank>
    Time: 2019-04-28T16:14:56.0Z
    Diff: 73000 mSec

Timeline: OS.Boot
    Name: <blank>
    Time: 2019-04-28T06:41:44.0Z
    Diff: 34465000 mSec


DUMP_CLASS: 2

DUMP_QUALIFIER: 400

CONTEXT:  (.ecxr)
rax=000002cde6944540 rbx=0000000000004248 rcx=0016c39300000004
rdx=000002cde8b2e060 rsi=0000000000000008 rdi=000002cde699a528
rip=00007fff5fb52096 rsp=000000f966efebd0 rbp=000000f966efee50
 r8=0000000000000150  r9=000002cde5771ec0 r10=000002cde5770cc0
r11=000002cde69de4e0 r12=0000000000000000 r13=0000000000000000
r14=000002cde699a7f8 r15=0000000000000008
iopl=0         nv up ei pl nz na pe nc
cs=0033  ss=002b  ds=002b  es=002b  fs=0053  gs=002b             efl=00010202
php_tideways_xhprof_5_0_0_master_39806cc8_7_3_vc15_x86_64!tideways_xhprof_execute_ex+0x996:
00007fff`5fb52096 488b4138        mov     rax,qword ptr [rcx+38h] ds:0016c393`0000003c=????????????????
Resetting default scope

FAULTING_IP: 
php_tideways_xhprof_5_0_0_master_39806cc8_7_3_vc15_x86_64!tideways_xhprof_execute_ex+996
00007fff`5fb52096 488b4138        mov     rax,qword ptr [rcx+38h]

EXCEPTION_RECORD:  (.exr -1)
ExceptionAddress: 00007fff5fb52096 (php_tideways_xhprof_5_0_0_master_39806cc8_7_3_vc15_x86_64!tideways_xhprof_execute_ex+0x0000000000000996)
   ExceptionCode: c0000005 (Access violation)
  ExceptionFlags: 00000000
NumberParameters: 2
   Parameter[0]: 0000000000000000
   Parameter[1]: ffffffffffffffff
Attempt to read from address ffffffffffffffff

DEFAULT_BUCKET_ID:  INVALID_POINTER_READ

PROCESS_NAME:  httpd.exe

FOLLOWUP_IP: 
php_tideways_xhprof_5_0_0_master_39806cc8_7_3_vc15_x86_64!tideways_xhprof_execute_ex+996
00007fff`5fb52096 488b4138        mov     rax,qword ptr [rcx+38h]

READ_ADDRESS:  ffffffffffffffff 

ERROR_CODE: (NTSTATUS) 0xc0000005 - <Unable to get error code text>

EXCEPTION_CODE: (NTSTATUS) 0xc0000005 - <Unable to get error code text>

EXCEPTION_CODE_STR:  c0000005

EXCEPTION_PARAMETER1:  0000000000000000

EXCEPTION_PARAMETER2:  ffffffffffffffff

WATSON_BKT_PROCSTAMP:  5ba258a6

WATSON_BKT_PROCVER:  2.4.35.0

PROCESS_VER_PRODUCT:  Apache HTTP Server

WATSON_BKT_MODULE:  php_tideways_xhprof-5.0.0-master-39806cc8-7.3-vc15-x86_64.dll

WATSON_BKT_MODSTAMP:  5ca9cd33

WATSON_BKT_MODOFFSET:  2096

WATSON_BKT_MODVER:  7.3.5.0

MODULE_VER_PRODUCT:  PHP

BUILD_VERSION_STRING:  17763.1.amd64fre.rs5_release.180914-1434

MODLIST_WITH_TSCHKSUM_HASH:  85361df88a278e4e802f3d5402f3c701d3e8cb65

MODLIST_SHA1_HASH:  8e91d21adb128047a798194a1c37a82995f53960

COMMENT:  
*** "c:\Software\procdump64.exe" -accepteula -ma -j "C:\Dumps" 7160 456 000002CDE8FD0000
*** Just-In-Time debugger. PID: 7160 Event Handle: 456 JIT Context: .jdinfo 0x2cde8fd0000

NTGLOBALFLAG:  0

APPLICATION_VERIFIER_FLAGS:  0

PRODUCT_TYPE:  1

SUITE_MASK:  784

DUMP_FLAGS:  8000c07

DUMP_TYPE:  3

ANALYSIS_SESSION_HOST:  RDESKTOP

ANALYSIS_SESSION_TIME:  04-28-2019 19:35:08.0792

ANALYSIS_VERSION: 10.0.18362.1 x86fre

THREAD_ATTRIBUTES: 
OS_LOCALE:  UKR

BUGCHECK_STR:  APPLICATION_FAULT_INVALID_POINTER_READ

PRIMARY_PROBLEM_CLASS:  APPLICATION_FAULT

PROBLEM_CLASSES: 

    ID:     [0n313]
    Type:   [@ACCESS_VIOLATION]
    Class:  Addendum
    Scope:  BUCKET_ID
    Name:   Omit
    Data:   Omit
    PID:    [Unspecified]
    TID:    [0x2bf8]
    Frame:  [0] : php_tideways_xhprof_5_0_0_master_39806cc8_7_3_vc15_x86_64!tideways_xhprof_execute_ex

    ID:     [0n285]
    Type:   [INVALID_POINTER_READ]
    Class:  Primary
    Scope:  DEFAULT_BUCKET_ID (Failure Bucket ID prefix)
            BUCKET_ID
    Name:   Add
    Data:   Omit
    PID:    [Unspecified]
    TID:    [0x2bf8]
    Frame:  [0] : php_tideways_xhprof_5_0_0_master_39806cc8_7_3_vc15_x86_64!tideways_xhprof_execute_ex

LAST_CONTROL_TRANSFER:  from 00007fff6066133c to 00007fff5fb52096

STACK_TEXT:  
000000f9`66efebd0 00007fff`6066133c : 000002cd`e589d260 00007fff`8207267d 00000000`00030000 000002cd`e58ba420 : php_tideways_xhprof_5_0_0_master_39806cc8_7_3_vc15_x86_64!tideways_xhprof_execute_ex+0x996
000000f9`66efec00 00007fff`60661c43 : 000002cd`e8b2e401 00000000`00000001 00000000`00000001 000002cd`e8a8deb0 : php7ts!zend_deactivate_modules+0xdc
000000f9`66efed50 00007fff`60fc3e80 : 000002cd`e8aefa60 00000000`00000025 000002cd`e8aefa60 00000000`00000020 : php7ts!php_request_shutdown+0x2f3
000000f9`66eff900 00007fff`6fdcedc5 : 00000000`00000004 00000000`00000007 000002cd`e8aefa60 00000000`00000003 : php7apache2_4+0x3e80
000000f9`66effca0 00007fff`6fdcdb2f : 00000000`00000000 000002cd`e8aefa60 000021c7`fdb772e9 000002cd`e583b488 : libhttpd!ap_run_handler+0x35
000000f9`66effcd0 00007fff`6fdca6ca : 000002cd`e8aefa60 00000000`00000000 00000000`00000000 000002cd`e8aefa60 : libhttpd!ap_invoke_handler+0x10f
000000f9`66effd30 00007fff`6fdca74f : 000002cd`e58792c0 00000000`03938700 00000000`00000000 00000000`00000000 : libhttpd!ap_internal_redirect_handler+0x29a
000000f9`66effdb0 00007fff`6fdc3c01 : 000002cd`e8aef9e8 00000000`03938700 00000000`00000000 000002cd`e58792c0 : libhttpd!ap_process_request+0xf
000000f9`66effe00 00007fff`6fdd1a55 : 00007fff`6fe10808 000002cd`00000000 00000000`00000000 00000000`00000000 : libhttpd!ap_byterange_filter+0x1581
000000f9`66effe40 00007fff`6fdd1845 : 000002cd`e58790b0 000002cd`e58792c0 00000000`00000000 00000000`00000000 : libhttpd!ap_run_process_connection+0x35
000000f9`66effe70 00007fff`6fde1bd0 : 000002cd`e58527b0 00000000`0000003f 00000000`00000000 00000000`00000000 : libhttpd!ap_process_connection+0x45
000000f9`66effea0 00007fff`7e907974 : 00000000`00000000 00000000`00000000 000002cd`e5879630 00000000`00000001 : libhttpd!ap_run_generate_log_id+0x3da0
000000f9`66efff30 00007fff`820ca271 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : kernel32!BaseThreadInitThunk+0x14
000000f9`66efff60 00000000`00000000 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : ntdll!RtlUserThreadStart+0x21


THREAD_SHA1_HASH_MOD_FUNC:  6f6f5100515582c01e877f3800cbf277562b1ebe

THREAD_SHA1_HASH_MOD_FUNC_OFFSET:  b43e2bcd5cc390f3a032932a8a162366de92df0f

THREAD_SHA1_HASH_MOD:  51642379944ca8fd38122937bf5f476250805c01

FAULT_INSTR_CODE:  38418b48

SYMBOL_STACK_INDEX:  0

SYMBOL_NAME:  php_tideways_xhprof_5_0_0_master_39806cc8_7_3_vc15_x86_64!tideways_xhprof_execute_ex+996

FOLLOWUP_NAME:  MachineOwner

MODULE_NAME: php_tideways_xhprof_5_0_0_master_39806cc8_7_3_vc15_x86_64

IMAGE_NAME:  php_tideways_xhprof-5.0.0-master-39806cc8-7.3-vc15-x86_64.dll

DEBUG_FLR_IMAGE_TIMESTAMP:  5ca9cd33

STACK_COMMAND:  ~64s ; .ecxr ; kb

FAILURE_BUCKET_ID:  INVALID_POINTER_READ_c0000005_php_tideways_xhprof-5.0.0-master-39806cc8-7.3-vc15-x86_64.dll!tideways_xhprof_execute_ex

BUCKET_ID:  APPLICATION_FAULT_INVALID_POINTER_READ_php_tideways_xhprof_5_0_0_master_39806cc8_7_3_vc15_x86_64!tideways_xhprof_execute_ex+996

FAILURE_EXCEPTION_CODE:  c0000005

FAILURE_IMAGE_NAME:  php_tideways_xhprof-5.0.0-master-39806cc8-7.3-vc15-x86_64.dll

BUCKET_ID_IMAGE_STR:  php_tideways_xhprof-5.0.0-master-39806cc8-7.3-vc15-x86_64.dll

FAILURE_MODULE_NAME:  php_tideways_xhprof_5_0_0_master_39806cc8_7_3_vc15_x86_64

BUCKET_ID_MODULE_STR:  php_tideways_xhprof_5_0_0_master_39806cc8_7_3_vc15_x86_64

FAILURE_FUNCTION_NAME:  tideways_xhprof_execute_ex

BUCKET_ID_FUNCTION_STR:  tideways_xhprof_execute_ex

BUCKET_ID_OFFSET:  996

BUCKET_ID_MODTIMEDATESTAMP:  5ca9cd33

BUCKET_ID_MODCHECKSUM:  8f9d

BUCKET_ID_MODVER_STR:  7.3.5.0

BUCKET_ID_PREFIX_STR:  APPLICATION_FAULT_INVALID_POINTER_READ_

FAILURE_PROBLEM_CLASS:  APPLICATION_FAULT

FAILURE_SYMBOL_NAME:  php_tideways_xhprof-5.0.0-master-39806cc8-7.3-vc15-x86_64.dll!tideways_xhprof_execute_ex

WATSON_STAGEONE_URL:  http://watson.microsoft.com/StageOne/httpd.exe/2.4.35.0/5ba258a6/php_tideways_xhprof-5.0.0-master-39806cc8-7.3-vc15-x86_64.dll/7.3.5.0/5ca9cd33/c0000005/00002096.htm?Retriage=1

TARGET_TIME:  2019-04-28T16:16:09.000Z

OSBUILD:  17763

OSSERVICEPACK:  437

SERVICEPACK_NUMBER: 0

OS_REVISION: 0

OSPLATFORM_TYPE:  x64

OSNAME:  Windows 10

OSEDITION:  Windows 10 WinNt SingleUserTS Personal

USER_LCID:  0

OSBUILD_TIMESTAMP:  unknown_date

BUILDDATESTAMP_STR:  180914-1434

BUILDLAB_STR:  rs5_release

BUILDOSVER_STR:  10.0.17763.1.amd64fre.rs5_release.180914-1434

ANALYSIS_SESSION_ELAPSED_TIME:  7916

ANALYSIS_SOURCE:  UM

FAILURE_ID_HASH_STRING:  um:invalid_pointer_read_c0000005_php_tideways_xhprof-5.0.0-master-39806cc8-7.3-vc15-x86_64.dll!tideways_xhprof_execute_ex

FAILURE_ID_HASH:  {49cfce75-91ac-6c5f-2a4f-6a98ba354bb6}

Followup:     MachineOwner
---------

Is this helpful?.. Let me know if you want me to send full dmp file your way.

@beberlei
Copy link
Contributor

@Rarst YES, it has the stacktrace :-) Thank you very much, I will look if that helps me fix the problem.

@beberlei
Copy link
Contributor

@Rarst I know this is a long time ago, did you call tideways_xhprof_disable() in a register_shutdown_function handler? From the stacktrace it looks like this could be the place were the crash happens, but I can't be sure.

@Rarst
Copy link
Contributor Author

Rarst commented Sep 12, 2019

Yeah, think I am hooking that to WordPress shutdown handler in my profiling wiring.

@Rarst
Copy link
Contributor Author

Rarst commented Dec 6, 2019

Seems to work again, after round of updates to Apache 2.4.41 / PHP 7.4 / Tideways 5.0.2 / whatever else had changed since.

@Rarst Rarst closed this as completed Dec 6, 2019
@Rarst
Copy link
Contributor Author

Rarst commented Dec 13, 2019

Aaaand the problem is back. :(

@Rarst Rarst reopened this Dec 13, 2019
@Rarst
Copy link
Contributor Author

Rarst commented Jul 10, 2020

Hey, is it possible to get any clarity if this would ever be resolved?

It's not critical to me, but I have a related profile viewer project I tinker on sporadically. This is effectively the last xhprof-type PHP profiler on Windows and if it's not going to work I would just drop the viewer thing for good.

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

No branches or pull requests

3 participants
@beberlei @Rarst and others