-
-
Notifications
You must be signed in to change notification settings - Fork 387
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ubuntu - winetricks fails to install dotnet with sbrk() error #1919
Comments
Something is broken on your system. Maybe bad ram? Try running memtest. |
I ran memtest86 for 2 hours, three passes , no errors. I think if it was something like that, I'd be seeing glitches elsewhere in my system, but it appears this is the only place. I can use proton/wine properly in other applications without problems as well. |
If it was a memory fault, then wouldn't the error occur intermittently, as different bytes are used at any time - as the data blocks are cycled, so a regularly occuring (if somewhat amorphous) error would not indicate a likely memory fault, but a fault elsewhere? Regardless, I opened the laptop and swapped memory sticks out, just in case. More attempts. Install dotnet into vanilla wine prefix via GUI
install dotnet into prefix via command line
install dotnet into proton prefix via script
Also the sbrk turns up if I try to follow some instructions I found to set up a new prefix
|
The 'sbrk() failure while processing tunables' seems to come from glibc [1], and seems like it could indeed indicate some kind of a problem with regards to memory, but yeah, usually bad RAM means random errors (but not always... fun!). The specific error spot was later modified [2] and doesn't exist with my current build (glibc-2.35) at all. What kind of a system is this? Anything self-compiled or all distribution (which version of Ubuntu?) packages?
Edit: Hit the send-comment button accidentally using some keyboard shortcut(?)... |
Thanks for that. I'll try reinstalling my glibc (though it seems I have libc not glibc) and see if anything changes. I dont generally mess with the system, but who knows, I might have changed something at some point as theres always something that needs fixing at some point and the systems been live a year or so |
I do have Visual Studio Code and Unreal Engine on the system and have been compiling c# for various games, I might have changed the glibc/libc version while getting those things working |
It seems Ive got 2.31 installed, though thats from 2020, and it is up to v2.35 now. According to this post Updating it is a bad idea... Not sure if it'll even help fix this issue. EDIT I force-reinstalled the libc6 packages, still getting sbrk error |
Generally updating glibc is okay, but only if everything else in the system will be fine with it, which probably isn't the case with Ubuntu-like distros (older things often break with new glibc). Going backwards is what will even more easily break things though! With Ubuntu and such I think it's best to stick to what you get from the supported repositories, so if you're not using any weird "ppa" sources and are up-to-date, this should be re-produceable pretty easily with knowing the version of the distribution and all, unless it's a hardware issue. |
Oh and I'm not saying at all that the issue lies within glibc, but something makes that part of the code there trigger, and I don't have immediate ideas why that would be aside from running out of RAM somehow... |
You talked about weird PPAs so I looked at my PPAs to check if I some weird ones to remove and I've found out that my glibc comes directly from a PPA by slonopotamus who has compiled a custom version of glibc in order to tackle a bug with Unreal Engine being unable to handle large amounts of files greatly slowing load times. I subscribed to that, as I was using Unreal Engine and it helped a lot. But now I think this is the likely culprit - I'll go through the process of removing that PPA and reinstalling official glibc and see if things change. |
Do make some backupses because as I mentioned, downgrading glibc will easily break things, although I'm not sure how much so it will be in binary distros (I use a source-based Gentoo one myself, so everything gets compiled against the current glibc installed). |
I'd assume a bit that you'd get pre-compiled packages in any case, unless you're actually compiling them at any stage. The package manage should... SHOULD make sure things work together okay, but I'm really not too familiar with Ubuntu and the likes... |
@stubkan, if you have another partition/hdd/usb, it would be worth trying a stock install of whatever version of ubuntu you're running, so that you can try a clean setup on the same hardware, to narrow down if it's a hardware/software issue. |
Well, that took a long dang time, but I got a USB live usb set up of the system - Ubuntu Mint 20.1 and installed wine64 7.0 then winetricks. Set up a new prefix successfully then with winetricks installed dotnet 4.0 successfuly but after several hours of non stop scrolling errors I figured something was off and stopped it, winetricks was the 2020 version so I self updated it and did it again. It installed dotnet 48 successfully with no fuss. I dont think it's a hardware issue. I ran system update and upgrade and got about 2 or 3 GB of updates which took a long while, so the liveusb should be current with my system. Installed mono as well before wine would work. |
I could use the liveusb to install dotnet into the one prefix I need it in and copy it over and hope that is enough.. Though this sbrk thing bugs me and may be causing problems elsewhere... I'd like the system to be clean. I suspect in newer glibc versions they have removed the sbrk function and use another method - Maybe I can run the newer glibc somehow and see if that error still comes up, though I have no idea how to go about setting that up. |
Well, one thing is clear, it's not a winetricks issue, but an issue with your system. Your distro or whoever provided the PPA that you got gliibc from may be able to provide better help. |
There was a line in .profile that said export GLIBC_TUNABLES=glibc.rtld.dynamic_sort=2 Removing the line fixed the issue. I think it was a line that went in to fix Unreal Engine issues. |
A-ha! Good to know. Thank you for sharing! |
Glad you got it fixed. If it's still needed for Unreal, I'd suggest removing it from ~/.profile, and instead make a wrapper script, so that you only export that variable when running Unreal, and avoid affecting the rest of your system. |
I'm making this issue as I cannot find a single mention on the internet that references the sbrk() error I'm constantly getting.
Whenever I try to install dotnet48 into a proton prefix with winetricks it throws errors and aborts. If I change the proton or eggroll proton version, wine version, winetricks version, install method etc - it will output different dotnet abort error codes but each time there are sbrk() errors that say.
sbrk() failure while processing tunables
Sometimes it says it once, sometimes it says it 5 times. There are also some other errors that come up, but they seem normal - as I've seen them on other peoples logs.
I've tried for a few days, with various different driver versions, proton versions, wine/winetricks versions - I've updated my system, updated graphics drivers, At a loss now, cos I have absolutely no idea what is wrong.
The text was updated successfully, but these errors were encountered: