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: 47
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: 47
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
Thunder.Bird/HF/MYD!..
Scooby/G★P/Light
rexbeng
Apollyon/ALD
j0x
metalux/G★P
Exile/Anubis
wil
Freeze/Blazon
katon/Lepsi De
Guests online: 150
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 The Ghost  (9.6)
9 Wonderland XIV  (9.6)
10 Bromance  (9.6)
Top onefile Demos
1 It's More Fun to Com..  (9.8)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 Rainbow Connection  (9.5)
6 TRSAC, Gabber & Pebe..  (9.5)
7 Onscreen 5k  (9.5)
8 Wafer Demo  (9.5)
9 Dawnfall V1.1  (9.5)
10 Quadrants  (9.5)
Top Groups
1 Oxyron  (9.3)
2 Nostalgia  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Crackers
1 Mr. Z  (9.9)
2 S!R  (9.9)
3 Mr Zero Page  (9.8)
4 Antitrack  (9.8)
5 OTD  (9.8)

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