Author Topic: Code Completion question  (Read 17107 times)

Offline seb_seb0

  • Almost regular
  • **
  • Posts: 166
Code Completion question
« on: November 25, 2010, 10:06:42 pm »
Hello,

I have noticed that when I open large projects (more than 1000 cpp files), CodeBlocks is running, and does not give me the hand (it is not responsive).

I do not know if it is running in an infinite loop on my computer or simply taking a lot of time (more than 5 minutes, after that I kill codeblocks).

For information:
   1  I run Codeblocks SVN 84 (nightly)
   2  My OS is Windows Vista.
   3  My laptop is not a powerful machine (AMD x64 Dual Core TK-55 1.80 Ghz, 2 GB RAM)
   4  When I disactivate the CodeCompletion plugin, the project is opened immediately
   5  When I use a more powerful PC on Windows XP, it opens the project in a few seconds.

Note that 2 + 3 is a very nasty combination.

My question is then: is it possible to avoid to freeze CodeBlocks when parsing the project ? I understood it was already done with the Parser Threads, but obviously something is running slowly in the main thread.

Thanks in advance for your reply !

Sebastien

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Code Completion question
« Reply #1 on: November 25, 2010, 10:47:00 pm »
You could tells where is the bottleneck with the following procedure:

1. Build C::B from source and enable debug symbols and remove stripping (you should edit update.bat and comment the "strip" commands)
2. Open a console window and navigate to the gdb.exe
2. Make C::B to be stuck somewhere
3. Execute gdb C:\path_to_cb\codeblocks.exe pid_of_cb
4. If gdb doesn't stop C::B, hit ctrl+c, then execute the command "bt" (gdb command) or "thread apply all bt" (this one will print the bt for all threads)
5. Copy and paste (in code tag) the backtrace here.

Hope it helps... :lol:
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6034
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Code Completion question
« Reply #2 on: November 26, 2010, 01:32:10 am »
Hello,
I have noticed that when I open large projects (more than 1000 cpp files), CodeBlocks is running, and does not give me the hand (it is not responsive).
When loading a new project. CC  just do something below:
1, initialization stage.
2, batch parsing
3, update UI

I guess there are some deadlock when codecompletion plugin was doing the initialization stage. I define the "initialization stage" means it just scans all the file names(not the file content) in the current cbp. When after the "initialization stage", parserthread was running as working thread, so at least you can still feel C::B is alive.

Quote
My question is then: is it possible to avoid to freeze CodeBlocks when parsing the project ? I understood it was already done with the Parser Threads, but obviously something is running slowly in the main thread.

You  can disable the Macro expansion in the CC's configure dialog. which may accelerate the parsing stage, but which will cause some parsing errors.

Note:
CC dose not do "type checking" or other semantic check. it just do a quite naive guess.  :D
like:
Code
id1 id2;   //-----> id1 is the "type name" and the id2 is the variable name
id3 id4(); //-----> id3 is the function "return type", id4 is the function name

So, if you code has a lot of Macro usage, CC's parsing may be in-correct.

As oBFusCATed  said.
You can debug CC, it is not hard, and stop CC to see where is the deadly loop.

Anyway, if you still can't find the bug, can you share the source for me to test? :D

If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6034
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Code Completion question
« Reply #3 on: November 26, 2010, 01:34:20 am »
For information:
   1  I run Codeblocks SVN 84 (nightly)
which version ??? svn 84????
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline seb_seb0

  • Almost regular
  • **
  • Posts: 166
Re: Code Completion question
« Reply #4 on: November 26, 2010, 06:14:59 pm »
For information:
   1  I run Codeblocks SVN 84 (nightly)
which version ??? svn 84????

LOL - the key "6" is not working properly on my keyboard. You must read 6846

I will try to debug as suggested by Obfuscated and you, and I will let you know.
The project I was trying to visualize is a part of OpenCascade: an Open Source CAD kernel. It is more than 30 000 sources files, so forgive me if I do not send it to you. You can find it here anyway: www.opencascade.org

Sebastien

Offline seb_seb0

  • Almost regular
  • **
  • Posts: 166
Re: Code Completion question
« Reply #5 on: November 26, 2010, 07:24:36 pm »
well, now it is working (both the debug version and the normal version).
And now I look stupid...

If I see the problem occuring again, I will paste here the backtrace.

Sebastien

Offline seb_seb0

  • Almost regular
  • **
  • Posts: 166
Re: Code Completion question
« Reply #6 on: November 26, 2010, 08:03:41 pm »
I have managed to freeze Codeblocks again (with VTK this time)

here are the backtraces:

with gdb command "bt"
Code
(gdb) bt
#0  0x773f8b2f in ntdll!DbgUiConvertStateChangeStructure ()
   from C:\Windows\system32\ntdll.dll
#1  0x7743c9a0 in ntdll!EtwEventEnabled () from C:\Windows\system32\ntdll.dll
#2  0x661435e5 in ?? ()
#3  0x00000000 in ?? ()

with the command "thread apply all bt"
Code
Thread 14 (Thread 4508.0xc68):
#0  0x773f8b2f in ntdll!DbgUiConvertStateChangeStructure ()
   from C:\Windows\system32\ntdll.dll
#1  0x7743c9a0 in ntdll!EtwEventEnabled () from C:\Windows\system32\ntdll.dll
#2  0x661435e5 in ?? ()
#3  0x00000000 in ?? ()

Thread 13 (Thread 4508.0x10b0):
#0  0x77415e74 in ntdll!LdrAccessResource ()
   from C:\Windows\system32\ntdll.dll
#1  0x77415620 in ntdll!ZwWaitForSingleObject ()
   from C:\Windows\system32\ntdll.dll
#2  0x75d39884 in WaitForSingleObjectEx ()
   from C:\Windows\system32\kernel32.dll
#3  0x00000838 in ?? ()
#4  0x00000000 in ?? ()

Thread 12 (Thread 4508.0x60c):
#0  0x77415e74 in ntdll!LdrAccessResource ()
   from C:\Windows\system32\ntdll.dll
#1  0x77415620 in ntdll!ZwWaitForSingleObject ()
   from C:\Windows\system32\ntdll.dll
#2  0x75d39884 in WaitForSingleObjectEx ()
   from C:\Windows\system32\kernel32.dll
#3  0x000007f0 in ?? ()
#4  0x00000000 in ?? ()

Thread 11 (Thread 4508.0x16ec):
#0  0x77415e74 in ntdll!LdrAccessResource ()
   from C:\Windows\system32\ntdll.dll
#1  0x77414990 in ntdll!ZwGetContextThread ()
   from C:\Windows\system32\ntdll.dll
#2  0x75cf5b5a in KERNEL32!GetThreadIOPendingFlag ()
   from C:\Windows\system32\kernel32.dll
#3  0x086b41c2 in get_thrpc ()
   from C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\output\share\codeblocks\pl
ugins\codecompletion.dll
#4  0x086b4207 in profthr_func@4 ()
   from C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\output\share\codeblocks\pl
ugins\codecompletion.dll
#5  0x75d3d0e9 in KERNEL32!AcquireSRWLockExclusive ()
   from C:\Windows\system32\kernel32.dll
#6  0x773f19bb in ntdll!RtlInitializeNtUserPfn ()
   from C:\Windows\system32\ntdll.dll
#7  0x773f198e in ntdll!RtlInitializeNtUserPfn ()
   from C:\Windows\system32\ntdll.dll
#8  0x00000000 in ?? ()

Thread 10 (Thread 4508.0x784):
#0  0x77415e74 in ntdll!LdrAccessResource ()
   from C:\Windows\system32\ntdll.dll
#1  0x77415620 in ntdll!ZwWaitForSingleObject ()
   from C:\Windows\system32\ntdll.dll
#2  0x75d39884 in WaitForSingleObjectEx ()
   from C:\Windows\system32\kernel32.dll
#3  0x00000780 in ?? ()
#4  0x00000000 in ?? ()

Thread 9 (Thread 4508.0x122c):
#0  0x77415e74 in ntdll!LdrAccessResource ()
   from C:\Windows\system32\ntdll.dll
#1  0x77415620 in ntdll!ZwWaitForSingleObject ()
   from C:\Windows\system32\ntdll.dll
#2  0x75d39884 in WaitForSingleObjectEx ()
   from C:\Windows\system32\kernel32.dll
#3  0x00000778 in ?? ()
#4  0x00000000 in ?? ()

Thread 8 (Thread 4508.0x14e0):
#0  0x77415e74 in ntdll!LdrAccessResource ()
   from C:\Windows\system32\ntdll.dll
#1  0x77415620 in ntdll!ZwWaitForSingleObject ()
   from C:\Windows\system32\ntdll.dll
#2  0x75d39884 in WaitForSingleObjectEx ()
   from C:\Windows\system32\kernel32.dll
#3  0x00000768 in ?? ()
#4  0x00000000 in ?? ()

Thread 7 (Thread 4508.0x1160):
#0  0x77415e74 in ntdll!LdrAccessResource ()
   from C:\Windows\system32\ntdll.dll
#1  0x77415620 in ntdll!ZwWaitForSingleObject ()
   from C:\Windows\system32\ntdll.dll
#2  0x75d39884 in WaitForSingleObjectEx ()
   from C:\Windows\system32\kernel32.dll
#3  0x00000770 in ?? ()
#4  0x00000000 in ?? ()

Thread 6 (Thread 4508.0x1110):
#0  0x77415e74 in ntdll!LdrAccessResource ()
   from C:\Windows\system32\ntdll.dll
#1  0x77414780 in ntdll!ZwDelayExecution () from C:\Windows\system32\ntdll.dll
#2  0x75d39990 in SleepEx () from C:\Windows\system32\kernel32.dll
#3  0x00000000 in ?? ()

Thread 5 (Thread 4508.0x13ec):
#0  0x77415e74 in ntdll!LdrAccessResource ()
   from C:\Windows\system32\ntdll.dll
#1  0x774150b0 in ntdll!ZwRemoveIoCompletion ()
   from C:\Windows\system32\ntdll.dll
#2  0x75d3d11e in KERNEL32!GetQueuedCompletionStatusEx ()
   from C:\Windows\system32\kernel32.dll
#3  0x765303c8 in RPCRT4!NdrTypeFree () from C:\Windows\system32\rpcrt4.dll
#4  0x00000734 in ?? ()
#5  0x06fcfed8 in ?? ()
#6  0x765304fd in RPCRT4!NdrTypeFree () from C:\Windows\system32\rpcrt4.dll
#7  0xffffffff in ?? ()
#8  0x06fcff44 in ?? ()
#9  0x7653011c in RPCRT4!NdrTypeFree () from C:\Windows\system32\rpcrt4.dll
#10 0x06fcff7c in ?? ()
#11 0x765300e3 in RPCRT4!NdrTypeFree () from C:\Windows\system32\rpcrt4.dll
#12 0x002c2db0 in ?? ()
#13 0x76530166 in RPCRT4!NdrTypeFree () from C:\Windows\system32\rpcrt4.dll
#14 0x002bf070 in ?? ()
#15 0x75d3d0e9 in KERNEL32!AcquireSRWLockExclusive ()
   from C:\Windows\system32\kernel32.dll
#16 0x773f19bb in ntdll!RtlInitializeNtUserPfn ()
   from C:\Windows\system32\ntdll.dll
#17 0x773f198e in ntdll!RtlInitializeNtUserPfn ()
   from C:\Windows\system32\ntdll.dll
#18 0x00000000 in ?? ()

Thread 4 (Thread 4508.0x1358):
#0  0x77415e74 in ntdll!LdrAccessResource ()
   from C:\Windows\system32\ntdll.dll
#1  0x77414990 in ntdll!ZwGetContextThread ()
   from C:\Windows\system32\ntdll.dll
#2  0x75cf5b5a in KERNEL32!GetThreadIOPendingFlag ()
   from C:\Windows\system32\kernel32.dll
#3  0x004663b2 in get_thrpc ()
#4  0x004663f7 in profthr_func@4 ()
#5  0x75d3d0e9 in KERNEL32!AcquireSRWLockExclusive ()
   from C:\Windows\system32\kernel32.dll
#6  0x773f19bb in ntdll!RtlInitializeNtUserPfn ()
   from C:\Windows\system32\ntdll.dll
#7  0x773f198e in ntdll!RtlInitializeNtUserPfn ()
   from C:\Windows\system32\ntdll.dll
#8  0x00000000 in ?? ()

Thread 3 (Thread 4508.0x1430):
#0  0x77415e74 in ntdll!LdrAccessResource ()
   from C:\Windows\system32\ntdll.dll
#1  0x77415610 in ntdll!ZwWaitForMultipleObjects32 ()
   from C:\Windows\system32\ntdll.dll
#2  0x75d3a5d7 in WaitForMultipleObjectsEx ()
   from C:\Windows\system32\kernel32.dll
warning: (Internal error: pc 0x2 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x2 in read in psymtab, but not in symtab.)

#3  0x00000003 in ?? ()
    at C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\src\appglobals.cpp:63
warning: (Internal error: pc 0x2 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x0 in read in psymtab, but not in symtab.)

#4  0x75d3a6f0 in WaitForMultipleObjects ()
   from C:\Windows\system32\kernel32.dll
#5  0x60010bd0 in ?? ()
   from C:\Program Files\BitDefender\BitDefender 2011\Active Virus Control\Midas
_00069_003\midas32.dll
#6  0x6001a2b7 in midas32!MdFilePrint ()
   from C:\Program Files\BitDefender\BitDefender 2011\Active Virus Control\Midas
_00069_003\midas32.dll
#7  0x6001a35c in midas32!MdFilePrint ()
   from C:\Program Files\BitDefender\BitDefender 2011\Active Virus Control\Midas
_00069_003\midas32.dll
#8  0x773f19bb in ntdll!RtlInitializeNtUserPfn ()
   from C:\Windows\system32\ntdll.dll
#9  0x773f198e in ntdll!RtlInitializeNtUserPfn ()
   from C:\Windows\system32\ntdll.dll
#10 0x00000000 in ?? ()

Thread 2 (Thread 4508.0xfb4):
#0  0x77415e74 in ntdll!LdrAccessResource ()
   from C:\Windows\system32\ntdll.dll
#1  0x77415610 in ntdll!ZwWaitForMultipleObjects32 ()
   from C:\Windows\system32\ntdll.dll
#2  0x75d3a5d7 in WaitForMultipleObjectsEx ()
   from C:\Windows\system32\kernel32.dll
warning: (Internal error: pc 0x1 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x1 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x1 in read in psymtab, but not in symtab.)

#3  0x00000002 in ?? ()
    at C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\src\appglobals.cpp:63
warning: (Internal error: pc 0x1 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x0 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x0 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x0 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x0 in read in psymtab, but not in symtab.)

#4  0x00000001 in ?? ()
    at C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\src\appglobals.cpp:63
warning: (Internal error: pc 0x0 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x0 in read in psymtab, but not in symtab.)

#5  0x0101fed0 in ?? ()

Thread 1 (Thread 4508.0xc28):
#0  0x6cc86ace in wxListBase::Find(void const*) const ()
   from C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\output\wxmsw28u_gcc_cb.dll

#1  0x01bbfc52 in FilesList::Find (this=0x12964738, object=0x138910e8)
    at C:/Users/Seb/Documents/00_SDK/PROJECTS/CB/src/include/projectfile.h:188
#2  0x01a7ebae in ProjectFile::AddBuildTarget (this=0x138910e8,
    targetName=...)
    at C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\sdk\projectfile.cpp:83
#3  0x01a9090e in ProjectLoader::DoUnitOptions (this=0x22eb2c, parentNode=
    0x1279be40, file=0x138910e8)
    at C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\sdk\projectloader.cpp:974
#4  0x01a90128 in ProjectLoader::DoUnits (this=0x22eb2c, parentNode=0x8028c58)
    at C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\sdk\projectloader.cpp:879
#5  0x01a8ad8f in ProjectLoader::Open (this=0x22eb2c, filename=...,
    ppExtensions=0x455f73c)
    at C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\sdk\projectloader.cpp:202
#6  0x019a6423 in cbProject::Open (this=0x455f570)
    at C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\sdk\cbproject.cpp:280
#7  0x019a3f7f in cbProject::cbProject (this=0x455f570, filename=...)
    at C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\sdk\cbproject.cpp:77
#8  0x01a9e5b1 in ProjectManager::LoadProject (this=0x61be0b0, filename=...,
    activateIt=true)
    at C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\sdk\projectmanager.cpp:776
#9  0x00436a27 in MainFrame::DoOpenProject (this=0x6115208, filename=...,
    addToHistory=true)
    at C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\src\main.cpp:1697
#10 0x004364eb in MainFrame::OpenGeneric (this=0x6115208, filename=...,
    addToHistory=true)
    at C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\src\main.cpp:1646
#11 0x0043e91d in MainFrame::OnDropFiles (this=0x6115208, files=...)
    at C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\src\main.cpp:2550
#12 0x00478780 in wxMyFileDropTarget::OnDropFiles (this=0x58646a0, x=1, y=1,
    filenames=...)
    at C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\src\main.cpp:71
#13 0x094a8692 in CodeSnippets::OnDropFiles(int, int, wxArrayString const&) ()
   from C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\output\share\codeblocks\pl
ugins\codesnippets.dll
#14 0x094a94e3 in DropTargets::OnDataFiles(int, int, wxArrayString const&) ()
   from C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\output\share\codeblocks\pl
ugins\codesnippets.dll
#15 0x094a93c6 in DropTargets::OnData(int, int, wxDragResult) ()
   from C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\output\share\codeblocks\pl
ugins\codesnippets.dll
#16 0x6cd277b8 in wxIDropTarget::Drop ()
   from C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\output\wxmsw28u_gcc_cb.dll

#17 0x75f0ff59 in ole32!StgGetIFillLockBytesOnFile ()
   from C:\Windows\system32\ole32.dll
#18 0x765254b9 in RpcServerUnregisterIf () from C:\Windows\system32\rpcrt4.dll
#19 0x765921f7 in RPCRT4!I_RpcGetBuffer () from C:\Windows\system32\rpcrt4.dll
#20 0x75f0fe8d in ole32!StgGetIFillLockBytesOnFile ()
   from C:\Windows\system32\ole32.dll
#21 0x7659293b in RPCRT4!I_RpcGetBuffer () from C:\Windows\system32\rpcrt4.dll
#22 0x00310a00 in ?? ()
#23 0x75f1a8c5 in ole32!StgGetIFillLockBytesOnFile ()
   from C:\Windows\system32\ole32.dll
#24 0x75f1aa59 in ole32!StgGetIFillLockBytesOnFile ()
   from C:\Windows\system32\ole32.dll
#25 0x75e4624e in ole32!CoTaskMemAlloc () from C:\Windows\system32\ole32.dll
#26 0x75e4615f in ole32!CoTaskMemAlloc () from C:\Windows\system32\ole32.dll
#27 0x75e46e75 in ole32!DoDragDrop () from C:\Windows\system32\ole32.dll
#28 0x75f1a981 in ole32!StgGetIFillLockBytesOnFile ()
   from C:\Windows\system32\ole32.dll
#29 0x75f1a79b in ole32!StgGetIFillLockBytesOnFile ()
   from C:\Windows\system32\ole32.dll
#30 0x75f1ae2d in ole32!StgGetIFillLockBytesOnFile ()
   from C:\Windows\system32\ole32.dll
#31 0x75e46c4d in ole32!DoDragDrop () from C:\Windows\system32\ole32.dll
#32 0x75e46c0c in ole32!DoDragDrop () from C:\Windows\system32\ole32.dll
#33 0x75f8fd72 in USER32!GetWindowMinimizeRect ()
   from C:\Windows\system32\user32.dll
#34 0x001a080a in ?? ()
warning: (Internal error: pc 0x3ff in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x3ff in read in psymtab, but not in symtab.)

#35 0x00000400 in ?? ()
    at C:/Users/Seb/Documents/00_SDK/IDE/CODEBLOCKS/../../INCLUDE/WX/GCC_CB/incl
ude/wx/dc.h:134
warning: (Internal error: pc 0x3ff in read in psymtab, but not in symtab.)

#36 0x0000babe in ?? ()
#37 0x00319374 in ?? ()
#38 0x75f8fe4a in USER32!GetWindowMinimizeRect ()
   from C:\Windows\system32\user32.dll
#39 0x75e46b6f in ole32!DoDragDrop () from C:\Windows\system32\ole32.dll
#40 0x75f9018d in USER32!GetMonitorInfoA ()
   from C:\Windows\system32\user32.dll
#41 0x00000000 in ?? ()

I do not know if it useful for you, I will try to understand this...

Offline seb_seb0

  • Almost regular
  • **
  • Posts: 166
Re: Code Completion question
« Reply #7 on: November 26, 2010, 08:05:32 pm »
And a few minutes later, the status is:

Code
Thread 13 (Thread 4508.0xabc):
#0  0x773f8b2f in ntdll!DbgUiConvertStateChangeStructure ()
   from C:\Windows\system32\ntdll.dll
#1  0x7743c9a0 in ntdll!EtwEventEnabled () from C:\Windows\system32\ntdll.dll
#2  0x71ca35e5 in ?? ()
#3  0x00000000 in ?? ()

Thread 12 (Thread 4508.0xbb8):
#0  0x77415e74 in ntdll!LdrAccessResource ()
   from C:\Windows\system32\ntdll.dll
#1  0x774150b0 in ntdll!ZwRemoveIoCompletion ()
   from C:\Windows\system32\ntdll.dll
#2  0x75d3d11e in KERNEL32!GetQueuedCompletionStatusEx ()
   from C:\Windows\system32\kernel32.dll
#3  0x765303c8 in RPCRT4!NdrTypeFree () from C:\Windows\system32\rpcrt4.dll
#4  0x00000744 in ?? ()
#5  0x071cfed8 in ?? ()
#6  0x765304fd in RPCRT4!NdrTypeFree () from C:\Windows\system32\rpcrt4.dll
#7  0xffffffff in ?? ()
#8  0x071cff44 in ?? ()
#9  0x7653011c in RPCRT4!NdrTypeFree () from C:\Windows\system32\rpcrt4.dll
#10 0x071cff7c in ?? ()
#11 0x765300e3 in RPCRT4!NdrTypeFree () from C:\Windows\system32\rpcrt4.dll
#12 0x002c2db0 in ?? ()
#13 0x76530166 in RPCRT4!NdrTypeFree () from C:\Windows\system32\rpcrt4.dll
#14 0x002bf278 in ?? ()
#15 0x75d3d0e9 in KERNEL32!AcquireSRWLockExclusive ()
   from C:\Windows\system32\kernel32.dll
#16 0x773f19bb in ntdll!RtlInitializeNtUserPfn ()
   from C:\Windows\system32\ntdll.dll
#17 0x773f198e in ntdll!RtlInitializeNtUserPfn ()
   from C:\Windows\system32\ntdll.dll
#18 0x00000000 in ?? ()

Thread 11 (Thread 4508.0x10b0):
#0  0x77415e74 in ntdll!LdrAccessResource ()
   from C:\Windows\system32\ntdll.dll
#1  0x77415620 in ntdll!ZwWaitForSingleObject ()
   from C:\Windows\system32\ntdll.dll
#2  0x75d39884 in WaitForSingleObjectEx ()
   from C:\Windows\system32\kernel32.dll
#3  0x00000838 in ?? ()
#4  0x00000000 in ?? ()

Thread 10 (Thread 4508.0x60c):
#0  0x77415e74 in ntdll!LdrAccessResource ()
   from C:\Windows\system32\ntdll.dll
#1  0x77415620 in ntdll!ZwWaitForSingleObject ()
   from C:\Windows\system32\ntdll.dll
#2  0x75d39884 in WaitForSingleObjectEx ()
   from C:\Windows\system32\kernel32.dll
#3  0x000007f0 in ?? ()
#4  0x00000000 in ?? ()

Thread 9 (Thread 4508.0x16ec):
#0  0x77415e74 in ntdll!LdrAccessResource ()
   from C:\Windows\system32\ntdll.dll
#1  0x77415620 in ntdll!ZwWaitForSingleObject ()
   from C:\Windows\system32\ntdll.dll
#2  0x75d39884 in WaitForSingleObjectEx ()
   from C:\Windows\system32\kernel32.dll
warning: (Internal error: pc 0x227 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x227 in read in psymtab, but not in symtab.)

#3  0x00000228 in ?? ()
    at C:/Users/Seb/Documents/00_SDK/PROJECTS/CB/src/src/scriptingsettingsdlg.h:
28
warning: (Internal error: pc 0x227 in read in psymtab, but not in symtab.)

#4  0x00000000 in ?? ()

Thread 8 (Thread 4508.0x784):
#0  0x77415e74 in ntdll!LdrAccessResource ()
   from C:\Windows\system32\ntdll.dll
#1  0x77415620 in ntdll!ZwWaitForSingleObject ()
   from C:\Windows\system32\ntdll.dll
#2  0x75d39884 in WaitForSingleObjectEx ()
   from C:\Windows\system32\kernel32.dll
#3  0x00000780 in ?? ()
#4  0x00000000 in ?? ()

Thread 7 (Thread 4508.0x122c):
#0  0x77415e74 in ntdll!LdrAccessResource ()
   from C:\Windows\system32\ntdll.dll
#1  0x77415620 in ntdll!ZwWaitForSingleObject ()
   from C:\Windows\system32\ntdll.dll
#2  0x75d39884 in WaitForSingleObjectEx ()
   from C:\Windows\system32\kernel32.dll
#3  0x00000778 in ?? ()
#4  0x00000000 in ?? ()

Thread 6 (Thread 4508.0x14e0):
#0  0x77415e74 in ntdll!LdrAccessResource ()
   from C:\Windows\system32\ntdll.dll
#1  0x77415620 in ntdll!ZwWaitForSingleObject ()
   from C:\Windows\system32\ntdll.dll
#2  0x75d39884 in WaitForSingleObjectEx ()
   from C:\Windows\system32\kernel32.dll
#3  0x00000768 in ?? ()
#4  0x00000000 in ?? ()

Thread 5 (Thread 4508.0x1160):
#0  0x77415e74 in ntdll!LdrAccessResource ()
   from C:\Windows\system32\ntdll.dll
#1  0x77415620 in ntdll!ZwWaitForSingleObject ()
   from C:\Windows\system32\ntdll.dll
#2  0x75d39884 in WaitForSingleObjectEx ()
   from C:\Windows\system32\kernel32.dll
#3  0x00000770 in ?? ()
#4  0x00000000 in ?? ()

Thread 4 (Thread 4508.0x1358):
#0  0x77415e74 in ntdll!LdrAccessResource ()
   from C:\Windows\system32\ntdll.dll
#1  0x77414990 in ntdll!ZwGetContextThread ()
   from C:\Windows\system32\ntdll.dll
#2  0x75cf5b5a in KERNEL32!GetThreadIOPendingFlag ()
   from C:\Windows\system32\kernel32.dll
#3  0x004663b2 in get_thrpc ()
#4  0x004663f7 in profthr_func@4 ()
#5  0x75d3d0e9 in KERNEL32!AcquireSRWLockExclusive ()
   from C:\Windows\system32\kernel32.dll
#6  0x773f19bb in ntdll!RtlInitializeNtUserPfn ()
   from C:\Windows\system32\ntdll.dll
#7  0x773f198e in ntdll!RtlInitializeNtUserPfn ()
   from C:\Windows\system32\ntdll.dll
#8  0x00000000 in ?? ()

Thread 3 (Thread 4508.0x1430):
#0  0x77415e74 in ntdll!LdrAccessResource ()
   from C:\Windows\system32\ntdll.dll
#1  0x77415610 in ntdll!ZwWaitForMultipleObjects32 ()
   from C:\Windows\system32\ntdll.dll
#2  0x75d3a5d7 in WaitForMultipleObjectsEx ()
   from C:\Windows\system32\kernel32.dll
warning: (Internal error: pc 0x2 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x2 in read in psymtab, but not in symtab.)

#3  0x00000003 in ?? ()
    at C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\src\appglobals.cpp:63
warning: (Internal error: pc 0x2 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x0 in read in psymtab, but not in symtab.)

#4  0x75d3a6f0 in WaitForMultipleObjects ()
   from C:\Windows\system32\kernel32.dll
#5  0x60010bd0 in ?? ()
   from C:\Program Files\BitDefender\BitDefender 2011\Active Virus Control\Midas
_00069_003\midas32.dll
#6  0x6001a2b7 in midas32!MdFilePrint ()
   from C:\Program Files\BitDefender\BitDefender 2011\Active Virus Control\Midas
_00069_003\midas32.dll
#7  0x6001a35c in midas32!MdFilePrint ()
   from C:\Program Files\BitDefender\BitDefender 2011\Active Virus Control\Midas
_00069_003\midas32.dll
#8  0x773f19bb in ntdll!RtlInitializeNtUserPfn ()
   from C:\Windows\system32\ntdll.dll
#9  0x773f198e in ntdll!RtlInitializeNtUserPfn ()
   from C:\Windows\system32\ntdll.dll
#10 0x00000000 in ?? ()

Thread 2 (Thread 4508.0xfb4):
#0  0x77415e74 in ntdll!LdrAccessResource ()
   from C:\Windows\system32\ntdll.dll
#1  0x77415610 in ntdll!ZwWaitForMultipleObjects32 ()
   from C:\Windows\system32\ntdll.dll
#2  0x75d3a5d7 in WaitForMultipleObjectsEx ()
   from C:\Windows\system32\kernel32.dll
warning: (Internal error: pc 0x1 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x1 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x1 in read in psymtab, but not in symtab.)

#3  0x00000002 in ?? ()
    at C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\src\appglobals.cpp:63
warning: (Internal error: pc 0x1 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x0 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x0 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x0 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x0 in read in psymtab, but not in symtab.)

#4  0x00000001 in ?? ()
    at C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\src\appglobals.cpp:63
warning: (Internal error: pc 0x0 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x0 in read in psymtab, but not in symtab.)

#5  0x0101fed0 in ?? ()

Thread 1 (Thread 4508.0xc28):
#0  0x6cc86ace in wxListBase::Find(void const*) const ()
   from C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\output\wxmsw28u_gcc_cb.dll

#1  0x01bbfc52 in FilesList::Find (this=0x12966598, object=0x150e5bd4)
    at C:/Users/Seb/Documents/00_SDK/PROJECTS/CB/src/include/projectfile.h:188
#2  0x01a7ebae in ProjectFile::AddBuildTarget (this=0x150e5bd4,
    targetName=...)
    at C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\sdk\projectfile.cpp:83
#3  0x01a9090e in ProjectLoader::DoUnitOptions (this=0x22eb2c, parentNode=
    0x12843040, file=0x150e5bd4)
    at C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\sdk\projectloader.cpp:974
#4  0x01a90128 in ProjectLoader::DoUnits (this=0x22eb2c, parentNode=0x8028c58)
    at C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\sdk\projectloader.cpp:879
#5  0x01a8ad8f in ProjectLoader::Open (this=0x22eb2c, filename=...,
    ppExtensions=0x455f73c)
    at C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\sdk\projectloader.cpp:202
#6  0x019a6423 in cbProject::Open (this=0x455f570)
    at C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\sdk\cbproject.cpp:280
#7  0x019a3f7f in cbProject::cbProject (this=0x455f570, filename=...)
    at C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\sdk\cbproject.cpp:77
#8  0x01a9e5b1 in ProjectManager::LoadProject (this=0x61be0b0, filename=...,
    activateIt=true)
    at C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\sdk\projectmanager.cpp:776
#9  0x00436a27 in MainFrame::DoOpenProject (this=0x6115208, filename=...,
    addToHistory=true)
    at C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\src\main.cpp:1697
#10 0x004364eb in MainFrame::OpenGeneric (this=0x6115208, filename=...,
    addToHistory=true)
    at C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\src\main.cpp:1646
#11 0x0043e91d in MainFrame::OnDropFiles (this=0x6115208, files=...)
    at C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\src\main.cpp:2550
#12 0x00478780 in wxMyFileDropTarget::OnDropFiles (this=0x58646a0, x=1, y=1,
    filenames=...)
    at C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\src\main.cpp:71
#13 0x094a8692 in CodeSnippets::OnDropFiles(int, int, wxArrayString const&) ()
   from C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\output\share\codeblocks\pl
ugins\codesnippets.dll
#14 0x094a94e3 in DropTargets::OnDataFiles(int, int, wxArrayString const&) ()
   from C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\output\share\codeblocks\pl
ugins\codesnippets.dll
#15 0x094a93c6 in DropTargets::OnData(int, int, wxDragResult) ()
   from C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\output\share\codeblocks\pl
ugins\codesnippets.dll
#16 0x6cd277b8 in wxIDropTarget::Drop ()
   from C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\output\wxmsw28u_gcc_cb.dll

#17 0x75f0ff59 in ole32!StgGetIFillLockBytesOnFile ()
   from C:\Windows\system32\ole32.dll
#18 0x765254b9 in RpcServerUnregisterIf () from C:\Windows\system32\rpcrt4.dll
#19 0x765921f7 in RPCRT4!I_RpcGetBuffer () from C:\Windows\system32\rpcrt4.dll
#20 0x75f0fe8d in ole32!StgGetIFillLockBytesOnFile ()
   from C:\Windows\system32\ole32.dll
#21 0x7659293b in RPCRT4!I_RpcGetBuffer () from C:\Windows\system32\rpcrt4.dll
#22 0x00310a00 in ?? ()
#23 0x75f1a8c5 in ole32!StgGetIFillLockBytesOnFile ()
   from C:\Windows\system32\ole32.dll
#24 0x75f1aa59 in ole32!StgGetIFillLockBytesOnFile ()
   from C:\Windows\system32\ole32.dll
#25 0x75e4624e in ole32!CoTaskMemAlloc () from C:\Windows\system32\ole32.dll
#26 0x75e4615f in ole32!CoTaskMemAlloc () from C:\Windows\system32\ole32.dll
#27 0x75e46e75 in ole32!DoDragDrop () from C:\Windows\system32\ole32.dll
#28 0x75f1a981 in ole32!StgGetIFillLockBytesOnFile ()
   from C:\Windows\system32\ole32.dll
#29 0x75f1a79b in ole32!StgGetIFillLockBytesOnFile ()
   from C:\Windows\system32\ole32.dll
#30 0x75f1ae2d in ole32!StgGetIFillLockBytesOnFile ()
   from C:\Windows\system32\ole32.dll
#31 0x75e46c4d in ole32!DoDragDrop () from C:\Windows\system32\ole32.dll
#32 0x75e46c0c in ole32!DoDragDrop () from C:\Windows\system32\ole32.dll
#33 0x75f8fd72 in USER32!GetWindowMinimizeRect ()
   from C:\Windows\system32\user32.dll
#34 0x001a080a in ?? ()
warning: (Internal error: pc 0x3ff in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x3ff in read in psymtab, but not in symtab.)

#35 0x00000400 in ?? ()
    at C:/Users/Seb/Documents/00_SDK/IDE/CODEBLOCKS/../../INCLUDE/WX/GCC_CB/incl
ude/wx/dc.h:134
warning: (Internal error: pc 0x3ff in read in psymtab, but not in symtab.)

#36 0x0000babe in ?? ()
#37 0x00319374 in ?? ()
#38 0x75f8fe4a in USER32!GetWindowMinimizeRect ()
   from C:\Windows\system32\user32.dll
#39 0x75e46b6f in ole32!DoDragDrop () from C:\Windows\system32\ole32.dll
#40 0x75f9018d in USER32!GetMonitorInfoA ()
   from C:\Windows\system32\user32.dll
#41 0x00000000 in ?? ()

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Code Completion question
« Reply #8 on: November 26, 2010, 08:12:50 pm »
Can you try with this one
C:\Program Files\BitDefender\BitDefender 2011\Active Virus Control\Midas_00069_003\midas32.dll

disabled?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline seb_seb0

  • Almost regular
  • **
  • Posts: 166
Re: Code Completion question
« Reply #9 on: November 26, 2010, 08:55:31 pm »
I have tried to disactivate the Antivirus (not so easy btw - it keeps running some processes).
Here is the new backtrace:

Code
Attaching to program `C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\output/codeblocks.exe', process 5632
[New Thread 5632.0x490]
[New Thread 5632.0x11fc]
[New Thread 5632.0x15b0]
[New Thread 5632.0x1370]
[New Thread 5632.0x11f0]
[New Thread 5632.0xab4]
[New Thread 5632.0x173c]
[New Thread 5632.0x139c]
[New Thread 5632.0x1780]
[New Thread 5632.0x130c]
[New Thread 5632.0x164c]
[New Thread 5632.0x12f8]
[Switching to Thread 5632.0x12f8]
(gdb) bt
#0  0x773f8b2f in ntdll!DbgUiConvertStateChangeStructure () from C:\Windows\system32\ntdll.dll
#1  0x7743c9a0 in ntdll!EtwEventEnabled () from C:\Windows\system32\ntdll.dll
#2  0x7a715512 in ?? ()
#3  0x00000000 in ?? ()
(gdb) thread all apply bt
No symbol "all" in current context.
(gdb) thread apply all bt

Thread 12 (Thread 5632.0x12f8):
#0  0x773f8b2f in ntdll!DbgUiConvertStateChangeStructure () from C:\Windows\system32\ntdll.dll
#1  0x7743c9a0 in ntdll!EtwEventEnabled () from C:\Windows\system32\ntdll.dll
#2  0x7a715512 in ?? ()
#3  0x00000000 in ?? ()

Thread 11 (Thread 5632.0x164c):
#0  0x77415e74 in ntdll!LdrAccessResource () from C:\Windows\system32\ntdll.dll
#1  0x77415620 in ntdll!ZwWaitForSingleObject () from C:\Windows\system32\ntdll.dll
#2  0x75d39884 in WaitForSingleObjectEx () from C:\Windows\system32\kernel32.dll
warning: (Internal error: pc 0x19b in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x19b in read in psymtab, but not in symtab.)

#3  0x0000019c in ?? () at C:/Users/Seb/Documents/00_SDK/PROJECTS/CB/src/src/scriptingsettingsdlg.h:27
warning: (Internal error: pc 0x19b in read in psymtab, but not in symtab.)

#4  0x00000000 in ?? ()

Thread 10 (Thread 5632.0x130c):
#0  0x77415e74 in ntdll!LdrAccessResource () from C:\Windows\system32\ntdll.dll
#1  0x77415620 in ntdll!ZwWaitForSingleObject () from C:\Windows\system32\ntdll.dll
#2  0x75d39884 in WaitForSingleObjectEx () from C:\Windows\system32\kernel32.dll
warning: (Internal error: pc 0x1fb in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x1fb in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x1fb in read in psymtab, but not in symtab.)

#3  0x000001fc in ?? () at C:/Users/Seb/Documents/00_SDK/PROJECTS/CB/src/src/scriptingsettingsdlg.h:27
warning: (Internal error: pc 0x1fb in read in psymtab, but not in symtab.)

#4  0x00000000 in ?? ()

Thread 9 (Thread 5632.0x1780):
#0  0x77415e74 in ntdll!LdrAccessResource () from C:\Windows\system32\ntdll.dll
#1  0x77414990 in ntdll!ZwGetContextThread () from C:\Windows\system32\ntdll.dll
#2  0x75cf5b5a in KERNEL32!GetThreadIOPendingFlag () from C:\Windows\system32\kernel32.dll
#3  0x65f141c2 in get_thrpc ()
   from C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\output\share\codeblocks\plugins\codecompletion.dll
#4  0x65f14207 in profthr_func@4 ()
   from C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\output\share\codeblocks\plugins\codecompletion.dll
#5  0x75d3d0e9 in KERNEL32!AcquireSRWLockExclusive () from C:\Windows\system32\kernel32.dll
#6  0x773f19bb in ntdll!RtlInitializeNtUserPfn () from C:\Windows\system32\ntdll.dll
#7  0x773f198e in ntdll!RtlInitializeNtUserPfn () from C:\Windows\system32\ntdll.dll
#8  0x00000000 in ?? ()

Thread 8 (Thread 5632.0x139c):
#0  0x77415e74 in ntdll!LdrAccessResource () from C:\Windows\system32\ntdll.dll
#1  0x77415620 in ntdll!ZwWaitForSingleObject () from C:\Windows\system32\ntdll.dll
#2  0x75d39884 in WaitForSingleObjectEx () from C:\Windows\system32\kernel32.dll
warning: (Internal error: pc 0x18f in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x18f in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x18f in read in psymtab, but not in symtab.)

#3  0x00000190 in ?? () at C:/Users/Seb/Documents/00_SDK/PROJECTS/CB/src/src/scriptingsettingsdlg.h:27
warning: (Internal error: pc 0x18f in read in psymtab, but not in symtab.)

#4  0x00000000 in ?? ()

Thread 7 (Thread 5632.0x173c):
#0  0x77415e74 in ntdll!LdrAccessResource () from C:\Windows\system32\ntdll.dll
#1  0x77415620 in ntdll!ZwWaitForSingleObject () from C:\Windows\system32\ntdll.dll
#2  0x75d39884 in WaitForSingleObjectEx () from C:\Windows\system32\kernel32.dll
warning: (Internal error: pc 0x187 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x187 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x187 in read in psymtab, but not in symtab.)

#3  0x00000188 in ?? () at C:/Users/Seb/Documents/00_SDK/PROJECTS/CB/src/src/scriptingsettingsdlg.h:26
warning: (Internal error: pc 0x187 in read in psymtab, but not in symtab.)

#4  0x00000000 in ?? ()

Thread 6 (Thread 5632.0xab4):
#0  0x77415e74 in ntdll!LdrAccessResource () from C:\Windows\system32\ntdll.dll
#1  0x77415620 in ntdll!ZwWaitForSingleObject () from C:\Windows\system32\ntdll.dll
#2  0x75d39884 in WaitForSingleObjectEx () from C:\Windows\system32\kernel32.dll
warning: (Internal error: pc 0x17b in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x17b in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x17b in read in psymtab, but not in symtab.)

#3  0x0000017c in ?? () at C:/Users/Seb/Documents/00_SDK/PROJECTS/CB/src/src/scriptingsettingsdlg.h:26
warning: (Internal error: pc 0x17b in read in psymtab, but not in symtab.)

#4  0x00000000 in ?? ()

Thread 5 (Thread 5632.0x11f0):
#0  0x77415e74 in ntdll!LdrAccessResource () from C:\Windows\system32\ntdll.dll
#1  0x77415620 in ntdll!ZwWaitForSingleObject () from C:\Windows\system32\ntdll.dll
#2  0x75d39884 in WaitForSingleObjectEx () from C:\Windows\system32\kernel32.dll
warning: (Internal error: pc 0x17f in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x17f in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x17f in read in psymtab, but not in symtab.)

#3  0x00000180 in ?? () at C:/Users/Seb/Documents/00_SDK/PROJECTS/CB/src/src/scriptingsettingsdlg.h:26
warning: (Internal error: pc 0x17f in read in psymtab, but not in symtab.)

#4  0x00000000 in ?? ()

Thread 4 (Thread 5632.0x1370):
#0  0x77417927 in ntdll!RtlEqualLuid () from C:\Windows\system32\ntdll.dll
#1  0x77417160 in ntdll!RtlEqualLuid () from C:\Windows\system32\ntdll.dll
#2  0x77416e0c in ntdll!RtlEqualLuid () from C:\Windows\system32\ntdll.dll
#3  0x76527122 in RPCRT4!I_RpcServerIsClientDisconnected () from C:\Windows\system32\rpcrt4.dll
#4  0x76591527 in RPCRT4!I_RpcGetBuffer () from C:\Windows\system32\rpcrt4.dll
#5  0x20fbf01d in ?? ()
#6  0x75f1f930 in ole32!StgGetIFillLockBytesOnFile () from C:\Windows\system32\ole32.dll
#7  0x75e3369b in ole32!CoRevokeMallocSpy () from C:\Windows\system32\ole32.dll
#8  0x75e33622 in ole32!CoRevokeMallocSpy () from C:\Windows\system32\ole32.dll
#9  0x75e356c1 in ole32!CoUninitialize () from C:\Windows\system32\ole32.dll
warning: (Internal error: pc 0x0 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x0 in read in psymtab, but not in symtab.)

#10 0x00000001 in ?? () at C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\src\appglobals.cpp:63
warning: (Internal error: pc 0x0 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x0 in read in psymtab, but not in symtab.)

#11 0x0479fef8 in ?? ()
#12 0xef24195c in ?? ()
#13 0x69c3779e in ?? ()
#14 0x367c8409 in ?? ()
#15 0x0569a6af in ?? ()
Cannot access memory at address 0xd826ff26

Thread 3 (Thread 5632.0x15b0):
#0  0x77415e74 in ntdll!LdrAccessResource () from C:\Windows\system32\ntdll.dll
#1  0x774150b0 in ntdll!ZwRemoveIoCompletion () from C:\Windows\system32\ntdll.dll
#2  0x75d3d11e in KERNEL32!GetQueuedCompletionStatusEx () from C:\Windows\system32\kernel32.dll
#3  0x765303c8 in RPCRT4!NdrTypeFree () from C:\Windows\system32\rpcrt4.dll
warning: (Internal error: pc 0x143 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x143 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x143 in read in psymtab, but not in symtab.)

#4  0x00000144 in ?? () at C:/Users/Seb/Documents/00_SDK/PROJECTS/CB/src/src/scriptingsettingsdlg.h:26
warning: (Internal error: pc 0x143 in read in psymtab, but not in symtab.)

#5  0x0459fed8 in ?? ()
#6  0x765304fd in RPCRT4!NdrTypeFree () from C:\Windows\system32\rpcrt4.dll
#7  0x00007530 in ?? ()
#8  0x0459ff44 in ?? ()
#9  0x7653011c in RPCRT4!NdrTypeFree () from C:\Windows\system32\rpcrt4.dll
#10 0x0459ff7c in ?? ()
#11 0x765300e3 in RPCRT4!NdrTypeFree () from C:\Windows\system32\rpcrt4.dll
#12 0x00321cc8 in ?? ()
#13 0x76530166 in RPCRT4!NdrTypeFree () from C:\Windows\system32\rpcrt4.dll
#14 0x0031e450 in ?? ()
#15 0x75d3d0e9 in KERNEL32!AcquireSRWLockExclusive () from C:\Windows\system32\kernel32.dll
#16 0x773f19bb in ntdll!RtlInitializeNtUserPfn () from C:\Windows\system32\ntdll.dll
#17 0x773f198e in ntdll!RtlInitializeNtUserPfn () from C:\Windows\system32\ntdll.dll
#18 0x00000000 in ?? ()

Thread 2 (Thread 5632.0x11fc):
#0  0x77415e74 in ntdll!LdrAccessResource () from C:\Windows\system32\ntdll.dll
#1  0x77414990 in ntdll!ZwGetContextThread () from C:\Windows\system32\ntdll.dll
#2  0x75cf5b5a in KERNEL32!GetThreadIOPendingFlag () from C:\Windows\system32\kernel32.dll
#3  0x004663b2 in get_thrpc ()
#4  0x004663f7 in profthr_func@4 ()
#5  0x75d3d0e9 in KERNEL32!AcquireSRWLockExclusive () from C:\Windows\system32\kernel32.dll
#6  0x773f19bb in ntdll!RtlInitializeNtUserPfn () from C:\Windows\system32\ntdll.dll
#7  0x773f198e in ntdll!RtlInitializeNtUserPfn () from C:\Windows\system32\ntdll.dll
#8  0x00000000 in ?? ()

Thread 1 (Thread 5632.0x490):
#0  0x6cc86ace in wxListBase::Find(void const*) const ()
   from C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\output\wxmsw28u_gcc_cb.dll
#1  0x619ffc52 in FilesList::Find (this=0xe735324, object=0xea49974)
    at C:/Users/Seb/Documents/00_SDK/PROJECTS/CB/src/include/projectfile.h:188
#2  0x618bebae in ProjectFile::AddBuildTarget (this=0xea49974, targetName=...)
    at C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\sdk\projectfile.cpp:83
#3  0x618d090e in ProjectLoader::DoUnitOptions (this=0x22eb2c, parentNode=0xe522f28, file=0xea49974)
    at C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\sdk\projectloader.cpp:974
#4  0x618d0128 in ProjectLoader::DoUnits (this=0x22eb2c, parentNode=0x55b7888)
    at C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\sdk\projectloader.cpp:879
#5  0x618cad8f in ProjectLoader::Open (this=0x22eb2c, filename=..., ppExtensions=0x2ead944)
    at C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\sdk\projectloader.cpp:202
#6  0x617e6423 in cbProject::Open (this=0x2ead778)
    at C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\sdk\cbproject.cpp:280
#7  0x617e3f7f in cbProject::cbProject (this=0x2ead778, filename=...)
    at C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\sdk\cbproject.cpp:77
#8  0x618de5b1 in ProjectManager::LoadProject (this=0x36bd180, filename=..., activateIt=true)
    at C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\sdk\projectmanager.cpp:776
#9  0x00436a27 in MainFrame::DoOpenProject (this=0x2e5a150, filename=..., addToHistory=true)
    at C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\src\main.cpp:1697
#10 0x004364eb in MainFrame::OpenGeneric (this=0x2e5a150, filename=..., addToHistory=true)
    at C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\src\main.cpp:1646
#11 0x0043e91d in MainFrame::OnDropFiles (this=0x2e5a150, files=...)
    at C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\src\main.cpp:2550
#12 0x00478780 in wxMyFileDropTarget::OnDropFiles (this=0x2eb2ea0, x=1, y=1, filenames=...)
    at C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\src\main.cpp:71
#13 0x67f38692 in CodeSnippets::OnDropFiles(int, int, wxArrayString const&) ()
   from C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\output\share\codeblocks\plugins\codesnippets.dll
#14 0x67f394e3 in DropTargets::OnDataFiles(int, int, wxArrayString const&) ()
   from C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\output\share\codeblocks\plugins\codesnippets.dll
#15 0x67f393c6 in DropTargets::OnData(int, int, wxDragResult) ()
   from C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\output\share\codeblocks\plugins\codesnippets.dll
#16 0x6cd277b8 in wxIDropTarget::Drop () from C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\output\wxmsw28u_gcc_cb.dll
#17 0x75f0ff59 in ole32!StgGetIFillLockBytesOnFile () from C:\Windows\system32\ole32.dll
#18 0x765254b9 in RpcServerUnregisterIf () from C:\Windows\system32\rpcrt4.dll
#19 0x765921f7 in RPCRT4!I_RpcGetBuffer () from C:\Windows\system32\rpcrt4.dll
#20 0x75f0fe8d in ole32!StgGetIFillLockBytesOnFile () from C:\Windows\system32\ole32.dll
#21 0x7659293b in RPCRT4!I_RpcGetBuffer () from C:\Windows\system32\rpcrt4.dll
#22 0x0036efb8 in ?? ()
#23 0x75f1a8c5 in ole32!StgGetIFillLockBytesOnFile () from C:\Windows\system32\ole32.dll
#24 0x75f1aa59 in ole32!StgGetIFillLockBytesOnFile () from C:\Windows\system32\ole32.dll
#25 0x75e4624e in ole32!CoTaskMemAlloc () from C:\Windows\system32\ole32.dll
#26 0x75e4615f in ole32!CoTaskMemAlloc () from C:\Windows\system32\ole32.dll
#27 0x75e46e75 in ole32!DoDragDrop () from C:\Windows\system32\ole32.dll
#28 0x75f1a981 in ole32!StgGetIFillLockBytesOnFile () from C:\Windows\system32\ole32.dll
#29 0x75f1a79b in ole32!StgGetIFillLockBytesOnFile () from C:\Windows\system32\ole32.dll
#30 0x75f1ae2d in ole32!StgGetIFillLockBytesOnFile () from C:\Windows\system32\ole32.dll
#31 0x75e46c4d in ole32!DoDragDrop () from C:\Windows\system32\ole32.dll
#32 0x75e46c0c in ole32!DoDragDrop () from C:\Windows\system32\ole32.dll
#33 0x75f8fd72 in USER32!GetWindowMinimizeRect () from C:\Windows\system32\user32.dll
#34 0x00410558 in CompilerSettingsDlg::CompilerSettingsDlg (this=0x75e46b6f, parent=0x410558)
    at C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\src\compilersettingsdlg.cpp:104
#35 0x75f8fe4a in USER32!GetWindowMinimizeRect () from C:\Windows\system32\user32.dll
#36 0x75e46b6f in ole32!DoDragDrop () from C:\Windows\system32\ole32.dll
#37 0x75f9018d in USER32!GetMonitorInfoA () from C:\Windows\system32\user32.dll
#38 0x75f9022b in USER32!DisplayExitWindowsWarnings () from C:\Windows\system32\user32.dll
#39 0x75f851f5 in USER32!IsWindowInDestroy () from C:\Windows\system32\user32.dll
#40 0x0022fb84 in ?? ()
#41 0x6cd1bbff in wxEventLoop::PreProcessMessage(tagMSG*) ()
   from C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\output\wxmsw28u_gcc_cb.dll
#42 0x6cd1bcf9 in wxEventLoop::ProcessMessage(tagMSG*) ()
   from C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\output\wxmsw28u_gcc_cb.dll
#43 0x6cd1b9e6 in wxEventLoop::Dispatch() ()
   from C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\output\wxmsw28u_gcc_cb.dll
#44 0x6cdd4b27 in wxEventLoopManual::Run() ()
   from C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\output\wxmsw28u_gcc_cb.dll
#45 0x6cdabf29 in wxAppBase::MainLoop() ()
   from C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\output\wxmsw28u_gcc_cb.dll
#46 0x00405c57 in CodeBlocksApp::OnRun (this=0x1507bb0)
    at C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\src\app.cpp:780
#47 0x6cc7bc3e in wxEntryReal(int&, wchar_t**) ()
   from C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\output\wxmsw28u_gcc_cb.dll
#48 0x6cce543f in wxEntry(HINSTANCE__*, HINSTANCE__*, char*, int) ()
   from C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\output\wxmsw28u_gcc_cb.dll
#49 0x00401dd6 in WinMain (hInstance=0x400000, hPrevInstance=0x0, lpCmdLine=0x2e22af "--debug-log", nCmdShow=10)
    at C:\Users\Seb\Documents\00_SDK\PROJECTS\CB\src\src\app.cpp:260
#50 0x0046cde6 in main ()
(gdb)

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6034
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Code Completion question
« Reply #10 on: November 27, 2010, 01:18:31 pm »
I can't find any information of the cc from the call stack dump.
So I try to download the source code, oh my god, it was 100M+..... :shock:
Edit: So I don't want to try it right now.
from:
http://www.opencascade.org/getocc/download/loadocc/
« Last Edit: November 27, 2010, 01:24:09 pm by ollydbg »
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6034
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Code Completion question
« Reply #11 on: November 27, 2010, 01:31:10 pm »
by the way, can you just disable the macro expansion option in :
edit->codecompletion->c/c++ parser panel->parse complex macros.

and see it get loop again.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.