openembedded-devel.lists.openembedded.org archive mirror
 help / color / mirror / Atom feed
* smbclient hangs in interactive mode after readline: 8.2.13 -> 8.3
@ 2025-08-26  9:53 Yiding Liu (Fujitsu)
  2025-08-26 10:35 ` [oe] " Gyorgy Sarvari
  0 siblings, 1 reply; 3+ messages in thread
From: Yiding Liu (Fujitsu) @ 2025-08-26  9:53 UTC (permalink / raw)
  To: Khem Raj, Yi Zhao; +Cc: openembedded-devel@lists.openembedded.org

[-- Attachment #1: Type: text/plain, Size: 1851 bytes --]

Hi All,

Our team found smbclient hangs in interactive mode after readline: 8.2.13 -> 8.3

When downgrade readline to older : 8.2.13, everything works fine.

Here “hang” means “terminal accepts no input after login”

Reproduce steps:

  1.  Add samba to core-image-minimal



diff --git a/meta/recipes-core/images/core-image-minimal.bb b/meta/recipes-core/images/core-image-minimal.bb

index 84343adcd8..661d6ca904 100644

--- a/meta/recipes-core/images/core-image-minimal.bb

+++ b/meta/recipes-core/images/core-image-minimal.bb

@@ -1,6 +1,7 @@

SUMMARY = "A small image just capable of allowing a device to boot."



-IMAGE_INSTALL = "packagegroup-core-boot ${CORE_IMAGE_EXTRA_INSTALL}"

+IMAGE_INSTALL = "packagegroup-core-boot ${CORE_IMAGE_EXTRA_INSTALL} samba“



  1.  $ runqemu core-image-minimal snapshot nographic
  2.  $ cat /etc/samba/smb.conf

[global]

   workgroup = MYGROUP

   server string = Samba Server

   security = user

   hosts allow = 192.168.2.16

   load printers = yes

   log file = /var/log/samba/log.%m

   max log size = 50

   interfaces = localhost

   dns proxy = no



[test]

   comment = samba server

   path = /home/test/samba

   writable = yes

   browseable = yes

   guest ok = yes

   public = yes

  1.  systemctl restart smb
  2.  root # smbclient //192.168.2.16/test -N
       Try "help" to get a list of possible commands.
      smb: \>

The current Samba version appears to have compatibility issues with the newer readline library.
However, upgrading to the latest stable release (4.22.4) introduced multiple build errors that are beyond my current troubleshooting scope.

I'm reaching out to the community for assistance. Does anyone have proven solutions or workarounds for this issue?


Liu Yiding





[-- Attachment #2: Type: text/html, Size: 8225 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [oe] smbclient hangs in interactive mode after readline: 8.2.13 -> 8.3
  2025-08-26  9:53 smbclient hangs in interactive mode after readline: 8.2.13 -> 8.3 Yiding Liu (Fujitsu)
@ 2025-08-26 10:35 ` Gyorgy Sarvari
  2025-08-27  2:43   ` Yiding Liu (Fujitsu)
  0 siblings, 1 reply; 3+ messages in thread
From: Gyorgy Sarvari @ 2025-08-26 10:35 UTC (permalink / raw)
  To: liuyd.fnst, Khem Raj, Yi Zhao; +Cc: openembedded-devel@lists.openembedded.org

By any chance, have you tried this patch[1] with readline?
Someone reported[2] a very similar issue with the latest release of
readline, and this patch was the result.

[1]:
https://cgit.git.savannah.gnu.org/cgit/readline.git/commit/?id=15970c431517a046099d8294c91d778b1da9b29d
[2]: https://lists.gnu.org/archive/html/bug-readline/2025-07/msg00011.html

On 8/26/25 11:53, Yiding Liu (Fujitsu) via lists.openembedded.org wrote:
>
> Hi All,
>
>  
>
> Our team found smbclient hangs in interactive mode after readline:
> 8.2.13 -> 8.3
>
>  
>
> When downgrade readline to older : 8.2.13, everything works fine.
>
>  
>
> Here “hang” means “terminal accepts no input after login”
>
>  
>
> Reproduce steps:
>
>  1. Add samba to core-image-minimal
>
>  
>
> diff --git a/meta/recipes-core/images/core-image-minimal.bb
> b/meta/recipes-core/images/core-image-minimal.bb
>
> index 84343adcd8..661d6ca904 100644
>
> --- a/meta/recipes-core/images/core-image-minimal.bb
>
> +++ b/meta/recipes-core/images/core-image-minimal.bb
>
> @@ -1,6 +1,7 @@
>
> SUMMARY = "A small image just capable of allowing a device to boot."
>
>  
>
> -IMAGE_INSTALL = "packagegroup-core-boot ${CORE_IMAGE_EXTRA_INSTALL}"
>
> +IMAGE_INSTALL = "packagegroup-core-boot ${CORE_IMAGE_EXTRA_INSTALL}
> samba“
>
>  
>
>  2. $ runqemu core-image-minimal snapshot nographic
>  3. $ cat /etc/samba/smb.conf
>
> [global]
>
>    workgroup = MYGROUP
>
>    server string = Samba Server
>
>    security = user
>
>    hosts allow = 192.168.2.16
>
>    load printers = yes
>
>    log file = /var/log/samba/log.%m
>
>    max log size = 50
>
>    interfaces = localhost
>
>    dns proxy = no
>
>  
>
> [test]
>
>    comment = samba server
>
>    path = /home/test/samba
>
>    writable = yes
>
>    browseable = yes
>
>    guest ok = yes
>
>    public = yes
>
>  4. systemctl restart smb
>  5. root # smbclient //192.168.2.16/test -N
>
>        Try "help" to get a list of possible commands.
>
>       smb: \>
>
>  
>
> The current Samba version appears to have compatibility issues with
> the newer readline library.
>
> However, upgrading to the latest stable release (4.22.4) introduced
> multiple build errors that are beyond my current troubleshooting scope.
>
>  
>
> I'm reaching out to the community for assistance. Does anyone have
> proven solutions or workarounds for this issue?
>
>  
>
>  
>
> Liu Yiding
>
>  
>
>  
>
>  
>
>  
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#119114): https://lists.openembedded.org/g/openembedded-devel/message/119114
> Mute This Topic: https://lists.openembedded.org/mt/114897135/6084445
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [skandigraun@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>



^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: [oe] smbclient hangs in interactive mode after readline: 8.2.13 -> 8.3
  2025-08-26 10:35 ` [oe] " Gyorgy Sarvari
@ 2025-08-27  2:43   ` Yiding Liu (Fujitsu)
  0 siblings, 0 replies; 3+ messages in thread
From: Yiding Liu (Fujitsu) @ 2025-08-27  2:43 UTC (permalink / raw)
  To: Gyorgy Sarvari, Khem Raj, Yi Zhao
  Cc: openembedded-devel@lists.openembedded.org



> -----Original Message-----
> From: Gyorgy Sarvari <skandigraun@gmail.com>
> Sent: Tuesday, August 26, 2025 6:35 PM
> To: Liu, Yiding/刘 乙丁 <liuyd.fnst@fujitsu.com>; Khem Raj
> <raj.khem@gmail.com>; Yi Zhao <yi.zhao@windriver.com>
> Cc: openembedded-devel@lists.openembedded.org
> Subject: Re: [oe] smbclient hangs in interactive mode after readline: 8.2.13 ->
> 8.3
> 
> By any chance, have you tried this patch[1] with readline?
> Someone reported[2] a very similar issue with the latest release of readline,
> and this patch was the result.
> 
> [1]:
> https://cgit.git.savannah.gnu.org/cgit/readline.git/commit/?id=15970c43151
> 7a046099d8294c91d778b1da9b29d
> [2]: https://lists.gnu.org/archive/html/bug-readline/2025-07/msg00011.html
> 
It works!! Thank you so much.
I have sent a backport patch to poky

Liu Yiding

> On 8/26/25 11:53, Yiding Liu (Fujitsu) via lists.openembedded.org wrote:
> >
> > Hi All,
> >
> >
> >
> > Our team found smbclient hangs in interactive mode after readline:
> > 8.2.13 -> 8.3
> >
> >
> >
> > When downgrade readline to older : 8.2.13, everything works fine.
> >
> >
> >
> > Here “hang” means “terminal accepts no input after login”
> >
> >
> >
> > Reproduce steps:
> >
> >  1. Add samba to core-image-minimal
> >
> >
> >
> > diff --git a/meta/recipes-core/images/core-image-minimal.bb
> > b/meta/recipes-core/images/core-image-minimal.bb
> >
> > index 84343adcd8..661d6ca904 100644
> >
> > --- a/meta/recipes-core/images/core-image-minimal.bb
> >
> > +++ b/meta/recipes-core/images/core-image-minimal.bb
> >
> > @@ -1,6 +1,7 @@
> >
> > SUMMARY = "A small image just capable of allowing a device to boot."
> >
> >
> >
> > -IMAGE_INSTALL = "packagegroup-core-boot
> ${CORE_IMAGE_EXTRA_INSTALL}"
> >
> > +IMAGE_INSTALL = "packagegroup-core-boot
> ${CORE_IMAGE_EXTRA_INSTALL}
> > samba“
> >
> >
> >
> >  2. $ runqemu core-image-minimal snapshot nographic  3. $ cat
> > /etc/samba/smb.conf
> >
> > [global]
> >
> >    workgroup = MYGROUP
> >
> >    server string = Samba Server
> >
> >    security = user
> >
> >    hosts allow = 192.168.2.16
> >
> >    load printers = yes
> >
> >    log file = /var/log/samba/log.%m
> >
> >    max log size = 50
> >
> >    interfaces = localhost
> >
> >    dns proxy = no
> >
> >
> >
> > [test]
> >
> >    comment = samba server
> >
> >    path = /home/test/samba
> >
> >    writable = yes
> >
> >    browseable = yes
> >
> >    guest ok = yes
> >
> >    public = yes
> >
> >  4. systemctl restart smb
> >  5. root # smbclient //192.168.2.16/test -N
> >
> >        Try "help" to get a list of possible commands.
> >
> >       smb: \>
> >
> >
> >
> > The current Samba version appears to have compatibility issues with
> > the newer readline library.
> >
> > However, upgrading to the latest stable release (4.22.4) introduced
> > multiple build errors that are beyond my current troubleshooting scope.
> >
> >
> >
> > I'm reaching out to the community for assistance. Does anyone have
> > proven solutions or workarounds for this issue?
> >
> >
> >
> >
> >
> > Liu Yiding
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > -=-=-=-=-=-=-=-=-=-=-=-
> > Links: You receive all messages sent to this group.
> > View/Reply Online (#119114):
> > https://lists.openembedded.org/g/openembedded-devel/message/119114
> > Mute This Topic: https://lists.openembedded.org/mt/114897135/6084445
> > Group Owner: openembedded-devel+owner@lists.openembedded.org
> > Unsubscribe: https://lists.openembedded.org/g/openembedded-
> devel/unsub
> > [skandigraun@gmail.com]
> > -=-=-=-=-=-=-=-=-=-=-=-
> >


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-08-27  2:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-26  9:53 smbclient hangs in interactive mode after readline: 8.2.13 -> 8.3 Yiding Liu (Fujitsu)
2025-08-26 10:35 ` [oe] " Gyorgy Sarvari
2025-08-27  2:43   ` Yiding Liu (Fujitsu)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).