Menu

#86 Error on rendering highlighted characters

Next_Nightly
invalid
nobody
Bug_Report
2017-10-28
2014-11-03
No

Typing the codes in the picture will make C::B crash. Some other codes may also cause the same problem.

Environment:    Windows 8.1
Code::Blocks:   r10020 from svn
Compiler:       MinGW-w64 x86_64-4.9.1-release-posix-seh-rt_v3-rev3 and TDM-GCC x86_64 4.7.1
Boost:          1.56
wxWidgets:      3.0.2
FortranProject: 1.2 from svn

PS: the code:

#include<stdlib.h>
#include<iostream>
using namespace std;

void plus()
{

}
int main()
{
    plus(
}
1 Attachments

Discussion

  • ollydbg

    ollydbg - 2014-11-03

    It looks like you build C::B against wx 3.0.2? Can you try wx2.8.12, as I know, C::B svn build against wx 3.x is not stable yet.

     
    • Frederick Zhang

      Frederick Zhang - 2014-11-03

      Ok, but which project should I use? There's no "CodeBlocks_64.cbp"

       
  • ollydbg

    ollydbg - 2014-11-03

    Oh, sorry, I remember that under Windows, C::B link against 64bit wx2.8.12 is also not quite stable. So, there is not such file, currently, fixing the crash problem as you described is the right thing we should do.

     
  • ollydbg

    ollydbg - 2014-11-30

    Can you try to disable the Codecompletion plugin, and see whether this bug could gone, thanks.

     
    • Frederick Zhang

      Frederick Zhang - 2014-11-30

      Yes, it's gone with the code completion disabled.

       
  • ollydbg

    ollydbg - 2014-11-30

    Can you run C::B under debugger, and see where the crash come from? You can debug C::B under C::B.

     
    • Frederick Zhang

      Frederick Zhang - 2014-11-30

      Here's the screenshot and the debugger log.

      Starting debugger: D:\TDM_GCC_64\bin\gdb.exe -nx -fullname  -quiet  -args D:/CodeBlocks_Self-build/codeblocks-code-10020-trunk/src/devel30/codeblocks.exe
      done
      Registered new type: wxString
      Registered new type: STL String
      Registered new type: STL Vector
      Setting breakpoints
      Debugger name and version: GNU gdb (GDB) 7.5
      Child process PID: 5692
      Program received signal SIGTRAP, Trace/breakpoint trap.
      In KERNELBASE!DebugBreak () (C:\Windows\system32\KernelBase.dll)
      Continuing...
      Program received signal SIGTRAP, Trace/breakpoint trap.
      In KERNELBASE!DebugBreak () (C:\Windows\system32\KernelBase.dll)
      Continuing...
      Trying to pause the running process...
      [Inferior 1 (process 5692) exited normally]
      Debugger finished with status 0
      
       
      • ollydbg

        ollydbg - 2014-11-30

        OK, what is the crash backtrace?

         
        • Frederick Zhang

          Frederick Zhang - 2014-11-30

          is this what you want? sorry that I'm not good at C/C++

          In KERNELBASE!DebugBreak () (C:\Windows\system32\KernelBase.dll)
          #1  0x0000000001e4dad5 in __fu314_wxTrapInAssert () at D:/CodeBlocks_Self-build/wxWidgets-3.0.2/include/wx/strvararg.h:456
          D:\CodeBlocks_Self-build\wxWidgets-3.0.2\include\wx\strvararg.h:456:19375:beg:0x1e4dad5
          At D:\CodeBlocks_Self-build\wxWidgets-3.0.2\include\wx\strvararg.h:456
          
           
          • ollydbg

            ollydbg - 2014-11-30

            Thanks. Backtrace under GDB means the call stack. I just want to see what is the call stack when this crash happens.

             
            • Frederick Zhang

              Frederick Zhang - 2014-11-30
              #1 6A08BB3A wxDefaultAssertHandler(wxString const&, int, wxString const&, wxString const&, wxString const&) () (D:\CodeBlocks_Self-build\codeblocks-code-10020-trunk\src\devel30_64\wxmsw30u_gcc_custom.dll:??)
              #2 6B082824 wxVariant wxAny::As<wxVariant>(wxVariant*) const::__FUNCTION__() (D:\CodeBlocks_Self-build\codeblocks-code-10020-trunk\src\devel30_64\wxmsw30u_gcc_custom.dll:??)
              #3 FFFFFFFF ?? () (??:??)
              #4 6B259BC0 guard variable for wxGet_wxConvLibcPtr()::wxConvLibcObj() (D:\CodeBlocks_Self-build\codeblocks-code-10020-trunk\src\devel30_64\wxmsw30u_gcc_custom.dll:??)
              #5 ??   ?? () (??:??)
              
               
  • ollydbg

    ollydbg - 2014-11-30
    • labels: --> CodeCompletion
     
  • Teodor Petrov

    Teodor Petrov - 2014-11-30

    This gives no info. Can you go to the Settings -> Global variables -> cb_release_type and set it to "-g -O0", then rebuild and retest?

     
    • Frederick Zhang

      Frederick Zhang - 2014-12-03

      Call Stack

      #0 FFFFFFFF KERNELBASE!DebugBreak() (C:\Windows\system32\KernelBase.dll:??)
      #1 0204DAD5 __fu314_wxTrapInAssert() (D:/CodeBlocks_Self-build/wxWidgets-3.0.2/include/wx/strvararg.h:456)
      #2 02063AC6 wxArgNormalizerWchar<unsigned long long>::wxArgNormalizerWchar(this=0x23c5d0, value=2, fmt=0x23c950, index=2) (D:/CodeBlocks_Self-build/wxWidgets-3.0.2/include/wx/strvararg.h:476)
      #3 020F7DD2 wxString::Format<long long, unsigned long long>(f1=..., a1=1, a2=2) (D:/CodeBlocks_Self-build/wxWidgets-3.0.2/include/wx/string.h:2323)
      #4 ??   ?? () (??:??)
      

      Debug log

      Registered new type: wxString
      Registered new type: STL String
      Registered new type: STL Vector
      Setting breakpoints
      Debugger name and version: GNU gdb (GDB) 7.5
      Child process PID: 3268
      Program received signal SIGTRAP, Trace/breakpoint trap.
      In KERNELBASE!DebugBreak () (C:\Windows\system32\KernelBase.dll)
      Continuing...
      Program received signal SIGTRAP, Trace/breakpoint trap.
      In KERNELBASE!DebugBreak () (C:\Windows\system32\KernelBase.dll)
      Continuing...
      Program received signal SIGTRAP, Trace/breakpoint trap.
      In KERNELBASE!DebugBreak () (C:\Windows\system32\KernelBase.dll)
      #1  0x000000000204dad5 in __fu314_wxTrapInAssert () at D:/CodeBlocks_Self-build/wxWidgets-3.0.2/include/wx/strvararg.h:456
      D:\CodeBlocks_Self-build\wxWidgets-3.0.2\include\wx\strvararg.h:456:19375:beg:0x204dad5
      At D:\CodeBlocks_Self-build\wxWidgets-3.0.2\include\wx\strvararg.h:456
      #1  0x000000000204dad5 in __fu314_wxTrapInAssert () at D:/CodeBlocks_Self-build/wxWidgets-3.0.2/include/wx/strvararg.h:456
      D:\CodeBlocks_Self-build\wxWidgets-3.0.2\include\wx\strvararg.h:456:19375:beg:0x204dad5
      Continuing...
      Program received signal SIGTRAP, Trace/breakpoint trap.
      In KERNELBASE!DebugBreak () (C:\Windows\system32\KernelBase.dll)
      #1  0x000000000204da25 in __fu312_wxTrapInAssert () at D:/CodeBlocks_Self-build/wxWidgets-3.0.2/include/wx/strvararg.h:456
      D:\CodeBlocks_Self-build\wxWidgets-3.0.2\include\wx\strvararg.h:456:19375:beg:0x204da25
      At D:\CodeBlocks_Self-build\wxWidgets-3.0.2\include\wx\strvararg.h:456
      #1  0x000000000204da25 in __fu312_wxTrapInAssert () at D:/CodeBlocks_Self-build/wxWidgets-3.0.2/include/wx/strvararg.h:456
      D:\CodeBlocks_Self-build\wxWidgets-3.0.2\include\wx\strvararg.h:456:19375:beg:0x204da25
      Continuing...
      [Inferior 1 (process 3268) exited normally]
      Debugger finished with status 0
      
       
  • Teodor Petrov

    Teodor Petrov - 2014-12-03

    Still not helpful. There is no entry coming from cb's sources.

     
  • Morten MacFly

    Morten MacFly - 2015-02-07
    • Type: --> Undefined
     
  • Teodor Petrov

    Teodor Petrov - 2016-01-19
    • labels: CodeCompletion --> CodeCompletion, wx30
    • Type: Undefined --> Bug_Report
     
  • Teodor Petrov

    Teodor Petrov - 2016-01-19

    Does this still happen with trunk?

     
  • Teodor Petrov

    Teodor Petrov - 2017-10-28
    • status: open --> invalid
     
  • Teodor Petrov

    Teodor Petrov - 2017-10-28

    Closing due to inactivity.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.