From nobody Sun Jul 18 00:56:38 2021 X-Original-To: freebsd-emulation@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id D57B6127C58B for ; Sun, 18 Jul 2021 00:56:52 +0000 (UTC) (envelope-from me@stephenroome.com) Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GS64h207Xz4XMT for ; Sun, 18 Jul 2021 00:56:51 +0000 (UTC) (envelope-from me@stephenroome.com) Received: by mail-pl1-x635.google.com with SMTP id n11so7604304plc.2 for ; Sat, 17 Jul 2021 17:56:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stephenroome-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=oLu1Drd2dBp0kqZzfePsVelAUmiSEbXbrNdQ+3FvoGw=; b=FebjwXWjCtJM20iZblsZBig2qF9Q0I0vLLdNpu1rC7A6OX9hDDBq48wWmOdy3aICr1 FoQIjXdpSlAEofSXm4T/ZWZafKjbzxMAC9cGBUM/n8MP+ZdrTI9B5aowjffKUuHdEfm5 IyjUFvhENmSwthlfM+n0e+tAMxlyTIdZcQ4INXMK1oeBMfsOKTNgbGYBgDnUESoB7JFc PRasaDBSasQe9VktL00G2KnKNiEP+b85UlwxBkE3jzetitURn4eAnQIGSuEvzLRI84bn FEHps/NjVNjtBAbVKVn2YNOqhhCJ0bYs/x+nh1uRR/+MWBwQbP+BLdLg2MMQSzHayJI3 CM1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=oLu1Drd2dBp0kqZzfePsVelAUmiSEbXbrNdQ+3FvoGw=; b=NxGs/ARmrMLdlzLrAC+bcmqq11p3aBAXMKtaTr+y4SPsDjvuapXt6Bx8syS2R9voio ocpPHpb4JiL19derjJz+NBhPvszaQZma3tpTeDY73jRFrxDHI9MKqv5V/FnAVsdizrdw qA9qoF4P0c5YXHyXHWB8d6mlaph601nHp+HuivjTJ3VUj2JO0yAOe+Y5KABIeVLe6LAP 8w6nLzuhSeo255bkoN0LEbCP2+xLjynDvrtFhCQVdJlmNT8p581rxgfDfHFKFZ29e9ag Xql46ELUGyAxxRJVpG8uOD2kqCkNVDjo4uCeZJsUK7+MFCL7fCjyxCNYk1SXRvtaZoFm 32/Q== X-Gm-Message-State: AOAM530a96aMrKzllv+CU1CZqoQTuL/dAufd/FRmjIiSqew5ix/3GbEZ QciV6QAinybPA8WbXDde+90bLCECAFuP7X0CS+jpq1cIhZ+kxRvUORQ= X-Google-Smtp-Source: ABdhPJzzN8KijCnT8sxRqKvn9fp0ZzXKPuCbiKXzIMsGtR9EYNtEDNY1+GfV+wZrn+6PE2u3Oo0ZiQe0jdxg6asOw6E= X-Received: by 2002:a17:90a:1909:: with SMTP id 9mr17469615pjg.105.1626569809401; Sat, 17 Jul 2021 17:56:49 -0700 (PDT) List-Id: Development of Emulators of other operating systems List-Archive: https://lists.freebsd.org/archives/freebsd-emulation List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-emulation@freebsd.org MIME-Version: 1.0 From: Steve Roome Date: Sun, 18 Jul 2021 01:56:38 +0100 Message-ID: Subject: linux_sendfile issue in 13-p3 whereas 12.1 was working fine. To: freebsd-emulation@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4GS64h207Xz4XMT X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=stephenroome-com.20150623.gappssmtp.com header.s=20150623 header.b=FebjwXWj; dmarc=none; spf=none (mx1.freebsd.org: domain of me@stephenroome.com has no SPF policy when checking 2607:f8b0:4864:20::635) smtp.mailfrom=me@stephenroome.com X-Spamd-Result: default: False [2.55 / 15.00]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[stephenroome-com.20150623.gappssmtp.com:s=20150623]; FREEFALL_USER(0.00)[me]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_SPAM_SHORT(1.00)[1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-emulation@freebsd.org]; TO_DN_NONE(0.00)[]; NEURAL_SPAM_MEDIUM(1.00)[1.000]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::635:from:127.0.2.255]; DMARC_NA(0.00)[stephenroome.com]; DKIM_TRACE(0.00)[stephenroome-com.20150623.gappssmtp.com:+]; NEURAL_SPAM_LONG(0.85)[0.847]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::635:from]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::635:from]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-emulation] X-ThisMailContainsUnwantedMimeParts: N Hi, I've recently upgraded to FreeBSD 13.0-RELEASE-p3 from 12.1 There appears to be a problem with Factorio which is a game from Linux, FreebSD 12 worked okay. This does need a different glibc, which I use via patchelf on the binary I run, I use 2.18 and some other libs, but that was not a problem in FreeBSD 12 and all worked well for many hours at a time. Now it appears to fail on a linux_sendfile call with socket operation on non socket. This was working a before the upgrade, so it seems that something in linux_sendfile() has changed in 13 that was working in 12. There is an error message in the program I am running that says: Error while running reload_script: filesystem error: copy_file "/home/steve/factorio/data/base/scenarios/freeplay/control.lua" to "/home/steve/factorio/temp/currently-playing-background/control.lua" failed: Socket operation on non-socket [/home/steve/factorio/data/base/scenarios/freeplay/control.lua] [/home/steve/factorio/data/base/currently-playing-background/control.lua] I have included a truss -f output below that shows what it is doing as best as I can get at the moment. Can anyone pinpoint the error and help resolve it please. many thanks, Steve Roome The truss shows: 4933: linux_time(0x0) = 1626569239 (0x60f37a17) 4933: linux_newstat("/home/steve/factorio/temp/currently-playing-background/locale/en/info.json",0x7fffffff9ee0) ERR#-2 'No such file or directory' 4933: linux_newstat("/home/steve/factorio/temp/currently-playing-background/locale/en",0x7fffffff9e80) ERR#-2 'No such file or directory' 4933: linux_newstat("/home/steve/factorio/temp/currently-playing-background/campaign-locale/en/info.json",0x7fffffff9ee0) ERR#-2 'No such file or directory' 4933: linux_newstat("/home/steve/factorio/temp/currently-playing-background/campaign-locale/en",0x7fffffff9e80) ERR#-2 'No such file or directory' 4933: linux_newstat("/home/steve/factorio/temp/currently-playing-background/control.lua",0x7fffffffa0c0) ERR#-2 'No such file or directory' 4933: linux_newstat("/home/steve/factorio/data/base/scenarios/freeplay/",0x7fffffffa2d0) = 0 (0x0) 4933: linux_newstat("/home/steve/factorio/data/base/scenarios/lualib",0x7fffffffa2d0) ERR#-2 'No such file or directory' 4933: linux_newstat("/home/steve/factorio/data/base/scenarios/locale",0x7fffffffa2d0) ERR#-2 'No such file or directory' 4933: linux_newstat("/home/steve/factorio/data/base/scenarios/freeplay",0x7fffffff9de0) = 0 (0x0) 4933: linux_openat(0xffffffffffffff9c,0x455ae30,0x90800,0x0) = 30 (0x1e) 4933: linux_getdents(0x1e,0xf550490,0x8000) = 216 (0xd8) 4933: linux_newstat("/home/steve/factorio/data/base/scenarios/freeplay/control.lua",0x7fffffff9de0) = 0 (0x0) 4933: linux_newlstat(0x4565a80,0x7fffffff9bb0) = 0 (0x0) 4933: linux_newstat("/home/steve/factorio/temp/currently-playing-background/control.lua",0x7fffffff9960) ERR#-2 'No such file or directory' 4933: linux_newstat("/home/steve/factorio/data/base/scenarios/freeplay/control.lua",0x7fffffff99f0) = 0 (0x0) 4933: linux_open("/home/steve/factorio/data/base/scenarios/freeplay/control.lua",0x0,037777714760) = 31 (0x1f) 4933: linux_open("/home/steve/factorio/temp/currently-playing-background/control.lua",0x241,0200) = 32 (0x20) 4933: fchmod(32,0100644) = 0 (0x0) 4933: linux_sendfile(0x20,0x1f,0x7fffffff9958,0x76) ERR#-88 'Socket operation on non-socket'