Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > Segfault from Vice on Linux Mint 18
2016-09-03 22:06
Kruthers

Registered: Jul 2016
Posts: 21
Segfault from Vice on Linux Mint 18

Saw the post about Vice and Ubuntu 16.04 and that reminds me, I upgraded to Linux Mint 18 which is based on that Ubuntu and after that my custom compiled x64sc would only segfault.

I recompiled on the new OS from a clean, freshly checked out svn copy and I still got segfaults. Finally figured out the cause was the --with-uithreads flag to configure; without that it's fine. This was just a few days ago.

Doesn't really seem like the fault of Vice - it worked fine under Mint 17 with that flag. But anyone have ideas how to get uithreads working again?
2016-09-03 22:17
Firehawk

Registered: Aug 2011
Posts: 31
I found a problem with a lib_free of a temporary variable (main.c:241), apparently the code manages to overwrite the memory, thereby corrupting the next memory segment. If you set the malloc size (main.c:225) to a higher value (i.e. 250, since we do have a LOT of memory these days), the problem disapeared for me.
2016-09-04 10:22
Compyx

Registered: Jan 2005
Posts: 631
@Kruthers: Could you post the issue on the bug tracker? https://sourceforge.net/p/vice-emu/bugs/

@Firehawk: I saw your bug report and I'm working on it.
2016-09-06 13:42
Kruthers

Registered: Jul 2016
Posts: 21
@Firehawk: Damn you really had my hopes up! But no, that didn't do the trick in my case.

@Compyx: Definitely. I realize this isn't the vice support forums but figured somebody probably ran across the same problem...
2016-09-06 15:16
Compyx

Registered: Jan 2005
Posts: 631
@Kruthers: thanks for using the bug tracker, looking into it now.
2016-09-09 14:14
Kruthers

Registered: Jul 2016
Posts: 21
For anyone else that comes across this problem, it was an nvidia driver issue.

https://sourceforge.net/p/vice-emu/bugs/789/#fa99
2016-09-12 08:30
Marq

Registered: Sep 2011
Posts: 50
How about: export __GL_WRITE_TEXT_SECTION=0
Which fixes a - possibly related - crash with FS-UAE.
2016-09-12 22:34
Compyx

Registered: Jan 2005
Posts: 631
Quote: How about: export __GL_WRITE_TEXT_SECTION=0
Which fixes a - possibly related - crash with FS-UAE.


Tried it, still segfaults. What is it supposed to do? Disable self modifying code in the driver? (Tried this with 304.131, which is all I can test, don't have any modern nvidia card)
2016-09-13 09:13
Marq

Registered: Sep 2011
Posts: 50
Quote: Tried it, still segfaults. What is it supposed to do? Disable self modifying code in the driver? (Tried this with 304.131, which is all I can test, don't have any modern nvidia card)

It was worth a try anyway :) Dunno what it does in practice, but FS-UAE started crashing recently and that fixed it on Nvidia (352.63).
2016-09-16 19:51
Compyx

Registered: Jan 2005
Posts: 631
From what I understand nvidia drivers use self-modifying code, which is of course the way to go on our favourite machine, but a pretty big no-no on modern operating systems.

The only consistent behaviour I can get from my nvidia card with binary drivers is that it crashes often and sometimes not.

The open source nouveau driver works much more reliably, although performance is still not quite like the binary drivers. But at least it doesn't crash.
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
Flashback
Bieno/Commodore Plus
Guests online: 87
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 No Listen  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 Rainbow Connection  (9.5)
7 Dawnfall V1.1  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Triad  (9.3)
5 Censor Design  (9.3)
Top Fullscreen Graphicians
1 Joe  (9.7)
2 Sulevi  (9.6)
3 The Sarge  (9.6)
4 Veto  (9.6)
5 Facet  (9.6)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.037 sec.