Quantcast
Channel: Active questions tagged crash - Stack Overflow
Viewing all 7195 articles
Browse latest View live

Postgresql startup error : "Could not flush dirty data: Input/output error"

$
0
0

I am using Postgresql server v11.4 on RHEL 7. This is my load test environment and I have reach database size to 1TB.

Last night the server went down with errors “No Space left on Device” though there is about 2GB space available on FS about 1TB.

2020-03-03 17:11:37.202 IST pocdb schema1 109 2020-02-27 15:21:11 IST pid:27464 xid:0 ip:10.236.113.37 ERROR:  could not access status of transaction 0
2020-03-03 17:11:37.202 IST pocdb schema1 110 2020-02-27 15:21:11 IST pid:27464 xid:0 ip:10.236.113.37 DETAIL:  Could not write to file "pg_commit_ts/5198" at offset 90112: No space left on device.
2020-03-03 17:11:37.202 IST pocdb schema1 111 2020-02-27 15:21:11 IST pid:27464 xid:0 ip:10.236.113.37 STATEMENT:  UPDATE TEST SET STATUS = $1, LAST_UPDATE_DATE = CURRENT_TIMESTAMP WHERE ID = $2 AND STATUS = $4
2020-03-03 17:11:37.203 IST pocdb schema1 197 2020-02-27 15:23:51 IST pid:30398 xid:0 ip:10.236.113.36 **ERROR:  could not access status of transaction 0**
2020-03-03 17:11:37.203 IST pocdb schema1 198 2020-02-27 15:23:51 IST pi2020-03-03 17:14:29.937 IST   13 2020-02-27 15:15:14 IST pid:17705 xid:0 ip: **LOG:  database system is shut down**

I have tried to restart the postgres services many times but it is now failing with below message

2020-03-04 12:31:19.469 IST   1 2020-03-04 12:31:19 IST pid:21703 xid:0 ip: LOG:  database system shutdown was interrupted; last known up at 2020-03-04 11:49:08 IST
2020-03-04 12:31:19.704 IST   2 2020-03-04 12:31:19 IST pid:21703 xid:0 ip: LOG:  database system was not properly shut down; automatic recovery in progress
2020-03-04 12:31:19.706 IST   3 2020-03-04 12:31:19 IST pid:21703 xid:0 ip: LOG:  redo starts at 136E/9E042C78
2020-03-04 12:32:07.312 IST   4 2020-03-04 12:31:19 IST pid:21703 xid:0 ip: LOG:  invalid record length at 1371/6CF69FD8: wanted 24, got 0
2020-03-04 12:32:07.312 IST   5 2020-03-04 12:31:19 IST pid:21703 xid:0 ip: LOG:  redo done at 1371/6CF69F88
2020-03-04 12:32:07.312 IST   6 2020-03-04 12:31:19 IST pid:21703 xid:0 ip: LOG:  last completed transaction was at log time 2020-03-03 17:13:36.683476+02
2020-03-04 12:32:07.319 IST   7 2020-03-04 12:31:19 IST pid:21703 xid:0 ip: LOG:  checkpoint starting: end-of-recovery immediate
2020-03-04 12:32:07.964 IST   8 2020-03-04 12:31:19 IST pid:21703 xid:0 ip: **PANIC:  could not flush dirty data: Input/output error**
2020-03-04 12:33:14.712 IST   7 2020-03-04 12:31:18 IST pid:21697 xid:0 ip: **LOG:  startup process (PID 21703) was terminated by signal 6: Aborted**
2020-03-04 12:33:14.712 IST   8 2020-03-04 12:31:18 IST pid:21697 xid:0 ip: LOG:  **aborting startup due to startup process failure**
2020-03-04 12:33:16.358 IST   9 2020-03-04 12:31:18 IST pid:21697 xid:0 ip: LOG:  **database system is shut down**

Can you please suggest way to startup the postgres server.


excel crashes between end with and for loop?

$
0
0

Whenever I try to add a row it randomly crashes. yes, randomly. sometimes it crashes at end withand sometimes it crashes at for rij = 4 to lastRow.

if I use the debugger in vba with a fast rate of going through the lines it crashes faster. and if i take pauses (30 seconds) between debugging a line it doesn't crash.

how can I fix this issue?

Edit: I have the exact same code in a different module and it does work there.

lastrow has the value 5 when I debug it, so the problem isn't that Rij > lastRow

code:

    Option Explicit
Dim lastRow As Long
Dim IngevuldeCellen As Integer
Dim Ingevuld As Integer
Dim Rij As Integer
Dim tbl As Object
Dim AantalRijen As Integer
Dim laatsteRij As Long
Private Sub WorkSheet_Change(ByVal Target As Range)
     'Als laatste rij 6 ingevulde velden heeft doe dit
    lastRow = Cells(Cells.Rows.Count, "B").End(xlUp).Row
    IngevuldeCellen = WorksheetFunction.CountA(Range("B"& lastRow & ":G"& lastRow))
    If IngevuldeCellen >= 4 Then
        Call Module3.AddRowToBottom
        Range("F1:F"& lastRow).Interior.Color = RGB(59, 148, 0)
        Range("A1:A"& lastRow).Interior.Color = RGB(59, 148, 0)

    ElseIf IngevuldeCellen < 4 Then
    Range("A"& lastRow).Interior.Color = RGB(255, 0, 0)
    Range("F"& lastRow).Interior.Color = RGB(255, 0, 0)
    End If


    Ingevuld = WorksheetFunction.CountA(Range("H6:O18"))
    If Ingevuld >= 10 Then
        With Sheets("Ruimtelijst")
            lastRow = .Cells(Cells.Rows.Count, "G").End(xlUp).Row
        End With
        For Rij = 4 To lastRow
            If Not Intersect(Target, Blad3.ListObjects("tbl_"& Rij - 3).Range) Is Nothing Then
                'Zoek de laatste rij van de tabel op
                Set tbl = Blad3.ListObjects("tbl_"& Rij - 3)
                AantalRijen = tbl.Range.Rows.Count
                laatsteRij = tbl.Range.Cells(AantalRijen, "E").Row
                'Roept module
                Call Module3.AddRow(laatsteRij)
            End If
        Next Rij
    End If
End Sub

pure virtual method called only in GDB

$
0
0

I am using google protocol buffer code in my program that works fine when I run my program normally, but crashes if I run it under gdb. Basically I receive the google proto class instance in a function via its input arguments as pointer and type cast it to the protocol buffer class and then call the parseFromString function which works normally. But if it run it under gdb I am getting Pure virtual method called error.

Appreciate anyone with some suggestions as to why this occurs.

Thanks in advance.

what is the best way to find out the reason that Application crashed on startup?

$
0
0

i am now having the problem: when I start debuging, the app crashes directly and the debug process stops. I can not see any log or error message. I don't know what can I do in this situation?

I tried to add -v -v -v -v to adtional mtouch argument. but did not see anything print out while the app just stoped the debuging.

Is there a way to solve such problem?

best regards Lin

Sporadic appearance of "RSIVBA module has stop working" message

$
0
0

I'm developing a new HMI project using Factory Talk View Studio 7.00.00 (CPR 9 SR 6) and VBA 6.5. Sometimes on client startup VBA crash and the following message appears:

enter image description here

Debug analysis

Here below I try to describe as detailed as possible the debug analysis that I've done. If you want you can skip directly to "Final considerations" chapter.

I've opened the Event View on my dev computer and i retrieved the following information about the problem, contained in two different logs:

Log 1

Log Name:      Application
Source:        Application Error
Date:          4/12/2019 11:36:47 AM
Event ID:      1000
Task Category: (100)
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      C001234
Description:
Faulting application name: SEGfxVBACli.exe, version: 7.0.13.0, time stamp: 0x50e6de15
Faulting module name: VBE6.DLL, version: 6.5.10.32, time stamp: 0x471d25c7
Exception code: 0xc0000005
Fault offset: 0x00048ba2
Faulting process id: 0x24cc
Faulting application start time: 0x01d4f11339f7c9c0
Faulting application path: C:\Program Files\Rockwell Software\RSView Enterprise\SEGfxVBACli.exe
Faulting module path: C:\PROGRA~1\COMMON~1\MICROS~1\VBA\VBA6\VBE6.DLL
Report Id: 7d53c660-5d06-11e9-9097-001c428c3a57
Event 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-12T09:36:47.000000000Z" />
    <EventRecordID>33867</EventRecordID>
    <Channel>Application</Channel>
    <Computer>C001234</Computer>
    <Security />
  </System>
  <EventData>
    <Data>SEGfxVBACli.exe</Data>
    <Data>7.0.13.0</Data>
    <Data>50e6de15</Data>
    <Data>VBE6.DLL</Data>
    <Data>6.5.10.32</Data>
    <Data>471d25c7</Data>
    <Data>c0000005</Data>
    <Data>00048ba2</Data>
    <Data>24cc</Data>
    <Data>01d4f11339f7c9c0</Data>
    <Data>C:\Program Files\Rockwell Software\RSView Enterprise\SEGfxVBACli.exe</Data>
    <Data>C:\PROGRA~1\COMMON~1\MICROS~1\VBA\VBA6\VBE6.DLL</Data>
    <Data>7d53c660-5d06-11e9-9097-001c428c3a57</Data>
  </EventData>
</Event>

Log 2

Log Name:      Application
Source:        Windows Error Reporting
Date:          4/12/2019 11:40:02 AM
Event ID:      1001
Task Category: None
Level:         Information
Keywords:      Classic
User:          N/A
Computer:      C001234
Description:
Fault bucket , type 0
Event Name: APPCRASH
Response: Not available
Cab Id: 0

Problem signature:
P1: SEGfxVBACli.exe
P2: 7.0.13.0
P3: 50e6de15
P4: VBE6.DLL
P5: 6.5.10.32
P6: 471d25c7
P7: c0000005
P8: 00048ba2
P9: 
P10: 

Attached files:

These files may be available here:
<b>C:\Users\xfprocessor\AppData\Local\Microsoft\Windows\WER\ReportQueue\AppCrash_SEGfxVBACli.exe_9918e682a9385aae53b328795e856d7cb5199e1b_27f321b3</b>

Analysis symbol: 
Rechecking for solution: 0
Report Id: 7d53c660-5d06-11e9-9097-001c428c3a57
Report Status: 6
Event 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-12T09:40:02.000000000Z" />
    <EventRecordID>33868</EventRecordID>
    <Channel>Application</Channel>
    <Computer>C001234</Computer>
    <Security />
  </System>
  <EventData>
    <Data>
    </Data>
    <Data>0</Data>
    <Data>APPCRASH</Data>
    <Data>Not available</Data>
    <Data>0</Data>
    <Data>SEGfxVBACli.exe</Data>
    <Data>7.0.13.0</Data>
    <Data>50e6de15</Data>
    <Data>VBE6.DLL</Data>
    <Data>6.5.10.32</Data>
    <Data>471d25c7</Data>
    <Data>c0000005</Data>
    <Data>00048ba2</Data>
    <Data>
    </Data>
    <Data>
    </Data>
    <Data>
    </Data>
    <Data>C:\Users\xfprocessor\AppData\Local\Microsoft\Windows\WER\ReportQueue\AppCrash_SEGfxVBACli.exe_9918e682a9385aae53b328795e856d7cb5199e1b_27f321b3</Data>
    <Data>
    </Data>
    <Data>0</Data>
    <Data>7d53c660-5d06-11e9-9097-001c428c3a57</Data>
    <Data>6</Data>
  </EventData>
</Event>

Using the above logs I was able to extract the following relevant information (please let me know if you think that I've missed something that could be important for debugging purpose):

  1. Log 1
    • The faulting application is SEGfxVBACli.exe, version: 7.0.13.0 (alias for RSIVBA Module, look here)
      • The faulting module is VBE6.DLL, version: 6.5.10.32
  2. Log 2
    • This log was taken by WER (Windows Error Reporting)
    • This log suggest to check in the following folder for additional information:

C:\Users\xfprocessor\AppData\Local\Microsoft\Windows\WER\ReportQueue\AppCrash_SEGfxVBACli.exe_9918e682a9385aae53b328795e856d7cb5199e1b_27f321b3

In the path suggest by Log 2 I found a file called Report.wer that doesn't seem to add new helpful information. Here below its content:

Version=1
EventType=APPCRASH
EventTime=131995354075640000
ReportType=2
Consent=1
ReportIdentifier=7d53c661-5d06-11e9-9097-001c428c3a57
IntegratorReportIdentifier=7d53c660-5d06-11e9-9097-001c428c3a57
Response.type=4
Sig[0].Name=Application Name
Sig[0].Value=SEGfxVBACli.exe
Sig[1].Name=Application Version
Sig[1].Value=7.0.13.0
Sig[2].Name=Application Timestamp
Sig[2].Value=50e6de15
Sig[3].Name=Fault Module Name
Sig[3].Value=VBE6.DLL
Sig[4].Name=Fault Module Version
Sig[4].Value=6.5.10.32
Sig[5].Name=Fault Module Timestamp
Sig[5].Value=471d25c7
Sig[6].Name=Exception Code
Sig[6].Value=c0000005
Sig[7].Name=Exception Offset
Sig[7].Value=00048ba2
DynamicSig[1].Name=OS Version
DynamicSig[1].Value=6.1.7601.2.1.0.256.4
DynamicSig[2].Name=Locale ID
DynamicSig[2].Value=1033
DynamicSig[22].Name=Additional Information 1
DynamicSig[22].Value=0a9e
DynamicSig[23].Name=Additional Information 2
DynamicSig[23].Value=0a9e372d3b4ad19135b953a78882e789
DynamicSig[24].Name=Additional Information 3
DynamicSig[24].Value=0a9e
DynamicSig[25].Name=Additional Information 4
DynamicSig[25].Value=0a9e372d3b4ad19135b953a78882e789
UI[2]=C:\Program Files\Rockwell Software\RSView Enterprise\SEGfxVBACli.exe
UI[3]=RSIVBA Module has stopped working
UI[4]=Windows can check online for a solution to the problem the next time you go online.
UI[5]=Check online for a solution and close the program
UI[6]=Check online for a solution later and close the program
UI[7]=Close the program
LoadedModule[0]=C:\Program Files\Rockwell Software\RSView Enterprise\SEGfxVBACli.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\msi.dll
LoadedModule[5]=C:\windows\system32\msvcrt.dll
LoadedModule[6]=C:\windows\system32\ADVAPI32.dll
LoadedModule[7]=C:\windows\SYSTEM32\sechost.dll
LoadedModule[8]=C:\windows\system32\RPCRT4.dll
LoadedModule[9]=C:\windows\system32\USER32.dll
LoadedModule[10]=C:\windows\system32\GDI32.dll
LoadedModule[11]=C:\windows\system32\LPK.dll
LoadedModule[12]=C:\windows\system32\USP10.dll
LoadedModule[13]=C:\windows\system32\SHELL32.dll
LoadedModule[14]=C:\windows\system32\SHLWAPI.dll
LoadedModule[15]=C:\windows\system32\ole32.dll
LoadedModule[16]=C:\windows\system32\OLEAUT32.dll
LoadedModule[17]=C:\windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4940_none_50916076bcb9a742\MSVCR90.dll
LoadedModule[18]=C:\windows\WinSxS\x86_microsoft.vc90.atl_1fc8b3b9a1e18e3b_9.0.30729.4148_none_51ca66a2bbe76806\ATL90.DLL
LoadedModule[19]=C:\windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4940_none_50916076bcb9a742\MSVCP90.dll
LoadedModule[20]=C:\windows\system32\apphelp.dll
LoadedModule[21]=C:\windows\AppPatch\AcLayers.DLL
LoadedModule[22]=C:\windows\system32\SspiCli.dll
LoadedModule[23]=C:\windows\system32\USERENV.dll
LoadedModule[24]=C:\windows\system32\profapi.dll
LoadedModule[25]=C:\windows\system32\WINSPOOL.DRV
LoadedModule[26]=C:\windows\system32\MPR.dll
LoadedModule[27]=C:\windows\system32\IMM32.DLL
LoadedModule[28]=C:\windows\system32\MSCTF.dll
LoadedModule[29]=C:\windows\system32\CRYPTBASE.dll
LoadedModule[30]=C:\windows\system32\uxtheme.dll
LoadedModule[31]=C:\Program Files\Common Files\Rockwell\rsDbgUtils.dll
LoadedModule[32]=C:\Program Files\Common Files\Rockwell\DbgHelp.dll
LoadedModule[33]=C:\windows\system32\CLBCatQ.DLL
LoadedModule[34]=C:\windows\system32\CRYPTSP.dll
LoadedModule[35]=C:\windows\system32\rsaenh.dll
LoadedModule[36]=C:\windows\system32\RpcRtRemote.dll
LoadedModule[37]=C:\windows\system32\msiltcfg.dll
LoadedModule[38]=C:\windows\system32\VERSION.dll
LoadedModule[39]=C:\windows\system32\SFC.DLL
LoadedModule[40]=C:\windows\system32\sfc_os.DLL
LoadedModule[41]=C:\windows\system32\SXS.DLL
LoadedModule[42]=C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6\apc65.dll
LoadedModule[43]=C:\windows\system32\dwmapi.dll
LoadedModule[44]=C:\Program Files\Rockwell Software\RSView Enterprise\SEGfxVBAPs.dll
LoadedModule[45]=C:\Program Files\Rockwell Software\RSView Enterprise\SEGfxVBAComPs.dll
LoadedModule[46]=C:\Program Files\Rockwell Software\RSView Enterprise\SEGfxRoiCli.dll
LoadedModule[47]=C:\Program Files\Common Files\Microsoft Shared\office11\mso.dll
LoadedModule[48]=C:\PROGRA~1\COMMON~1\MICROS~1\VBA\VBA6\VBE6.DLL
LoadedModule[49]=C:\Program Files\Common Files\Microsoft Shared\OFFICE11\gdiplus.dll
LoadedModule[50]=C:\windows\system32\WTSAPI32.DLL
LoadedModule[51]=C:\windows\system32\WINSTA.dll
LoadedModule[52]=C:\windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_41e6975e2bd6f2b2\Comctl32.dll
LoadedModule[53]=C:\PROGRA~1\COMMON~1\MICROS~1\VBA\VBA6\1033\VBE6INTL.DLL
LoadedModule[54]=C:\windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7601.18201_none_ec80f00e8593ece5\COMCTL32.DLL
LoadedModule[55]=C:\windows\system32\riched20.dll
FriendlyEventName=Stopped working
ConsentKey=APPCRASH
AppName=RSIVBA Module
AppPath=C:\Program Files\Rockwell Software\RSView Enterprise\SEGfxVBACli.exe

At this point I enabled the application crash logs on my dev pc, by adding the following key windows register (see here for more info):

HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsWindows Error LocalDumps

I restarted my dev pc and then I tried to reproduce the crash just by closing and opening the client a few times. Once the client crashed, thanks to the new key, I found the file SEGfxVBACli.exe.10136.dmp file in the following path: %LOCALAPPDATA%/CrashDumps. I opened this file using Windbg and i found some useful information:

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


Loading Dump File [C:\Users\c264079\Desktop\SEGfxVBACli.exe.10136.dmp]
User Mini Dump File: Only registers, stack and portions of memory are available

Symbol search path is: srv*
Executable search path is: 
Windows 7 Version 7601 (Service Pack 1) MP (2 procs) Free x86 compatible
Product: WinNt, suite: SingleUserTS
Machine Name:
Debug session time: Fri Apr 12 14:19:13.000 2019 (UTC + 2:00)
System Uptime: not available
Process Uptime: 0 days 0:01:37.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.
(2798.27a0): Access violation - code c0000005 (first/second chance not available)
For analysis of this file, run !analyze -v
eax=00000000 ebx=0012dd04 ecx=00000400 edx=00000000 esi=00000002 edi=00000000
eip=774a70f4 esp=0012dcb4 ebp=0012dd50 iopl=0         nv up ei pl zr na pe nc
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00000246
ntdll!KiFastSystemCallRet:
774a70f4 c3              ret
0:000> !analyze -v
*******************************************************************************
*                                                                             *
*                        Exception Analysis                                   *
*                                                                             *
*******************************************************************************


KEY_VALUES_STRING: 1

    Key  : AV.Dereference
    Value: NullPtr

    Key  : AV.Fault
    Value: Read

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


PROCESSES_ANALYSIS: 1

SERVICE_ANALYSIS: 1

STACKHASH_ANALYSIS: 1

TIMELINE_ANALYSIS: 1

Timeline: !analyze.Start
    Name: <blank>
    Time: 2019-04-12T12:50:57.499Z
    Diff: 1904499 mSec

Timeline: Dump.Current
    Name: <blank>
    Time: 2019-04-12T12:19:13.0Z
    Diff: 0 mSec

Timeline: Process.Start
    Name: <blank>
    Time: 2019-04-12T12:17:36.0Z
    Diff: 97000 mSec


DUMP_CLASS: 2

DUMP_QUALIFIER: 400

CONTEXT:  (.ecxr)
eax=00000000 ebx=00000000 ecx=003a9cd0 edx=00000030 esi=7598ad60 edi=00000000
eip=65048ba2 esp=0012e460 ebp=0012e4ec iopl=0         nv up ei pl zr na pe nc
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00010246
VBE6+0x48ba2:
65048ba2 3b0c98          cmp     ecx,dword ptr [eax+ebx*4] ds:0023:00000000=????????
Resetting default scope

FAULTING_IP: 
VBE6+48ba2
65048ba2 3b0c98          cmp     ecx,dword ptr [eax+ebx*4]

EXCEPTION_RECORD:  (.exr -1)
ExceptionAddress: 65048ba2 (VBE6+0x00048ba2)
   ExceptionCode: c0000005 (Access violation)
  ExceptionFlags: 00000000
NumberParameters: 2
   Parameter[0]: 00000000
   Parameter[1]: 00000000
Attempt to read from address 00000000

DEFAULT_BUCKET_ID:  NULL_POINTER_READ

PROCESS_NAME:  SEGfxVBACli.exe

FOLLOWUP_IP: 
VBE6+48ba2
65048ba2 3b0c98          cmp     ecx,dword ptr [eax+ebx*4]

READ_ADDRESS:  00000000 

ERROR_CODE: (NTSTATUS) 0xc0000005 - The instruction at 0x%p referenced memory at 0x%p. The memory could not be %s.

EXCEPTION_CODE: (NTSTATUS) 0xc0000005 - The instruction at 0x%p referenced memory at 0x%p. The memory could not be %s.

EXCEPTION_CODE_STR:  c0000005

EXCEPTION_PARAMETER1:  00000000

EXCEPTION_PARAMETER2:  00000000

WATSON_BKT_PROCSTAMP:  50e6de15

WATSON_BKT_PROCVER:  7.0.13.0

WATSON_BKT_MODULE:  VBE6.DLL

WATSON_BKT_MODSTAMP:  471d25c7

WATSON_BKT_MODOFFSET:  48ba2

WATSON_BKT_MODVER:  6.5.10.32

BUILD_VERSION_STRING:  6.1.7601.18409 (win7sp1_gdr.140303-2144)

MODLIST_WITH_TSCHKSUM_HASH:  7519ad49d50c93fe826d48b825b7f6a3f5f3a5f1

MODLIST_SHA1_HASH:  1fa60f616645a1dc8e31d4ee0210404172dd8bbf

NTGLOBALFLAG:  0

APPLICATION_VERIFIER_FLAGS:  0

DUMP_FLAGS:  94

DUMP_TYPE:  1

ANALYSIS_SESSION_HOST:  HYBRID-PVCR502N

ANALYSIS_SESSION_TIME:  04-12-2019 14:50:57.0499

ANALYSIS_VERSION: 10.0.18317.1001 x86fre

THREAD_ATTRIBUTES: 
OS_LOCALE:  ENU

BUGCHECK_STR:  APPLICATION_FAULT_NULL_POINTER_READ_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:    [0x27a0]
    Frame:  [0] : VBE6

    ID:     [0n285]
    Type:   [INVALID_POINTER_READ]
    Class:  Primary
    Scope:  BUCKET_ID
    Name:   Add
    Data:   Omit
    PID:    [Unspecified]
    TID:    [0x27a0]
    Frame:  [0] : VBE6

    ID:     [0n300]
    Type:   [NULL_POINTER_READ]
    Class:  Primary
    Scope:  DEFAULT_BUCKET_ID (Failure Bucket ID prefix)
            BUCKET_ID
    Name:   Add
    Data:   Omit
    PID:    [0x2798]
    TID:    [0x27a0]
    Frame:  [0] : VBE6

LAST_CONTROL_TRANSFER:  from 65042b40 to 65048ba2

STACK_TEXT:  
WARNING: Stack unwind information not available. Following frames may be wrong.
0012e4ec 65042b40 0012e580 02d73cd0 02d74428 VBE6+0x48ba2
0012e5c8 775b63a4 0012e5e0 00000000 00000000 VBE6+0x42b40
0012e5f0 775b6276 001609ab 0012e630 775b625c msctf!InternalIMCCLock::_UnlockIMCC+0x1b
0012e5fc 775b625c 00000000 0012e6ac 00000113 msctf!IMCLock::_UnlockIMC+0xd
0012e620 75996445 00000102 7c903014 0012e65c msctf!IMCLock::~IMCLock+0x19
0012e630 7599c4e7 003e093e 00001086 00000000 user32!NtUserPeekMessage+0xc
0012e65c 7599c5e7 65099750 003e093e 00001086 user32!InternalCallWinProc+0x23
0012e6d4 7599cc19 00000000 65099750 003e093e user32!UserCallWinProcCheckWow+0x14b
0012e734 7599cc70 65099750 00000000 75992b4d user32!DispatchMessageWorker+0x35e
0012e744 0041f82f 0012e768 0012e7bc 003f7c58 user32!DispatchMessageW+0xf
0012e74c 0012e7bc 003f7c58 0012e7c0 00000000 SEGfxVBACli+0x1f82f
0012e768 00000000 00000000 00000000 00054604 0x12e7bc


THREAD_SHA1_HASH_MOD_FUNC:  4a6e6f8baf4776e223752f735125cfd7390b30f6

THREAD_SHA1_HASH_MOD_FUNC_OFFSET:  fa693dbd1eac843a3924e4c82ce5d8d2be28b6a9

THREAD_SHA1_HASH_MOD:  04a56d9ed1b188a6cdecf8d621467fac390273f4

FAULT_INSTR_CODE:  75980c3b

SYMBOL_STACK_INDEX:  0

SYMBOL_NAME:  VBE6+48ba2

FOLLOWUP_NAME:  MachineOwner

MODULE_NAME: VBE6

IMAGE_NAME:  VBE6.DLL

DEBUG_FLR_IMAGE_TIMESTAMP:  471d25c7

STACK_COMMAND:  ~0s ; .ecxr ; kb

FAILURE_BUCKET_ID:  NULL_POINTER_READ_c0000005_VBE6.DLL!Unknown

BUCKET_ID:  APPLICATION_FAULT_NULL_POINTER_READ_INVALID_POINTER_READ_VBE6+48ba2

FAILURE_EXCEPTION_CODE:  c0000005

FAILURE_IMAGE_NAME:  VBE6.DLL

BUCKET_ID_IMAGE_STR:  VBE6.DLL

FAILURE_MODULE_NAME:  VBE6

BUCKET_ID_MODULE_STR:  VBE6

FAILURE_FUNCTION_NAME:  Unknown

BUCKET_ID_FUNCTION_STR:  Unknown

BUCKET_ID_OFFSET:  48ba2

BUCKET_ID_MODTIMEDATESTAMP:  471d25c7

BUCKET_ID_MODCHECKSUM:  281c17

BUCKET_ID_MODVER_STR:  6.5.10.32

BUCKET_ID_PREFIX_STR:  APPLICATION_FAULT_NULL_POINTER_READ_INVALID_POINTER_READ_

FAILURE_PROBLEM_CLASS:  APPLICATION_FAULT

FAILURE_SYMBOL_NAME:  VBE6.DLL!Unknown

WATSON_STAGEONE_URL:  http://watson.microsoft.com/StageOne/SEGfxVBACli.exe/7.0.13.0/50e6de15/VBE6.DLL/6.5.10.32/471d25c7/c0000005/00048ba2.htm?Retriage=1

TARGET_TIME:  2019-04-12T12:19:13.000Z

OSBUILD:  7601

OSSERVICEPACK:  18409

SERVICEPACK_NUMBER: 0

OS_REVISION: 0

SUITE_MASK:  256

PRODUCT_TYPE:  1

OSPLATFORM_TYPE:  x86

OSNAME:  Windows 7

OSEDITION:  Windows 7 WinNt (Service Pack 1) SingleUserTS

USER_LCID:  0

OSBUILD_TIMESTAMP:  2014-03-04 10:16:37

BUILDDATESTAMP_STR:  140303-2144

BUILDLAB_STR:  win7sp1_gdr

BUILDOSVER_STR:  6.1.7601.18409

ANALYSIS_SESSION_ELAPSED_TIME:  28ba2

ANALYSIS_SOURCE:  UM

FAILURE_ID_HASH_STRING:  um:null_pointer_read_c0000005_vbe6.dll!unknown

FAILURE_ID_HASH:  {2bab7801-cedf-2d01-08e7-be358bc1f51e}

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

The interesting information that I found in the file reported above is:

ERROR_CODE: (NTSTATUS) 0xc0000005 - The instruction at 0x%p referenced memory at 0x%p. The memory could not be %s.

Final considerations

So, after the analysis carried out above, it seems that the sporadic crash of RSIVBA module on client startup is due to an istruction that try to reference to an illegal memory area. The strange thing is that this happens sporadically...

I tried can't figure out which instruction could produce this error. Anyone has experienced this problem?

Program crash if InternetReadFile() not called before InternetCloseHandle()

$
0
0

As part of a C ++ application using web services, I had a crash of my application on the InternetCloseHandle() call.

After some investigation, I noticed that it comes from the fact that I do not read the content of the response with InternetReadFile(). Below is an adapted fragment of my code:

Remarque : My C++ webservice program is working properly and the detection of my problem occurred following a reverse test:

if (HttpQueryInfo ...){...}

instead of

if(! HttpQueryInfo ...){...}

BOOL Open2(LPCTSTR Url, BOOL Read)
{
    BOOL bRead = TRUE;
    URL_COMPONENTS  uc;
    TCHAR           achHostName[256];
    TCHAR           achUrlPath[256];
    BOOL            bResult;

    HINTERNET m_hSession = InternetOpen(_T("MyApp"), INTERNET_OPEN_TYPE_DIRECT, NULL, NULL, 0);
    if (m_hSession == NULL) return FALSE;

    memset(&uc, 0, sizeof(uc));

    uc.dwStructSize = sizeof(uc);
    uc.lpszHostName = achHostName;
    uc.dwHostNameLength = 256;
    uc.lpszUrlPath = achUrlPath;
    uc.dwUrlPathLength = 256;        

    bResult = InternetCrackUrl(Url, 0, ICU_ESCAPE, &uc);
    if (bResult != TRUE) return FALSE;

    CLogonInfo Li;
    HINTERNET m_hConnect = InternetConnect(m_hSession, achHostName, uc.nPort, Li.GetCurrentUserName(), Li.GetCurrentUserPassword(),
                                    INTERNET_SERVICE_HTTP, NULL, NULL);
    if (m_hConnect == NULL)
        return FALSE;

    DWORD dwFlags = INTERNET_FLAG_NO_CACHE_WRITE;
    if (uc.nScheme == INTERNET_SCHEME_HTTPS) dwFlags = dwFlags | INTERNET_FLAG_SECURE; //https
    HINTERNET m_hRequest = HttpOpenRequest(m_hConnect, bRead ? _T("GET") : _T("POST") , achUrlPath, NULL, NULL, NULL,
                                dwFlags, 0);

    if (m_hRequest == NULL)  return FALSE;

    if (!HttpSendRequest(m_hRequest, 0, 0, 0, 0)) return FALSE;

    WriteRequestContentToFile2 (_T("G:\\toto.pdf"), m_hSession);

    return TRUE;    
}

And the code of the function containing the part which which causes crash:

if InternetReadFile() is not called, InternetCloseHandle() crashes.

BOOL WriteRequestContentToFile2 (CString strOutputFilePath, HINTERNET hRequest)
{

    TCHAR cHttpres[10];
    DWORD dwHttpresSize = 10;
    DWORD dwNbRead =0;

    HttpQueryInfo( hRequest, HTTP_QUERY_CONTENT_LENGTH, cHttpres, &dwHttpresSize, 0L);

    size_t uiFileSize = atoi (cHttpres);
    char *pcBuff = new char[uiFileSize+1];

    InternetReadFile(hRequest, pcBuff, uiFileSize, &dwNbRead);

    delete [] pcBuff;

    HttpEndRequest(hRequest, NULL, 0, 0);

    InternetCloseHandle(hRequest); //<-- THIS CRASH if InternetReadFile not Called

    return TRUE;
}  

Why I must call InternetReadFile() before closing the handle?

Remarque :
The content returned by my webservice is correct (file saved and validated) and there is nothing to report on this side

Screen shot of crash:

image

JSON.parse() crashes on chrome

$
0
0

Chome (80.0.3987.132 windows build) crashes on parsing Json.

For reproduce :

1- Open this link.

2- Type these lines on Console :

var json = document.getElementsByTagName('body')[0].innerText;
JSON.parse(json);

The json file is valid.

Can someone help us to solve this crash ?

Thanks,

Firebase push notification toast message fatal exception

$
0
0

I'm getting a weird crash report from Crashlytics saying that my app has crashed because of a Toast message not called from the UI thread. It's weird because I don't show Toast messages from push notifications. It looks like it's working for thousands of different users, but for this one is crashing. I don't know what's going on. Below is the report:

Fatal Exception: java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
       at android.os.Handler.(Handler.java:209)
       at android.os.Handler.(Handler.java:123)
       at android.widget.Toast$TN.(Toast.java:350)
       at android.widget.Toast.(Toast.java:106)
       at android.widget.Toast.makeText(Toast.java:264)
       at android.media.RingtoneManager.isRingtoneExist(RingtoneManager.java:1195)
       at android.app.NotificationManager.notify(NotificationManager.java:235)
       at com.google.firebase.messaging.zza.zzt(Unknown Source)
       at com.google.firebase.messaging.FirebaseMessagingService.handleIntent(Unknown Source)
       at com.google.firebase.iid.zzc.run(Unknown Source)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
       at java.lang.Thread.run(Thread.java:818)

app dependencies:

implementation 'com.google.firebase:firebase-core:12.0.1'
implementation 'com.google.firebase:firebase-messaging:12.0.1'

Device: Android 6.0 - Alcatel Shine Lite 5080X

The firebase push service:

public class FirebasePushService extends FirebaseMessagingService {

    @Override
    public void onMessageReceived(RemoteMessage remoteMessage) {
        Log.d(App.NAME, "message received");

        Map<String, String> map = remoteMessage.getData();
        JSONObject json = new JSONObject();

        for (Map.Entry<String, String> entry : map.entrySet()) {
            String key = entry.getKey();
            String value = entry.getValue();

            json.put(key, value);
        }

        int pushType = json.getInt("push_type", -1);

        if (pushType > 0) {
            Intent intent = new Intent(getApplicationContext(), MainActivity.class);
            PendingIntent pi = PendingIntent.getActivity(this, 100, intent, PendingIntent.FLAG_ONE_SHOT);

            createNotification();
        }
    }

    private void createNotification() {
        // create the channel first
        createChannels();

        Uri defaultSoundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);

        NotificationCompat.Build b = new NotificationCompat.Builder(context, CHANNEL_ID)
                .setAutoCancel(true)
                .setDefaults(Notification.DEFAULT_ALL)
                .setSound(defaultSoundUri)
                .setColor(ContextCompat.getColor(context, R.color.primaryColor));

        b.setContentIntent(pi);
        b.setAutoCancel(true);
        Notification not = b.build();

        not.flags |= Notification.FLAG_AUTO_CANCEL;

        if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O) {
            not.ledARGB = Color.GREEN;
            not.flags = Notification.FLAG_SHOW_LIGHTS;
            not.ledOnMS = 1000;
            not.ledOffMS = 1000;
            not.defaults |= Notification.DEFAULT_VIBRATE;
            not.defaults |= Notification.DEFAULT_SOUND;
        }

        NotificationManager nm = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
        nm.notify(PUSH_NOTIFICATION_ID, not);
    }

    @TargetApi(Build.VERSION_CODES.O)
    private void createChannels() {

        // create android channel
        NotificationChannel androidChannel = new NotificationChannel(CHANNEL_ID, CHANNEL_NAME, NotificationManager.IMPORTANCE_DEFAULT);
        // Sets whether notifications posted to this channel should display notification lights
        androidChannel.enableLights(true);
        // Sets whether notification posted to this channel should vibrate.
        androidChannel.enableVibration(true);
        // Sets the notification light color for notifications posted to this channel
        androidChannel.setLightColor(Color.GREEN);
        // Sets whether notifications posted to this channel appear on the lockscreen or not
        androidChannel.setLockscreenVisibility(Notification.VISIBILITY_PRIVATE);

        getManager().createNotificationChannel(androidChannel);
    }
}

Does anyone have any clue what's going on?


Android Native Lib Crash

$
0
0

I am getting a huge number of below crashes in the Playstore console with limited stacktrace only.

enter image description here

backtrace:
  #00  pc 0000000000021f6c  /system/lib64/libc.so (abort+116)
  #01  pc 00000000000080d8  /system/lib64/liblog.so (__android_log_assert+304)
  #02  pc 000000000000f0f8  /system/lib64/libutils.so (android::sp_report_race()+28)
  #03  pc 0000000000115324  /system/lib64/libandroid_runtime.so (android::RootRenderNode::detachAnimators()+316)
  #04  pc 0000000000113434  /system/lib64/libandroid_runtime.so (android::AnimationContextBridge::destroy()+24)
  #05  pc 000000000049e99c  /system/lib64/libhwui.so (android::uirenderer::renderthread::CanvasContext::destroy()+128)
  #06  pc 00000000004a2780  /system/lib64/libhwui.so (std::__1::packaged_task<void ()>::operator()()+88)
  #07  pc 000000000045971c  /system/lib64/libhwui.so (android::uirenderer::WorkQueue::process()+168)
  #08  pc 000000000011fb30  /system/lib64/libhwui.so (android::uirenderer::renderthread::RenderThread::threadLoop()+240)
  #09  pc 000000000000f9d4  /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+280)
  #10  pc 00000000000836c8  /system/lib64/libc.so (__pthread_start(void*)+196)
  #11  pc 0000000000023bac  /system/lib64/libc.so (__start_thread+68)

Could someone already reproduce the issue or at least explain when the issue occurs and how to fix it?

why if constructor of a class exist in .cpp file it's working fine but if moved to .hpp it's a run time crash

$
0
0

I am using interface reference in my class. For example::

class My_class
{
public:
My_Class(IFileReadWrite& rFile): m_rFile(rFile)
private:
IFileReadWrite& m_rFile;
}

Signal 11 (SIGSEGV), code 1 (SEGV_MAPERR) in app without native code and I am unable to narrow down the cause of the problem

$
0
0

backtrace: #00 pc 0000000000229f44 /system/lib64/libskia.so (SkCanvas::onDrawTextBlob(SkTextBlob const*, float, float, SkPaint const&)+536) #01 pc 000000000022a900 /system/lib64/libskia.so (SkCanvas::drawTextBlob(SkTextBlob const*, float, float, SkPaint const&)+236) #02 pc 0000000000292d04 /system/lib64/libskia.so (SkColorSpaceXformCanvas::onDrawTextBlob(SkTextBlob const*, float, float, SkPaint const&)+84) #03 pc 000000000022a900 /system/lib64/libskia.so (SkCanvas::drawTextBlob(SkTextBlob const*, float, float, SkPaint const&)+236) #04 pc 00000000000c53c4 /system/lib64/libhwui.so (android::SkiaCanvas::drawGlyphs(std::__1::function, int, SkPaint const&, float, float, float, float, float, float, float)+288) #05 pc 000000000005386c /system/lib64/libhwui.so (android::DrawTextFunctor::operator()(unsigned long, unsigned long)+168) #06 pc 0000000000053320 /system/lib64/libhwui.so (void android::MinikinUtils::forFontRun(minikin::Layout const&, android::Paint*, android::DrawTextFunctor&)+532) #07 pc 0000000000053034 /system/lib64/libhwui.so (android::Canvas::drawText(unsigned short const*, int, int, int, float, float, int, android::Paint const&, android::Typeface*)+276) #08 pc 0000000000133f1c /system/lib64/libandroid_runtime.so (android::CanvasJNI::drawTextRunString(_JNIEnv*, _jobject*, long, _jstring*, int, int, int, int, float, float, unsigned char, long, long)+156) #09 pc 0000000000b80a14 /system/framework/arm64/boot-framework.oat (offset 0x659000) (android.graphics.BaseCanvas.nDrawTextRun [DEDUPED]+260) #10 pc 0000000000b845b0 /system/framework/arm64/boot-framework.oat (offset 0x659000) (android.graphics.BaseCanvas.drawTextRun+944) #11 pc 0000000000b94e58 /system/framework/arm64/boot-framework.oat (offset 0x659000) (android.graphics.Canvas.drawTextRun+56) #12 pc 00000000012c66cc /system/framework/arm64/boot-framework.oat (offset 0x659000) (android.text.TextLine.drawTextRun+124) #13 pc 00000000012c842c /system/framework/arm64/boot-framework.oat (offset 0x659000) (android.text.TextLine.handleText+1340) #14 pc 00000000012c7bd4 /system/framework/arm64/boot-framework.oat (offset 0x659000) (android.text.TextLine.handleRun+2756) #15 pc 00000000012c6450 /system/framework/arm64/boot-framework.oat (offset 0x659000) (android.text.TextLine.drawRun+352) #16 pc 00000000012c8bb4 /system/framework/arm64/boot-framework.oat (offset 0x659000) (android.text.TextLine.draw+148) #17 pc 0000000001296030 /system/framework/arm64/boot-framework.oat (offset 0x659000) (android.text.Layout.drawText+3216) #18 pc 0000000001294be8 /system/framework/arm64/boot-framework.oat (offset 0x659000) (android.text.Layout.draw+184) #19 pc 000000000152b9ac /system/framework/arm64/boot-framework.oat (offset 0x659000) (android.widget.TextView.onDraw+3276) #20 pc 000000000054b388 /system/lib64/libart.so (art_quick_invoke_stub+584) #21 pc 00000000000dd574 /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+200) #22 pc 000000000029adb8 /system/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+344) #23 pc 00000000002953a0 /system/lib64/libart.so (bool art::interpreter::DoCall(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+696) #24 pc 0000000000533b44 /system/lib64/libart.so (MterpInvokeSuper+1384) #25 pc 000000000053d094 /system/lib64/libart.so (ExecuteMterpImpl+14356) #26 pc 0000000000275804 /system/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame&, art::JValue, bool)+444) #27 pc 000000000027b40c /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame*, art::JValue*)+216) #28 pc 0000000000295380 /system/lib64/libart.so (bool art::interpreter::DoCall(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+664) #29 pc 0000000000536224 /system/lib64/libart.so (MterpInvokeVirtualQuick+812) #30 pc 0000000000540d94 /system/lib64/libart.so (ExecuteMterpImpl+29972) #31 pc 0000000000275804 /system/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame&, art::JValue, bool)+444) #32 pc 00000000005260d8 /system/lib64/libart.so (artQuickToInterpreterBridge+1052) #33 pc 000000000055450c /system/lib64/libart.so (art_quick_to_interpreter_bridge+92) #34 pc 00000000010ae41c /system/framework/arm64/boot-framework.oat (offset 0x659000) (android.view.View.draw+252) #35 pc 000000000054b388 /system/lib64/libart.so (art_quick_invoke_stub+584) #36 pc 00000000000dd574 /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+200) #37 pc 000000000029adb8 /system/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+344) #38 pc 00000000002953a0 /system/lib64/libart.so (bool art::interpreter::DoCall(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+696) #39 pc 0000000000533b44 /system/lib64/libart.so (MterpInvokeSuper+1384) #40 pc 000000000053d094 /system/lib64/libart.so (ExecuteMterpImpl+14356) #41 pc 0000000000275804 /system/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame&, art::JValue, bool)+444) #42 pc 00000000005260d8 /system/lib64/libart.so (artQuickToInterpreterBridge+1052) #43 pc 000000000055450c /system/lib64/libart.so (art_quick_to_interpreter_bridge+92) #44 pc 0000000000035c48 /dev/ashmem/dalvik-jit-code-cache (deleted)

How to read the Xamarin iOS Heaviest stack for the target process?

$
0
0

I don't know if this is a valid question or not but I am stuck hence I am here for guidance.

So my app is XamariniOS app is crashing but I don't know whats causing it.

I have identified the flow due to which it crashes. But still haven't identified the correct cause of it.

I have the crash logs provided by iOS Device Log but I have no idea what is causing the issue

I only know is that it is being killed by CPU usage

Event:            cpu usage
Action taken:     none
CPU:              90 seconds cpu time over 170 seconds (53% cpu average), exceeding limit of 50% cpu over 180 seconds
CPU limit:        90s
Limit duration:   180s
CPU used:         90s
CPU duration:     170s
Duration:         169.88s
Duration Sampled: 157.34s
Steps:            44

The logs are :

Heaviest stack for the target process:
  44  ??? (libdyld.dylib + 6144) [0x19093b800]
  44  ??? (MyApp.iOS + 714604) [0x1025fa76c]
  44  ??? (MyApp.iOS + 29476604) [0x1041686fc]
  44  ??? (MyApp.iOS + 27632748) [0x103fa646c]
  44  ??? (MyApp.iOS + 28574860) [0x10408c48c]
  44  ??? (MyApp.iOS + 28549584) [0x1040861d0]
  44  ??? (MyApp.iOS + 27772120) [0x103fc84d8]
  44  ??? (MyApp.iOS + 4407332) [0x102980024]
  44  ??? (MyApp.iOS + 714772) [0x1025fa814]
  44  ??? (MyApp.iOS + 15211316) [0x1033cdb34]
  44  ??? (MyApp.iOS + 15211436) [0x1033cdbac]
  44  ??? (MyApp.iOS + 15897920) [0x103475540]
  44  ??? (UIKitCore + 10504576) [0x194bba980]
  44  ??? (GraphicsServices + 13196) [0x19b00d38c]
  44  ??? (CoreFoundation + 667276) [0x190ab3e8c]
  42  ??? (CoreFoundation + 669056) [0x190ab4580]
  42  ??? (CoreFoundation + 667908) [0x190ab4104]

How to even read this?

What is causing the issue?

integrating TcpIpService in java

$
0
0

With the use of eclipse I am trying to integrate a piece of software to communicate with some external hardware. The hardware only comes with parts of java code to help integrate :

// The listener parameter is an interface to listen for terminal connections.
// Create a service with TCP/IP connection
Service service = ServiceFactory.createTcpIpService(tcpPortNumber, lstn);

service.startService();

public void onTerminalConnect(Terminal terminal)
{
// store the terminal for later usage
}

public void onTerminalDisconnect(Terminal terminal)
{
// do something with the disconnected terminal
}

But each time I send startservice(), the applicaion crashes with a Java(TM) Platform SE binary message : 'java(TM) Platform SE binary stopped working'.

I also have an eclipse test-project from the hardware makers, but the classes are binary, so I can't read their coding, and the harware makers told me they can't give the source-code, since it was done by an external company. It works fine with their test-application when I start it in Eclipse, but my code crashes. The hardware reacts on the startService(), but crashes right after that.

I'm not sure what value, or how to declare the 'lstn' interface, so maybe that is where it goes wrong.

I already tried updating java(1.8.0.241) and jafaFX (8.0.241)

I'm quite new at coding in Java ...

When I try to hook IFileOperation, sometimes onedrive crashed

$
0
0

No other programs crashed, only onedrive.exe(specific part of the machine, not all). From the dump, it seems that it crashed when calling

IFileOperation::Unadvise.

CONTEXT:  (.ecxr)

eax=75d0476c ebx=75d9630e ecx=75d0a5e2 edx=00001b10 esi=086feeb0 edi=75cf8f6c

eip=764e4563 esp=086fec6c ebp=086fec94 iopl=0         nv up ei pl nz na po nc

cs=0023  ss=002b  ds=002b  es=002b  fs=0053  gs=002b             efl=00010202

rpcrt4!NdrpClientInit+0x1d3:

764e4563 c70300000000    mov     dword ptr [ebx],0    ds:002b:75d9630e=8b0c4d8b

Resetting default scope


FAULTING_IP: 

rpcrt4!NdrpClientInit+1d3

764e4563 c70300000000    mov     dword ptr [ebx],0


EXCEPTION_RECORD:  (.exr -1)

ExceptionAddress: 764e4563 (rpcrt4!NdrpClientInit+0x000001d3)

   ExceptionCode: c0000005 (Access violation)

  ExceptionFlags: 00000000

NumberParameters: 2

   Parameter[0]: 00000001

   Parameter[1]: 75d9630e

Attempt to write to address 75d9630e


PROCESS_NAME:  OneDrive.exe

FOLLOWUP_IP: 
xxx!CHookIFileOperation::Unadvise+f [hookifileoperation.cpp @ 61]
747fcb35 ff742408        push    dword ptr [esp+8]


00 086fec94 764c5978 a0b2bfee 00000000 086ff1b8 rpcrt4!NdrpClientInit+0x1d3

01 086ff180 75e1cf40 75cd2e50 75cf8f44 086ff1b8 rpcrt4!NdrClientCall2+0x158

02 086ff1a0 75e14edf 086ff1b8 00000004 086ff230 combase!ObjectStublessClient+0x70 [onecore\com\combase\ndr\ndrole\i386\stblsclt.cxx @ 227] 

03 086ff1b0 747fcb35 058a2b7c 00000000 75ce0adc combase!ObjectStubless+0xf [onecore\com\combase\ndr\ndrole\i386\stubless.asm @ 171] 

04 086ff1c0 75d9630e 058a2b7c 00000000 086ff4c4 xxx!CHookIFileOperation::Unadvise+0xf [hookifileoperation.cpp @ 61] 

05 086ff230 75da0a16 086ff4c4 086ff2a0 00000000 combase!CRpcResolver::CreateInstance+0x2ad [onecore\com\combase\dcomrem\resolver.cxx @ 2673] 

06 086ff268 75df9e02 75f062bc 00000000 086ff4c4 combase!CClientContextActivator::CreateInstance+0x156 [onecore\com\combase\objact\actvator.cxx @ 589] 

07 086ffad8 75dd06a0 00000000 00000001 00000000 combase!WinRTCreateInstanceOfOutofprocClass+0x139 [onecore\com\combase\objact\objact.cxx @ 2286] 

08 086ffbb4 75dcf96d 07d048d8 00000000 00000000 combase!WinRTActivateInstanceInternal+0x360 [onecore\com\combase\winrtbase\winrtbase.cpp @ 607] 

09 (Inline) -------- -------- -------- -------- combase!_RoActivateInstance+0x80 [onecore\com\combase\winrtbase\winrtbase.cpp @ 735] 

0a 086ffc04 5d351dfc 08b47a90 086ffc54 5d351dd0 combase!RoActivateInstance+0x8d [onecore\com\combase\winrtbase\winrtbase.cpp @ 763] 

xxx!CHookIFileOperation::Unadvise:
747fcb26 56              push    esi
747fcb27 ff74240c        push    dword ptr [esp+0Ch]
747fcb2b ff74240c        push    dword ptr [esp+0Ch]
747fcb2f ff1528158374    call    dword ptr [xxx!CHookIFileOperation::m_pRawUnadvise (74831528)]
747fcb35 ff742408        push    dword ptr [esp+8]

0:037> dd 74831528

74831528  6ec90480 6ec904c8 6ec90510 6ec90558


6ec90480 b904000000      mov     ecx,4

6ec90485 e97b4a1807      jmp     combase!ObjectStublessClient4+0x5 (75e14f05)

In normal scenarios, here should be "CFileOperation::Unadvise+0x5" not "combase!ObjectStublessClient4+0x5".

why? because stub/proxy? and how should I avoid such problems?

iOS app crashed with ImageIO: invocation function for block in PNGReadPlugin::DecodeFrameStandard(IIOImageReadSession*, ReadPlu... + 808

$
0
0

I just uploaded my first app for testing to TestFlight. I got the following crash when testing that I could not understand. here is the screenshot of the crash.screenshot of crash

Can someone please help me to understand what this is and how can I resolve this.

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note:  EXC_CORPSE_NOTIFY
Triggered by Thread:  0

Thread 0 name:
Thread 0 Crashed:
0   libsystem_kernel.dylib          0x00000001ae055ec4 __pthread_kill + 8
1   libsystem_pthread.dylib         0x00000001adf71774 pthread_kill$VARIANT$mp + 112 (pthread.c:1456)
2   libsystem_c.dylib               0x00000001adec5844 abort + 100 (abort.c:110)
3   libsystem_malloc.dylib          0x00000001adf5eb80 malloc_vreport + 560 (malloc_printf.c:183)
4   libsystem_malloc.dylib          0x00000001adf5edf4 malloc_zone_error + 100 (malloc_printf.c:219)
5   libsystem_malloc.dylib          0x00000001adf5e66c free_list_checksum_botch + 36 (magazine_inline.h:194)
6   libsystem_malloc.dylib          0x00000001adf59fa0 tiny_free_list_remove_ptr + 644 (magazine_tiny.c:0)
7   libsystem_malloc.dylib          0x00000001adf5ad34 tiny_free_no_lock + 720 (magazine_tiny.c:1315)
8   libsystem_malloc.dylib          0x00000001adf5bed0 free_tiny + 268 (magazine_tiny.c:2433)
9   ImageIO                         0x00000001aea50724 invocation function for block in PNGReadPlugin::DecodeFrameStandard(IIOImageReadSession*, ReadPlu... + 808 (PNG_readPlugin.cpp:4069)
10  libdispatch.dylib               0x00000001adf2b1c4 _dispatch_client_callout2 + 16 (object.m:507)
11  libdispatch.dylib               0x00000001adee2a54 _dispatch_apply_invoke_and_wait + 164 (apply.c:63)
12  libdispatch.dylib               0x00000001adee2500 dispatch_apply_f$VARIANT$mp + 720 (apply.c:190)
13  ImageIO                         0x00000001aea4ee24 PNGReadPlugin::DecodeFrameStandard(IIOImageReadSession*, ReadPluginData const&, PNGPluginData con... + 512 (PNG_readPlugin.cpp:3951)
14  ImageIO                         0x00000001aea4eb4c PNGReadPlugin::DecodeUncomposedFrames(IIOImageRead*, GlobalPNGInfo*, ReadPluginData const&, PNGPl... + 96 (PNG_readPlugin.cpp:4560)
15  ImageIO                         0x00000001aea4e504 PNGReadPlugin::copyImageBlockSet(InfoRec*, CGImageProvider*, CGRect, CGSize, __CFDictionary const*) + 4264 (once.h:86)
16  ImageIO                         0x00000001aea4ac34 IIO_Reader::CopyImageBlockSetProc(void*, CGImageProvider*, CGRect, CGSize, __CFDictionary const*) + 140 (IIOReader.cpp:1389)
17  ImageIO                         0x00000001aea56f04 IIOImageProviderInfo::CopyImageBlockSetWithOptions(void*, CGImageProvider*, CGRect, CGSize, __CFD... + 1220 (CGImagePlus.cpp:2176)
18  QuartzCore                      0x00000001b4b822a8 CA::Render::copy_image(CGImage*, CGColorSpace*, unsigned int, double, double) + 4116 (render-image-cache.cpp:1235)
19  QuartzCore                      0x00000001b4cb5160 -[CALayer(CALayerPrivate) _copyRenderLayer:layerFlags:commitFlags:] + 712 (CALayer.mm:10548)
20  QuartzCore                      0x00000001b4c04810 invocation function for block in CA::Context::commit_transaction(CA::Transaction*, double) + 1496 (CALayer.mm:10984)
21  QuartzCore                      0x00000001b4cbad38 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block... + 364 (CALayer.mm:2647)
22  QuartzCore                      0x00000001b4cbacb0 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block... + 228 (CALayer.mm:2633)
23  QuartzCore                      0x00000001b4cbacb0 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block... + 228 (CALayer.mm:2633)
24  QuartzCore                      0x00000001b4cbacb0 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block... + 228 (CALayer.mm:2633)
25  QuartzCore                      0x00000001b4cbacb0 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block... + 228 (CALayer.mm:2633)
26  QuartzCore                      0x00000001b4cbacb0 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block... + 228 (CALayer.mm:2633)
27  QuartzCore                      0x00000001b4cbacb0 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block... + 228 (CALayer.mm:2633)
28  QuartzCore                      0x00000001b4cbacb0 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block... + 228 (CALayer.mm:2633)
29  QuartzCore                      0x00000001b4cbacb0 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block... + 228 (CALayer.mm:2633)
30  QuartzCore                      0x00000001b4cbacb0 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block... + 228 (CALayer.mm:2633)
31  QuartzCore                      0x00000001b4cbacb0 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block... + 228 (CALayer.mm:2633)
32  QuartzCore                      0x00000001b4cbacb0 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block... + 228 (CALayer.mm:2633)
33  QuartzCore                      0x00000001b4cbacb0 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block... + 228 (CALayer.mm:2633)
34  QuartzCore                      0x00000001b4c038d8 CA::Context::commit_transaction(CA::Transaction*, double) + 2872 (CAContextInternal.mm:2288)
35  QuartzCore                      0x00000001b4c2cbbc CA::Transaction::commit() + 676 (CATransactionInternal.mm:438)
36  UIKitCore                       0x00000001b22ddbac __34-[UIApplication _firstCommitBlock]_block_invoke_2 + 80 (UIApplication.m:10840)
37  CoreFoundation                  0x00000001ae1db5f8 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 20 (CFRunLoop.c:1774)
38  CoreFoundation                  0x00000001ae1dad98 __CFRunLoopDoBlocks + 264 (CFRunLoop.c:1815)
39  CoreFoundation                  0x00000001ae1d6014 __CFRunLoopRun + 1100 (CFRunLoop.c:2884)
40  CoreFoundation                  0x00000001ae1d58a0 CFRunLoopRunSpecific + 464 (CFRunLoop.c:3192)
41  GraphicsServices                0x00000001b812d328 GSEventRunModal + 104 (GSEvent.c:2246)
42  UIKitCore                       0x00000001b22c6740 UIApplicationMain + 1936 (UIApplication.m:4758)
43  Subzz                           0x0000000104641c14 0x10463c000 + 23572
44  libdyld.dylib                   0x00000001ae060360 start + 4


Is disassembly code an accurate option for crash assimilation?

$
0
0

Let's say I have four different dump files. When I open them in a debugger, I get the assembly lines that the program broke into. Two dumps are showing the same assembly lines, the other two are showing different assembly lines.

Does that mean that the first two crashes occurred because of the same line in the code, same exception, in the same call stack?

Please note that I already checked the "Match source with disassembled code" question, but I can only work with the dump file. No source code, no symbols, Windows only.

Random Out Of Memory, Crashes, High CPU - What it wrong with this code?

$
0
0

I am into severe stability issues with the following code and I have no clue where to start looking.

I have 1G RAM, and 1G swap (RHEL 8) and start my jar with the following parameters:

/opt/jdk-13/bin/java -Xms128M -Xmx128M -jar /home/ec2-user/ai2.jar

I am experiencing OOM crashes, coredumps, sudden high-CPU (70.0), network socket errors after the program runs about 30 minutes. A "top" during this time does not indicate any kind of memory leak.

There is a folder with up to 30.000 files that contain a timestamp in their name. I want the program to read these filenames and determine if the timestamp is overdue. If so, the content of the file will be read to receive sending information and trigger an action.

        fun main(agrs:Array<String>) {
            // maybe this is not the most elegant way ???
            while (true) {
                qpath = "/home/ec2-user/queue_mb"
                readFolderContent("mamba")
                sleep(3000)
            }
        }

    fun readFolderContent(appname:String) {

        val files = File(qpath).list()
        val count = files.count()

        writeQueueCounter(appname,count)
        files.forEach {
            val ttlString = it.dropLast(8)
            val ttl = ttlString.toInt()
            val now = LocalDateTime.now().toEpochSecond(ZoneOffset.UTC) // Millis
            if (ttl < now) {

                var jsonString = File("$qpath/$it").readText(Charsets.UTF_8)

                val gson = GsonBuilder().create()
                val qContent = gson.fromJson(jsonString, QueueContent::class.java)
                send(qContent.from, qContent.to, appname)
                File("$qpath/$it").delete()
            }
        }
    }
fun writeQueueCounter(appname:String, value:Int) {

    var now = LocalDateTime.now().toEpochSecond(ZoneOffset.UTC)
    val jsonString = """
                        {
                        "queue":$value
                        }
                    """

    val client = OkHttpClient()
    val url = URL("https://xxxxxx.firebaseio.com/$appname/current.json")
    val mediaType = "application/json; charset=utf-8".toMediaType()
    val body = jsonString.toRequestBody(mediaType)

    val request = Request.Builder()
        .url(url)
        .addHeader("Content-Type", "application/json")
        .patch(body)
        .build()

    client.newCall(request).execute().use { response ->
        if (!response.isSuccessful) throw IOException("Unexpected code $response")
        if (response.code == 200) {
            println("Written $value Written To DB.$appname")
        }
    }
}

App crash while creating input pipe in Swift iOS

$
0
0

My app got crash with error Terminated due to signal 13.

I am creating input pipe and on that line app got crash with above reason.

 public func openConsolePipe() {

        inputPipe = Pipe()

        outputPipe = Pipe()
        let pipeReadHandle = inputPipe.fileHandleForReading

        dup2(STDOUT_FILENO, outputPipe.fileHandleForWriting.fileDescriptor)
        dup2(STDERR_FILENO, outputPipe.fileHandleForWriting.fileDescriptor)

        dup2(inputPipe.fileHandleForWriting.fileDescriptor, STDOUT_FILENO)
        dup2(inputPipe.fileHandleForWriting.fileDescriptor, STDERR_FILENO)

        NotificationCenter.default.addObserver(self, selector: #selector(self.handlePipeNotification), name: FileHandle.readCompletionNotification, object: pipeReadHandle)

        pipeReadHandle.readInBackgroundAndNotify()
}

I am following This Link for implement this.

Now above tutorial working fine in regular project.

But I am creating framework of this demo and use it another app code.

At that time app got crash on Line.

dup2(inputPipe.fileHandleForWriting.fileDescriptor, STDERR_FILENO)

This is below method in that I am getting all logs from pipe.

@objc func handlePipeNotification(notification: Notification)
{
        inputPipe.fileHandleForReading.readInBackgroundAndNotify()

        if let data = notification.userInfo![NSFileHandleNotificationDataItem] as? Data,
        let str = String(data: data, encoding: String.Encoding.ascii) {

            outputPipe.fileHandleForWriting.write(data)
        }
}

Crash during Store Review only

$
0
0

Can anyone help with this crash that I cannot reproduce ? It's appearing during review only, at launch.

Last Exception Backtrace:
0   CoreFoundation                  0x185288a48 __exceptionPreprocess + 220
1   libobjc.A.dylib                 0x184faffa4 objc_exception_throw + 55
2   CoreFoundation                  0x18518c5a8 -[NSObject+ 193960 (NSObject) doesNotRecognizeSelector:] + 139
3   UIKitCore                       0x18933c4e8 -[UIResponder doesNotRecognizeSelector:] + 295
4   CoreFoundation                  0x18528c86c ___forwarding___ + 675
5   CoreFoundation                  0x18528ea7c _CF_forwarding_prep_0 + 91
6   CallKit                         0x19305adcc __42-[CXProvider handleConnectionInterruption]_block_invoke + 67
7   libdispatch.dylib               0x184f54610 _dispatch_call_block_and_release + 23
8   libdispatch.dylib               0x184f55184 _dispatch_client_callout + 15
9   libdispatch.dylib               0x184f07190 _dispatch_main_queue_callback_4CF$VARIANT$mp + 1043
10  CoreFoundation                  0x1852065e4 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 11
11  CoreFoundation                  0x1852015d8 __CFRunLoopRun + 2003
12  CoreFoundation                  0x185200adc CFRunLoopRunSpecific + 463
13  GraphicsServices                0x18f1a1328 GSEventRunModal + 103
14  UIKitCore                       0x18930e63c UIApplicationMain + 1935
15  AppName                         0x1001ee330 main + 156464 (main.m:15)
16  libdyld.dylib                   0x18508a360 start + 3

Why Finite recursive behaviour cause crash!!!!!(free(): invalid pointer)

$
0
0

Below is my code just a function called kk that will be recursively called for 10 times so impossible to cause stack overflow, but it crashes with ** Error in `./3': free(): invalid pointer: 0x0000000000602100 *** Who knows the reason??

string kk(string &s)
{
    static  int i=0;
    s+="q";
    i++;
    cout<<"i="<<i<<endl;
    if(i>=10) return s;
    kk(s);
}

int main()
{
    string s="wer";

    cout<<"s="<<kk(s)<<endl;
}
Viewing all 7195 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>