On Wed, Dec 03, 2025 at 11:26:15AM +0000, Daniel P. Berrangé wrote:
> Normally bash in F42 runs with a prompt and we see
> 
>   61385 ioctl(0,TCGETS,0x00007f34260697e8) = 0 ({c_iflag = ICRNL|IXON,c_oflag 
> = OPOST|ONLCR,c_cflag = B38400,CS8,CREAD,c_lflag = 
> ISIG|ICANON|ECHO|ECHOE|ECHOK|ECHOCTL|ECHOKE|IEXTEN,c_cc = "^C^\^?
> ^U^D",c_line = '^@'})
>   61385 ioctl(2,TCGETS,0x00007f34260697e8) = 0 ({c_iflag = ICRNL|IXON,c_oflag 
> = OPOST|ONLCR,c_cflag = B38400,CS8,CREAD,c_lflag = 
> ISIG|ICANON|ECHO|ECHOE|ECHOK|ECHOCTL|ECHOKE|IEXTEN,c_cc = "^C^\^?
> ^U^D",c_line = '^@'})
> 
> When I redirect stderr to a file/pipe the latter ioctl
> obviously fails:
> 
>   60841 ioctl(0,TCGETS,0x00007f19561fe7e8) = 0 ({c_iflag = ICRNL|IXON,c_oflag 
> = OPOST|ONLCR,c_cflag = B38400,CS8,CREAD,c_lflag = 
> ISIG|ICANON|ECHO|ECHOE|ECHOK|ECHOCTL|ECHOKE|IEXTEN,c_cc = "^C^\^?
>   60841 ioctl(2,TCGETS,0x00007f19561fe7e8) = -1 errno=25 (Inappropriate ioctl 
> for device)
> 
> 
> Now looking at F43 bash I no longer see QEMU reporting TCGETS
> ioctl, instead I see
> 
>   61809 ioctl(0,0x802c542a,0xd73fe8f4) = -1 errno=25 (Inappropriate ioctl for 
> device)
> 
> that suggests to me that bash is probably using a different (new?)
> ioctl that QEMU does not have emulation for currently.

IIUC,  0x802c542a corresponds to TCGETS2, and indeed QEMU does not
currently emulate TCGETS2 which can be seen with QEMU's logging:

  # qemu-s390x -d unimp  -L `pwd` ./usr/bin/bash  2>&1
  Unsupported syscall: 383
  Unsupported ioctl: cmd=0xffffffff802c542a

IOW, F43 or later will be broken until this is impl in QEMU

With regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|

-- 
_______________________________________________
devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to