Hi Rainer,

have a look at the code. 

    CAppSetup* env = CAppSetup::getPlattformInstance();
  env->/installMessageHandler/();

It crashes when accessing env. Therfore env must be a bad pointer. Let's have a 
look at getPlattformInstance ()

CAppSetup* CAppSetup::getPlattformInstance()
{
    if(nullptr == instance)
    {
#ifdef Q_OS_MAC
        instance = new CAppSetupMac();
#endif
#ifdef Q_OS_LINUX
        instance = new CAppSetupLinux();
#endif
#ifdef Q_OS_WIN32
        instance = new CAppSetupWin();
#endif
    }
    return instance;
}

Probably none of the defines is defined for MinGW/Cyqgwin. Or instance is not 
nullptr as it is not pre-set. ->bug (I fix that).

Make sure getPlattformInstance() returns a good pointer.

HTH

Oliver

Am Dienstag, 23. Februar 2016, 17:55:24 schrieben Sie:
> Oliver,
> 
> On Monday, 2016-02-22 08:15:50 +0100, you wrote:
> > ...
> > 
> >            A backtrace is much more informative. Have a look at:
> Ok, here comes the backtrace.  At least, it's as short as it can possib-
> ly be :-)
> 
> $ gdb /home/Rainer/repo/qmapshack/.pub/bin/qmapshack
> GNU gdb (GDB) (Cygwin 7.10.1-1) 7.10.1
> Copyright (C) 2015 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later
> <http://gnu.org/licenses/gpl.html> This is free software: you are free to
> change and redistribute it. There is NO WARRANTY, to the extent permitted
> by law.  Type "show copying" and "show warranty" for details.
> This GDB was configured as "i686-pc-cygwin".
> Type "show configuration" for configuration details.
> For bug reporting instructions, please see:
> <http://www.gnu.org/software/gdb/bugs/>.
> Find the GDB manual and other documentation resources online at:
> <http://www.gnu.org/software/gdb/documentation/>.
> For help, type "help".
> Type "apropos word" to search for commands related to "word"...
> Reading symbols from 
/home/Rainer/repo/qmapshack/.pub/bin/qmapshack...done.
> (gdb) r
> Starting program: /home/Rainer/repo/qmapshack/.pub/bin/qmapshack
> [New Thread 12424.0x12f8]
> [New Thread 12424.0x39e0]
> [New Thread 12424.0x25e8]
> [New Thread 12424.0x36a4]
> [New Thread 12424.0x3b78]
> [New Thread 12424.0x342c]
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x00401299 in main (argc=1, argv=0x22cc5c)
>     at /home/Rainer/repo/qmapshack/src/main.cpp:39
> 39        env->installMessageHandler();
> (gdb) bt
> #0  0x00401299 in main (argc=1, argv=0x22cc5c)
>     at /home/Rainer/repo/qmapshack/src/main.cpp:39
> (gdb) q
> A debugging session is active.
> 
>       Inferior 1 [process 12424] will be killed.
> 
> Quit anyway? (y or n) y
> $
> 
> So it seems I'm the first trying to compile and run QMapShack on Cygwin?
> 
> Sincerely,
>   Rainer

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Qlandkartegt-users mailing list
Qlandkartegt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users

Reply via email to