News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Segmentation fault (core dumped)

Started by cysign, March 13, 2013, 08:57:02 AM

Previous topic - Next topic

cysign

Hi,

while compiling and running my code codeblock tells me

Segmentation fault (core dumped)

Process returned 139 (0x8B)  execution time: 0,124 s
Press ENTER to continue.


while Build log says:
Executing: xterm -T j2k -e /usr/bin/cb_console_runner LD_LIBRARY_PATH=$LD_LIBRARY_PATH:. /home/cysign/Dropbox/Teamwork/codeblocks/j2k/bin/Debug/j2k  (in /home/cysign/Dropbox/Teamwork/codeblocks/j2k/.)



Btw: How can I copy xterm-output? Is there any shortcut? And at "Logs & others" in C::B I'm only able to copy by right-click. Is there any shortcut as well?

cysign

I found the solution of my problem.
In my fileio.c I forgot to add toh pointer (&) in line:
fscanf(ip, "%lf %lf", &mpx[i], &mpy[i]);

Is there any solution I can make codeblocks detect such errors?

Jenna

It looks like your application crashs, nothing we can help here.

If you want to know how to copy from xterm-window, you should read the manual of xterm.

You can use other terminals if you prefer this (I use  gnome-terminal).
See "Settings -> Environment -> General settings" and http://forums.next.codeblocks.org/index.php/topic,17621.msg120701.html#msg12070 .

Be aware, that questions about compiling, linking and application errors are not allowed in our forum, just questions, that are directly related to C::B.
Such posts might get locked or even silently deleted.

Pleased reread the rules you have accepted when registering here: http://forums.next.codeblocks.org/index.php/topic,9996.0.html .

cysign

All right, I should get deeper into codeblocks ;)
Thanks for your help - I'd prefer to use gnome terminal, so I'll give it a shot.