Code::Blocks Forums

User forums => Nightly builds => Topic started by: killerbot on June 18, 2006, 06:39:52 pm

Title: The 18 June 2006 build is out.
Post by: killerbot on June 18, 2006, 06:39:52 pm
Get quick announcements through the RSS feed http://www.codeblocks.org/nightly/CodeBlock_RSS.xml

A link to the unicode windows wxWidget dll for Code::Blocks : http://download.berlios.de/codeblocks/wxmsw26u_gcc_cb_wx2.6.3p2.7z

For those who might need this one (when no MingW installed on your system) : the mingw10m.dll : http://download.berlios.de/codeblocks/mingwm10.7z

For support of ansi builds, a link to the ansi windows wxWidget dll (2.6.2) for Code::Blocks : http://download.berlios.de/codeblocks/wxmsw26_gcc_cb.7z

The 18 June 2006 build is out.
  - Windows : http://download.berlios.de/codeblocks/CB_20060618_rev2580_win32.7z
  - Linux :
         http://download.berlios.de/codeblocks/CB_20060618_rev2580_Ubuntu6.06.deb
         http://download.berlios.de/codeblocks/CB_20060618_rev2580_fc4+5.rpm


Resolved Fixed:


Regressions/Confirmed/Annoying/Common bugs:


Title: Re: The 18 June 2006 build is out.
Post by: visualphoenix on June 19, 2006, 12:03:28 am
Has anyone noticed that trying to directly open a .workspace causes codeblocks to hang?
Ubuntu Dapper Command Line: # codeblocks engine.workspace
Title: Re: The 18 June 2006 build is out.
Post by: hansoon on June 19, 2006, 02:26:22 am
How can i do to use arrow keys with NumLock off?
Title: Re: The 18 June 2006 build is out.
Post by: royalbox on June 19, 2006, 02:31:44 am
I still get access violations. I thought that perhaps something on my system was messed up so I booted to another partition that is almost a basic OS install plus a couple of apps. It has never seen code::blocks before. I installed 18 June 2006 build plus the latest mingwm10.dll and wxmsw26u_gcc_cb.dll that I downloaded a couple of nights ago. Opening code::blocks for the first time brings up the compiler dialog. I select my compiler (which is installed on another partition) close the tips dialog, click the open button and get a big dialog entitled "whoa" claiming an access violation.

I've seen a couple of other people mention this now. I'm stuck with 2006/06/10 which seems to be the last stable version which doesn't have this major bug or the other bug where you couldn't save files properly.

Are any of the devs looking into this?
Title: Re: The 18 June 2006 build is out.
Post by: oz on June 19, 2006, 03:15:46 am
I still get access violations. I thought that perhaps something on my system was messed up so I booted to another partition that is almost a basic OS install plus a couple of apps. It has never seen code::blocks before. I installed 18 June 2006 build plus the latest mingwm10.dll and wxmsw26u_gcc_cb.dll that I downloaded a couple of nights ago. Opening code::blocks for the first time brings up the compiler dialog. I select my compiler (which is installed on another partition) close the tips dialog, click the open button and get a big dialog entitled "whoa" claiming an access violation.

Not only there, it could be happen anywhere. :(

I've seen a couple of other people mention this now. I'm stuck with 2006/06/10 which seems to be the last stable version which doesn't have this major bug or the other bug where you couldn't save files properly.

Are any of the devs looking into this?

did you log in as the system administrator or do you have the privilege to fully control the system? I *guess* that may be the problem.
Title: Re: The 18 June 2006 build is out.
Post by: MortenMacFly on June 19, 2006, 09:02:49 am
I still get access violations.
Are any of the devs looking into this?
Well, without a crash report or clear steps to reproduce how should the devs take care? For me C::B simply works - I cannot reproduce this issue. Could you try to compile C::B yourself to see if it's a nightly issue? That would really help.
With regards, Morten.
Title: Re: The 18 June 2006 build is out.
Post by: MortenMacFly on June 19, 2006, 09:04:14 am
did you log in as the system administrator or do you have the privilege to fully control the system? I *guess* that may be the problem.
I'm running Windows always in restricted (non-admin) mode. Here it works. I would wonder if access limitation were the reason for such crashes... but who knows? ;-)
With regards, Morten.
Title: Re: The 18 June 2006 build is out.
Post by: oz on June 19, 2006, 09:57:12 am
did you log in as the system administrator or do you have the privilege to fully control the system? I *guess* that may be the problem.
I'm running Windows always in restricted (non-admin) mode. Here it works. I would wonder if access limitation were the reason for such crashes... but who knows? ;-)
With regards, Morten.

Yes, hopefully that is the problem, because if I changed a computer lab at school, it never happened any more, same as some personal labtops. it only happens in one lab. but unfortunately, it really does not generate any report, because C::B will not crash. as I said, it keep working as normal, only the window will pop up again and again. right, I will show you the picture next time 8)

here it is! and the folder cb-crash-recover is empty.

[attachment deleted by admin]
Title: Re: The 18 June 2006 build is out.
Post by: royalbox on June 19, 2006, 01:39:06 pm
Quote
did you log in as the system administrator or do you have the privilege to fully control the system? I *guess* that may be the problem.
It's my own machine and I only run as administator.

Quote
Well, without a crash report or clear steps to reproduce how should the devs take care?
Tell me where the crash report is and I'll post it. Clear steps to reproduce? I'm sorry, but I don't see how my post could have been any clearer bar adding pictures. Please tell me which steps you didn't understand and I'll try again.

I appreciate you're all working on this for free and for the fun of it, but clearly something is wrong when more than one person has the same problem.
Title: Re: The 18 June 2006 build is out.
Post by: thomas on June 19, 2006, 01:41:17 pm
Quote
here it is!
This screenshot is not very useful since it does not tell an awful lot.

The primary purpose of the crash handler is to allow you avoid a crash and to do a graceful shutdown and to preserve as much data as possible, in defiance of any real occurring crashes.
Nothing sucks as bad as losing your work if you haven't saved for an hour and you encounter a crash.

If you press "Abort", the crash handler will simply return control to the system exception handler (reading what's displayed in the message helps), so after you do that, the application *will* crash.
If you click on "Ignore", the crash handler will increment EP before returning control, this will in most cases cause the program to continue "just normal", but it will of course not write out a RPT.

It is generally still recommended that you save your work and close the application, even if everything seems to be "normal" afterwards, as you really cannot have a clue what internal effects the crash might have had.

Quote
and the folder cb-crash-recover is empty.
I have not had a crash in many weeks now, but when I initially wrote this crash handler, it worked reliably. The code that's writing the backup copies has not been changed since then. All that was changed is that the crash handler is now generally enabled in the nightly builds thanks to dynamic linkage (which it was not before).
If the crash recovery folder is empty, then you probably did not have any documents open.

Administrator or not should not matter for writing out the backups, since it writes to your "MyFiles" folder -- unless something is horribly screwed up, you always have access to that location.
Title: Re: The 18 June 2006 build is out.
Post by: royalbox on June 19, 2006, 02:01:41 pm
Please tell me how to generate a crash report. If I click abort, a common dialog will open with the caption "open program". I saved a file to the desktop, but it was empty. Before CB closes it says that this file has been modified, save the changes? Whether I choose OK or Cancel, the file is empty. Please tell me how I can generate a crash report, thanks.

EDIT:
The dialog is just code::blocks continuing to carry out the 'open' command -- because it didn't abort. I assumed it was to save a crash report.
Title: Re: The 18 June 2006 build is out.
Post by: oz on June 19, 2006, 02:10:51 pm
This screenshot is not very useful since it does not tell an awful lot.
yes, you are right :?

Quote
If you press "Abort", the crash handler will simply return control to the system exception handler (reading what's displayed in the message helps), so after you do that, the application *will* crash.
Every time I press 'Abort' two or three times to keep the program running, I am pretty sure here.

I forgot what happened when I pressed the other buttons, but I will try next time. Oh, I remebered it crashed once by choosing another option, certainly there is a crash report, but I cannot remeber clearly. I will post the report next time.
Title: Re: The 18 June 2006 build is out.
Post by: kkez on June 19, 2006, 02:44:16 pm
If you press "Abort", the crash handler will simply return control to the system exception handler (reading what's displayed in the message helps), so after you do that, the application *will* crash.
That's not true, after clicking two or three times on abort C::B doesn't crash.

BTW, i always get a crash handler dialogbox doing this:
1) File->Open...
2) create a new folder
3) insert a name and press enter
4) click 3 or 4 times on "Abort", C::B will continue to run
Title: Re: The 18 June 2006 build is out.
Post by: thomas on June 19, 2006, 03:32:46 pm
If you press "Abort", the crash handler will simply return control to the system exception handler (reading what's displayed in the message helps), so after you do that, the application *will* crash.
That's not true, after clicking two or three times on abort C::B doesn't crash.

What makes you say that? First...

Code
switch(MessageBox(0, buf.c_str(), _T("Woah!"), MB_ABORTRETRYIGNORE))
    {
        case IDABORT:
        return EXCEPTION_CONTINUE_SEARCH;
        break;
This gives control to the next handler. Unless you have installed a system-wide exception handler of your own, there is none other than the default handler left, which will show "The application has crashed..." and will terminate Code::Blocks.


And second...

(http://img104.imageshack.us/img104/8430/crashhandler3ac.gif)
Title: Re: The 18 June 2006 build is out.
Post by: royalbox on June 19, 2006, 05:29:18 pm
Quote
That's not true, after clicking two or three times on abort C::B doesn't crash.

What makes you say that?

I say this too, and the reason I say it, is because that is what happens. You click on abort and code::blocks carries on running.

Quote
This gives control to the next handler. Unless you have installed a system-wide exception handler of your own, there is none other than the default handler left, which will show "The application has crashed..." and will terminate Code::Blocks.

See, the problem here is that you're looking at the code and saying it's not possible that code::blocks doesn't abort. Myself and the other posters are physically clicking abort and seeing that code::blocks doesn't abort. Either we're making it up or it is happening. I can't prove that I'm not making it up but I ask you to consider the possibility that I'm not, and perhaps we can work together to try and find the answer.
Title: Strange behavour with debugger
Post by: Denis on June 19, 2006, 05:42:36 pm
I can't debug programm with this nightly build.
I created new console project, built it, set break point to "std::cout << "Hello world!" << std::endl;" line and pressed "Debug / Continue" button. Then I got debugger message "No source file named d:/GCC/test2/main.cpp". What I did wrong? Last time I tryed RC2, it worked without problem.

PS: WinXP SP2, MinGW 3.4.2 
Title: Re: The 18 June 2006 build is out.
Post by: kkez on June 19, 2006, 06:15:01 pm
If you press "Abort", the crash handler will simply return control to the system exception handler (reading what's displayed in the message helps), so after you do that, the application *will* crash.
That's not true, after clicking two or three times on abort C::B doesn't crash.
What makes you say that?
It doesn't crash on some circunstances, when it's really not the place for a crash (ie the example i made before, inside the openfilename dlgbox. I can prove it if you want, what did you use to make that gif?
Title: Re: Strange behavour with debugger
Post by: MortenMacFly on June 19, 2006, 06:20:47 pm
I can't debug programm with this nightly build.
You'll need at least GDB version 6.3. Search the forum for this keyword for additional information.
With regards, Morten.
Title: Re: Strange behavour with debugger
Post by: Michael on June 19, 2006, 06:28:04 pm
[...]MinGW 3.4.2

Hello,

I would advice you to also upgrade GCC to 3.4.4 or 3.4.5.

Best wishes,
Michael
Title: Re: The 18 June 2006 build is out.
Post by: Pecan on June 19, 2006, 06:30:42 pm
If you press "Abort", the crash handler will simply return control to the system exception handler (reading what's displayed in the message helps), so after you do that, the application *will* crash.
That's not true, after clicking two or three times on abort C::B doesn't crash.

BTW, i always get a crash handler dialogbox doing this:
1) File->Open...
2) create a new folder
3) insert a name and press enter
4) click 3 or 4 times on "Abort", C::B will continue to run


Is there a possibility that this behavior is caused by the SIGTRAP's that are buried in ntdll.dll?
When running CodeBlocks under GDB, I get these traps when using system calls such as open/save/etc.
A simple C continues GDB and the program continues.

This sounds like what is happening. Just a guess.
Title: Re: The 18 June 2006 build is out.
Post by: Pecan on June 19, 2006, 06:40:22 pm
For those of you getting the crash... try the following in order to identify the Signal...
Run Codeblocks.exe from within console (dos) with GDB

"gdb codeblocks.exe"
"run"
(when the crash occurs it will tell you what signal occured. Do..)
"bt all" (meaning backtrace)
"q"  (meaning quit)

Then paste the results to the forum

EDIT: These sigtraps happend after I installed MSVC on my laptop about a year ago. My old system, which has never had MSVC on it, does *not* get these sigtraps when running GDB.
Title: Re: The 18 June 2006 build is out.
Post by: Denis on June 19, 2006, 06:49:46 pm
MortenMacFly, Thanks! Sorry for I didn't use forum search before posting :)
Title: Re: The 18 June 2006 build is out.
Post by: royalbox on June 19, 2006, 07:00:03 pm
@Pecan
I've been learning c++ with code::blocks for about a year, but I don't know what GDB is. Is is something to do with debugging? If you or someone could give a bit more info on it I'll give it a try. I tried it anyway but the computer didn't understand what it was. I'd like to help sort this out.

Title: Re: The 18 June 2006 build is out.
Post by: Pecan on June 19, 2006, 07:20:48 pm
@Pecan
I've been learning c++ with code::blocks for about a year, but I don't know what GDB is. Is is something to do with debugging? If you or someone could give a bit more info on it I'll give it a try. I tried it anyway but the computer didn't understand what it was. I'd like to help sort this out.

GDB is the gnu debugger used by codebocks and minGW. It will be in your mingw bin directory.

When I debug codeblocks, I always run it from within a dos box (console) so I can see the traps/errs code lines that caused the error. GDB will stop the system when an trap occurs.

I use the following statements to run gdb:
Code
PATH=%PATH%;c:\usr\codeblocks\bin                                         <== bin directory contains mingw gdb etc
c:\usr\codeblocks\bin\gdb c:\Usr\Proj\cbBeta\trunk\src\devel\codeblocks.exe

The above will start CodeBlocks and stop with the gdb prompt "(gdb)"
Type "run" and codeblocks will run while gdb monitors it's every move.

If an error occurs, CodeBlocks will halt, and the dos box will show the Signal that occured.
Type "bt all" (meaning) show the stack and all variables on the stack. (assuming compilation was with debugging flag on)
If CodeBlocks was compiled with the debugging flag checked, it will also show the line the error occured on.

Type "q" to quit CodeBlocks and gdb.

Attached is a pdf of gdb commands that you can print out and tri-fold for reference.


[attachment deleted by admin]
Title: Re: The 18 June 2006 build is out.
Post by: royalbox on June 19, 2006, 07:34:01 pm
@@Pecan
Thanks very much for the info.

I'm using the code::blocks nightlies and the MSVC 2005 compiler. I only have mingwm10.dll. I'll go to the home page and see what I need to get.
Title: Re: The 18 June 2006 build is out.
Post by: thomas on June 19, 2006, 07:40:17 pm
Is there a possibility that this behavior is caused by the SIGTRAP's that are buried in ntdll.dll?
Who could tell what is possible... :)  I don't believe so, though.

The exceptions that are caught (according to MSDN) are:
EXCEPTION_ACCESS_VIOLATION
EXCEPTION_ARRAY_BOUNDS_EXCEEDED
EXCEPTION_BREAKPOINT
EXCEPTION_DATATYPE_MISALIGNMENT
EXCEPTION_FLT_DENORMAL_OPERAND
EXCEPTION_FLT_DIVIDE_BY_ZERO
EXCEPTION_FLT_INEXACT_RESULT
EXCEPTION_FLT_INVALID_OPERATION
EXCEPTION_FLT_OVERFLOW
EXCEPTION_FLT_STACK_CHECK
EXCEPTION_FLT_UNDERFLOW
EXCEPTION_ILLEGAL_INSTRUCTION
EXCEPTION_IN_PAGE_ERROR
EXCEPTION_INT_DIVIDE_BY_ZERO
EXCEPTION_INT_OVERFLOW
EXCEPTION_INVALID_DISPOSITION
EXCEPTION_NONCONTINUABLE_EXCEPTION
EXCEPTION_PRIV_INSTRUCTION
EXCEPTION_SINGLE_STEP
EXCEPTION_STACK_OVERFLOW

It does not say anything about traps caused by file I/O or anything. If it were related to I/O then we should have seen that crash before, shouldn't we. Remember that I have been using the crash handler 10-12 hours daily for 46 days 66 days without ever seeing such a thing (and a few other people have used it for the same time).
Title: Re: The 18 June 2006 build is out.
Post by: royalbox on June 19, 2006, 08:55:34 pm
@Pecan
I downloaded and installed gdb-5.2.1-1.exe. This is the output I get after typing 'run':

Code
Starting program: C:\Program Files\Code Blocks\codeblocks.exe
---Type <return> to continue, or q <return> to quit---

Program received signal SIGSEGV, Segmentation fault.
0x77ea3c00 in _libkernel32_a_iname ()
(gdb)
code::blocks doesn't get past the splash screen.
I tried this on the last nightly that works on my system just to test. Am I doing something wrong?

EDIT:
This was the output before typing 'run':
Code
This GDB was configured as "i686-pc-mingw32"...(no debugging symbols found)...

Do I need a debug version of the nightly? I'm not up on debugging yet, I keep putting it off.
Title: Re: The 18 June 2006 build is out.
Post by: Michael on June 19, 2006, 09:46:54 pm
@Pecan
I downloaded and installed gdb-5.2.1-1.exe. This is the output I get after typing 'run':

Hello,

You should download gdb 6.3.x. gdb 5.2.x does not work (pending breakpoints).

Best wishes,
Michael
Title: Re: The 18 June 2006 build is out.
Post by: Pecan on June 19, 2006, 09:50:54 pm
@Pecan
I downloaded and installed gdb-5.2.1-1.exe. This is the output I get after typing 'run':

Code
Starting program: C:\Program Files\Code Blocks\codeblocks.exe
---Type <return> to continue, or q <return> to quit---

Program received signal SIGSEGV, Segmentation fault.
0x77ea3c00 in _libkernel32_a_iname ()
(gdb)

Are you running under cygwin or some other non-windows shell?

You must have downloaded the wrong gdb. It should be gdb 6.3 for windows.

Look here: http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks
It has a link to download MinGW for MS Windows.

pecan
Title: Re: The 18 June 2006 build is out.
Post by: Pecan on June 19, 2006, 10:02:54 pm

These sigtraps happend after I installed MSVC on my laptop about a year ago. My old system, which has never had MSVC on it, does *not* get these sigtraps when running GDB.


@royalbox, et.al. with crash

For the machine that gets these crashes; have you ever installed Microsoft debugger, Visual Studio, .Net, or any of the MS compiler/debugger toolkits?

thanks
pecan
Title: Re: The 18 June 2006 build is out.
Post by: royalbox on June 19, 2006, 11:01:49 pm
Thanks all, I obviously downloaded the wrong thing. I'll take another look.

@pecan
I've installed the free MSVC 2005 express (without the IDE or other options when you install it).
I used to have the MS toolkit 2003 but uninstalled that after installing 2005. I've installed the platform SDK server 2003 R2.
I was forced to install .net for some app. I seem to have .net 1.1 + hotfix, and .net 2.

To test, I also installed code::blocks on another install of XP I have on a separate partition which is virtually bare-bones. The access violation dialog happend there as well.

I'll post back the results of my test once I've got the right download.
Title: Re: The 18 June 2006 build is out.
Post by: royalbox on June 19, 2006, 11:31:25 pm
I downloaded gdb-6.3-2.exe. I didn't download any of the other stuff, so I just have that and mingwm10.dll which is in my code blocks folder.

Right, I booted to my partition that has the 17 June 2006 build. I ran a .cmd file which has
Code
"C:\mingw\bin\gdb.exe" "C:\Program Files\Code Blocks\codeblocks.exe"
in it.
I typed 'run' and got:
Code
Starting program: C:\Program Files\Code Blocks\codeblocks.exe
---Type <return> to continue, or q <return> to quit---
---Type <return> to continue, or q <return> to quit---
I clicked on the 'open' icon as i know this always brings up the violation dialog and got:
Code
Program received signal SIGSEGV, Segmentation fault.
0x77ea3c00 in RpcRaiseException () from C:\WINDOWS\system32\rpcrt4.dll
I did 'bt all' as suggested and got:
Code
No symbol table is loaded.  Use the "file" command.
Please let me know if there's anything else you want me to try.

EDIT:
The bad news is, I tried the same thing on my working 2006/06/10 code::blocks and got exactly the same result!
Title: Re: The 18 June 2006 build is out.
Post by: Pecan on June 20, 2006, 01:01:25 am
and got:
Code
Program received signal SIGSEGV, Segmentation fault.
0x77ea3c00 in RpcRaiseException () from C:\WINDOWS\system32\rpcrt4.dll


Before we go any further, I think it would be wise for you to do a thorough virus scan. Kernel32.dll and rpc4.dll are subject to segfaults when infected.

Secondly, how old is your machine. When was it last dusted inside and the memory reseated?

This is beginning to smell like a virus or hardware glitch.

Check out the machine. Try your CodeBlocks on another machine. But do NOT take along any other software. De-infect your machine BEFORE taking CodeBlocks to another machine.

The only other way that I could guess that CodeBlocks is making Remote Procedure Calls is if the stack got corrupted. You'll have to compile the source to check that out.

Virus check first. Clean machine next. Sources third.

pecan


Edit: Also, if you have any open/save/directory find assist software installed, disable it while testing CodeBlocks.

EDIT:
The bad news is, I tried the same thing on my working 2006/06/10 code::blocks and got exactly the same result!

It sounds like this error was happening all the time. It just got caught by the new CodeBlocks signal trapper.
Title: Re: The 18 June 2006 build is out.
Post by: royalbox on June 20, 2006, 02:22:56 am
@Pecan
Well, I did a virus scan and have no infections. I have anti-virus running all the time anyway on auto-update. Besides, I tested code::blocks on my second partition which is virtually a clean install of XP.

My machine is about 5 years old. It hasn't been dusted for about 3 years. When I did last clean it it casued the motherboard to fail and I had to replace it, so I keep away from the insides unless necessary. The memory has never been re-seated, but it was replaced a couple of years ago.

I can't check on another machine, I don't have one, I'm a full-time carer now so don't have a work computer anymore.

I've not got any open/save/directory find assist software -- not even sure I know what it is.

What I do have is thunderbird, firefox, winrar, roboform, nero, irfanview, virtual pc, avast! antivirus, kerio firewall, various sofware development apps, various video and photo editing apps...etc. none of which I can recall any problem with.

What I have noticed though is a few other people in the forum with the same problem as I have. This makes me feel strongly that it isn't dust or a loose memory board or a virus but a problem with code::blocks that maybe only happens with certain OS or file versions or something like that.

It would be interesting to see what the others are running code::blocks on. Mine is XP home SP2 with all recent hotfixes.

It doesn't look like we're going to solve this so I'll just have to stick with 2006/06/10 . I'll keep checking the nightly's forum to see if it ever gets solved.

Thanks for all your help anyway.
Title: Re: The 18 June 2006 build is out.
Post by: sethjackson on June 20, 2006, 03:10:21 am
You might wantl run your RAM through this.....

http://www.memtest86.com/

Oh BTW I have Code::Blocks on a laptop with Windows XP Pro SP2 (no extra hotfixes though).
Title: Re: The 18 June 2006 build is out.
Post by: Pecan on June 20, 2006, 04:55:16 am

It would be interesting to see what the others are running code::blocks on. Mine is XP home SP2 with all recent hotfixes.


Could you try installing XP sp2 without the hot fixes then run CodeBlocks?
The hotfixes may be the problem.

just guessing.
Title: EDITOR: replase works wrong
Post by: Denis on June 20, 2006, 09:07:22 am
Replase dialog ignores flag "Entire scope" and searches for replace from cursor
Title: Re: The 18 June 2006 build is out.
Post by: Michael on June 20, 2006, 10:28:55 am

It would be interesting to see what the others are running code::blocks on. Mine is XP home SP2 with all recent hotfixes.


Could you try installing XP sp2 without the hot fixes then run CodeBlocks?
The hotfixes may be the problem.

just guessing.


Hello,

I am not sure about this, because I too have Windows XP SP2 with all the hotfixes (I always keep my OS up-to-date :)), but never had such problems.

May be there is some kind of libraries/applications conflicts, or partially corrupted OS, or something other.

Best wishes,
Michael
Title: Re: The 18 June 2006 build is out.
Post by: Pecan on June 20, 2006, 01:38:46 pm

I am not sure about this, because I too have Windows XP SP2 with all the hotfixes (I always keep my OS up-to-date :)), but never had such problems.

May be there is some kind of libraries/applications conflicts, or partially corrupted OS, or something other.


royalbox;

The next step is here: Building From Source
http://wiki.codeblocks.org/index.php?title=Building_From_Source

You may use wxWidgets 2.6.2 or 2.6.3 with the patch.

By building the sources yourself we will be able to do a debug build, thereby solving the problem with "bt all". We will need that backtrace to shoot the problem.

It's not hard, but it is sometimes frustrating the first time you build. After that, we all wonder why we thought it was going to be hard.

try it.
Title: Re: The 18 June 2006 build is out.
Post by: royalbox on June 20, 2006, 02:48:49 pm
@Pecan
Right. I'm going to go and make a cup of tea, then I'm going to read what's at that link and try it.
Title: Re: The 18 June 2006 build is out.
Post by: killerbot on June 20, 2006, 03:21:29 pm
this might help you also, even more details :
http://wiki.codeblocks.org/index.php?title=Nightly_Cookbook

This link and the onve a few posts above are based upon wx 262.
Building for wx263pl2 is the same,except you need to :
- download wx263
- and download it's patch2 (unzip in the same dir overwriting the wx263 files)
Title: Re: The 18 June 2006 build is out.
Post by: royalbox on June 20, 2006, 04:17:00 pm
Very first thing I read is:
Quote
The official supported compiler to build Code::Blocks with is GCC (or MinGW). At the present time, GCC is also the only compiler known to successfully build Code::Blocks without modifications.
I've been happilly using MSVC 2005. so, I go to the MinGW site to see what I need. So much writing, so many downloads, I just left.

@killerbot
Thanks for you're help but I don't even know wwhat any of that stuff is or why I need it.

I'm sorry but I really haven't got the inclination to read and learn a lot of stuff that I don't really want to know which is distracting me from learning what I was enjoying learning --C++ and the Win32 API.

I'm going to stick with the version that works.

Sorry all.
Title: Re: The 18 June 2006 build is out.
Post by: Michael on June 20, 2006, 04:37:39 pm
Very first thing I read is:
Quote
The official supported compiler to build Code::Blocks with is GCC (or MinGW). At the present time, GCC is also the only compiler known to successfully build Code::Blocks without modifications.
I've been happilly using MSVC 2005. so, I go to the MinGW site to see what I need. So much writing, so many downloads, I just left.

@killerbot
Thanks for you're help but I don't even know wwhat any of that stuff is or why I need it.

I'm sorry but I really haven't got the inclination to read and learn a lot of stuff that I don't really want to know which is distracting me from learning what I was enjoying learning --C++ and the Win32 API.

I'm going to stick with the version that works.

Sorry all.

Hello,

Building C::B by yourself is not difficult at all. May be it seems so at the beginning.

You just need:

1) wxWidgets 2.6.2/3
2) MinGW (GCC 3.4.4/5)
3) svn or TortoiseSVN (this one is easier to use)
4) get zip.exe
5) Download C::B SVN sources
6) Build C::B using a nightly build

Best wishes,
Michael

PS.: In the forums there are helpful posts :).
Title: Re: The 18 June 2006 build is out.
Post by: royalbox on June 20, 2006, 05:39:08 pm
@Michael
Alright, well lets see.

http://wxwidgets.org/downloads/#latest_stable :
Quote
wxWidgets 2.6.3 Downloads

    * Source Archives
          o wxALL (Other formats: bz2, zip)
          o wxMSW(Other formats: zip)
          o wxGTK
          o wxMac
          o wxX11
          o Other ports (Motif, OS/2, MGL, Base) and releases ...
Do I need wxALL, wxMSW, wx GTK, I guess not wxMac, sxX11, I guess not other ports. Or do I need a release version? I know nothing about wxWidgets. I'ts not something I've even looked at within code::blocks, I just know it's there.

Quote
PS.: In the forums there are helpful posts Smile.
Yes, I'm sure there are but as I said, it's not something that interests me enough to spend the time looking.

I see you have svn listed there. I've never had the need to use svn. It's a term I've seen around a bit over the years but I don't really know what it is. If it means spending time reading about it and learning to to use it just so that I try and find out why I'm getting an access violation then, well, I just can't. My mind will start to wander before I've read a couple of sentences.

Thank you though, I know you're only trying to help.
Title: Re: The 18 June 2006 build is out.
Post by: royalbox on June 20, 2006, 05:53:02 pm
http://www.mingw.org/download.shtml

MinGW (GCC 3.4.4/5)

What, binary or source? gcc-objc, gcc-ada, gcc-core, gcc-g++, gcc-g77, I guess not gcc-java.

I don't know what those terms mean, I've only being learning c++ for about a year and visual basic for about a year before that. It really isn't as easy as your list suggests if you don't know what all these versions are for and, more to the point, don't really want to know.
Title: Re: The 18 June 2006 build is out.
Post by: oz on June 20, 2006, 06:37:02 pm
http://www.mingw.org/download.shtml

MinGW (GCC 3.4.4/5)

What, binary or source? gcc-objc, gcc-ada, gcc-core, gcc-g++, gcc-g77, I guess not gcc-java.
    *  gcc-core : the core of the GCC suite
    * gcc-g++ : the c++ compiler
    * mingw Runtime : implementation of the run time libraries
    * mingw utils : several utilities (implementation of smaller programs that GCC itself uses)
    * win32Api : the APIs for creating Windows programs
    * binutils : several utilities used in build environments
    * make : the Gnu make program, so you can build from make files
    * GDB : the Gnu debugger : for hunting those nasty bugs
download the newest version of the above packages, totally 8. the newest win32aip appears at the right-top coner of the main page.

simply extract all the packages into C:\MinGW folder is OK.
Title: Re: The 18 June 2006 build is out.
Post by: killerbot on June 20, 2006, 07:01:49 pm
http://www.mingw.org/download.shtml

MinGW (GCC 3.4.4/5)

What, binary or source? gcc-objc, gcc-ada, gcc-core, gcc-g++, gcc-g77, I guess not gcc-java.

I don't know what those terms mean, I've only being learning c++ for about a year and visual basic for about a year before that. It really isn't as easy as your list suggests if you don't know what all these versions are for and, more to the point, don't really want to know.

If you read the nightly cookbook you will get nearly everything explained at a very basic level (well that was the purpose ;-) ).
Svn, gcc, ... and so on.

Something I could do so you don't have to build yourself, is to provide with the debug build of the nighly build, when that one crashes, the crash report might give some more feedback (it could even tell us at what line the crash happened). This package will be a lot bigger to download (since the debugging symbols are in there).

What do you think ??

[EDIT] : here it is : http://download.berlios.de/codeblocks/20june2006debug.7z (so debug version of nightly of 20 june 2006)
Title: Re: The 18 June 2006 build is out.
Post by: royalbox on June 20, 2006, 07:59:07 pm
Thanks oz.

killerbot, thanks a lot I'm downloading it now. I'll try it with gdb and post the results.
Title: Re: The 18 June 2006 build is out.
Post by: royalbox on June 20, 2006, 08:08:59 pm
Right, I tried it with gdb. As before, I clicked on the 'open' icon and got:
Quote
Program received signal SIGSEGV, Segmentation fault.
0x77ea3c00 in RpcRaiseException () from C:\WINDOWS\system32\rpcrt4.dll
I then typed
Code
bt all
and got:
Quote
No symbol "all" in current context.
Title: Re: The 18 June 2006 build is out.
Post by: Michael on June 20, 2006, 08:09:35 pm
@Michael
Alright, well lets see.

http://wxwidgets.org/downloads/#latest_stable :
Quote
wxWidgets 2.6.3 Downloads

    * Source Archives
          o wxALL (Other formats: bz2, zip)
          o wxMSW(Other formats: zip)
          o wxGTK
          o wxMac
          o wxX11
          o Other ports (Motif, OS/2, MGL, Base) and releases ...
Do I need wxALL, wxMSW, wx GTK, I guess not wxMac, sxX11, I guess not other ports. Or do I need a release version? I know nothing about wxWidgets. I'ts not something I've even looked at within code::blocks, I just know it's there.

Quote
PS.: In the forums there are helpful posts Smile.
Yes, I'm sure there are but as I said, it's not something that interests me enough to spend the time looking.

I see you have svn listed there. I've never had the need to use svn. It's a term I've seen around a bit over the years but I don't really know what it is. If it means spending time reading about it and learning to to use it just so that I try and find out why I'm getting an access violation then, well, I just can't. My mind will start to wander before I've read a couple of sentences.

Thank you though, I know you're only trying to help.

Hello,

The best approach would be to do one step after the other :). And do not scare too much. There are people helping on this forum :).

First, download MinGW+GDB.

For MinGW:

Download the installer MinGW-5.0.2:
http://prdownloads.sf.net/mingw/MinGW-5.0.2.exe?download

Install the candidate (not the stable) release unter C:\

Then download GDB 6.3.x and install it:
http://prdownloads.sf.net/mingw/gdb-6.3-2.exe?download

Ok. Now wxWidgets 2.6.3.

Download it and unzip it:
http://prdownloads.sourceforge.net/wxwindows/wxWidgets-2.6.3.zip

Then the patch2:
ftp://biolpc22.york.ac.uk/pub/2.6.3/wxWidgets-2.6.3-Patch-2.zip

Install the patch2 over wxWidgets 2.6.3

Now build wxWidgets (see also here (http://forums.codeblocks.org/index.php?topic=1701.0)):
1) cd .\wxWidgets-2.6.3\build\msw (where makefile.gcc is located)
2) Clean: mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1  clean
3) Build: mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1

Ok. Now get TortoiseSVN and install it (it is a shell extension!!!):
http://tortoisesvn.tigris.org/

Check out C::B SVN sources:
right click where you want to download the sources, chose checkou and give: svn://svn.berlios.de/codeblocks/trunk

Ok. Now get zip.exe: http://forums.codeblocks.org/index.php?topic=1554.msg11077#msg11077

Download and install the latest nightly build.

Open the cb project: CodeBlocks.cbp

After set correctly the global variable wx (for me: C:\temp\wxWidgets-2.6.3-1) and cb (for me: C:\Programme\DANAE\CodeBlocks\CodeBlocks\src).

Build the project. When it is finished close the project and run update.bat.

Open the contrib. plugin workspace: ContribPlugins.workspace
Build the workspace. When finished close it and quit C::B. Copy the devel directory where you would like to have C::B and rename it, e.g., codeblocks. If it starting C::B it complains about a missing dll (wxWidgets one IIRC), then copy it into the renamed devel directory.

That should be, if I do not have missed something. But if you have problems you can always ask :).

Good luck and best wishes,
Michael
Title: Re: The 18 June 2006 build is out.
Post by: killerbot on June 20, 2006, 10:07:06 pm
Right, I tried it with gdb. As before, I clicked on the 'open' icon and got:
Quote
Program received signal SIGSEGV, Segmentation fault.
0x77ea3c00 in RpcRaiseException () from C:\WINDOWS\system32\rpcrt4.dll
I then typed
Code
bt all
and got:
Quote
No symbol "all" in current context.


just use the debug version (don't let gdb run it) and let it crash, see if then an rpt is created ?
Title: Re: The 18 June 2006 build is out.
Post by: royalbox on June 20, 2006, 11:44:27 pm
@Michael
Thanks for all that info, I'll keep a link to it in case I change my mind one of these days and want to compile CB.

@killerbot
No gdb, okay.

This is what I did then. I extracted the debug version to a folder on my desktop. I added the required dll's -- mingwm10.dll and the other one. I deleted the codeblocks folder from documents and settings\.... I ran codeblocks directly from the exe. After the splash screen, compiler selection dialog, tips dialog and file association dialog, code::blocks opened. I clicked on the open icon and it brought up the expected "whoa!" "access violation" dialog. I clicked on abort, the dialog closed and the 'open' dialog opened as if nothing had happened. I closed the 'open' dialog, closed code::blocks and searched for any kind of crash report. All that I could find was the "cb-crash-recover" folder that was created.
That's it. Unless you have any other suggestions to try.

Perhaps some of the other posters who had the same problem will try your debug build and see if they have any luck, I hope so.
Title: Re: The 18 June 2006 build is out.
Post by: thomas on June 20, 2006, 11:48:56 pm
I have changed the crash handler to explicitely only handle two exceptions now:
segmentation fault, and illegal instruction.

Although I cannot reproduce the problem and don't know what is causing it for you, this might solve the problem.

On the other hand, this means Code::Blocks may crash again on certain events (because they are not caught any more), but a segmentation fault due to an uninitialised pointer is the most frequently occurring bug anyway (well over 95% of all crashes). So I guess handling this and illegal instructions is good enough.
Title: Re: The 18 June 2006 build is out.
Post by: killerbot on June 20, 2006, 11:55:53 pm
see my post in the nightly build of the 20th, I also had crashes and after abort i could continue ...
Title: Re: The 18 June 2006 build is out.
Post by: royalbox on June 21, 2006, 12:00:27 am
Ok, thanks everyone for all your help and hard work. I'm only sorry my testing couldn't give you the answer.
Title: Re: The 18 June 2006 build is out.
Post by: thomas on June 21, 2006, 12:09:25 am
Well, test again after Lieven has released another build.

As it is now, it must work, no matter what the original problem was. If the exception code is anything except the two described above, the handler immediately returns.
Title: Re: The 18 June 2006 build is out.
Post by: killerbot on June 21, 2006, 12:24:01 am
@Thomas :

I am fixing a whole lot of includes in headers and cpp's.
Crashhandler.h is one of them. It does not include anything, but it needs "PVECTORED_EXCEPTION_HANDLER".
I have no idea where it comes from, it did a search in wx but no luck. Though in the past it probably worked because it got included in a cpp file that before that include already included either wx.h or another header.
Can you tell me which one contains the definition of "PVECTORED_EXCEPTION_HANDLER" ?
Title: Re: The 18 June 2006 build is out.
Post by: thomas on June 21, 2006, 12:38:50 am
It is defined in winbase.h. I intentionally left out that particular include, as main.cpp includes wx/wx.h anyway, and that includes windows.h, too. Windows is in the precompiled header, too.

Linux is no concern, as the crash handler does nothing under Linux anyway, and it would need unistd.h rather than windows.h if someone were to implement a sigaction based version.