![]() |
![]() |
#1 |
Registered User
![]() Join Date: Apr 2020
Location: Roma
Posts: 48
|
bsdsocket_library crashes on DEBIAN
Hello gurus!!
A very nasty and easily reproductible bug... - install Xubuntu on a virtual machine - install fs-uae via apt-get - emulate AmigaOS 3.1 + KICK 3.1 with bsdsocket_library = 1 - spawn a TELNETD via INETD (Amitcp 3 Aminet version) - "telnet localhost" on another terminal --> *** buffer overflow detected ***: terminated <--- More info (and tears) here: https://github.com/FrodeSolheim/fs-uae/issues/327 (issue filed by me) Any clues? Many thanks!!! |
![]() |
![]() |
#2 |
Registered User
Join Date: Jan 2005
Location: Umeå
Age: 42
Posts: 865
|
This will probably not help, but it wont cost you much to try.
Have seen variants of UAE crash from misbehaving Amiga programs before. So I was thinking, that if it is the same telnetd as in this thread http://eab.abime.net/showthread.php?t=112069 it could very well be some secondary issue caused by overrunning the stack and doing random stuff in conjunction with the call over to the host Linux OS TCP/IP-stack. So see if it helps giving telnetd a larger stack, should be possible via the inetd config. Else try something like stackattack on aminet. |
![]() |
![]() |
#3 |
Registered User
![]() Join Date: Apr 2020
Location: Roma
Posts: 48
|
Thank you!!
Not sure how to specify stack size in AMITCP inetd.conf... Tried with "stackattack_020 MIN=131072" invoked in CLI without success! Last edited by avantgarden; 19 March 2023 at 00:11. |
![]() |
![]() |
#4 |
Registered User
![]() Join Date: Apr 2020
Location: Roma
Posts: 48
|
Some progress...
Serving services over unpriviledged ports seems to fix the issue. By the way... AmiTcp "services file" won't honor ports numbers specified! It just ignores the directive: telnet 1023/tcp and goes on serving telnet on 23/tcp. What's wrong with my "services" config?? So... newshell TCP:1023 kinda works... It won't crash fs-uae! But with known limitations, e.g. having to add ";" at line end to interact. Last edited by avantgarden; 19 March 2023 at 11:15. |
![]() |
![]() |
#5 |
Registered User
![]() Join Date: Apr 2020
Location: Roma
Posts: 48
|
Disregard above post!
newshell TCP:23 works OK! What remains to be sorted out is why the VERY SAME setup works on WinUAE while it crashes FS-UAE. (same DH0: folder, same Kickstart, bsdsocket_library = 1) |
![]() |
![]() |
#6 |
Registered User
![]() Join Date: Apr 2020
Location: Roma
Posts: 48
|
Solved!!!
Thanks Patrik for putting me on the right track!
Offending code was on guest side. I replaced "inetd" binary with a more recent one and problem disappeared. Original - crashing - inetd downloaded from: http://aminet.net/package/comm/net/AmiTCP-bin-30b2 Working inetd downloaded from: http://aminet.net/package/comm/tcp/AmiTCP-demo-40 Thanks again Patrik ![]() Last edited by avantgarden; 25 March 2023 at 15:20. |
![]() |
![]() |
#7 |
Registered User
Join Date: Jan 2005
Location: Umeå
Age: 42
Posts: 865
|
Cheers!
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Debian Linux under FS-UAE | Jagger | support.FS-UAE | 12 | 12 January 2017 11:45 |
x-arcade not working on debian | swann | support.FS-UAE | 7 | 08 August 2014 18:57 |
Debian crashes with kernel 2.6.8 when key pressed | mark_k | support.WinUAE | 1 | 27 September 2013 19:55 |
Debian installer CD problems | mark_k | support.WinUAE | 50 | 21 March 2013 12:19 |
Guru when starting Debian 3.1 for Amiga | The Rom Alien | support.WinUAE | 7 | 08 June 2005 17:11 |
|
|