[Issue 2978] Unhandled win32 exception on successful exe compilation

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jun 5 20:46:32 PDT 2009


http://d.puremagic.com/issues/show_bug.cgi?id=2978





--- Comment #5 from Rob Jacques <sandford at jhu.edu>  2009-06-05 20:46:31 PDT ---
Thanks Don.
Error appears to occur at line 1000 of root.c in function int File::read().
...
#elif _WIN32
    DWORD size;
    DWORD numread;
    HANDLE h;
    int result = 0;
    char *name;

    name = this->name->toChars();
004F69D6  mov         eax,dword ptr [this] 
Break-> 004F69D9  mov         ecx,dword ptr [eax+14h] 

Watch reports 'this' is null.
Unhandled memory exception at 0x00000014 (null+14)
--Call Stack--
>	dmd.exe!File::read()()  Line 1000 + 0x3 bytes	C++
     dmd.exe!startthread()  Line 104 + 0x7 bytes    C++
     dmd.exe!___threadstartex at 4()  + 0x1d bytes    
     ntdll.dll!774e19bb()     
     [Frames below may be incorrect and/or missing, no symbols loaded for
ntdll.dll]    
     ntdll.dll!774e198e()     

-- Output --
'dmd.exe': Loaded 'C:\dmd\windows\bin\dmd.exe', Symbols loaded.
'dmd.exe': Loaded 'C:\Windows\System32\ntdll.dll', No symbols loaded.
'dmd.exe': Loaded 'C:\Windows\System32\kernel32.dll', No symbols loaded.
'dmd.exe': Loaded 'C:\Windows\System32\shell32.dll', No symbols loaded.
'dmd.exe': Loaded 'C:\Windows\System32\msvcrt.dll', No symbols loaded.
'dmd.exe': Loaded 'C:\Windows\System32\gdi32.dll', No symbols loaded.
'dmd.exe': Loaded 'C:\Windows\System32\user32.dll', No symbols loaded.
'dmd.exe': Loaded 'C:\Windows\System32\advapi32.dll', No symbols loaded.
'dmd.exe': Loaded 'C:\Windows\System32\rpcrt4.dll', No symbols loaded.
'dmd.exe': Loaded 'C:\Windows\System32\shlwapi.dll', No symbols loaded.
'dmd.exe': Loaded 'C:\Windows\System32\imm32.dll', No symbols loaded.
'dmd.exe': Loaded 'C:\Windows\System32\msctf.dll', No symbols loaded.
'dmd.exe': Loaded 'C:\Windows\System32\lpk.dll', No symbols loaded.
'dmd.exe': Loaded 'C:\Windows\System32\usp10.dll', No symbols loaded.
'dmd.exe': Loaded 'C:\Windows\System32\avgrsstx.dll', No symbols loaded.
'dmd.exe': Loaded
'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.6002.18005_none_5cb72f96088b0de0\comctl32.dll',
No symbols loaded.
'dmd.exe': Loaded 'C:\Windows\System32\apphelp.dll', No symbols loaded.
'dmd.exe': Loaded 'C:\Program Files\Common Files\LogiShrd\LVMVFM\LVPrcInj.dll',
No symbols loaded.
The thread 'Win32 Thread' (0x3a0c) has exited with code 0 (0x0).
Unhandled exception at 0x004f69d9 in dmd.exe: 0xC0000005: Access violation
reading location 0x00000014.

-- Start Thread Call frame --
startthread::p    0x00288cd8    void *
-startthread::aw    0x00288cd8     AsyncRead *
    hThread    0x5c6e6962    void *
    filesdim    1969382724    unsigned int
    filesmax    103        unsigned int
    -files    0x00288ce4     FileData [1]
    startthread::i    0    unsigned int
    -startthread::f    0x00288ce4    FileData *

Error at Line 104 of async.c
unsigned __stdcall startthread(void *p)
{
    AsyncRead *aw = (AsyncRead *)p;

    for (size_t i = 0; i < aw->filesdim; i++)
    {    FileData *f = &aw->files[i];

    f->result = f->file->read();


-- Main Call Stack (Location runLINK)--
     ntdll.dll!77505e74()     
     [Frames below may be incorrect and/or missing, no symbols loaded for
ntdll.dll]    
     ntdll.dll!77505620()     
     kernel32.dll!76f19884()     
>	dmd.exe!RTLMultiPool::SelectFree()  + 0x1e bytes	
     kernel32.dll!76f197f2()     
     dmd.exe!__exec()  + 0x16e bytes    
     dmd.exe!__mbschr()  + 0x1a7 bytes    
     dmd.exe!__mbschr()  + 0x2d4 bytes    
     dmd.exe!__mbschr()  + 0x31e bytes    
     dmd.exe!___spawn()  + 0xc4 bytes    
     dmd.exe!runLINK()  Line 191 + 0xd bytes    C++
     dmd.exe!main()  Line 1190 + 0x5 bytes    C++
     dmd.exe!_mainCRTStartup()  + 0xa9 bytes    
     kernel32.dll!76f1d0e9()     
     ntdll.dll!774e19bb()     
     ntdll.dll!774e198e()

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list