Thread: Process terminated with status -11

  1. #1
    Registered User
    Join Date
    Dec 2016
    Posts
    87

    Process terminated with status -11

    Hi to everyone!

    I am facing a difficult problem. I am using CodeBlocks latest, GCC with codeblocks, wxWidgets 3.13, Ubuntu 20.04 and get this error. Can someone please tell me what does it means? I can't find it in google. Its not a missing return, the functions are all void.

  2. #2
    Registered User
    Join Date
    May 2010
    Posts
    4,539
    You'll need to post your code. However it is telling you that your program returned a value other than zero, which usually indicates some kind of failure of your program.

  3. #3
    Registered User
    Join Date
    May 2009
    Posts
    3,865
    The main function should return an int.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  4. #4
    Registered User
    Join Date
    May 2010
    Posts
    4,539
    True, but with some operating systems it must be a very small positive integral value. And with C++ if no return value is supplied zero will be returned.

  5. #5
    Registered User
    Join Date
    May 2009
    Posts
    3,865
    Quote Originally Posted by jimblumberg View Post
    True, but with some operating systems it must be a very small positive integral value. And with C++ if no return value is supplied zero will be returned.
    Is that true if you define main as returning void?

    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  6. #6
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    38,067
    If it's a botched attempt to tell you a signal number, then 11 would indicate a segmentation fault.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  7. #7
    Registered User
    Join Date
    May 2010
    Posts
    4,539
    Is that true if you define main as returning void?
    This is the C++ forum, and in C++ main() must be defined to return an int. If you use a truly standard compliant compiler void main() is not allowed. And if you don't use a truly standard compiler there is no telling what will happen, unless your specific compiler actually documents this abomination.

  8. #8
    Registered User
    Join Date
    May 2009
    Posts
    3,865
    The OP stated that all functions were void functions!

    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  9. #9
    Registered User
    Join Date
    Dec 2016
    Posts
    87
    I am using Ubuntu 20.04 LTS and CodeBlocks with MiniGW latest version. I am also using wxWidgets 3.1.3. I upload the zip file, but I believe the problem comes from Ubuntu not being able to start the file, as this is done differently than windows.

    The file is wxVLC.zip

    Code:
    -------------- Run: Debug in wxVLC (compiler: GNU GCC Compiler)---------------
    
    Checking for existence: /home/cfcbazar/Downloads/wxVLC/bin/Debug/wxVLC
    Set variable: LD_LIBRARY_PATH=.:/usr/local/lib/codeblocks/wxContribItems:/usr/local/lib:
    Executing: /home/cfcbazar/Downloads/wxVLC/bin/Debug/wxVLC  (in /home/cfcbazar/Downloads/wxVLC/.)
    Process terminated with status -11 (0 minute(s), 0 second(s))
    Attached Files Attached Files
    Last edited by ArakelTheDragon; 2 Weeks Ago at 03:29 AM.

  10. #10
    Registered User
    Join Date
    May 2009
    Posts
    3,865
    I am not an wxWidgets expert; but, I wonder if your wxWidgets is based on GTK 2 or on GTK 3?
    Your project seems to depend on both GTK 2 and GTK 3 this raises warnings in my mind.

    After you find out which GTK is used to build wxWidgets then only use that one in building your project. Edit: Looks like wxWidgets uses GTK 3. Not, sure why GTK 2 depends exists in your project.

    No idea if that will fix your run-time issue.

    Tim S.
    Last edited by stahta01; 2 Weeks Ago at 04:14 AM.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  11. #11
    Registered User
    Join Date
    May 2009
    Posts
    3,865
    I think you need to post the output of the next two commands.

    Code:
    wx-config --cflags --toolkit=gtk3
    Code:
    wx-config --libs --toolkit=gtk3
    I am starting to think you may have a bad wxWidgets installation.

    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  12. #12
    Registered User
    Join Date
    May 2009
    Posts
    3,865
    We also need to know what version GTK the wxWidgets Code::Blocks is built on.
    This is because you look to be using Code::Blocks built wxWidgets library located in "/usr/local/lib/codeblocks/wxContribItems"

    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  13. #13
    Registered User
    Join Date
    May 2009
    Posts
    3,865
    Please post a full rebuild log so we can see the build commands.

    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  14. #14
    Registered User
    Join Date
    May 2009
    Posts
    3,865
    What does "CodeBlocks with MiniGW latest version" mean?

    Because if you are using MinGW GCC under Linux than you need more help than I can give!

    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  15. #15
    Registered User
    Join Date
    Dec 2016
    Posts
    87
    First the commands:
    wx-config --cflags --toolkit=gtk3
    Code:
    -I/usr/local/lib/wx/include/gtk3-unicode-static-3.1 -I/usr/local/include/wx-3.1 -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -pthread
    wx-config --libs --toolkit=gtk3
    Code:
    -L/usr/local/lib -pthread   /usr/local/lib/libwx_gtk3u_xrc-3.1.a /usr/local/lib/libwx_gtk3u_qa-3.1.a /usr/local/lib/libwx_baseu_net-3.1.a /usr/local/lib/libwx_gtk3u_html-3.1.a /usr/local/lib/libwx_gtk3u_core-3.1.a /usr/local/lib/libwx_baseu_xml-3.1.a /usr/local/lib/libwx_baseu-3.1.a -pthread -lgthread-2.0 -lX11 -lXxf86vm -lSM -lgtk-3 -lgdk-3 -lpangocairo-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lXtst -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype -lwxtiff-3.1 -lwxjpeg-3.1 -lwxregexu-3.1 -lwxscintilla-3.1 -lexpat -lpng -lz -ldl -lm
    Now the scrinshots.
    Process terminated with status -11-screenshot-2020-06-22-17-01-38-jpg
    Process terminated with status -11-screenshot-2020-06-22-17-03-12-jpg

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 14
    Last Post: 07-06-2016, 01:48 PM
  2. SDL_ttf Process terminated with status 3
    By darpan1118 in forum Game Programming
    Replies: 5
    Last Post: 04-13-2014, 09:35 AM
  3. Replies: 2
    Last Post: 03-13-2013, 01:03 AM
  4. Process Terminated with status -1073741510
    By Varethien in forum C Programming
    Replies: 5
    Last Post: 08-09-2011, 04:16 AM
  5. Process terminated with status -1073741819
    By smithx in forum C Programming
    Replies: 5
    Last Post: 11-01-2010, 11:13 PM

Tags for this Thread