From 57819e92d59e580ac549dcbe1112bc1b6f705b65 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Sat, 23 May 2009 15:42:08 +0200 Subject: Add my notes and patch from 2005-08-23. --- open_issues/grub_legacy.mdwn | 37 ++++++++++++++++++++++++++++++ open_issues/grub_legacy/grub-install.patch | 23 +++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 open_issues/grub_legacy.mdwn create mode 100644 open_issues/grub_legacy/grub-install.patch (limited to 'open_issues') diff --git a/open_issues/grub_legacy.mdwn b/open_issues/grub_legacy.mdwn new file mode 100644 index 00000000..a8da1fae --- /dev/null +++ b/open_issues/grub_legacy.mdwn @@ -0,0 +1,37 @@ +[[!meta copyright="Copyright © 2009 Free Software Foundation, Inc."]] + +[[!meta license="""[[!toggle id="license" text="GFDL 1.2+"]][[!toggleable +id="license" text="Permission is granted to copy, distribute and/or modify this +document under the terms of the GNU Free Documentation License, Version 1.2 or +any later version published by the Free Software Foundation; with no Invariant +Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license +is included in the section entitled +[[GNU Free Documentation License|/fdl]]."]]"""]] + +[[!meta title="GRUB (legacy)"]] + +[[!tag open_issue_porting]] + +Even though it is customarily used *for* booting GNU/Hurd systems, [[GRUB]], +specifically GRUB legacy (which is still in wide-spread use, despite that +rather depricative nickname), has never been ported to be installable when +installed *from* GNU/Hurd systems: + + # grub-install \(hd0\) + df: Warning: cannot read table of mounted filesystems + df: Warning: cannot read table of mounted filesystems + Could not find device for /boot: Not found or not a block device. + +There is a patch, [[grub-install.patch]], to fix that. + + +`grub-install`, however, still fails while invoking `grub`: + + # grub-install \(hd0\) + The file /boot/grub/stage1 not read correctly. + + # grub + [...] + grub> dump (hd0,0)/boot/grub/stage1 /tmp/grub_stage1 + + Error 18: Selected cylinder exceeds maximum supported by BIOS diff --git a/open_issues/grub_legacy/grub-install.patch b/open_issues/grub_legacy/grub-install.patch new file mode 100644 index 00000000..3f6341b4 --- /dev/null +++ b/open_issues/grub_legacy/grub-install.patch @@ -0,0 +1,23 @@ +2005-08-23 Thomas Schwinge + + * grub-install (find_device): Rough port for GNU/Hurd. + + +--- grub-install.orig 2005-08-23 16:56:02.000000000 +0200 ++++ grub-install 2005-08-23 17:01:55.000000000 +0200 +@@ -263,7 +263,14 @@ + find_device () { + # For now, this uses the program `df' to get the device name, but is + # this really portable? +- tmp_fname=`df $1/ | sed -n 's%.*\(/dev/[^ ]*\).*%\1%p'` ++ # No. (Not even on GNU/Linux.) - Thomas Schwinge ++ ++ case $host_os in ++ gnu*) # TODO: What about using multiple devices? ++ tmp_fname=`fsysopts $1/ | sed -n 's%.*device:\([^ ]*\).*%/dev/\1%p'`;; ++ *) ++ tmp_fname=`df $1/ | sed -n 's%.*\(/dev/[^ ]*\).*%\1%p'`;; ++ esac + + if test -z "$tmp_fname"; then + echo "Could not find device for $1" 2>&1 -- cgit v1.2.3 From 530b0298a21fa6e892753ad2609bcf71a9e1aff6 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Sat, 23 May 2009 16:06:35 +0200 Subject: Copyright for 2005. --- open_issues/grub_legacy.mdwn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'open_issues') diff --git a/open_issues/grub_legacy.mdwn b/open_issues/grub_legacy.mdwn index a8da1fae..6c96d4e1 100644 --- a/open_issues/grub_legacy.mdwn +++ b/open_issues/grub_legacy.mdwn @@ -1,4 +1,4 @@ -[[!meta copyright="Copyright © 2009 Free Software Foundation, Inc."]] +[[!meta copyright="Copyright © 2005, 2009 Free Software Foundation, Inc."]] [[!meta license="""[[!toggle id="license" text="GFDL 1.2+"]][[!toggleable id="license" text="Permission is granted to copy, distribute and/or modify this -- cgit v1.2.3 From f08f6e4387b1ae83f7c33e4ee74055750234d236 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Sat, 23 May 2009 16:16:04 +0200 Subject: GRUB2 also needs to be ported. --- open_issues/grub2.mdwn | 21 +++++++++++++++++++++ open_issues/grub_legacy.mdwn | 5 ++++- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 open_issues/grub2.mdwn (limited to 'open_issues') diff --git a/open_issues/grub2.mdwn b/open_issues/grub2.mdwn new file mode 100644 index 00000000..235950a4 --- /dev/null +++ b/open_issues/grub2.mdwn @@ -0,0 +1,21 @@ +[[!meta copyright="Copyright © 2009 Free Software Foundation, Inc."]] + +[[!meta license="""[[!toggle id="license" text="GFDL 1.2+"]][[!toggleable +id="license" text="Permission is granted to copy, distribute and/or modify this +document under the terms of the GNU Free Documentation License, Version 1.2 or +any later version published by the Free Software Foundation; with no Invariant +Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license +is included in the section entitled +[[GNU Free Documentation License|/fdl]]."]]"""]] + +[[!meta title="GRUB2"]] + +[[!tag open_issue_porting]] + +Just like [[GRUB (legacy)|grub_legacy]], GRUB2 needs to be ported for being +installable when attempted to be installed *from* GNU/Hurd systems: + + $ sudo grub-probe --target=device /boot/grub + grub-probe: error: cannot find a device for /boot/grub. + +Etc. diff --git a/open_issues/grub_legacy.mdwn b/open_issues/grub_legacy.mdwn index 6c96d4e1..cb69d10b 100644 --- a/open_issues/grub_legacy.mdwn +++ b/open_issues/grub_legacy.mdwn @@ -15,7 +15,7 @@ is included in the section entitled Even though it is customarily used *for* booting GNU/Hurd systems, [[GRUB]], specifically GRUB legacy (which is still in wide-spread use, despite that rather depricative nickname), has never been ported to be installable when -installed *from* GNU/Hurd systems: +attempted to be installed *from* GNU/Hurd systems: # grub-install \(hd0\) df: Warning: cannot read table of mounted filesystems @@ -35,3 +35,6 @@ There is a patch, [[grub-install.patch]], to fix that. grub> dump (hd0,0)/boot/grub/stage1 /tmp/grub_stage1 Error 18: Selected cylinder exceeds maximum supported by BIOS + + +The successor, [[GRUB2]], also needs to be ported. -- cgit v1.2.3 From df6c34702d298cd2878115accc9d3fa765c9686c Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Fri, 29 May 2009 22:32:49 +0200 Subject: Issues with glibc's ptrace. --- open_issues/glibc_ptrace.mdwn | 47 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 open_issues/glibc_ptrace.mdwn (limited to 'open_issues') diff --git a/open_issues/glibc_ptrace.mdwn b/open_issues/glibc_ptrace.mdwn new file mode 100644 index 00000000..b4c529d7 --- /dev/null +++ b/open_issues/glibc_ptrace.mdwn @@ -0,0 +1,47 @@ +[[!meta copyright="Copyright © 2009 Free Software Foundation, Inc."]] + +[[!meta license="""[[!toggle id="license" text="GFDL 1.2+"]][[!toggleable +id="license" text="Permission is granted to copy, distribute and/or modify this +document under the terms of the GNU Free Documentation License, Version 1.2 or +any later version published by the Free Software Foundation; with no Invariant +Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license +is included in the section entitled [[GNU Free Documentation +License|/fdl]]."]]"""]] + +[[!meta title="glibc: ptrace"]] + +[[!tag open_issue_glibc]] + +`ptrace` has some issues (`sysdeps/mach/hurd/ptrace.c`). + + * Our implementation (and the generic one in `misc/ptrace.c`) differ + from the Linux one (`sysdeps/unix/sysv/linux/ptrace.c`) + w.r.t. handling of... + + * the third argument: `int data` vs. `void *data`; + + * `void *addr2` -- Linux doesn't have this, but we provide some + additional functionalty using this; + + * function declaration: Linux has **`long`** `int ptrace (enum + __ptrace_request __request, ...)` **`__THROW`**, we have `int ptrace + (enum __ptrace_request __request, ...)`; + + * interface do differ, e.g., Linux' `PTRACE_GETREGS` uses `void + *data`, we use `void *addr` for returning the struct, and in + Linux this is a `struct user_regs_struct` from `linux/user.h`, + and for us it is a `struct i386_thread_state` from + `mach/i386/thread_status.h`; + + * Linux probides some functionality that we don't provide, e.g., + `PTRACE_SINGLESTEP`. + + * Some parts are wrongly implemented, e.g., `PTRACE_GETREGS` and + `PTRACE_SETREGS` both do the same thing. + + * `return` values are wrong, e.g., `return EOPNOTSUPP` should instead + set `errno = EOPNOTSUPP` and `return -1` in a few places (but not + with the three `PTRACE_PEEK*` requests. + +Also consider the `sysdeps/generic/sys/ptrace.h` and +`sysdeps/unix/sysv/linux/sys/ptrace.h` files. -- cgit v1.2.3 From 109ced1ce651d57ee802f23ca7d9985286823134 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Fri, 12 Jun 2009 15:29:59 +0200 Subject: tinyproxy vs. select. --- open_issues/tinyproxy.mdwn | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 open_issues/tinyproxy.mdwn (limited to 'open_issues') diff --git a/open_issues/tinyproxy.mdwn b/open_issues/tinyproxy.mdwn new file mode 100644 index 00000000..9a4a0cfb --- /dev/null +++ b/open_issues/tinyproxy.mdwn @@ -0,0 +1,18 @@ +[[!meta copyright="Copyright © 2009 Free Software Foundation, Inc."]] + +[[!meta license="""[[!toggle id="license" text="GFDL 1.2+"]][[!toggleable +id="license" text="Permission is granted to copy, distribute and/or modify this +document under the terms of the GNU Free Documentation License, Version 1.2 or +any later version published by the Free Software Foundation; with no Invariant +Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license +is included in the section entitled [[GNU Free Documentation +License|/fdl]]."]]"""]] + +[[!meta title="Problem with using tinyproxy for tunneling HTTPS"]] + +`tinyproxy` works fine for HTTP connections, but fails to proxy HTTPS ones: + + ERROR Jun 12 14:58:51 [20676]: relay_connection: select() error "Interrupted system call". Closing connection (client_fd:7, server_fd:8) + +This is supposedly due to the already known select bug, which is a [[!taglink +open_issue_glibc]]. -- cgit v1.2.3