News:

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

Main Menu

13.12 Commandline build instant crash

Started by Ghorgoth, January 08, 2014, 02:57:49 PM

Previous topic - Next topic

Ghorgoth

I am using CentOS 5.6

while doing:
"codeblocks --rebuild --target="linux64" ~/my_project/project.workspace" , i get an instant crash that leads to a crash debug window report.

Am i doing something wrong, is there a work around ?

Thanks

MortenMacFly

Quote from: Ghorgoth on January 08, 2014, 02:57:49 PM
Am i doing something wrong, is there a work around ?
The command line looks OK - please attach the crash report. It could be a wrong configuration of the batch build though.
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]

Ghorgoth

#2
The virtual machine i was working on this is broken,
i do it now on a Centos6 6.4 and i do not get the same error report, but i get the following error window (attached)

It says "nothing to be done" even if i give --rebuild fkag, then crashes.

Thanks,

ps : when migrating to the new codeblocks release, i removed the old configuration to prevent any configuration issue.

The last line of the screenshot has --target=linux64 but i also tried --target="linux64" which is of course a correct target name.

oBFusCATed

Hm, how have you installed C::B?
Does it crash the same way as with a simple console hello world 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!]

Ghorgoth

#4
I installed it using the official Centos6 packages downloaded on the website, then installed them using Centos package manager.
No i haven't tried with a simple project, i'll check.

edit - Well, it seems that i was mispelling my target name and the crash was due to that. If i type the correct target name it does not crash anymore ;)


oBFusCATed

OK, I was able to reproduce this crash now:)
(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!]

burgerbecky

I've gotten this crash when I invoke --build. To duplicate, just build a project where it's already built (In my case, I'm running the windows version) and after the project reports everything is build, it crashes on CodeBlocks exit. If I add --no-batch-window-close, it will build fine and leave the message dialog, which I can close manually without a crash. However, for batch file based builds, this isn't a good solution.

oBFusCATed

@devs: Can someone familiar with batch build look at it. I can but it would take me a lot of time, which I don't have at the moment. :(
(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: burgerbecky on January 14, 2014, 07:17:57 AM
I've gotten this crash when I invoke --build. To duplicate, just build a project where it's already built (In my case, I'm running the windows version) and after the project reports everything is build, it crashes on CodeBlocks exit.
I cannot reproduce.
I've taken the C::B project, running the batch build as:
codeblocks.exe --target=All --build "C:\Devel\CodeBlocks\src\CodeBlocks.cbp"

-> works just fine (ran in 5 times!). Adding --batch-build-notify or --no-batch-window-close in any combination works well, too?!
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]

Ghorgoth

Did you try specifying a wrong/mispelled target?

MortenMacFly

Quote from: Ghorgoth on January 16, 2014, 09:42:17 AM
Did you try specifying a wrong/mispelled target?
Nope, forgotten it. ::) I've done now and was able to reproduce the crash.

A fix is committed to SVN head. If you find the time to compile C::B yourself, feel free to try.

Thanks for reporting!
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]

Ghorgoth