English Amiga Board


Go Back   English Amiga Board > Support > support.FS-UAE

 
 
Thread Tools
Old 18 March 2023, 20:33   #1
avantgarden
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!!!
avantgarden is offline  
Old 18 March 2023, 23:10   #2
patrik
Registered User
 
patrik's Avatar
 
Join Date: Jan 2005
Location: Umeå
Age: 43
Posts: 922
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.
patrik is offline  
Old 18 March 2023, 23:55   #3
avantgarden
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.
avantgarden is offline  
Old 19 March 2023, 02:01   #4
avantgarden
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.
avantgarden is offline  
Old 19 March 2023, 11:58   #5
avantgarden
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)
avantgarden is offline  
Old 25 March 2023, 12:00   #6
avantgarden
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.
avantgarden is offline  
Old 25 March 2023, 23:46   #7
patrik
Registered User
 
patrik's Avatar
 
Join Date: Jan 2005
Location: Umeå
Age: 43
Posts: 922
Cheers! Good work finding the problem!
patrik 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
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

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 17:46.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.07232 seconds with 13 queries