Author Topic: Codeblocks crashed Segmentation Fault  (Read 8071 times)

Offline pomocnik123

  • Single posting newcomer
  • *
  • Posts: 6
Codeblocks crashed Segmentation Fault
« on: January 08, 2016, 03:57:13 pm »
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.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Codeblocks crashed Segmentation Fault
« Reply #1 on: January 08, 2016, 10:31:44 pm »
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?
(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!]

Offline pomocnik123

  • Single posting newcomer
  • *
  • Posts: 6
Re: Codeblocks crashed Segmentation Fault
« Reply #2 on: January 09, 2016, 05:33:11 pm »
My version is
Code
Code::Blocks svn build  rev 10637 Dec 31 2015, 15:51:03 - wx3.0.2 (Linux, unicode) - 64 bit

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?
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)
I can past all if it necessary.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Codeblocks crashed Segmentation Fault
« Reply #3 on: January 09, 2016, 06:13:49 pm »
Just paste the output of a "thread apply all bt" command when you see the segmentation fault error.
(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!]

Offline pomocnik123

  • Single posting newcomer
  • *
  • Posts: 6
Re: Codeblocks crashed Segmentation Fault
« Reply #4 on: January 10, 2016, 12:26:51 am »
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---
« Last Edit: January 10, 2016, 01:39:37 am by pomocnik123 »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Codeblocks crashed Segmentation Fault
« Reply #5 on: January 10, 2016, 01:22:50 am »
Does the regular bt command returns something useful?
(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!]

Offline pomocnik123

  • Single posting newcomer
  • *
  • Posts: 6
Re: Codeblocks crashed Segmentation Fault
« Reply #6 on: January 10, 2016, 01:40:02 am »
I tried again and this 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---

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Codeblocks crashed Segmentation Fault
« Reply #7 on: January 10, 2016, 02:56:22 am »
We need the rest of the output. Press enter and gdb will print it.
(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!]

Offline pomocnik123

  • Single posting newcomer
  • *
  • Posts: 6
Re: Codeblocks crashed Segmentation Fault
« Reply #8 on: January 10, 2016, 02:09:00 pm »
Code
NativeParser::OnParserStart(): Starting re-parsing for project 'findfields'...
Project 'findfields' parsing stage done (138 total parsed files, 6898 tokens in 0 minute(s), 0.003 seconds).
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...

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffd27b5700 (LWP 3794)]
0x0000000000000000 in ?? ()
(gdb) run /usr/bin/codeblocksawd
The program being debugged has been started already.
Start it from the beginning? (y or n) n
Please answer y or n.
The program being debugged has been started already.
Start it from the beginning? (y or n) n
Program not restarted.
(gdb) thread apply all bt

Thread 9 (Thread 0x7fffd1fb4700 (LWP 3844)):
#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=0x7fffd1fb4700) at pthread_create.c:309
#7  0x00007ffff181804d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 8 (Thread 0x7fffd27b5700 (LWP 3794)):
#0  0x0000000000000000 in ?? ()
#1  0x00007ffff57a9ef5 in wxWindowDCImpl::SetTextForeground(wxColour const&) ()
   from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#2  0x00007ffff5885252 in wxDCImpl::InheritAttributes(wxWindow*) ()
   from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#3  0x00007ffff5884f74 in wxNativeDCFactory::CreateClientDC(wxClientDC*, wxWindow*) ()
   from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#4  0x00007ffff5887090 in wxClientDC::wxClientDC(wxWindow*) ()
   from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#5  0x00007ffff5a3a907 in wxGenericTreeCtrl::CalculatePositions() ()
   from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#6  0x00007ffff5a3bf40 in wxGenericTreeCtrl::DoDirtyProcessing() ()
   from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#7  0x00007fffe81fbfc8 in ClassBrowserBuilderThread::BuildTree() ()
   from /usr/lib/codeblocks/plugins/libcodecompletion.so
#8  0x00007fffe81fc69a in ClassBrowserBuilderThread::Entry() ()
   from /usr/lib/codeblocks/plugins/libcodecompletion.so
#9  0x00007ffff4d933a2 in wxThread::CallEntry() () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#10 0x00007ffff4d93c83 in ?? () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#11 0x00007ffff25090a4 in start_thread (arg=0x7fffd27b5700) at pthread_create.c:309
#12 0x00007ffff181804d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 7 (Thread 0x7fffd3fff700 (LWP 3793)):
#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=0x7fffd3fff700) at pthread_create.c:309
#7  0x00007ffff181804d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 5 (Thread 0x7fffe9b99700 (LWP 3791)):
#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
---Type <return> to continue, or q <return> to quit---Quit
(gdb)

Thread 9 (Thread 0x7fffd1fb4700 (LWP 3844)):
#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=0x7fffd1fb4700) at pthread_create.c:309
#7  0x00007ffff181804d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 8 (Thread 0x7fffd27b5700 (LWP 3794)):
#0  0x0000000000000000 in ?? ()
#1  0x00007ffff57a9ef5 in wxWindowDCImpl::SetTextForeground(wxColour const&) ()
   from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#2  0x00007ffff5885252 in wxDCImpl::InheritAttributes(wxWindow*) ()
   from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#3  0x00007ffff5884f74 in wxNativeDCFactory::CreateClientDC(wxClientDC*, wxWindow*) ()
   from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#4  0x00007ffff5887090 in wxClientDC::wxClientDC(wxWindow*) ()
   from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#5  0x00007ffff5a3a907 in wxGenericTreeCtrl::CalculatePositions() ()
   from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#6  0x00007ffff5a3bf40 in wxGenericTreeCtrl::DoDirtyProcessing() ()
   from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#7  0x00007fffe81fbfc8 in ClassBrowserBuilderThread::BuildTree() ()
   from /usr/lib/codeblocks/plugins/libcodecompletion.so
#8  0x00007fffe81fc69a in ClassBrowserBuilderThread::Entry() ()
   from /usr/lib/codeblocks/plugins/libcodecompletion.so
#9  0x00007ffff4d933a2 in wxThread::CallEntry() () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#10 0x00007ffff4d93c83 in ?? () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#11 0x00007ffff25090a4 in start_thread (arg=0x7fffd27b5700) at pthread_create.c:309
#12 0x00007ffff181804d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 7 (Thread 0x7fffd3fff700 (LWP 3793)):
#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=0x7fffd3fff700) at pthread_create.c:309
#7  0x00007ffff181804d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 5 (Thread 0x7fffe9b99700 (LWP 3791)):
#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

---Type <return> to continue, or q <return> to quit---

Thread 4 (Thread 0x7fffea5a7700 (LWP 3790)):
#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 3789)):
#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=0x7fffeada8700) at pthread_create.c:309
#7  0x00007ffff181804d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 2 (Thread 0x7fffeb5a9700 (LWP 3788)):
#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=0x7fffeb5a9700) at pthread_create.c:309
#7  0x00007ffff181804d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7ffff7fbaa00 (LWP 3784)):
#0  0x00007ffff180f50d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007fffee379252 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007fffee37ab6f in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007fffee37ac81 in xcb_wait_for_reply () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#4  0x00007ffff1432327 in _XReply () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#5  0x00007ffff142835e in XQueryPointer () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#6  0x00007ffff431b709 in ?? () from /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0
#7  0x00007ffff42cd8f2 in ?? () from /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0
#8  0x00007ffff42ed947 in gdk_window_get_pointer () from /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0
#9  0x00007ffff579fef9 in ?? () from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#10 0x00007ffff4696a3f in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#11 0x00007ffff2f24245 in g_closure_invoke () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#12 0x00007ffff2f35f6c in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#13 0x00007ffff2f3e285 in g_signal_emit_valist () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#14 0x00007ffff2f3e9df in g_signal_emit () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#15 0x00007ffff47add6c in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#16 0x00007ffff4695184 in gtk_propagate_event () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#17 0x00007ffff469561b in gtk_main_do_event () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#18 0x00007ffff4308b5c in ?? () from /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0
#19 0x00007ffff2c4ec5d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Codeblocks crashed Segmentation Fault
« Reply #9 on: January 10, 2016, 02:31:01 pm »
You've hit this issue https://sourceforge.net/p/codeblocks/tickets/225/
Disable the symbol browser and it won't happen again.
(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!]

Offline pomocnik123

  • Single posting newcomer
  • *
  • Posts: 6
Re: Codeblocks crashed Segmentation Fault
« Reply #10 on: January 11, 2016, 01:53:36 pm »
Thanks it works.