[Bug 241773] lldb does not display external variables properly.

2019-11-08 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241773

--- Comment #3 from Andriy Gapon  ---
I meant that the program (executable) accesses a variable, not an intra-library
access.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 221331] [PATCH] update for unlink(2) manpage

2019-11-08 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=221331

Oleksandr Tymoshenko  changed:

   What|Removed |Added

 CC||d...@freebsd.org
  Component|Documentation   |Manual Pages
   Assignee|d...@freebsd.org |b...@freebsd.org

WHR  changed:

   What|Removed |Added

 CC||msl023...@gmail.com

--- Comment #1 from WHR  ---
There was a case that unlink(2) may return EISDIR.

Function kern_unlinkat calls namei(9) to find the parent directory of the file;
it will return EISDIR if the requested path was '/'.

Since '/' isn't a real link (but '/.' and '/..'), it can't be unlinked anyways.

Test:

# cat unlink.c 
#include 
#include 

int main(int argc, char **argv) {
if(argc != 2) {
fprintf(stderr, "Usage: %s \n", argv[0]);
return -1;
}
if(unlink(argv[1]) < 0) {
perror(argv[1]);
return 1;
}
return 0;
}
# gcc -Wall -O1 unlink.c -o unlink
# ./unlink /etc/
/etc/: Operation not permitted
# ./unlink /.
/.: Operation not permitted
# ./unlink /
/: Is a directory

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 241773] lldb does not display external variables properly.

2019-11-08 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241773

--- Comment #4 from bc...@lafn.org ---
Apparently I misunderstood.  Here is a lldb session with changes to testprog:

   8int main(int argc, char **argv) {
   9  strcpy (id, "yy");
   10 sock = 88;
-> 11 testfunc();
   12 unknown = 9;
   13 printf ("id (%x) = %s\n", (int)&id, id);
   14 printf ("sock(%x)  = %d\n", (int)&sock, sock);
(lldb) p id
(char [4]) $0 = ""
(lldb) p sock
(int) $1 = 0
(lldb) p &sock
(int *) $2 = 0x00080024d004
(lldb) p & id
(char (*)[4]) $3 = 0x00080024d000
(lldb) p *id
(char) $4 = '\0'

Even after setting the variables, lldb doesn't find the right values although
it seems to get the right addresses.  After testfunc is called, nothing has
changed from before.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 241773] lldb does not display external variables properly.

2019-11-08 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241773

--- Comment #5 from Andriy Gapon  ---
Thank you for the test.
So, the problem is not what I thought it might be.
That's a very strange problem.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 233405] sparc64: DWARF unwinder required for GCC 4.2.1 retirement

2019-11-08 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=233405

--- Comment #6 from commit-h...@freebsd.org ---
A commit references this bug:

Author: emaste
Date: Fri Nov  8 15:20:20 UTC 2019
New revision: 354545
URL: https://svnweb.freebsd.org/changeset/base/354545

Log:
  mark LLVM_LIBUNWIND as broken on sparc64, with PR reference

  PR:   233405

Changes:
  head/share/mk/src.opts.mk

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 233361] mips build with Clang + LLD fails

2019-11-08 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=233361

Ed Maste  changed:

   What|Removed |Added

Summary|mips build with |mips build with Clang + LLD
   |BSD_CRTBEGIN, Clang, LLD|fails
   |fails   |

--- Comment #6 from Ed Maste  ---
Update headline to remove mention of BSD_CRTBEGIN, it is on by default for MIPS
now and works.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 239851] BSD_CRTBEGIN does not work on sparc64

2019-11-08 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=239851

--- Comment #3 from Ed Maste  ---
Attempting to build for sparc64 with external toolchain in a GPL-removed
FreeBSD tree fails in "stage 4.2: building libraries" with:

/usr/local/bin/sparc64-unknown-freebsd12.0-ld: cannot find crtendS.o: No such
file or directory
collect2: error: ld returned 1 exit status

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 233094] [meta] Base system tool chain modernization tracking

2019-11-08 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=233094

Ed Maste  changed:

   What|Removed |Added

 Depends on||241374


Referenced Bugs:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241374
[Bug 241374] devel/sparc64-binutils: segfault during tinderbox
-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 241792] dhclient/dhclient-script: dhclient default route not working when given a /32 netmask

2019-11-08 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241792

Mark Linimon  changed:

   What|Removed |Added

Summary|dhclient default route not  |dhclient/dhclient-script:
   |working when given a /32|dhclient default route not
   |netmask |working when given a /32
   ||netmask
   Keywords||patch

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 241787] graphics/drm causes machine reboot after upgrade from 12.0 to 12.1.

2019-11-08 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241787

Mark Linimon  changed:

   What|Removed |Added

   Keywords||panic

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 241785] [vlan][lagg] creating vlan over lagg causes flapping

2019-11-08 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241785

Mark Linimon  changed:

   What|Removed |Added

   Assignee|b...@freebsd.org|n...@freebsd.org

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 241787] graphics/drm causes machine reboot after upgrade from 12.0 to 12.1.

2019-11-08 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241787

Niclas Zeising  changed:

   What|Removed |Added

 Resolution|--- |DUPLICATE
 Status|Open|Closed
 CC||zeis...@freebsd.org

--- Comment #2 from Niclas Zeising  ---


*** This bug has been marked as a duplicate of bug 241101 ***

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 233405] sparc64: DWARF unwinder required for GCC 4.2.1 retirement

2019-11-08 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=233405

--- Comment #7 from Conrad Meyer  ---
FWIW, I think this is all that is needed to fix libunwind on sparc64:

--- include/__libunwind_config.h(revision 354566)
+++ include/__libunwind_config.h(working copy)
@@ -124,7 +124,7 @@
   #define _LIBUNWIND_TARGET_SPARC 1
   #define _LIBUNWIND_HIGHEST_DWARF_REGISTER
_LIBUNWIND_HIGHEST_DWARF_REGISTER_SPARC
   #define _LIBUNWIND_CONTEXT_SIZE 16
-  #define _LIBUNWIND_CURSOR_SIZE 23
+  #define _LIBUNWIND_CURSOR_SIZE 28
 # else
 #  error "Unsupported architecture."
 # endif
--- src/config.h(revision 354566)
+++ src/config.h(working copy)
@@ -104,7 +106,8 @@
 (!defined(__APPLE__) && defined(__arm__)) ||  
\
 (defined(__arm64__) || defined(__aarch64__)) ||   
\
 defined(__mips__) ||  
\
-defined(__riscv)
+defined(__riscv) ||   
\
+defined(__sparc__)
 #if !defined(_LIBUNWIND_BUILD_SJLJ_APIS)
 #define _LIBUNWIND_BUILD_ZERO_COST_APIS
 #endif

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 233405] sparc64: DWARF unwinder required for GCC 4.2.1 retirement

2019-11-08 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=233405

--- Comment #8 from Conrad Meyer  ---
(Well, to fix the build anyway.  There are some "TODO" comments for some of the
implementation still.)

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 234793] Failed unknown for $USER in sshd logs even if I got authenticated

2019-11-08 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=234793

--- Comment #21 from Ryan  ---
The issue is still present on 12.1-RELEASE.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"