User forums > Help

Codeblocks crashed Segmentation Fault

(1/3) > >>

pomocnik123:
Hi,
I have problem with CB on debian jessie 8.1 KDE. While I am using CB in unexpected moment always CB crashes and closed. So I tried run via console and it show me Segmentation Fault. I tried reinstalation CB and Debian, but didn't help. Please help.

oBFusCATed:
What version are you using?
Do you see a backtrace in the log?
If not can you start cb under gdb (gdb /usr/bin/codeblocks) and post a backtrace when it crashes?

pomocnik123:
My version is
--- Code: ---Code::Blocks svn build  rev 10637 Dec 31 2015, 15:51:03 - wx3.0.2 (Linux, unicode) - 64 bit
--- End code ---


--- Quote from: oBFusCATed on January 08, 2016, 10:31:44 pm ---Do you see a backtrace in the log?
If not can you start cb under gdb (gdb /usr/bin/codeblocks) and post a backtrace when it crashes?

--- End quote ---
Some logs:

--- Code: ---NativeParser::GetAllPathsByFilename(): Traversing '/home/bbaa/Pulpit/adddddd' for: main.*
NativeParser::GetAllPathsByFilename(): Traversing ' - /home/bbaa/Pulpit/adddddd/' for: main.*
NativeParser::GetAllPathsByFilename(): Found 1 files:
- /home/bbaa/Pulpit/adddddd/main.cpp
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.
CWD for depslib was: /home/bbaa/Pulpit/adddddd.
CWD for depslib is: /home/bbaa/Pulpit/adddddd.
Scanned 0 files for #includes, cache used 0, cache updated 0
CWD for depslib was: /home/bbaa/Pulpit/adddddd.
CWD for depslib is: /home/bbaa/Pulpit/adddddd.
-------------- Clean: Debug in adddddd (compiler: GNU GCC Compiler)---------------
Cleaned "adddddd - Debug"
Scanned 0 files for #includes, cache used 0, cache updated 0
CWD for depslib was: /home/bbaa/Pulpit/adddddd.
CWD for depslib is: /home/bbaa/Pulpit/adddddd.
Scanned 0 files for #includes, cache used 0, cache updated 0
CWD for depslib was: /home/bbaa/Pulpit/adddddd.
CWD for depslib is: /home/bbaa/Pulpit/adddddd.
Scanned 0 files for #includes, cache used 0, cache updated 0
CWD for depslib was: /home/bbaa/Pulpit/adddddd.
CWD for depslib is: /home/bbaa/Pulpit/adddddd.
Scanned 0 files for #includes, cache used 0, cache updated 0
CWD for depslib was: /home/bbaa/Pulpit/adddddd.
CWD for depslib is: /home/bbaa/Pulpit/adddddd.
Scanned 0 files for #includes, cache used 0, cache updated 0
CWD for depslib was: /home/bbaa/Pulpit/adddddd.
CWD for depslib is: /home/bbaa/Pulpit/adddddd.
Scanned 0 files for #includes, cache used 0, cache updated 0
CWD for depslib was: /home/bbaa/Pulpit/adddddd.
CWD for depslib is: /home/bbaa/Pulpit/adddddd.
-------------- Build: Debug in adddddd (compiler: GNU GCC Compiler)---------------
Scanned 0 files for #includes, cache used 0, cache updated 0
g++ -Wall -fexceptions -g  -c /home/bbaa/Pulpit/adddddd/main.cpp -o obj/Debug/main.o
/home/bbaa/Pulpit/adddddd/main.cpp:40:3: warning: "/*" within comment [-Wcomment]
   /* In windows, this will init the winsock stuff *
 ^
/home/bbaa/Pulpit/adddddd/main.cpp:43:3: warning: "/*" within comment [-Wcomment]
   /* get a curl handle *
 ^
/home/bbaa/Pulpit/adddddd/main.cpp:58:1: warning: "/*" within comment [-Wcomment]
 /*
 ^
/home/bbaa/Pulpit/adddddd/main.cpp:60:5: warning: "/*" within comment [-Wcomment]
     /* First set the URL that is about to receive our POST. This URL can
 ^
/home/bbaa/Pulpit/adddddd/main.cpp:64:5: warning: "/*" within comment [-Wcomment]
     /* Now specify the POST data *
 ^
/home/bbaa/Pulpit/adddddd/main.cpp:67:5: warning: "/*" within comment [-Wcomment]
     /* Perform the request, res will get the return code *
 ^
/home/bbaa/Pulpit/adddddd/main.cpp:69:5: warning: "/*" within comment [-Wcomment]
     /* Check for errors *
 ^
/home/bbaa/Pulpit/adddddd/main.cpp:74:5: warning: "/*" within comment [-Wcomment]
     /* always cleanup *
 ^
/home/bbaa/Pulpit/adddddd/main.cpp: In function ‘int main()’:
/home/bbaa/Pulpit/adddddd/main.cpp:25:12: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
 char *data="username=test&password=1234567&login=Login";
            ^
g++  -o bin/Debug/adddddd obj/Debug/main.o  -lcurl 
Output file is bin/Debug/adddddd with size 15.20 KB
CWD for depslib was: /home/bbaa/Pulpit/adddddd.
CWD for depslib is: /home/bbaa/Pulpit/adddddd.
Scanned 0 files for #includes, cache used 0, cache updated 0
CWD for depslib was: /home/bbaa/Pulpit/adddddd.
CWD for depslib is: /home/bbaa/Pulpit/adddddd.
Scanned 0 files for #includes, cache used 0, cache updated 0
CWD for depslib was: /home/bbaa/Pulpit/adddddd.
CWD for depslib is: /home/bbaa/Pulpit/adddddd.
Scanned 0 files for #includes, cache used 0, cache updated 0
CWD for depslib was: /home/bbaa/Pulpit/adddddd.
CWD for depslib is: /home/bbaa/Pulpit/adddddd.
Scanned 0 files for #includes, cache used 0, cache updated 0
CWD for depslib was: /home/bbaa/Pulpit/adddddd.
CWD for depslib is: /home/bbaa/Pulpit/adddddd.
Scanned 0 files for #includes, cache used 0, cache updated 0
Process terminated with status 0 (0 minute(s), 0 second(s))
0 error(s), 9 warning(s) (0 minute(s), 0 second(s))
CWD for depslib was: /home/bbaa/Pulpit/adddddd.
CWD for depslib is: /home/bbaa/Pulpit/adddddd.
Scanned 0 files for #includes, cache used 0, cache updated 0
CWD for depslib was: /home/bbaa/Pulpit/adddddd.
CWD for depslib is: /home/bbaa/Pulpit/adddddd.
-------------- Clean: Debug in adddddd (compiler: GNU GCC Compiler)---------------
Cleaned "adddddd - Debug"
Scanned 0 files for #includes, cache used 0, cache updated 0
CWD for depslib was: /home/bbaa/Pulpit/adddddd.
CWD for depslib is: /home/bbaa/Pulpit/adddddd.
Scanned 0 files for #includes, cache used 0, cache updated 0
CWD for depslib was: /home/bbaa/Pulpit/adddddd.
CWD for depslib is: /home/bbaa/Pulpit/adddddd.
Scanned 0 files for #includes, cache used 0, cache updated 0
CWD for depslib was: /home/bbaa/Pulpit/adddddd.
CWD for depslib is: /home/bbaa/Pulpit/adddddd.
Scanned 0 files for #includes, cache used 0, cache updated 0
CWD for depslib was: /home/bbaa/Pulpit/adddddd.
CWD for depslib is: /home/bbaa/Pulpit/adddddd.
Scanned 0 files for #includes, cache used 0, cache updated 0
CWD for depslib was: /home/bbaa/Pulpit/adddddd.
CWD for depslib is: /home/bbaa/Pulpit/adddddd.
Scanned 0 files for #includes, cache used 0, cache updated 0
CWD for depslib was: /home/bbaa/Pulpit/adddddd.
CWD for depslib is: /home/bbaa/Pulpit/adddddd.
-------------- Build: Debug in adddddd (compiler: GNU GCC Compiler)---------------
Scanned 0 files for #includes, cache used 0, cache updated 0
g++ -Wall -fexceptions -g  -c /home/bbaa/Pulpit/adddddd/main.cpp -o obj/Debug/main.o
/home/bbaa/Pulpit/adddddd/main.cpp:40:3: warning: "/*" within comment [-Wcomment]
   /* In windows, this will init the winsock stuff *
 ^
/home/bbaa/Pulpit/adddddd/main.cpp:43:3: warning: "/*" within comment [-Wcomment]
   /* get a curl handle *
 ^
/home/bbaa/Pulpit/adddddd/main.cpp:58:1: warning: "/*" within comment [-Wcomment]
 /*
 ^
/home/bbaa/Pulpit/adddddd/main.cpp:60:5: warning: "/*" within comment [-Wcomment]
     /* First set the URL that is about to receive our POST. This URL can
 ^
/home/bbaa/Pulpit/adddddd/main.cpp:64:5: warning: "/*" within comment [-Wcomment]
     /* Now specify the POST data *
 ^
/home/bbaa/Pulpit/adddddd/main.cpp:67:5: warning: "/*" within comment [-Wcomment]
     /* Perform the request, res will get the return code *
 ^
/home/bbaa/Pulpit/adddddd/main.cpp:69:5: warning: "/*" within comment [-Wcomment]
     /* Check for errors *
 ^
/home/bbaa/Pulpit/adddddd/main.cpp:74:5: warning: "/*" within comment [-Wcomment]
     /* always cleanup *
 ^
/home/bbaa/Pulpit/adddddd/main.cpp: In function ‘int main()’:
/home/bbaa/Pulpit/adddddd/main.cpp:25:12: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
 char *data="username=test&password=1234567&login=Login";
            ^
g++  -o bin/Debug/adddddd obj/Debug/main.o  -lcurl 
Output file is bin/Debug/adddddd with size 15.20 KB
CWD for depslib was: /home/bbaa/Pulpit/adddddd.
CWD for depslib is: /home/bbaa/Pulpit/adddddd.
Scanned 0 files for #includes, cache used 0, cache updated 0
CWD for depslib was: /home/bbaa/Pulpit/adddddd.
CWD for depslib is: /home/bbaa/Pulpit/adddddd.
Scanned 0 files for #includes, cache used 0, cache updated 0
CWD for depslib was: /home/bbaa/Pulpit/adddddd.
CWD for depslib is: /home/bbaa/Pulpit/adddddd.
Scanned 0 files for #includes, cache used 0, cache updated 0
CWD for depslib was: /home/bbaa/Pulpit/adddddd.
CWD for depslib is: /home/bbaa/Pulpit/adddddd.
Scanned 0 files for #includes, cache used 0, cache updated 0
CWD for depslib was: /home/bbaa/Pulpit/adddddd.
CWD for depslib is: /home/bbaa/Pulpit/adddddd.
Scanned 0 files for #includes, cache used 0, cache updated 0
Process terminated with status 0 (0 minute(s), 0 second(s))
0 error(s), 9 warning(s) (0 minute(s), 0 second(s))
Reparsing when typing for editor /home/bbaa/Pulpit/adddddd/main.cpp
NativeParser::OnParserStart(): Starting re-parsing for project 'adddddd'...
Project 'adddddd' parsing stage done (50 total parsed files, 2704 tokens in 0 minute(s), 0.003 seconds).
NativeParser::GetAllPathsByFilename(): Traversing '/home/bbaa/Pulpit/adddddd' for: main.*
NativeParser::GetAllPathsByFilename(): Traversing ' - /home/bbaa/Pulpit/adddddd/' for: main.*
NativeParser::GetAllPathsByFilename(): Found 1 files:
- /home/bbaa/Pulpit/adddddd/main.cpp
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.
Reparsing when typing for editor /home/bbaa/Pulpit/adddddd/main.cpp
NativeParser::OnParserStart(): Starting re-parsing for project 'adddddd'...
Project 'adddddd' parsing stage done (50 total parsed files, 2704 tokens in 0 minute(s), 0.002 seconds).
NativeParser::GetAllPathsByFilename(): Traversing '/home/bbaa/Pulpit/adddddd' for: main.*
NativeParser::GetAllPathsByFilename(): Traversing ' - /home/bbaa/Pulpit/adddddd/' for: main.*
NativeParser::GetAllPathsByFilename(): Found 1 files:
- /home/bbaa/Pulpit/adddddd/main.cpp
ClassBrowser::OnThreadEvent(): Updating class browser...

Program received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()
(gdb)
--- End code ---
I can past all if it necessary.

oBFusCATed:
Just paste the output of a "thread apply all bt" command when you see the segmentation fault error.

pomocnik123:
It showed me:

--- Code: ---NativeParser::GetAllPathsByFilename(): Traversing '/home/bbaa/Pulpit/findfields' for: main.*
NativeParser::GetAllPathsByFilename(): Traversing ' - /home/bbaa/Pulpit/findfields/' for: main.*
NativeParser::GetAllPathsByFilename(): Found 1 files:
- /home/bbaa/Pulpit/findfields/main.cpp
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.

Program received signal SIGSEGV, Segmentation fault.
0x0000000004182890 in ?? ()
(gdb) thread apply all bt

Thread 10 (Thread 0x7fffd180b700 (LWP 3754)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007ffff4d88583 in ?? () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#2  0x00007ffff4d8d2c4 in ?? () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#3  0x00007ffff762cdec in cbThreadPool::cbWorkerThread::Entry() () from /usr/lib/libcodeblocks.so.0
#4  0x00007ffff4d933a2 in wxThread::CallEntry() () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#5  0x00007ffff4d93c83 in ?? () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#6  0x00007ffff25090a4 in start_thread (arg=0x7fffd180b700) at pthread_create.c:309
#7  0x00007ffff181804d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 9 (Thread 0x7fffd200c700 (LWP 3704)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007ffff4d88583 in ?? () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#2  0x00007ffff4d8d2c4 in ?? () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#3  0x00007fffd38dd672 in ClassBrowserBuilderThread::Entry() ()
   from /usr/lib/codeblocks/plugins/libcodecompletion.so
#4  0x00007ffff4d933a2 in wxThread::CallEntry() () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#5  0x00007ffff4d93c83 in ?? () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#6  0x00007ffff25090a4 in start_thread (arg=0x7fffd200c700) at pthread_create.c:309
#7  0x00007ffff181804d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 8 (Thread 0x7fffd3856700 (LWP 3703)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007ffff4d88583 in ?? () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#2  0x00007ffff4d8d2c4 in ?? () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#3  0x00007ffff762cdec in cbThreadPool::cbWorkerThread::Entry() () from /usr/lib/libcodeblocks.so.0
#4  0x00007ffff4d933a2 in wxThread::CallEntry() () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#5  0x00007ffff4d93c83 in ?? () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#6  0x00007ffff25090a4 in start_thread (arg=0x7fffd3856700) at pthread_create.c:309
#7  0x00007ffff181804d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 5 (Thread 0x7fffe9b99700 (LWP 3700)):
#0  0x00007ffff180f50d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007ffff2c4eee4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff2c4effc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff2c4f039 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007ffff2c75935 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffff25090a4 in start_thread (arg=0x7fffe9b99700) at pthread_create.c:309
#6  0x00007ffff181804d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 4 (Thread 0x7fffea5a7700 (LWP 3699)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007ffff4d88583 in ?? () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#2  0x00007ffff4d8d2c4 in ?? () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#3  0x00007ffff771b96a in BackgroundThread::Entry() () from /usr/lib/libcodeblocks.so.0
#4  0x00007ffff4d933a2 in wxThread::CallEntry() () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#5  0x00007ffff4d93c83 in ?? () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#6  0x00007ffff25090a4 in start_thread (arg=0x7fffea5a7700) at pthread_create.c:309
#7  0x00007ffff181804d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 3 (Thread 0x7fffeada8700 (LWP 3698)):
---Type <return> to continue, or q <return> to quit---

--- End code ---

Navigation

[0] Message Index

[#] Next page

Go to full version