NetBSD buildbot in the binutils-gdb project


September 14, 2017 posted by Kamil Rytarowski

The NetBSD Foundation supports projects that strive to ship the best possible support in developer oriented software. This is not exclusive to LLVM, but also includes the more traditional GNU toolchain.[Read More] [0 comments]

 

LLVM libFuzzer and SafeStack ported to NetBSD


September 01, 2017 posted by Kamil Rytarowski

This month I've finally finished upstreaming NetBSD support in ASan and UBsan. For better coverage of the sanitizers and on user request I've ported libFuzzer and SafeStack. There are mutual dependencies between the compiler-rt features. NetBSD after sorting out msan and tsan shall get all the remaining ones enabled. This is open topic after finishing LLDB. I have also prepared better ground for the coming work on ptrace(2) enhancements with the removal of the filesystem tracing (/proc/#/ctl).[Read More] [0 comments]

 

LLVM, Clang and compiler-rt support enhancements


August 03, 2017 posted by Kamil Rytarowski

In the last month I started with upstream of the code for sanitizers: the common layer and ubsan. I worked also on the elimination of unexpected failures in LLVM and Clang. I've managed to achieve, with a pile of local patches, the number of 0 unexpected bugs within LLVM (check-llvm) and 3 unexpected bugs within Clang (check-clang) (however these ones were caused by hardcoded environment -lstdc++ vs -lc++). The number of failures in sanitizers (check-sanitizer) is also low, it's close to zero. [Read More] [0 comments]

 

LLVM asan and ubsan on NetBSD


July 03, 2017 posted by Kamil Rytarowski

Over the last 30 days I was focusing on getting the environment to enable LLVM sanitizers and the Clang compiler on NetBSD. Meanwhile I pushed forward generic parts that were needing enhancements around pkgsrc and LLVM in general to ease the future LLDB work.[Read More] [1 comment]

 

pkgsrcCon 2016 report


July 01, 2017 posted by Kamil Rytarowski

pkgsrcCon is the annual technical conference for people working on pkgsrc, a framework for building over 17,000 open source software packages. pkgsrc is the native package manager on NetBSD, SmartOS and Minix, and is portable across many different operating systems including Linux and Mac OS X. [Read More] [1 comment]

 

In Memoriam Nicolas Joly


June 20, 2017 posted by Kamil Rytarowski

Nicolas Joly passed away on 2017-06-07.[Read More] [2 comments]

 

LLDB: NetBSD Process Plugin enhancements


May 02, 2017 posted by Kamil Rytarowski

Last month I have worked on features of the Process Plugin on NetBSD and support for threads in core(5) files.[Read More] [0 comments]

 

NetBSD: the first BSD introducing a modern process plugin framework in LLDB


April 04, 2017 posted by Kamil Rytarowski

A feature set for debugging NetBSD applications (without threads) has been merged with upstream LLDB! The number of passing tests this month has been increased from 267/1235 to 622/1247. This is +133% within one month and approximately 50% of successfully passed tests in total! As usual regular housekeeping of ptrace(2) interfaces has been done on the NetBSD side.[Read More] [0 comments]

 

ptrace(2) tasks segment finished


March 01, 2017 posted by Kamil Rytarowski

During this month I've finished the needed work in the base distribution in order to host fully featured LLDB. Currently the ptrace(2) interfaces in NetBSD are, in terms of features, closely related to FreeBSD and Linux. There are only few bugs left with filed Problem Reports and alerting regression tests, however they do not interfere with the needed functions to move the port of the debugger forward.[Read More] [0 comments]

 

The first patch-bulk upstreamed to LLDB


February 14, 2017 posted by Kamil Rytarowski

The LLVM project is a quickly moving target, this also applies to the LLVM debugger -- LLDB. It's actively used in several first-class operating systems, while - thanks to my spare time dedication - NetBSD joined the LLDB club in 2014, only lately the native support has been substantially improved and the feature set is quickly approaching the support level of Linux and FreeBSD. During this work 12 patches were committed to upstream, 12 patches were submitted to review, 11 new ATF were tests added, 2 NetBSD bugs filed and several dozens of commits were introduced in pkgsrc-wip, reducing the local patch set to mostly Native Process Plugin for NetBSD.[Read More] [0 comments]

 

Summary of the preliminary LLDB support project


January 23, 2017 posted by Kamil Rytarowski

Operating systems can be called monitors as they handle system calls from userland processes. A similar task is performed by debuggers as they implement monitors for traced applications and interpret various events that occurred in tracees and are messaged usually with signals to their tracers. During this month I have started a new Process Plugin within LLDB to incept NativeProcessNetBSD - copied from NativeProcessLinux - implementing basic functionality and handling all the needed events in the MonitorCallback() function. To achieve these tasks, I had to add a bunch of new ptrace(2) interfaces in the kernel to cover all that is required by LLDB monitors. The current Process Plugin for NetBSD is capable to start a process, catch all the needed events correctly and if applicable resume or step the process.[Read More] [1 comment]

 

Summary of the ptrace(2) project


December 18, 2016 posted by Kamil Rytarowski

In short, we are already in a good state with the existing ptrace(2) interfaces, as most necessary functions in LLDB are representable by existing NetBSD specific interfaces. We can fully implement core LLDB functionality without further extensions in ptrace(2). During this project dozen of bugs were investigated & fixed and several hundreds of ATF tests added. The major addition is newly added support for hardware assisted watchpoints API for ptrace(2) on amd64 and preliminary code for i386 and XEN.[Read More] [6 comments]