06 October 2019, 03:31 | #1 |
Bug hunter
Join Date: Jul 2006
Location: Italy
Age: 48
Posts: 2,161
|
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... |
06 October 2019, 08:41 | #2 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,518
|
Sounds like the usual with unix ported programs: huge stack needed.
|
06 October 2019, 11:04 | #3 | |
Bug hunter
Join Date: Jul 2006
Location: Italy
Age: 48
Posts: 2,161
|
Quote:
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 |
|
06 October 2019, 11:31 | #4 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,518
|
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. |
06 October 2019, 12:21 | #5 |
Bug hunter
Join Date: Jul 2006
Location: Italy
Age: 48
Posts: 2,161
|
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. |
06 October 2019, 14:28 | #7 |
Bug hunter
Join Date: Jul 2006
Location: Italy
Age: 48
Posts: 2,161
|
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. |
06 October 2019, 17:47 | #8 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,518
|
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. |
06 October 2019, 17:50 | #9 |
Bug hunter
Join Date: Jul 2006
Location: Italy
Age: 48
Posts: 2,161
|
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. |
07 October 2019, 09:34 | #10 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,518
|
Finding matching sources would help because for some reason it still crash somewhere else even if I force library close to do nothing.
|
07 October 2019, 10:47 | #11 |
Bug hunter
Join Date: Jul 2006
Location: Italy
Age: 48
Posts: 2,161
|
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. |
07 October 2019, 10:58 | #12 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,518
|
main.c looks ok, it closes library(if open) when program exits. So I'll blame ixemul.library again
|
07 October 2019, 14:08 | #13 |
Bug hunter
Join Date: Jul 2006
Location: Italy
Age: 48
Posts: 2,161
|
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 |
07 October 2019, 17:13 | #14 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,518
|
It also does not use or require ixemul.library.
|
08 October 2019, 11:44 | #15 |
Bug hunter
Join Date: Jul 2006
Location: Italy
Age: 48
Posts: 2,161
|
https://sourceforge.net/projects/ami...xemul.library/ here are the sources of latest available ixemul
|
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 |
|
|