Results 1 to 2 of 2

Thread: native shared library crashes if C++ exceptions are used on Ubuntu Wine build

  1. #1
    Join Date
    May 2020
    Beans
    1

    native shared library crashes if C++ exceptions are used on Ubuntu Wine build

    This problem appears only on Ubuntu 20.04 with Wine 5.0 installed from Ubuntu repository. If I build Wine 5.0 myself or install Wine 4.0.4 from Wine repository, then there is no problem, so I assume the problem is in Ubuntu 20.04 build of Wine.

    I have written a shared library for our application using Winelib project, which calls native Linux API. C++ is used. Crash happens on first C++ exception thrown.
    App which shows the problem:

    Code:
             
    #include <stdexcept>
    #include <stdio.h>
    
    int main() {
        printf("start\n");
        try {
            throw std::runtime_error("desc");
        } catch (std::exception &ex) {
            printf("in catch\n");
        }
        printf("end\n");
    }
    built with:
    Code:
        g++ -c -fPIC t.cpp
        /home/mkk/wine-git_64/tools/winegcc/wineg++ -B/home/mkk/wine-git_64/tools/winebuild -o tt t.o
    run as:
    Code:
       wine tt.exe.so
    Prints 'start', then crashes.
    Any idea how to solve this problem?

  2. #2
    Join Date
    Nov 2009
    Beans
    Hidden!
    Distro
    Kubuntu 18.04 Bionic Beaver

    Re: native shared library crashes if C++ exceptions are used on Ubuntu Wine build

    if this issues is only present on Ubuntu repo build, it is clearly ubuntu packaging issue of sorts. i would report it on launchpad.
    Read the easy to understand, lots of pics Ubuntu manual.
    Do i need antivirus/firewall in linux?
    Full disk backup (newer kernel -> suitable for newer PC): Clonezilla
    User friendly full disk backup: Rescuezilla

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •