Re: current now panics when starting VBox VM

2021-11-03 Thread Konstantin Belousov
t > /usr/src/sys/amd64/amd64/trap.c:1191 > #17 > #18 0x00080315a71a in ?? () > Backtrace stopped: Cannot access memory at address 0x7fffc778 > (kgdb) > Try this commit 2d3f95bd1fd4f71769f60b8037c1ff27c75d8258 Author: Konstantin Belousov Date: Wed Nov 3 17:11:33 2021 +0200 proc_get_binpath(): return e

Re: Wine 5.9 bugfix

2020-05-24 Thread Konstantin Belousov
On Sun, May 24, 2020 at 05:29:55PM +0200, Damjan Jovanovic wrote: > On Sun, May 24, 2020 at 4:49 PM Konstantin Belousov > wrote: > > > On Sun, May 24, 2020 at 03:45:47PM +0200, Damjan Jovanovic wrote: > > > On Sun, May 24, 2020 at 3:40 PM Gerald Pfeifer > > wrote

Re: Wine 5.9 bugfix

2020-05-24 Thread Konstantin Belousov
On Sun, May 24, 2020 at 03:45:47PM +0200, Damjan Jovanovic wrote: > On Sun, May 24, 2020 at 3:40 PM Gerald Pfeifer wrote: > > > On Sat, 23 May 2020, Damjan Jovanovic wrote: > > > For Wine. I'll submit it upstream when the rtld-elf patch goes into > > > stable/12. > > > > What will happen to users

Re: Wine 5.9 bugfix

2020-05-23 Thread Konstantin Belousov
On Sat, May 23, 2020 at 11:45:43AM +0200, Damjan Jovanovic wrote: > Hi > > Wine 5.9 is out, and all 3 of the bugs in 5.7 - 5.8 that were affecting > FreeBSD should be fixed upstream now. > > However I accidentally introduced another bug recently, where we don't > check the return value from an mm

Re: Debug linux binary with enable linux emulation

2020-05-12 Thread Konstantin Belousov
On Tue, May 12, 2020 at 12:49:25AM +0200, free...@sysctl.cz wrote: > Dne 2020-05-11 13:56, Konstantin Belousov napsal: > > On Mon, May 11, 2020 at 12:28:23AM +0200, free...@sysctl.cz wrote: > > > Hi, > > > I tried debug with gdb for linux emulation > > &

Re: Debug linux binary with enable linux emulation

2020-05-11 Thread Konstantin Belousov
On Mon, May 11, 2020 at 12:28:23AM +0200, free...@sysctl.cz wrote: > Hi, > I tried debug with gdb for linux emulation > and have issue with kernel panic. > > kldload linux64.ko > gdb ./Discord or other linux binary > > Fatal trap 12: page fault while in kernel mode > cpuid = 3; apic id = 03 > fau

Re: Panics while running Factorio (linux emulation)

2020-02-06 Thread Konstantin Belousov
On Thu, Feb 06, 2020 at 03:46:56PM +, Steve Roome wrote: > I keep getting panics (short backtraces later on) while running Factorio > for Linux. > > It is using a slightly newer linux glibc than the one in the linux-c7 > ports, but still, I'm running as a user, and it's causing panics. This is

Re: kernel panic - futex_xchgl () at /usr/src/sys/amd64/linux/linux_support.s:47

2018-08-12 Thread Konstantin Belousov
On Sat, Aug 11, 2018 at 11:53:28PM -0700, Eitan Adler wrote: > I got this panic recently. Figured I'd send it here. > > [352792] Fatal trap 12: page fault while in kernel mode > [352792] cpuid = 20; apic id = 14 > [352792] fault virtual address = 0x804010650 > [352792] fault code = su

Re: two proposed linuxulator fixes + ptrace

2018-06-15 Thread Konstantin Belousov
On Fri, Jun 15, 2018 at 10:23:06AM +0300, Yanko Yankulov wrote: > Thanks for the hint. It turned that we already have all the info due to the > call to fill_kinfo_proc(p, &kp); > > Proper patch attached. Verified with the ptrace patch, that correct values > are reported in PPid & TracerPid. Patch

Re: two proposed linuxulator fixes + ptrace

2018-06-14 Thread Konstantin Belousov
On Thu, Jun 14, 2018 at 04:11:52PM +0300, Yanko Yankulov wrote: > > > > For the patch 1, TracePid, can you explain what is the meaning of the > > > > pid reported ? > > > > > > > > The TracerPid is the PID of the process currently ptrace-ing the > > process. > > > TracerPid 0 means no active tracer

Re: two proposed linuxulator fixes + ptrace

2018-06-14 Thread Konstantin Belousov
On Thu, Jun 14, 2018 at 02:46:20PM +0300, Yanko Yankulov wrote: > Hi Konstantin, > > For the ptrace patch, I suggest you to put it on https://reviews.freebsd.org > > and set at least me (kib), jhb and dchagin as reviewers. I will handle it. > > > > Will do. Just have to figure out how it works. >

Re: two proposed linuxulator fixes + ptrace

2018-06-14 Thread Konstantin Belousov
On Thu, Jun 14, 2018 at 11:31:20AM +0300, Yanko Yankulov wrote: > Hi all, > > I stumbled on two problems trying to run a proprietary java/native Linux > app on FreeBSD. I managed to get it working with two small changes to the > Linux compatibility code. Also in order to pinpoint the issues I got

Re: VirtualBox network connectivity broken on recent -CURRENT

2016-06-05 Thread Konstantin Belousov
On Sun, Jun 05, 2016 at 12:35:29PM -0700, Don Lewis wrote: > On 4 Jun, To: mm...@nextbsd.org wrote: > > On 4 Jun, Matthew Macy wrote: > >> > >> > >> > >> On Sat, 04 Jun 2016 19:04:42 -0700 Randy Westlund > >> wrote > >> > On Fri, Jun 03, 2016 at 05:11:24PM -0700, Don Lewis wrote:

Re: Hi, a question about "struct sysentvc"

2016-03-19 Thread Konstantin Belousov
On Wed, Mar 16, 2016 at 03:48:13PM +0330, mokhi wrote: > Thanks for your answer :D > > On 3/16/16, Konstantin Belousov wrote: > > There is no guide, read the code. > > Elf code is better in help ? or aout ? You need to read all the involved code to understand the inter

Re: Hi, a question about "struct sysentvc"

2016-03-15 Thread Konstantin Belousov
On Wed, Mar 16, 2016 at 01:16:56AM +0330, mokhi wrote: > Hi guys. > I was reading/studying code of Elf image activator to see how binary > stars on FreeBSD. > On included file (sysent.h), I saw 3 declarations: > extern struct sysentvec aout_sysvec; > extern struct sysentvec elf_freebsd_sysvec; > ex

Re: citrix_ica - "wfica" generates deadlock in linux_sys_futex...

2016-03-08 Thread Konstantin Belousov
On Tue, Mar 08, 2016 at 12:30:10PM +0300, Chagin Dmitry wrote: > On Tue, Mar 08, 2016 at 10:03:50AM +0100, Nils Beyer wrote: > > Chagin Dmitry wrote: > > using 10.3-RC1 (r296451M) "wfica" from citrix_ica generates a deadlock > > in linux_sys_futex: > > ===

Re: qemu-user-static troubles

2015-12-29 Thread Konstantin Belousov
On Tue, Dec 29, 2015 at 06:32:59PM +, Johannes Totz wrote: > Hi there, > > I'm having some trouble with qemu-user-static, specifically > qemu-x86_64-static. > > It's dying immediately no matter what parameters and executable I give > it. For example: > > # /usr/local/bin/qemu-x86_64-static

Re: does linsysfs support mmap on pci resources (e.g. pci device's registers etc.)

2014-10-01 Thread Konstantin Belousov
You choice of the list to ask the question is weird. I added hackers@ as more suitable ML. On Wed, Oct 01, 2014 at 03:44:48PM +1000, leon zadorin wrote: > Hello everyone, > Sorry if this is a bit of a noob question -- I'm just starting on this > topic... does FreeBSD's emulation of sysfs (from li

Re: ports/182468: [patch] lang/gcc builds unrunnable emulators/virtualbox-ose

2013-11-03 Thread Konstantin Belousov
On Sun, Nov 03, 2013 at 10:10:01AM +, Peter Jeremy wrote: > The following reply was made to PR ports/182468; it has been noted by GNATS. > > From: Peter Jeremy > To: Volodymyr Kostyrko > Cc: bug-follo...@freebsd.org > Subject: Re: ports/182468: [patch] lang/gcc builds unrunnable > emulators

Re: [patch] Wine DLL base address patches

2013-02-26 Thread Konstantin Belousov
On Tue, Feb 26, 2013 at 10:52:15PM +0200, Damjan Jovanovic wrote: > On Fri, Feb 22, 2013 at 5:19 AM, Damjan Jovanovic > wrote: > > On Thu, Feb 21, 2013 at 5:44 PM, Konstantin Belousov > > wrote: > >> On Thu, Feb 21, 2013 at 12:57:45AM +0200, Damjan Jovanovic wrote: &g

Re: [patch] Wine DLL base address patches

2013-02-21 Thread Konstantin Belousov
On Thu, Feb 21, 2013 at 12:57:45AM +0200, Damjan Jovanovic wrote: > On Wed, Feb 20, 2013 at 10:51 PM, Tijl Coosemans wrote: > > On 20-02-2013 16:48, Konstantin Belousov wrote: > >> On Wed, Feb 20, 2013 at 05:29:01PM +0200, Damjan Jovanovic wrote: > >>> Hi >

Re: [patch] Wine DLL base address patches

2013-02-20 Thread Konstantin Belousov
On Wed, Feb 20, 2013 at 09:51:37PM +0100, Tijl Coosemans wrote: > On 20-02-2013 16:48, Konstantin Belousov wrote: > > On Wed, Feb 20, 2013 at 05:29:01PM +0200, Damjan Jovanovic wrote: > >> Hi > >> > >> Wine needs some of its libraries to be loaded at

Re: [patch] Wine DLL base address patches

2013-02-20 Thread Konstantin Belousov
On Wed, Feb 20, 2013 at 05:29:01PM +0200, Damjan Jovanovic wrote: > Hi > > Wine needs some of its libraries to be loaded at specific base > addresses (https://wiki.freebsd.org/Wine), something FreeBSD currently > lacks. > > I've written a patch to the dynamic loader (/libexec/ld-elf.so.1) that >

Re: VirtualBox 4.2.4 on FreeBSD 9.1-PRERELEASE problem: VMs behave very different when pinned to different cores

2012-11-28 Thread Konstantin Belousov
On Wed, Nov 28, 2012 at 05:24:35PM +0200, Andriy Gapon wrote: > on 26/11/2012 09:10 Alex Chistyakov said the following: > > CPU: Intel(R) Core(TM) i7-3930K CPU @ 3.20GHz (3200.18-MHz K8-class CPU) > > Origin = "GenuineIntel" Id = 0x206d7 Family = 0x6 Model = 0x2d > > Stepping = 7 > > Features=

Re: TCSBRK implementation for linux compat

2012-10-25 Thread Konstantin Belousov
On Thu, Oct 25, 2012 at 09:17:39PM +0200, Marcin Mazur wrote: > Hi. > > I needed suport for this feature in FreeBSD linux emulation, because I > have to use precompiled linux library/binary that uses it. There was a > lot of errors in logs like: > > > "... ioctl fd=52, cmd=0x5409 ('T',9) is not

Re: [CFT]Patch for dri / drm interoperability i386 world / amd64 kernel

2012-08-18 Thread Konstantin Belousov
On Sat, Aug 11, 2012 at 09:25:09AM +0800, Meowthink wrote: > Hello all, > > So long FreeBSD's DRI implementation lacks of i386/amd64 > interoperability, as discussed [0] [1]. This breaks wine, linuxulator > etc. drawing using DRI-based OpenGL. > Paul Mackerras et al. actually did that part for Lin

Re: [Bengt Ahlgren] 8.3-PRERELEASE panic in linux emulation

2012-02-27 Thread Konstantin Belousov
On Mon, Feb 27, 2012 at 03:35:54PM +0100, Bengt Ahlgren wrote: > Konstantin Belousov writes: > > > On Mon, Feb 27, 2012 at 01:49:28PM +0100, Bengt Ahlgren wrote: > >> Konstantin Belousov writes: > >> > >> > On Fri, Feb 24, 2012 at 09:55:31PM +0100,

Re: [Bengt Ahlgren] 8.3-PRERELEASE panic in linux emulation

2012-02-27 Thread Konstantin Belousov
On Mon, Feb 27, 2012 at 01:49:28PM +0100, Bengt Ahlgren wrote: > Konstantin Belousov writes: > > > On Fri, Feb 24, 2012 at 09:55:31PM +0100, Bengt Ahlgren wrote: > >> Bengt Ahlgren writes: > >> > >> > Konstantin Belousov writes: > >> > &

Re: [Bengt Ahlgren] 8.3-PRERELEASE panic in linux emulation

2012-02-24 Thread Konstantin Belousov
On Fri, Feb 24, 2012 at 09:55:31PM +0100, Bengt Ahlgren wrote: > Bengt Ahlgren writes: > > > Konstantin Belousov writes: > > > >> On Fri, Feb 24, 2012 at 01:27:24PM +0100, Bengt Ahlgren wrote: > >>> Hello! > >>> > >>&

Re: [Bengt Ahlgren] 8.3-PRERELEASE panic in linux emulation

2012-02-24 Thread Konstantin Belousov
On Fri, Feb 24, 2012 at 01:27:24PM +0100, Bengt Ahlgren wrote: > Hello! > > Perhaps emulation@ is a better place to report this problem? > > Bengt > > From: Bengt Ahlgren > To: sta...@freebsd.org > Subject: 8.3-PRERELEASE panic in linux emulation > Date: Thu, 23 Feb 2012 17:26:32 +0100 > > Hi