Page MenuHomeFreeBSD

Linux EmulationUmbrella
ActivePublic

Recent Activity

Jun 30 2018

dbn abandoned D13870: lang/linux-dotnet-(runtime|sdk): add linux implementation of .NET Core.
Jun 30 2018, 8:19 PM · Linux Emulation
dbn added a comment to D13870: lang/linux-dotnet-(runtime|sdk): add linux implementation of .NET Core.

Committed in r473600

Jun 30 2018, 8:19 PM · Linux Emulation
dbn added inline comments to D13870: lang/linux-dotnet-(runtime|sdk): add linux implementation of .NET Core.
Jun 30 2018, 7:33 AM · Linux Emulation

Jun 18 2018

mat added inline comments to D13870: lang/linux-dotnet-(runtime|sdk): add linux implementation of .NET Core.
Jun 18 2018, 10:42 AM · Linux Emulation

Jun 17 2018

dbn updated the diff for D13870: lang/linux-dotnet-(runtime|sdk): add linux implementation of .NET Core.

Downgrade dotnet from 2.1 to 2.0. Dotnet 2.1 uses Linux's /proc/$PID/maps output for various purposes, however FreeBSD has a but whereby output is truncated at 128KiB. This breaks the parsing of the output.

Jun 17 2018, 7:06 PM · Linux Emulation

Jun 16 2018

yanko.yankulov_gmail.com added a comment to D15823: Linuxlator enable ptrace.

Just one more question. I can't figure out why we can't reparent the new proc in do_fork instead of waiting for its thread to do it? Any hint will be appreciated.

I am not sure about your question. Can you point to the exact piece of code which you want to move into do_fork ? If you mean proc_reparent() call from fork_return(), I put it there to have all code dealing with the attaching new child to the debugger, in single place. ptracestop() must be called from the stopping thread context, and proc_reparent() as part of the attachment code is naturally located nearby. But I may be mis-interpreting your question, and also I do not see why you are asking.

Yes, that the question. I was trying to figure out why we need the sleep in the fork path at all. Because if we can get rid of the sleep, there is no need to change anything else. So my reasoning was like this - it is either required by the ptrace interface/promises i.e. parent process will not continue execution before the child is attached, or it is part of the implementation of the interface.

I assumed it is not a ptrace requirement because there is no guarantees for the parent/child execution in non-ptraced mode, and went on to see why it might be needed. One thing in the current code is that we can't allow the parent process to exit before the child was reparented as we will not attach to the child.

So my question is if we reparent the child in do_fork wouldn't it be possible and desirable to drop the wait altogether?

Jun 16 2018, 7:17 PM · Linux Emulation
yanko.yankulov_gmail.com added a comment to D15823: Linuxlator enable ptrace.

Just one more question. I can't figure out why we can't reparent the new proc in do_fork instead of waiting for its thread to do it? Any hint will be appreciated.

I am not sure about your question. Can you point to the exact piece of code which you want to move into do_fork ? If you mean proc_reparent() call from fork_return(), I put it there to have all code dealing with the attaching new child to the debugger, in single place. ptracestop() must be called from the stopping thread context, and proc_reparent() as part of the attachment code is naturally located nearby. But I may be mis-interpreting your question, and also I do not see why you are asking.

Jun 16 2018, 3:22 PM · Linux Emulation
kib added a comment to D15823: Linuxlator enable ptrace.

I checked the rest of the RFSTOPPED use points and applying the change seems trivial. So if the general idea is acceptable I can apply the changes to all the places and upload a new patch.

Right now I think that this is working approach.

Jun 16 2018, 2:57 PM · Linux Emulation
yanko.yankulov_gmail.com added a comment to D15823: Linuxlator enable ptrace.
In D15823#335057, @kib wrote:

Please generate large diff context when you upload diff into phab, e.g. for svn it would be svn diff -x -U999999, for git diff -U999999.

Jun 16 2018, 1:59 PM · Linux Emulation
dbn updated the diff for D13870: lang/linux-dotnet-(runtime|sdk): add linux implementation of .NET Core.

Update to latest versions of dotnet, fix SDK for v1.1 (no SDK for v1.0).

Jun 16 2018, 11:41 AM · Linux Emulation
kib added a comment to D15823: Linuxlator enable ptrace.

Please generate large diff context when you upload diff into phab, e.g. for svn it would be svn diff -x -U999999, for git diff -U999999.

Jun 16 2018, 11:11 AM · Linux Emulation

Jun 15 2018

chuck closed D15563: Add linprocfs support for min_free_kbytes.
Jun 15 2018, 3:22 PM · Linux Emulation
yanko.yankulov_gmail.com created D15823: Linuxlator enable ptrace.
Jun 15 2018, 3:19 PM · Linux Emulation
chuck added inline comments to D15563: Add linprocfs support for min_free_kbytes.
Jun 15 2018, 3:18 PM · Linux Emulation

Jun 13 2018

imp accepted D15563: Add linprocfs support for min_free_kbytes.
Jun 13 2018, 2:05 AM · Linux Emulation
emaste accepted D15563: Add linprocfs support for min_free_kbytes.
Jun 13 2018, 1:23 AM · Linux Emulation
chuck updated the diff for D15563: Add linprocfs support for min_free_kbytes.

Update function comment to add details recommend by @emaste

Jun 13 2018, 12:59 AM · Linux Emulation

Jun 12 2018

emaste accepted D15563: Add linprocfs support for min_free_kbytes.

It might be worth moving the clarification you provided in response to my query into a comment above linprocfs_dominfree.

Jun 12 2018, 4:18 PM · Linux Emulation
chuck added inline comments to D15563: Add linprocfs support for min_free_kbytes.
Jun 12 2018, 4:03 PM · Linux Emulation

Jun 9 2018

emaste added a comment to D15563: Add linprocfs support for min_free_kbytes.

Thanks for this change - looks good to me, but one small question first. Also for future uploads can you include full context as on https://wiki.freebsd.org/Phabricator - e.g. one of:

git diff -U999999 other-branch > change.diff
git show -U999999 <commit-hash> > change.diff
svn diff --diff-cmd=diff -x -U999999 > change.diff
Jun 9 2018, 7:18 PM · Linux Emulation

May 25 2018

chuck added a project to D15563: Add linprocfs support for min_free_kbytes: Linux Emulation.
May 25 2018, 10:56 PM · Linux Emulation

May 2 2018

russ.haley_gmail.com added a comment to D13870: lang/linux-dotnet-(runtime|sdk): add linux implementation of .NET Core.

Hi David,

May 2 2018, 4:37 AM · Linux Emulation

Feb 8 2018

russ.haley_gmail.com added a comment to D13870: lang/linux-dotnet-(runtime|sdk): add linux implementation of .NET Core.
In D13870#299128, @dbn wrote:

russellh@g1 /u/l/lib> pwd
/usr/local/lib
russellh@g1 /u/l/lib> ll libunwind.so*
lrwxr-xr-x 1 root wheel 18B Jul 26 2017 libunwind.so -> libunwind.so.8.0.1
lrwxr-xr-x 1 root wheel 18B Jul 26 2017 libunwind.so.8 -> libunwind.so.8.0.1
-rwxr-xr-x 1 root wheel 43K Jul 26 2017 libunwind.so.8.0.1

I think your Ports directory was out-of-date. There is a bug with USES=linux in that it ignores missing Linux packages (i.e. if your Ports tree was out-of-date). See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225768 for the patch to check for this case.

Also, note that this is a Linux port, and you need the Linux version of libunwind:

# cd /compat/linux/usr/lib
# ls -l libunwind.so*
lrwxr-xr-x  1 root  wheel     18 Aug  2  2017 libunwind.so.8 -> libunwind.so.8.0.1
-rwxr-xr-x  1 root  wheel  43764 Aug  2  2017 libunwind.so.8.0.1

You can manually install it with pkg install linux-c7-libunwind, however you are likely missing other Linux packages.

I hope this helps?

Feb 8 2018, 7:44 PM · Linux Emulation
dbn added a comment to D13870: lang/linux-dotnet-(runtime|sdk): add linux implementation of .NET Core.

russellh@g1 /u/l/lib> pwd
/usr/local/lib
russellh@g1 /u/l/lib> ll libunwind.so*
lrwxr-xr-x 1 root wheel 18B Jul 26 2017 libunwind.so -> libunwind.so.8.0.1
lrwxr-xr-x 1 root wheel 18B Jul 26 2017 libunwind.so.8 -> libunwind.so.8.0.1
-rwxr-xr-x 1 root wheel 43K Jul 26 2017 libunwind.so.8.0.1

Feb 8 2018, 6:55 PM · Linux Emulation

Feb 3 2018

russ.haley_gmail.com added a comment to D13870: lang/linux-dotnet-(runtime|sdk): add linux implementation of .NET Core.

Hi David, I'm trying to create a test application from instructions here: https://medium.com/wolox-driving-innovation/how-to-create-your-first-net-e2223dedb74f

Feb 3 2018, 7:11 AM · Linux Emulation

Feb 1 2018

dbn updated the diff for D13870: lang/linux-dotnet-(runtime|sdk): add linux implementation of .NET Core.

Update patch based on committed dependencies.

Feb 1 2018, 6:22 PM · Linux Emulation

Jan 29 2018

cem requested changes to D13656: Bug 223722 add sys/class/net data to linsysfs.

The patch does not conform to style(9).

Jan 29 2018, 12:07 AM · Linux Emulation, Contributor Reviews (base)

Jan 15 2018

dbn updated the test plan for D13870: lang/linux-dotnet-(runtime|sdk): add linux implementation of .NET Core.
Jan 15 2018, 3:44 AM · Linux Emulation

Dec 27 2017

emaste added a comment to D13656: Bug 223722 add sys/class/net data to linsysfs.

Thanks, I will try to take a detailed look at this soon. For future changes, and if you have reason to upload a new diff to this review, please upload with full context as described in https://wiki.freebsd.org/action/show/Phabricator

Dec 27 2017, 11:44 PM · Linux Emulation, Contributor Reviews (base)
cneirabustos_gmail.com created D13656: Bug 223722 add sys/class/net data to linsysfs.
Dec 27 2017, 7:17 PM · Linux Emulation, Contributor Reviews (base)

Jun 17 2017

D7973: Linux ARM v2 4/9 is now accepted and ready to land.
Jun 17 2017, 9:08 PM · Linux Emulation, ARM
D7971: Linux ARM v2 2/9 is now accepted and ready to land.
Jun 17 2017, 9:03 PM · Linux Emulation, ARM
D7970: Linux ARM v2 1/9 is now accepted and ready to land.
Jun 17 2017, 8:59 PM · Linux Emulation, ARM

Apr 16 2017

miwi added a watcher for Linux Emulation: miwi.
Apr 16 2017, 5:24 PM

Oct 4 2016

andrew accepted D7972: Linux ARM v2 3/9.
Oct 4 2016, 1:31 PM · Linux Emulation, ARM
soutade_gmail.com updated the diff for D7974: Linux ARM v2 5/9.

Remove obsolete syscalls. Add linux_send() and linux_recv()

Oct 4 2016, 12:46 PM · Linux Emulation, ARM
soutade_gmail.com updated the diff for D7973: Linux ARM v2 4/9.

Remove obsolete syscalls. Add linux_send() and linux_recv()

Oct 4 2016, 12:46 PM · Linux Emulation, ARM
soutade_gmail.com updated the diff for D7972: Linux ARM v2 3/9.

Remove obsolete syscalls. Add linux_send() and linux_recv()

Oct 4 2016, 12:45 PM · Linux Emulation, ARM
soutade_gmail.com updated the diff for D7971: Linux ARM v2 2/9.

Remove unnecessary cast. Remove obsolete syscalls. Add linux_send() and linux_recv()

Oct 4 2016, 12:44 PM · Linux Emulation, ARM
soutade_gmail.com added inline comments to D7972: Linux ARM v2 3/9.
Oct 4 2016, 12:31 PM · Linux Emulation, ARM
soutade_gmail.com added inline comments to D7971: Linux ARM v2 2/9.
Oct 4 2016, 9:58 AM · Linux Emulation, ARM
andrew added inline comments to D7972: Linux ARM v2 3/9.
Oct 4 2016, 9:49 AM · Linux Emulation, ARM
soutade_gmail.com added inline comments to D7974: Linux ARM v2 5/9.
Oct 4 2016, 9:45 AM · Linux Emulation, ARM
andrew added inline comments to D7974: Linux ARM v2 5/9.
Oct 4 2016, 9:43 AM · Linux Emulation, ARM
andrew added inline comments to D7971: Linux ARM v2 2/9.
Oct 4 2016, 9:42 AM · Linux Emulation, ARM
soutade_gmail.com added inline comments to D7972: Linux ARM v2 3/9.
Oct 4 2016, 9:37 AM · Linux Emulation, ARM
soutade_gmail.com added inline comments to D7972: Linux ARM v2 3/9.
Oct 4 2016, 9:35 AM · Linux Emulation, ARM
andrew added a comment to D7972: Linux ARM v2 3/9.

Syscalls 13 (time), 22 (umount), 25 (stime), 27 (alarm), 30 (utime), 76 (getrlimir), 82 (select), 89 (readdir), 90 (mmap), 102 (socketcall), 113 (syscall), and 117 (ipc) dont seem to be exported to userspace. I would expect the only things that try calling these with the EABI are malicious.

Oct 4 2016, 9:14 AM · Linux Emulation, ARM
soutade_gmail.com updated the diff for D7974: Linux ARM v2 5/9.

Remove old Linux syscalls (not presents in Linux calls.S). Add dummy linux_syscall.

Oct 4 2016, 8:46 AM · Linux Emulation, ARM
soutade_gmail.com updated the diff for D7973: Linux ARM v2 4/9.

Remove old Linux syscalls (not presents in Linux calls.S)

Oct 4 2016, 8:44 AM · Linux Emulation, ARM