this post was submitted on 08 Jan 2025
17 points (94.7% liked)

Linux

48895 readers
1105 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

Hey, so I've been using Hamachi with Haguichi on Linux (Mint) for some time, and for the most part it works fine; however, hamachi will occasionally disconnect and then ask for my password to restart the service. This seems to happen kind of irregularly, and some days it barely happens, while others it seems to happen every 5 minutes.

After some search, I only managed to find a couple of old results - with no solutions - but which suggested it was a memory leak issue. I checked the systemctl logs and it seems like that might be the case:

systemd-coredump[96279]: Process 93832 (hamachid) of user 0 dumped core.
            #11 0x000000000040954f n/a (hamachid + 0x954f)
            #12 0x0000000000462f71 n/a (hamachid + 0x62f71)
            #13 0x0000000000464d10 n/a (hamachid + 0x64d10)
            #14 0x00000000004afe24 n/a (hamachid + 0xafe24)
            #15 0x00000000004e816c n/a (hamachid + 0xe816c)
            #16 0x00000000005005d4 n/a (hamachid + 0x1005d4)
            #17 0x000000000050eb48 n/a (hamachid + 0x10eb48)
            #18 0x0000000000446c9e n/a (hamachid + 0x46c9e)
            #19 0x00000000004bebe2 n/a (hamachid + 0xbebe2)
            #20 0x000000000040709e n/a (hamachid + 0x709e)
            #23 0x00000000004076cf n/a (hamachid + 0x76cf)

I guess my question is, is this a known issue? Does anyone else have the same problem and/or know a fix? And, if not, does anyone know of a good alternative that is available on both Linux and Windows (I'm connecting to people on Windows)?

Thanks in advance.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 6 points 1 day ago

Unfortunately that trace isn't very useful due to the lack of debug symbols. One would have to decompile and analyze the binary to really gather some information as to how that happened, and it's probably against their TOS.

hamachi will occasionally disconnect *and then ask for my password to restart the service. *

The GUI is probably trying to restart the daemon for you which causes this, because that's not standard behaviour. You can probably fix that but just allowing your user to do that passwordless, although it's dumb:

# /etc/polkit-1/rules.d/50-hamachi.rules
polkit.addRule(function (action, subject) {
    if (
        subject.user === "YOURUSERNAMEHERE"
        && action.id === "org.freedesktop.systemd1.manage-units"
        && action.lookup("unit") === "logmein-hamachi.service"
    ) {
        return polkit.Result.YES;
    }
})

You'll want to change your username in there and also adjust the service name if it's different.