English Amiga Board


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 06 October 2019, 03:31   #1
hexaae
Registered User
hexaae's Avatar
 
Join Date: Jul 2006
Location: Italy
Age: 43
Posts: 1,345
Wget + bsdsocket emu = crash

No problem using MiamiDX + uaenet.device, but running Wget (any version from Aminet, up to 1.11.4) from shell in bsdsocket.library emulation causes memory errors and crashes from Workbench (any version I guess).

Try "Wget -h" multiple times from shell...
hexaae is offline  
Old 06 October 2019, 08:41   #2
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 44
Posts: 23,123
Sounds like the usual with unix ported programs: huge stack needed.
Toni Wilen is offline  
Old 06 October 2019, 11:04   #3
hexaae
Registered User
hexaae's Avatar
 
Join Date: Jul 2006
Location: Italy
Age: 43
Posts: 1,345
Quote:
Originally Posted by Toni Wilen View Post
Sounds like the usual with unix ported programs: huge stack needed.
No. In MiamiDX+uaenet it works fine even with 16KB of stack.
Already tried with stack 500000 but always trashes Amiga mem in bsdsocket mode instead. This should be reproducible. I can make a log with JIT OFF if you need though… just tell me the paramater at launch for the log to monitor networking
hexaae is offline  
Old 06 October 2019, 11:31   #4
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 44
Posts: 23,123
Can't duplicate. (as I expected because I have used wget previously)

Possibly ixemul.library related (as usual..) EDIT: Keep backup of the library and upload it if using other version fixes it.
Toni Wilen is offline  
Old 06 October 2019, 12:21   #5
hexaae
Registered User
hexaae's Avatar
 
Join Date: Jul 2006
Location: Italy
Age: 43
Posts: 1,345
My ix### libraries attached: https://gofile.io/?c=2qfaot

Still crashes using other ix libs from Aminet… and only in bsdsocket emu mode. Never in MiamiDX+uaenet. At this point it must be system specific...
Is there a special parameter I can use to generate a helpful logfile?

Last edited by hexaae; 06 October 2019 at 12:28.
hexaae is offline  
Old 06 October 2019, 14:21   #6
Amiga68k
Registered User

Amiga68k's Avatar
 
Join Date: Oct 2017
Location: Amsterdam
Posts: 179
Quote:
Originally Posted by hexaae View Post
Still crashes using other ix libs from Aminet…
Not a solution for your problem, but an alternative could be aget that you can get here or from aminet.
Amiga68k is offline  
Old 06 October 2019, 14:28   #7
hexaae
Registered User
hexaae's Avatar
 
Join Date: Jul 2006
Location: Italy
Age: 43
Posts: 1,345
Thanks, will have a look.

@Toni
Could it be a problem with MMULib <-> ixemul, when using Wget with bsdsocket emulation?
From a boot without SSeq I tried Wget and a pop-up requester for a "68640.library emulation code not found" appeared… Then I run Setpatch 44.38 (using OS3.9 + MMULib to handle various CPU/FPU the easy way) and the crash/recoverable appears at every Wget run (in bsdsocket mode only!!?)…

Attached my mulibs (decompress it in LIBS: ) : https://gofile.io/?c=LMuL0n

EDIT: redownload please

Last edited by hexaae; 06 October 2019 at 14:50.
hexaae is offline  
Old 06 October 2019, 17:47   #8
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 44
Posts: 23,123
It appears to be bug in wget. It closes bsdsocket library twice (at least when executing --help) and because bsdsocket library is per-task library, library goes away when closed (and opencount is zero), next invalid close call may use corrupt memory.

Crash also depends on how socket library internally works.
Toni Wilen is offline  
Old 06 October 2019, 17:50   #9
hexaae
Registered User
hexaae's Avatar
 
Join Date: Jul 2006
Location: Italy
Age: 43
Posts: 1,345
Since I doubt quick Amiga68k ports on Aminet will ever try to fix that... could be added a workaround in bsdsocket emu for this specific case?

As far as I can understand this could affect also real Amiga systems, right?

Last edited by hexaae; 06 October 2019 at 18:27.
hexaae is offline  
Old 07 October 2019, 09:34   #10
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 44
Posts: 23,123
Finding matching sources would help because for some reason it still crash somewhere else even if I force library close to do nothing.
Toni Wilen is offline  
Old 07 October 2019, 10:47   #11
hexaae
Registered User
hexaae's Avatar
 
Join Date: Jul 2006
Location: Italy
Age: 43
Posts: 1,345
I've sent a mail to the author of the last port on Aminet:
http://m68k.aminet.net/package/dev/gg/wget-1.11.4-bin

I've found this in the meanwhile:
https://github.com/diegocr/wget-amiga

Last edited by hexaae; 07 October 2019 at 10:52.
hexaae is offline  
Old 07 October 2019, 10:58   #12
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 44
Posts: 23,123
main.c looks ok, it closes library(if open) when program exits. So I'll blame ixemul.library again
Toni Wilen is offline  
Old 07 October 2019, 14:08   #13
hexaae
Registered User
hexaae's Avatar
 
Join Date: Jul 2006
Location: Italy
Age: 43
Posts: 1,345
This one works fine with bsdsocket emu https://sourceforge.net/projects/ami...2.lha/download !
Moreover is even more recent than Aminet or GitHub versions: v1.12
hexaae is offline  
Old 07 October 2019, 17:13   #14
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 44
Posts: 23,123
It also does not use or require ixemul.library.
Toni Wilen is offline  
Old 08 October 2019, 11:44   #15
hexaae
Registered User
hexaae's Avatar
 
Join Date: Jul 2006
Location: Italy
Age: 43
Posts: 1,345
Quote:
Originally Posted by Toni Wilen View Post
It also does not use or require ixemul.library.
https://sourceforge.net/projects/ami...xemul.library/ here are the sources of latest available ixemul
hexaae is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bsdsocket.Library Emufr3ak Coders. Asm / Hardware 5 25 December 2016 11:20
bsdsocket missing source support.WinUAE 3 23 June 2013 14:48
C64 Boulder Dash: any online emu ? or standalone emu? keropi Retrogaming General Discussion 5 13 November 2007 13:03
bsdsocket slowdown amigan support.WinUAE 0 20 January 2004 12:37
How many emu's can be run within an emu? Fissuras Retrogaming General Discussion 3 11 July 2002 16:55

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 16:22.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Page generated in 0.08376 seconds with 15 queries