Author Topic: Crash on source formatter plugin (CB 13.12 - linux 64bits) - suspicious bug  (Read 4677 times)

Offline DaviesX

  • Multiple posting newcomer
  • *
  • Posts: 10
Hello, Codeblocks crashes while I use the source formatter on this file under Xubuntu 64 bits. However, the version is a little outdated. Also, the formatter run perfectly with Windows 32 bits version. I wonder if it reproduces the crash on the development nightly build. And the crash seems independent of the configuration (although I put it in the attachment as well). Would anyone probably test this file(or perhaps with my config) on your machine with the source formatter to see if there is any issue? I don't find anything particularly different about this file. It's just weird. Thanks in advance.

notes: I have searched around the bug tickets already and have not seen anything related to the crash.

Offline DaviesX

  • Multiple posting newcomer
  • *
  • Posts: 10
Ah, I forgot to attach files.

Offline DaviesX

  • Multiple posting newcomer
  • *
  • Posts: 10
Ok, the problem has to deal with that fancy big O notation  :( as seen in the attachment (codeblocks editor vs. gedit). As I removed those characters away, everything works great. Is the encoding doesn't go well or something else? cause it displays correctly on Windows.

Offline DaviesX

  • Multiple posting newcomer
  • *
  • Posts: 10
uhm...This time is for real :o. It's still the source formatter, crashed on this file. Both Windows 10 and Xubuntu crashes on the same assertion:
codeblocks: astyle/ASFormatter.cpp:6242: bool astyle::ASFormatter::isArrayOperator() const: Assertion `currentChar == '*' || currentChar == '&'' failed.

Please take a look at it.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Can you try to reproduce the problem with the latest night build?
The code in trunk is totally different, so your problem might have been fixed.

FYI: This source file is part of the astyle project.
(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 MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Can you try to reproduce the problem with the latest night build?
Works fine for me on Windows with recent nightly/self-build. I think it was fixed already a long time ago...
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline DaviesX

  • Multiple posting newcomer
  • *
  • Posts: 10
Alright, that's nice. Hopefully the new official version is coming soon.