News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Crash on source formatter plugin (CB 13.12 - linux 64bits) - suspicious bug

Started by DaviesX, October 04, 2015, 01:47:33 AM

Previous topic - Next topic

DaviesX

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.

DaviesX


DaviesX

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.

DaviesX

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.

oBFusCATed

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!]

MortenMacFly

Quote from: oBFusCATed on October 04, 2015, 12:16:02 PM
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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

DaviesX

Alright, that's nice. Hopefully the new official version is coming soon.