profile
viewpoint
遗忘
Kamil Rytarowski krytarowski Kraków, Poland NetBSD, pkgsrc, LLDB, GDB, qemu

google/syzkaller 3042

syzkaller is an unsupervised coverage-guided kernel fuzzer

krytarowski/debugcon_printf 3

Bochs/Qemu debugcon printf() loadable kernel module for NetBSD

akat1/src-netbsd-old 2

This is archive Mirror of NetBSD sources useful with rump kernels

krytarowski/clang 1

Mirror of official clang git repository located at http://llvm.org/git/clang. Updated every five minutes.

krytarowski/corefx 1

This repo contains the .NET Core foundational libraries, called CoreFX. It includes classes for collections, file systems, console, XML, async and many others.

grayed/bsd-upstreaming 0

Collaboration for upstreaming BSD-specific patches to upstream projects

krytarowski/8cc 0

A Small C Compiler

krytarowski/accountsservice 0

D-Bus interface for user account query and manipulation (mirror)

krytarowski/acpica 0

The ACPI Component Architecture (ACPICA) project provides an operating system (OS)-independent reference implementation of the Advanced Configuration and Power Interface Specification (ACPI).

krytarowski/afl 0

afl fork for kernel support

issue commentiotaledger/trinity-wallet

NetBSD 9.0 build broken

Please notice that realm.node is the shared object used by Realm JavaScript (a big part but not the only part). It is not an executable.

OK, so we cannot do anything with that file then. We cannot link it into native executable...

krytarowski

comment created time in a day

issue commentiotaledger/trinity-wallet

NetBSD 9.0 build broken

@kneth OK, I have got realm ported in pkgsrc, how can I proceed now?

krytarowski

comment created time in 2 days

push eventkrytarowski/pkgsrc-local

Kamil Rytarowski

commit sha 14850d7b27d910eaeb2c3575290bdc2936ccaf50

fix

view details

push time in 2 days

push eventkrytarowski/pkgsrc-local

Kamil Rytarowski

commit sha 2b14f2695c23ded3b7eb5766136f7e019c51fe8a

fix

view details

Kamil Rytarowski

commit sha 3e875b03e5ede54aa337f86848fa744ea8a7b650

fix

view details

Kamil Rytarowski

commit sha 0d400b452f8b792fba7403301739bd45ea730ba8

fix

view details

Kamil Rytarowski

commit sha a46548a1b48edab1e37e38d83c2883da086f7a51

fix

view details

push time in 2 days

push eventkrytarowski/pkgsrc-local

Kamil Rytarowski

commit sha 91dc32924a50d185b294cb8c88e6f93b289d22d5

fix

view details

Kamil Rytarowski

commit sha 104c96e264a2974b290b746fb34837e31a7e4aa9

fix

view details

Kamil Rytarowski

commit sha 768564283e0f95d72aed117b13382221b0b2eac7

fix

view details

push time in 2 days

push eventkrytarowski/pkgsrc-local

Kamil Rytarowski

commit sha 17a3b7219ccc025d086b28127f115ffd1d72d93c

fix

view details

push time in 2 days

push eventkrytarowski/pkgsrc-local

Kamil Rytarowski

commit sha d3eab75a210b1ba44514be499b74e240b86fd3d0

fix

view details

Kamil Rytarowski

commit sha e595d21e3437566c04b54deb5b8d7f33845d0f71

fix

view details

Kamil Rytarowski

commit sha 7a379aee99f4266ea1ea819bb3aee041c2e7671b

fix

view details

Kamil Rytarowski

commit sha 7e06957408202633ddd71081d1143c44ce788fe4

fix

view details

Kamil Rytarowski

commit sha a3a9bba69b39f2899c26bf2e81b88cafb07fdb3a

fix

view details

push time in 2 days

issue commentiotaledger/trinity-wallet

NetBSD 9.0 build broken

The Linux executable does not work.

167 kamil@chieftec /tmp/node-v79_linux_x64 $ file ./realm.node                                        
./realm.node: ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically linked, BuildID[sha1]=649cea06c6d00d48eedb4f0a1f4f85bab8f55175, not stripped
168 kamil@chieftec /tmp/node-v79_linux_x64 $ ./realm.node                                             
Memory fault (core dumped) 
169 kamil@chieftec /tmp/node-v79_linux_x64 $ ktruss -i ./realm.node 
 28499  28499 ktruss   fcntl(0x4, 0x3, 0)          = 4194305
 28499  28499 ktruss   emul(netbsd)
 28499  28499 ktruss   fcntl(0x4, 0x4, 0x400001)   = 0
 28499  28499 realm.node execve("/tmp/node-v79_linux_x64/./realm.node", 0x7f7fffffe768, 0x7f7fffffe778) JUSTRETURN
 28499  28499 realm.node emul(linux)

GDB:

$ gdb ./realm.node        
GNU gdb (GDB) 8.3
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64--netbsd".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./realm.node...
(No debugging symbols found in ./realm.node)
(gdb) r
Starting program: /tmp/node-v79_linux_x64/realm.node 

Program received signal SIGSEGV, Segmentation fault.
0x00000000001c122c in realm::node::copy_object(Napi::Env, Napi::Value const&, Napi::Error const&) ()
(gdb) bt
#0  0x00000000001c122c in realm::node::copy_object(Napi::Env, Napi::Value const&, Napi::Error const&)
    ()
#1  0x0000000000000001 in ?? ()
#2  0x00007f7fffffecf0 in ?? ()
#3  0x0000000000000000 in ?? ()
krytarowski

comment created time in 2 days

issue commentiotaledger/trinity-wallet

NetBSD 9.0 build broken

@kneth what's ETA? Should we port realm-core to NetBSD meanwhile? Is there another IOTA wallet without this dependency?

krytarowski

comment created time in 2 days

push eventkrytarowski/pkgsrc-local

Kamil Rytarowski

commit sha 83f309e183107e96701c1fcd336eeed5a8067fe9

fix

view details

push time in 2 days

issue commentiotaledger/trinity-wallet

NetBSD 9.0 build broken

$ yarn deps:shared
yarn run v1.22.4
$ cd src/shared && yarn && cd ../..
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@2.1.3: The platform "netbsd" is incompatible with this module.
info "fsevents@2.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "realm > deprecated-react-native-listview@0.0.6" has unmet peer dependency "react-native@*".
[4/4] Building fresh packages...
[1/6] ⠈ core-js
[-/6] ⠈ waiting...
[-/6] ⠈ waiting...
[5/6] ⠈ realm
error /home/kamil/trinity-wallet/src/shared/node_modules/realm: Command failed.
Exit code: 1
Command: node-pre-gyp install --fallback-to-build -j 8
Arguments: 
Directory: /home/kamil/trinity-wallet/src/shared/node_modules/realm
Output:
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using node-pre-gyp@0.14.0
node-pre-gyp info using node@14.3.0 | netbsd | x64
node-pre-gyp WARN Using request for node-pre-gyp https download 
node-pre-gyp info check checked for "/home/kamil/trinity-wallet/src/shared/node_modules/realm/compiled/node-v83_netbsd_x64/realm.node" (not found)
node-pre-gyp http GET https://static.realm.io/node-pre-gyp/5.0.5/realm-v5.0.5-node-v83-netbsd-x64.tar.gz
node-pre-gyp http 404 https://static.realm.io/node-pre-gyp/5.0.5/realm-v5.0.5-node-v83-netbsd-x64.tar.gz
node-pre-gyp WARN Tried to download(404): https://static.realm.io/node-pre-gyp/5.0.5/realm-v5.0.5-node-v83-netbsd-x64.tar.gz 
node-pre-gyp WARN Pre-built binaries not found for realm@5.0.5 and node@14.3.0 (node-v83 ABI, unknown) (falling back to source compile with node-gyp) 
node-pre-gyp http 404 status code downloading tarball https://static.realm.io/node-pre-gyp/5.0.5/realm-v5.0.5-node-v83-netbsd-x64.tar.gz 
node-pre-gyp ERR! build error 
node-pre-gyp ERR! stack Error: Failed to execute 'node-gyp clean' (Error: spawn node-gyp ENOENT)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/home/kamil/trinity-wallet/src/shared/node_modules/node-pre-gyp/lib/util/compile.js:77:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:274:12)
node-pre-gyp ERR! stack     at onErrorNT (internal/child_process.js:468:16)
node-pre-gyp ERR! stack     at processTicksAndRejections (internal/process/task_queues.js:84:21)
node-pre-gyp ERR! System NetBSD 9.99.67
node-pre-gyp ERR! command "/usr/pkg/bin/node" "/home/kamil/trinity-wallet/src/shared/node_modules/realm/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "-j" "8"
node-pre-gyp ERR! cwd /home/kamil/trinity-wallet/src/shared/node_modules/realm
node-pre-gyp ERR! node -v v14.3.0




error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
krytarowski

comment created time in 2 days

issue openedrealm/realm-js

download-realm.js does not work on NetBSD

Caught in https://github.com/iotaledger/trinity-wallet/issues/2907

created time in 2 days

issue openediotaledger/trinity-wallet

NetBSD 9.0 build broken

Bug description

NetBSD 9.0 amd64 build is broken.

Version

$ git log -1
commit ddacc78c576ab8196134496d36f36c93d9b256f8 (HEAD -> develop, origin/develop, origin/HEAD)
Author: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Date:   Thu Jul 9 20:26:34 2020 +0000

    chore(deps-dev): Bump eslint-plugin-import from 2.21.2 to 2.22.0 (#2885)

Hardware specification

$ uname -a
NetBSD dell 9.0 NetBSD 9.0 (GENERIC) #0: Fri Feb 14 00:06:28 UTC 2020 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64

  • Mobile or Desktop: Laptop (Desktop)

  • Device: amd64

  • OS and version: NetBSD 9.0

  • RAM (Desktop only): 3GB RAM

  • Number of cores (Desktop only): 2

Node Settings (delete if not relevant)

What are your node settings? Are you using automatic node management?

  • Node settings:

None.

Steps To reproduce the bug

Explain how the maintainer can reproduce the bug.

  1. git clone https://github.com/iotaledger/trinity-wallet.git
  2. cd trinity-wallet
  3. yarn && yarn deps:shared

Expected behaviour

Build successful.

Actual behaviour

Build broken.

Errors

$ cd src/shared && yarn && cd ../..
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@2.1.3: The platform "netbsd" is incompatible with this module.
info "fsevents@2.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "realm > deprecated-react-native-listview@0.0.6" has unmet peer dependency "react-native@*".
[4/4] Building fresh packages...
[-/6] ⠄ waiting...
[-/6] ⡀ waiting...
[-/6] ⡀ waiting...
[5/6] ⡀ realm
error /home/kamil/trinity-wallet/src/shared/node_modules/realm: Command failed.
Exit code: 1
Command: node-pre-gyp install --fallback-to-build -j 8
Arguments: 
Directory: /home/kamil/trinity-wallet/src/shared/node_modules/realm
Output:
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using node-pre-gyp@0.14.0
node-pre-gyp info using node@13.11.0 | netbsd | x64
node-pre-gyp WARN Using request for node-pre-gyp https download 
node-pre-gyp info check checked for "/home/kamil/trinity-wallet/src/shared/node_modules/realm/compiled/node-v79_netbsd_x64/realm.node" (not found)
node-pre-gyp http GET https://static.realm.io/node-pre-gyp/5.0.5/realm-v5.0.5-node-v79-netbsd-x64.tar.gz
node-pre-gyp http 404 https://static.realm.io/node-pre-gyp/5.0.5/realm-v5.0.5-node-v79-netbsd-x64.tar.gz
node-pre-gyp WARN Tried to download(404): https://static.realm.io/node-pre-gyp/5.0.5/realm-v5.0.5-node-v79-netbsd-x64.tar.gz 
node-pre-gyp WARN Pre-built binaries not found for realm@5.0.5 and node@13.11.0 (node-v79 ABI, unknown) (falling back to source compile with node-gyp) 
node-pre-gyp http 404 status code downloading tarball https://static.realm.io/node-pre-gyp/5.0.5/realm-v5.0.5-node-v79-netbsd-x64.tar.gz 
gyp info it worked if it ends with ok
gyp info using node-gyp@5.0.7
gyp info using node@13.11.0 | netbsd | x64
gyp info ok 
gyp info it worked if it ends with ok
gyp info using node-gyp@5.0.7
gyp info using node@13.11.0 | netbsd | x64
gyp http GET https://nodejs.org/download/release/v13.11.0/node-v13.11.0-headers.tar.gz
gyp http 200 https://nodejs.org/download/release/v13.11.0/node-v13.11.0-headers.tar.gz
gyp http GET https://nodejs.org/download/release/v13.11.0/SHASUMS256.txt
gyp http 200 https://nodejs.org/download/release/v13.11.0/SHASUMS256.txt
gyp info spawn /usr/pkg/bin/python3.7
gyp info spawn args [
gyp info spawn args   '/usr/pkg/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/home/kamil/trinity-wallet/src/shared/node_modules/realm/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/usr/pkg/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/home/kamil/.cache/node-gyp/13.11.0/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/home/kamil/.cache/node-gyp/13.11.0',
gyp info spawn args   '-Dnode_gyp_dir=/usr/pkg/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/home/kamil/.cache/node-gyp/13.11.0/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/home/kamil/trinity-wallet/src/shared/node_modules/realm',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.'
gyp info spawn args ]
gyp info ok 
gyp info it worked if it ends with ok
gyp info using node-gyp@5.0.7
gyp info using node@13.11.0 | netbsd | x64
gyp info spawn gmake
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build', '--jobs', 8 ]
gmake: Wejście do katalogu '/home/kamil/trinity-wallet/src/shared/node_modules/realm/build'
  CC(target) Release/obj.target/nothing/../node-addon-api/nothing.o
  ACTION binding_gyp_vendored_realm_target_download_realm /home/kamil/trinity-wallet/src/shared/node_modules/realm/vendor/realm-netbsd-x64
  TOUCH Release/obj.target/scripts.stamp
  TOUCH Release/obj.target/OpenSSL.stamp
/home/kamil/trinity-wallet/src/shared/node_modules/realm/scripts/download-realm.js:196
            throw new Error(`Unsupported sync platform '${options.platform}'`);
            ^

Error: Unsupported sync platform 'netbsd'
    at getSyncRequirements (/home/kamil/trinity-wallet/src/shared/node_modules/realm/scripts/download-realm.js:196:19)
    at Object.<anonymous> (/home/kamil/trinity-wallet/src/shared/node_modules/realm/scripts/download-realm.js:260:80)
    at Module._compile (internal/modules/cjs/loader.js:1147:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1167:10)
    at Module.load (internal/modules/cjs/loader.js:996:32)
    at Function.Module._load (internal/modules/cjs/loader.js:896:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
    at internal/main/run_main_module.js:17:47
gmake: *** [vendored-realm.target.mk:13: /home/kamil/trinity-wallet/src/shared/node_modules/realm/vendor/realm-netbsd-x64] Błąd 1
gmake: *** Oczekiwanie na niezakończone zadania....
gmake: Opuszczenie katalogu '/home/kamil/trinity-wallet/src/shared/node_modules/realm/build'
gyp ERR! build error 
gyp ERR! stack Error: `gmake` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/pkg/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System NetBSD 9.0
gyp ERR! command "/usr/pkg/bin/node" "/usr/pkg/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--jobs=8" "--module=/home/kamil/trinity-wallet/src/shared/node_modules/realm/compiled/node-v79_netbsd_x64/realm.node" "--module_name=realm" "--module_path=/home/kamil/trinity-wallet/src/shared/node_modules/realm/compiled/node-v79_netbsd_x64" "--napi_version=6" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v79"
gyp ERR! cwd /home/kamil/trinity-wallet/src/shared/node_modules/realm
gyp ERR! node -v v13.11.0
gyp ERR! node-gyp -v v5.0.7
gyp ERR! not ok 
node-pre-gyp ERR! build error 
node-pre-gyp ERR! stack Error: Failed to execute '/usr/pkg/bin/node /usr/pkg/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --jobs=8 --module=/home/kamil/trinity-wallet/src/shared/node_modules/realm/compiled/node-v79_netbsd_x64/realm.node --module_name=realm --module_path=/home/kamil/trinity-wallet/src/shared/node_modules/realm/compiled/node-v79_netbsd_x64 --napi_version=6 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v79' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/home/kamil/trinity-wallet/src/shared/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:1026:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
node-pre-gyp ERR! System NetBSD 9.0
node-pre-gyp ERR! command "/usr/pkg/bin/node" "/home/kamil/trinity-wallet/src/shared/node_modules/realm/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "-j" "8"
node-pre-gyp ERR! cwd /home/kamil/trinity-wallet/src/shared/node_modules/realm
node-pre-gyp ERR! node -v v13.11.0
node-pre-gyp ERR! node-pre-gyp -v v0.14.0
node-pre-gyp ERR! not ok 
Failed to execute '/usr/pkg/bin/node /usr/pkg/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallbac



error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
141 kamil@dell /home/kamil/trinity-wallet $ 

created time in 2 days

PR closed zherczeg/sljit

Adapt to NetBSD >= 8 only

NetBSD-7 is EOL as of June 29th 2020:

http://mail-index.netbsd.org/netbsd-announce/2020/06/29/msg000316.html

While there, change to MAP_PRIVATE from MAP_SHARED.

+29 -40

2 comments

1 changed file

krytarowski

pr closed time in 8 days

pull request commentzherczeg/sljit

Adapt to NetBSD >= 8 only

Ah, I see. Well, I will reject this patch then.

krytarowski

comment created time in 8 days

create barnchMoritz-Systems/src

branch : zones2

created branch time in 8 days

push eventMoritz-Systems/src

Kamil Rytarowski

commit sha 3431165ddf89ba37f34494610d965919c36faa0b

fix

view details

Kamil Rytarowski

commit sha ba559fa0f9d9c466cba7b704241e5d0182282da2

fix

view details

push time in 9 days

pull request commentzherczeg/sljit

Add NetBSD PaX MPROTECT support in sljitExecAllocator.c

I know. But having a single region pointer and mprotect protection bits would be nice too.

krytarowski

comment created time in 11 days

push eventMoritz-Systems/src

Kamil Rytarowski

commit sha 5d5fbdfe856bed62e07cefa56b917154d5d6b252

fix

view details

Kamil Rytarowski

commit sha b960e6b3c8201045d54f6f6702187f4e037a10d1

fix

view details

Kamil Rytarowski

commit sha a27031d4559079fe34abe86d9c19eb7eaf2afc59

fix

view details

Kamil Rytarowski

commit sha 5e5360e8e2689e9f8fff9832fbc41c4202bf24ed

fix

view details

push time in 11 days

pull request commentzherczeg/sljit

Add NetBSD PaX MPROTECT support in sljitExecAllocator.c

@zherczeg do you think is it possible to use mprotect(2) to toggle RW -> RX in sljitExecAllocator.c? We have got a problem with RWX mapping at once. But there is a shopped chunk into blocks and it's not all clear how to achieve this.

krytarowski

comment created time in 11 days

PR closed zherczeg/sljit

Add NetBSD PaX MPROTECT support in sljitExecAllocator.c

However this.. crashes:

(gdb) c
Continuing.
Run test1

Program received signal SIGSEGV, Segmentation fault.
0x00007c591e56c020 in ?? ()
(gdb) bt
#0  0x00007c591e56c020 in ?? ()
#1  0x000000000040176c in test1 () at test_src/sljitTest.c:173
#2  0x00000000004225fc in sljit_test (argc=2, argv=0x7f7fff719608) at test_src/sljitTest.c:6602
#3  0x00000000004011cc in main (argc=2, argv=0x7f7fff719608) at test_src/sljitMain.c:83

I need some help to fix this.

+58 -0

1 comment

1 changed file

krytarowski

pr closed time in 11 days

pull request commentzherczeg/sljit

Add NetBSD PaX MPROTECT support in sljitExecAllocator.c

OK. I got it. PaX MPROTECT supports only two mappings RW and RX, they can point to the same physical memory, but there is no support for concurrent RWX.

I don't know how to fix this? Or just assume that this is not compatible and move on? Are there any shortages with this allocator without SLJIT_PROT_EXECUTABLE_ALLOCATOR?

krytarowski

comment created time in 12 days

PR opened zherczeg/sljit

Add NetBSD PaX MPROTECT support in sljitExecAllocator.c

However this.. crashes:

(gdb) c
Continuing.
Run test1

Program received signal SIGSEGV, Segmentation fault.
0x00007c591e56c020 in ?? ()
(gdb) bt
#0  0x00007c591e56c020 in ?? ()
#1  0x000000000040176c in test1 () at test_src/sljitTest.c:173
#2  0x00000000004225fc in sljit_test (argc=2, argv=0x7f7fff719608) at test_src/sljitTest.c:6602
#3  0x00000000004011cc in main (argc=2, argv=0x7f7fff719608) at test_src/sljitMain.c:83

I need some help to fix this.

+58 -0

0 comment

1 changed file

pr created time in 12 days

create barnchkrytarowski/sljit

branch : netbsd-2

created branch time in 12 days

PR opened zherczeg/sljit

Adapt to NetBSD >= 8 only

NetBSD-7 is EOL as of June 29th 2020:

http://mail-index.netbsd.org/netbsd-announce/2020/06/29/msg000316.html

While there, change to MAP_PRIVATE from MAP_SHARED.

+29 -40

0 comment

1 changed file

pr created time in 12 days

create barnchkrytarowski/sljit

branch : netbsd-1

created branch time in 12 days

fork krytarowski/sljit

Platform independent low-level JIT compiler

fork in 12 days

pull request commentNetBSD/pkgsrc

Always make shared library IDs absolute on Darwin

@jperkin

Mitsos101

comment created time in 14 days

pull request commentARMmbed/mbedtls

NetBSD 9.0 build fixes

Can we have a new release please with this and https://github.com/ARMmbed/mbedtls/pull/3423 included?

niacat

comment created time in 15 days

create barnchkrytarowski/honggfuzz

branch : netbsd-101

created branch time in 15 days

Pull request review commentopenssl/openssl

Partially sync netbsd changes

 int s_client_main(int argc, char **argv)     }      for (;;) {+        int fdin, fdout;+         FD_ZERO(&readfds);         FD_ZERO(&writefds);+	fdin = fileno_stdin();

Yes.

zoulasc

comment created time in 16 days

push eventMoritz-Systems/src

Kamil Rytarowski

commit sha cce5ed4fe443a422b6e9d8b84e05cf068e4696a7

fix

view details

Kamil Rytarowski

commit sha daa997c46f7334b2015ab476d987d535a7856512

fix

view details

Kamil Rytarowski

commit sha e265d2c625293a559e8aeb4fd9dc2621ce97f8ab

fix

view details

Kamil Rytarowski

commit sha c9bc86d6969cdfe47259f932e37422cc94dfdf03

fix

view details

Kamil Rytarowski

commit sha f3d886329ad611e17f9d4d61cd0bf0ab0149616f

fix

view details

Kamil Rytarowski

commit sha 40967ed8d66e009067a45ef88a7faef57e95faef

fix

view details

Kamil Rytarowski

commit sha cb6b8c3c32f3faa8b7e5bbfe8222c8b646fe121a

fix

view details

Kamil Rytarowski

commit sha 5c2e0acce7ec39e4d97d3983147195ca5751a7c4

fix

view details

Kamil Rytarowski

commit sha 984de29153bab8f613f18e3a785e1cbe291538a7

fix

view details

Kamil Rytarowski

commit sha f39e67ffa4a152d3cbc5b2e3cfe51e8c6cd638f6

fix

view details

Kamil Rytarowski

commit sha ffd38b9c4b90296d3c0793508381d05816269cfc

fix

view details

Kamil Rytarowski

commit sha b5fe9a46190f43ba27c5471aefb3a63857ac61f1

fix

view details

Kamil Rytarowski

commit sha c62f3b8082b2a295f0b619f9526f30d48697026a

id

view details

Kamil Rytarowski

commit sha fd260a91aaa904e5f83727a73fa3cfaabec9ae4d

fix

view details

Kamil Rytarowski

commit sha 93fca41b2926f40e61c5791a231223ae9dd5f091

fix

view details

Kamil Rytarowski

commit sha 31efadcf209bd1ca9857b698f12d1a9b5689af00

fix

view details

Kamil Rytarowski

commit sha b693079f589b246e370b81fb0cb492293ea8cc8d

fix

view details

Kamil Rytarowski

commit sha 300c87a9f47f9528197a5a213db8c9a7bfcbc918

fix

view details

Kamil Rytarowski

commit sha f6db5272eccd2277f2df00e3b6bf23fc82daceaa

fix

view details

Kamil Rytarowski

commit sha 1780d7aa3b92608ea3c578dd2be4191c86895c57

fix

view details

push time in 17 days

issue commentitanium-cxx-abi/cxx-abi

atexit(3) vs dlclose(3)

ping?

krytarowski

comment created time in 18 days

push eventgoogle/syzkaller

m00nbsd

commit sha a2cdad9d42694059bd75f809d297ed9bf853da12

executor/netbsd: base nth on 2 (#1874)

view details

push time in 19 days

PR merged google/syzkaller

Reviewers
executor/netbsd: base nth on 2

2 is the minimum value allowed

+4 -4

1 comment

2 changed files

m00nbsd

pr closed time in 19 days

pull request commentgoogle/syzkaller

sys/netbsd: add common ioctl() commands

@R3x I have got no opinion on distribution of these operations in files.

ais2397

comment created time in 25 days

issue commentintel/haxm

Win 8.1 Pro 64bit fails shortly after start on NetBSD 9.0 amd64

Hmmm, it looks like qemu patching is needed. @kolaloka I recommend to wait for merging it upstream first.

kolaloka

comment created time in 25 days

issue commentintel/haxm

Win 8.1 Pro 64bit fails shortly after start on NetBSD 9.0 amd64

@kolaloka Could you handle it in pkgsrc-wip? I can submit there a package for testing.

kolaloka

comment created time in 25 days

CommitCommentEvent

push eventMoritz-Systems/src

Kamil Rytarowski

commit sha b99d60824aff71c873a90fd01d261451e4d3e670

fix

view details

Kamil Rytarowski

commit sha 5a26605acb7d5a71df2cac99f0649e06bc97720e

fix

view details

Kamil Rytarowski

commit sha 548c72ea2b659d6fdfe5eb0caffa11d50d400aea

fix

view details

Kamil Rytarowski

commit sha 0528d19474aff92304778f0b71d66cb6b43f3601

fix

view details

Kamil Rytarowski

commit sha b30cfdcbc3a9e59815b6f7a9306b1ae181ef021e

fix

view details

Kamil Rytarowski

commit sha 99d05ae6ad4ef748e71a37ce084711d8bffc32f1

fix

view details

Kamil Rytarowski

commit sha 712eec4910aa16de4f596e401b44242335a00139

fix

view details

Kamil Rytarowski

commit sha c69fc62ed76704ee10edcd6f4157a974f3b17e73

fix

view details

Kamil Rytarowski

commit sha 4cbac3e4ed920a65a88f852fd66704ba0e5dce6d

fix

view details

Kamil Rytarowski

commit sha b68d9754e23c2144dc557f80bd9c37bb3d3c134c

fix

view details

Kamil Rytarowski

commit sha b228e4f0ba14661cc3e3e3ff8f8315d329c69674

fix

view details

Kamil Rytarowski

commit sha 110b0e0438da9c145a80ad0d4ddf54ffaf533b8e

fix

view details

Kamil Rytarowski

commit sha 533d0cd2994ca94f99e979ed5db677bdb1753f1e

fix

view details

Kamil Rytarowski

commit sha 4e43df7c19f7c2e02eeaf2ea130429e6ae47f748

fix

view details

Kamil Rytarowski

commit sha 79bfa60dc8bc3b15fc502c8f7ac0348e405f807d

fix

view details

Kamil Rytarowski

commit sha 30ef6896d3b0701e9d96086394911ee8e1c15f62

fix

view details

Kamil Rytarowski

commit sha 0d439b21dd73b910bcfabc3f83929cd4ae29a7ed

ifx

view details

Kamil Rytarowski

commit sha 6c469328aab17a331c9eed228ffa8fd42e9cfc2b

fix

view details

Kamil Rytarowski

commit sha c1b5b5df45760e93a60b30d676f535f713533a22

fix

view details

Kamil Rytarowski

commit sha 7a5860fa66f658340a2ade58bd8209161023f733

fix

view details

push time in a month

push eventMoritz-Systems/src

Kamil Rytarowski

commit sha 6dedb4a9b5faf79262548fe72349c34715c54e09

fix

view details

Kamil Rytarowski

commit sha 3f7fb689a647a2ececac7b3690ce190a9040014b

fix

view details

Kamil Rytarowski

commit sha 066346d21b55745736fb7a55299a29a27cbb4694

fix

view details

Kamil Rytarowski

commit sha 1e47081d39ea7a7b8cba6e330800192e548baf0f

fix

view details

Kamil Rytarowski

commit sha 06c1d21c7e1dc1126ae0eb1fa7d7cdf60552d19f

fix

view details

Kamil Rytarowski

commit sha 9d07cd063ad5048a377021c6635217221d10ba7d

fix

view details

Kamil Rytarowski

commit sha 4c60290019c17300b5fef4f08ac973dc8384b37f

fix

view details

Kamil Rytarowski

commit sha 87610bbe634f2d7a002cac658aa75557d05f13dd

fix

view details

Kamil Rytarowski

commit sha 67e54588c1b29ed8778701707d48f0cd130c2759

fix

view details

Kamil Rytarowski

commit sha 0d1b1e10f87b69e0b40d61fa3194d85f97f39bfa

fix

view details

Kamil Rytarowski

commit sha 56406d663abcc006f83a76d269204af39346074b

fix

view details

Kamil Rytarowski

commit sha edea31839f81f30850257c30d41196c0c803f975

fix

view details

Kamil Rytarowski

commit sha 06a8bc52be065efc69b499d08f74d54c1b1d7eac

fix

view details

Kamil Rytarowski

commit sha abc9772524846a6482c971bb3af6eb48279512f1

fix

view details

Kamil Rytarowski

commit sha 8188811f8d7797b1735a2b86981b1bd01fae7479

fix

view details

Kamil Rytarowski

commit sha 0d72dd6cf7c68da228489c68fb848597202124fa

fix

view details

Kamil Rytarowski

commit sha 028bafcfbd0b3e4b401277e1d38150cd8cdc5c47

fix

view details

Kamil Rytarowski

commit sha d11840f0654566ea465d6772701e79a924509ae0

fix

view details

Kamil Rytarowski

commit sha 7aa610512a2fb59bebcc2ab36f43818aa19a90ea

fix

view details

Kamil Rytarowski

commit sha 03d6c44e9f6edb72fbb08284d19db30a2d8fe23a

fix

view details

push time in a month

pull request commentgoogle/honggfuzz

Fix compatibility issues with NetBSD.

A nice addition to HF_MEMGET() would be to specify with a mask/flags what type of input is allowed. We have got a use-case of allowing e.g. characters valid in file names or in hex ascii numbers. Squashing all the input from a fuzzer is possible, but looks hackish.

A feature request is to pass input as argv[] parameters... but it is possibly for another discussion.

plusun

comment created time in a month

pull request commentgoogle/honggfuzz

Fix compatibility issues with NetBSD.

I have no opinion on the counters. I just care whether the fuzzer is smart enough to handle a function like HF_MEMGET().

Another nice addition would be to allow to feed an application using HF_ITER()/HF_MEMGET() with a reproducer. Is there a simple way?

plusun

comment created time in a month

issue commentintel/haxm

Win 8.1 Pro 64bit fails shortly after start on NetBSD 9.0 amd64

Is 8.1 64-bit supported on other hosts? Generally HAXM on NetBSD shall work comparable to HAXM on other supported kernels.

kolaloka

comment created time in a month

Pull request review commentgoogle/syzkaller

sys/netbsd: increase syscall support

 sched_param { }  pollfd_events = POLLIN, POLLPRI, POLLOUT, POLLERR, POLLHUP, POLLNVAL, POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND-mknod_mode = S_IFREG, S_IFCHR, S_IFBLK, S_IFIFO, S_IFSOCK, S_IRUSR, S_IWUSR, S_IXUSR, S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH+mknod_mode = S_IFREG, S_IFCHR, S_IFBLK, S_IFIFO, S_IFSOCK, S_IXUSR, S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH

In fact the only functional one for regular user is S_IFIFO.

ais2397

comment created time in a month

push eventMoritz-Systems/src

Kamil Rytarowski

commit sha 6083c89486865e80b8a46f9fdfb2be9a4f0b077a

fix

view details

Kamil Rytarowski

commit sha 170b4487e769eb1acf4e0f75111a1db150575956

fix

view details

Kamil Rytarowski

commit sha 7f4c84643c79cb640dea0de1a5216f4d8536fadf

fix

view details

Kamil Rytarowski

commit sha c3184fef980ec76e590e54dcc8f34df2ee7e13a1

fix

view details

Kamil Rytarowski

commit sha a73bebc779ac8f787caa11166345c7300fece179

fix

view details

Kamil Rytarowski

commit sha 484b77107b02cb14c231084cb7c254943ee40589

fix

view details

Kamil Rytarowski

commit sha af86a9cfc5c2c4e329f504cf88b4983b2d92f04c

fix

view details

push time in a month

push eventgoogle/syzkaller

m00nbsd

commit sha dbce178a0e6997a799ba38247059dcb8213f4572

sys/netbsd: support multiple vHCI buses (#1822)

view details

push time in a month

PR merged google/syzkaller

Reviewers
sys/netbsd: support multiple vHCI buses

procid becomes the bus number, and we use port 1 on each bus

+60 -38

1 comment

5 changed files

m00nbsd

pr closed time in a month

push eventMoritz-Systems/src

Kamil Rytarowski

commit sha ba710aeda5dea71f1d0b7a8a331d725ac20857c2

fix

view details

Kamil Rytarowski

commit sha 0d74160533d927f1a82efc509bddfe33c4a3e2fc

Revert "fix" This reverts commit ba710aeda5dea71f1d0b7a8a331d725ac20857c2.

view details

Kamil Rytarowski

commit sha 5d72fb4ef350db7ae0b80607e64fee3d28320316

fix

view details

Kamil Rytarowski

commit sha 0be3ede9d797a45025f489756e45d56d7e3f8bb4

fix

view details

Kamil Rytarowski

commit sha e0d795d292c09667ded7d851d23c7cd981b3cef6

fix

view details

Kamil Rytarowski

commit sha a69e6a6e95f4bf8684606c03548649e2d60b18b4

fix

view details

Kamil Rytarowski

commit sha 7c25698e683ada115e9ee24558e72473c0ce91ef

fix

view details

Kamil Rytarowski

commit sha c3567a531c4293feaaf1b9ca66f244dfef2ccf6f

fix

view details

Kamil Rytarowski

commit sha 7c1aec627c2f14fa86b21e720f483bf8686256e5

fix

view details

Kamil Rytarowski

commit sha cbf33c9d2592e9fd6b64c62ac7c5ba26acc288ea

fix

view details

push time in a month

pull request commentgoogle/honggfuzz

Fix compatibility issues with NetBSD.

We experiment with something like:

static pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER;
static void
HF_MEMGET(void *dst, size_t len)
{
    static uint8_t *buf;
    static size_t buflen;
    size_t diff;

    if (len == 0)
       return;

    pthread_mutex_lock(&mtx);
    do {
        if (buflen == 0) {
            HF_ITER(&buf, &buflen);
            continue;
        }
        diff = MIN(buflen, len);
        memcpy(dst, buf, diff);
        buf += diff;
        buflen -= diff;
        dst += diff;
        len -= diff;
    } while (len > 0);
    pthread_mutex_unlock(&mtx);
}
plusun

comment created time in a month

push eventgoogle/syzkaller

m00nbsd

commit sha 0f23e882fa8ef33d4f44a3fc0a5bba7a32889801

sys/netbsd: add support for fault injection (#1817)

view details

push time in a month

PR merged google/syzkaller

Reviewers
sys/netbsd: add support for fault injection
+109 -2

3 comments

5 changed files

m00nbsd

pr closed time in a month

PR opened google/honggfuzz

Improve NetBSD compatibility

Stop using install -t as it is GNU specific. Replace it with a portable construct.

Before reading with ptrace(2) from address 0x0, check whether the VA0 is mappable into the process, as otherwise the ptrace(2) call will return EINVAL.

Stop intercepting fork(2) events as they are ignored anyway.

Document PTRACE_POSIX_SPAWN events.

Use PT_SET_SIGPASS to disable notifying the parent about uninteresting signals. The only interesting ones are crash signals, SIGABRT and SIGSYS. Everything else is directly passed to the traced process.

+63 -13

0 comment

2 changed files

pr created time in a month

create barnchkrytarowski/honggfuzz

branch : netbsd-100

created branch time in a month

pull request commentgoogle/honggfuzz

Fix compatibility issues with NetBSD.

Something like HF_ITER_INITIAL() for the initial charge of the buffer and HF_ITER_CHARGE() to pull on demand random bytes; both serving the exact number of requested bytes.

plusun

comment created time in a month

pull request commentgoogle/honggfuzz

Fix compatibility issues with NetBSD.

We are working on a follow up of the previous work and we would like to charge the fuzzed program on demand for the exact number of bytes from honggfuzz. Would the fuzzer be smart enough to support it?

We would like to avoid collecting a lot of data in a buffer before calling APIs and charge from it manually as it would be too slow and the buffer too large.

plusun

comment created time in a month

pull request commentgoogle/honggfuzz

Fix compatibility issues with NetBSD.

@robertswiecki hi! A follow up of this thread.

Is it reasonable/possible to combine LLVMFuzzerTestOneInput and charge extra randomness from HF_ITER on demand?

Also a version of HF_ITER that has returns the requested number of bytes is wanted.

plusun

comment created time in a month

Pull request review commentgoogle/syzkaller

sys/netbsd: increase syscall support

 sched_param { }  pollfd_events = POLLIN, POLLPRI, POLLOUT, POLLERR, POLLHUP, POLLNVAL, POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND-mknod_mode = S_IFREG, S_IFCHR, S_IFBLK, S_IFIFO, S_IFSOCK, S_IRUSR, S_IWUSR, S_IXUSR, S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH+mknod_mode = S_IFREG, S_IFCHR, S_IFBLK, S_IFIFO, S_IFSOCK, S_IXUSR, S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH at_flags = AT_SYMLINK_NOFOLLOW, AT_SYMLINK_FOLLOW access_mode = R_OK, W_OK, X_OK, F_OK+priority_which = PRIO_PROCESS, PRIO_PGRP, PRIO_USER linkat_flags = AT_SYMLINK_FOLLOW unlinkat_flags = 0, AT_REMOVEDIR flock_op = LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB faccessat_flags = AT_EACCESS, AT_SYMLINK_NOFOLLOW rusage_who = RUSAGE_SELF, RUSAGE_CHILDREN rlimit_type = RLIMIT_AS, RLIMIT_CORE, RLIMIT_CPU, RLIMIT_DATA, RLIMIT_FSIZE, RLIMIT_MEMLOCK, RLIMIT_NOFILE, RLIMIT_NPROC, RLIMIT_RSS, RLIMIT_STACK, RLIMIT_NTHR, RLIMIT_STACK-clock_id = CLOCK_REALTIME, CLOCK_MONOTONIC, CLOCK_PROCESS_CPUTIME_ID, CLOCK_THREAD_CPUTIME_ID, CLOCK_VIRTUAL, CLOCK_PROF+timer_flags = TIMER_RELTIME, TIMER_ABSTIME+clock_id = CLOCK_REALTIME, CLOCK_MONOTONIC, CLOCK_VIRTUAL, CLOCK_PROF, CLOCK_PROCESS_CPUTIME_ID, CLOCK_THREAD_CPUTIME_ID getitimer_which = ITIMER_REAL, ITIMER_VIRTUAL, ITIMER_PROF, ITIMER_MONOTONIC-wait_options = WALLSIG, WALTSIG, WCONTINUED, WEXITED, WNOHANG, WNOZOMBIE, WSTOPPED, WTRAPPED, WUNTRACED-timer_flags = 0, TIMER_ABSTIME+wait_options = WNOHANG, WUNTRACED, WALTSIG, __WCLONE, WALTSIG, __WALL

why removal of options here?

ais2397

comment created time in a month

Pull request review commentgoogle/syzkaller

sys/netbsd: increase syscall support

 writev(fd fd, vec ptr[in, array[iovec_in]], vlen len[vec]) pwrite(fd fd, buf buffer[in], nbyte len[buf], off fileoff) pwritev(fd fd, vec ptr[in, array[iovec_in]], vlen len[vec], off fileoff) lseek(fd fd, offset fileoff, whence flags[seek_whence])

Technically we shall add pad argument here.

ais2397

comment created time in a month

Pull request review commentgoogle/syzkaller

sys/netbsd: increase syscall support

 writev(fd fd, vec ptr[in, array[iovec_in]], vlen len[vec]) pwrite(fd fd, buf buffer[in], nbyte len[buf], off fileoff) pwritev(fd fd, vec ptr[in, array[iovec_in]], vlen len[vec], off fileoff) lseek(fd fd, offset fileoff, whence flags[seek_whence])+compat_43_olseek(fd fd, offset fileoff, whence flags[seek_whence])

lseek uses 64-bit offset, compat_43_olseek ptr-size offset

Is this handled well here?

ais2397

comment created time in a month

pull request commentNetBSD/pkgsrc

devel/icecc Add new icecc and libcap-ng package

Generally we prefer new packages to be maintained rather then just there and unmaintained (libcap-ng is Linux-specific so not all people will use/build it). If you want to see it in pkgsrc and maintained it's best to pick the role of a maintainer yourself and commit it at least initially to pkgsrc-wip. Once we can see a good maintenance in pkgsrc-wip, it's good sign to import it to pkgsrc.

gang65

comment created time in a month

pull request commentNetBSD/pkgsrc

lang/gcc48,49,5,6: Refine the condition to enable multilib

@jperkin could you please handle this as you can have access to Linux and other platforms?

gang65

comment created time in a month

Pull request review commentNetBSD/pkgsrc

lang/gcc48,49,5,6: Refine the condition to enable multilib

 _OPSYS_EMULDIR.linux=	# empty _OPSYS_EMULDIR.linux32=	# empty  # Support Debian/Ubuntu's multiarch hierarchy.++###+### Determine if multilib is available.+###+MULTILIB_SUPPORTED?=	unknown+.if !empty(MACHINE_PLATFORM:MLinux-*-x86_64)+.  if exists(/usr/include/x86_64-linux-gnu/gnu)+_GNU_INCLUDE_DIR=	/usr/include/x86_64-linux-gnu/gnu

You should add something like _OPSYS_LIB_DIR, on par with _OPSYS_LIB_DIRS and handle similarly.

gang65

comment created time in a month

pull request commentNetBSD/pkgsrc

lang/gcc48,49,5,6: Refine the condition to enable multilib

Ah, done I was apparently looking at an older revision, checking.

gang65

comment created time in a month

pull request commentNetBSD/pkgsrc

lang/gcc48,49,5,6: Refine the condition to enable multilib

Please try to push these paths to: mk/platform/Linux.mk

gang65

comment created time in a month

pull request commentNetBSD/pkgsrc

cmake: Remove not needed patch for libarchive

Any way is good! GitHub is good too. I'm going to test and merge it! Same for other PRs.

gang65

comment created time in a month

push eventgoogle/syzkaller

m00nbsd

commit sha 7604bb0341ac55d2ee620fa09fd18f06a6c3c727

dashboard/config/netbsd: add fault(4) to the kernel build (#1795)

view details

push time in a month

PR merged google/syzkaller

Reviewers
dashboard/config/netbsd: add fault(4) to the kernel build
+6 -0

1 comment

3 changed files

m00nbsd

pr closed time in a month

create barnchkrytarowski/hax

branch : sf2

created branch time in a month

create barnchkrytarowski/hax

branch : freestanding

created branch time in a month

create barnchkrytarowski/hax

branch : devel

created branch time in a month

push eventhaxlang/hax

Kamil Rytarowski

commit sha 86e420e804745b1ed4f27fd17523a7d976bc7ac0

README: Remove references to ./config

view details

Kamil Rytarowski

commit sha 2178d32abea1e0ea1fdf0f680d1d3e483d08ae49

Makefile: Remove ./config stage This is obsolete feature not needed on modern Operating Systems.

view details

Kamil Rytarowski

commit sha c5bac5d68245239fcaa074b4c6cfe584847d7e6a

config: Retired No longer needed.

view details

Kamil Rytarowski

commit sha be0163e4146df7d7986b309d680811dc478d6ac9

Makefile: Drop NO_PROTOTYPE support (pre-ANSI)

view details

Kamil Rytarowski

commit sha 864bfc80dbe77065e650c0e8073784afa39ccbb7

README: Drop reference to obsolete porting.notes

view details

Kamil Rytarowski

commit sha 152a35e7b4f0a0dbafc4931b3144a5414f57c768

README: Drop notes on building on obsolete targets

view details

Kamil Rytarowski

commit sha bdd8979ac7e85c90d31a104bd140c2e0ca83a2c6

Makefile: Drop SHELL variable for obsolete make(1) variations

view details

Kamil Rytarowski

commit sha 91fed8b88903774eb74b008f0d54420f6fd10b29

Makefile: Modernize the build and install rules Rename INSTALL_DIR to PREFIX. Allow to overwrite paths in INSTALL_DIR, TCL_LIBRARY, LIB_DIR, INCLUDE_DIR, MAN3_DIR, MANN_DIR. Allow to overwrite CC. Change CFLAGS and LDFLAGS to allow appending arguments. Document CC, AR, RANLIB, CFLAGS, LDFLAGS Allow to specify MAN_DIR from environment as it can be either man or share/man. Remove "rm -f" calls in build and install rules. Rewrite the rules to be more explicit. Switch mkdir(1) to install -d. Switch cp(1) to install(1).

view details

Kamil Rytarowski

commit sha 9fd47af8ca61b41eaaf8593fad7ec35d378c9287

Switch VARARGS to ANSI stdargs

view details

Kamil Rytarowski

commit sha a7441a8c2b99cdf8eb82cf0d221382fd7d3b7c8a

tclUnix.h: Switch to TCL_UNION_WAIT=0 This it the current standard.

view details

Kamil Rytarowski

commit sha 73aaa579a6aab4e1ed1675a5c339ca321b11b2b5

tclUnix.h: Drop fallback for systems without errno in public headers

view details

Kamil Rytarowski

commit sha dc11eb9c71b1e872aa0263531ccf6f270ed4f5cf

tclCmdAH.c: Cast a pointer to integer through long, not int

view details

Kamil Rytarowski

commit sha 94692c1ebf6766b4901e02266f1f67d3c629c599

tclUnix.h: Drop fallback declaration of public unix functions

view details

Kamil Rytarowski

commit sha a1ec78a1639d2953c1c27dcc908b0b0cb6bae087

tclEnv.c: Remove clash with systemwide setenv/putenv/unsetenv Rename local routines to SetEnv/PutEnv/UnsetEnv.

view details

Kamil Rytarowski

commit sha 31577e9427d397da1b6c7c9feeb421408b1ecf64

porting.notes: Retired This file is no longer relevant today.

view details

Kamil Rytarowski

commit sha ff786da5549ec7494e7cb6cef6b0105db89c027c

Retire pre-ANSI compat glue Remove: _ANSI_ARGS_, CONST, VOID, VARARGS. Add comment for C++ compat for EXTERN that is still needed.

view details

Kamil Rytarowski

commit sha 8be2d56e21ec7df39fe9e8127dea69dddc2a1f98

.gitignore: Add new file that blacklists local temporary files

view details

Kamil Rytarowski

commit sha f5ff1338e19ebe72968099b5e5db68fce29b3785

changes: Retire file The history of Tcl can be found in the original Tcl distribution.

view details

Kamil Rytarowski

commit sha 6dfeb0df52c4a35a9546925a72d090b5903eca4b

Retire the usage of register keyword

view details

Kamil Rytarowski

commit sha d98c5ec2d84679181af6ca19a34807b2784c12ee

Correct GCC warnings in sprintf/printf-like functions.

view details

push time in a month

push eventkrytarowski/hax

Kamil Rytarowski

commit sha f1232a2af99bfc74b048527cdc4353cc74485602

Fix build on a modern environment (NetBSD 9.0) Rename unsetenv(), setenv(), putenv() to UnsetEnv(), SetEnv() and PutEnv(). Their purpose with overloading the original libc versions is temporarily gone. Remove fallback declarations from errno.h, that conflict with the system versions. Remove fllback declarations of Unix functions as they are not needed and slightly conflict with modern Operating Systems. Cast a pointer to short through long, not int which triggers a warning. Set TCL_UNION_WAIT to 0, as modern systems no longer use union.

view details

Kamil Rytarowski

commit sha 8da3f519fe2f16f2109352cd3bff79ec81b72bce

Remove the obsolete fallback definition of compat and ./config

view details

Kamil Rytarowski

commit sha 7c52959f2a429bb7341be0b1495a7b9d08c59d11

Makefile: Drop NO_PROTOTYPE support (pre-ANSI)

view details

Kamil Rytarowski

commit sha 7434d262c0a192142bb3daad06a12dee0f46e3e7

Makefile: Drop SHELL variable for obsolete make(1) variations

view details

Kamil Rytarowski

commit sha ac3abd3513f151ea987e07d1fb92af8253ca16f6

Retire pre-ANSI compat glue Remove: _ANSI_ARGS_, CONST, VOID, VARARGS. Add comment for C++ compat for EXTERN that is still needed.

view details

Kamil Rytarowski

commit sha 054699ffe370e55c36e8c42fdfdcaaac8bf8f491

Retire the usage of register keyword

view details

Kamil Rytarowski

commit sha 0a37047a26654288dc458c010c4b417df9ea868a

Correct GCC warnings in sprintf/printf-like functions.

view details

Kamil Rytarowski

commit sha 98112279a2e0caeb0d0e4a1aacf1fd7cb64ee61b

tcl.h: Remove fallback definition of NULL from this file

view details

Kamil Rytarowski

commit sha 4315e92b97b186d9fe42cc91837053ca2b7b3087

panic.c: Convert to ANSI definitions

view details

Kamil Rytarowski

commit sha db13152ed9c3c4a55ed869a52432573d7ebf290c

regexp.c: Remove pre-ANSI static fallback

view details

Kamil Rytarowski

commit sha d3d7144b4f62ca912523d3319ce2ff3e94204dc1

regexp.c: Remove another compat definition of strcspn()

view details

Kamil Rytarowski

commit sha 7c7ab7e694c92db95b48c35557612d63f1a00fa4

regexp.c: Switch to ANSI function definitions

view details

Kamil Rytarowski

commit sha bfd91a41735919034066db431b8d325839181355

tclAssem.c: Convert to ANSI function definitions

view details

Kamil Rytarowski

commit sha 586e1b5258fed8b1862e2cea4bca179a4c2068f6

tclBasic.c: Convert to ANSI function definitions

view details

Kamil Rytarowski

commit sha c41accc7e889311acc25c7eb15710f8127f76b69

tclCkalloc.c: Convert to ANSI function definitions

view details

Kamil Rytarowski

commit sha 610144bd595900f2b2fc6f5a17efcb634c14b68e

tclCmdAH.c: Convert to ANSI function definitions

view details

Kamil Rytarowski

commit sha 04c9f940ef2412ee9512afc4815432c0e9e30509

tclCmdIL.c: Convert to ANSI function definitions

view details

Kamil Rytarowski

commit sha 27f5ba5e74ed517072ca33a3b0851fcaafcc2410

tclCmdMZ.c: Convert to ANSI function definitions

view details

Kamil Rytarowski

commit sha 468e9303f3af3a68aa0d63d154371cbd33ff08c2

tclEnv.c: Convert to ANSI function definitions

view details

Kamil Rytarowski

commit sha 929a77ec8d1989f8313bd1cbca7ba753fc70ab88

tclExpr.c: Convert to ANSI function definitions

view details

push time in a month

push eventhaxlang/hax

Kamil Rytarowski

commit sha f1232a2af99bfc74b048527cdc4353cc74485602

Fix build on a modern environment (NetBSD 9.0) Rename unsetenv(), setenv(), putenv() to UnsetEnv(), SetEnv() and PutEnv(). Their purpose with overloading the original libc versions is temporarily gone. Remove fallback declarations from errno.h, that conflict with the system versions. Remove fllback declarations of Unix functions as they are not needed and slightly conflict with modern Operating Systems. Cast a pointer to short through long, not int which triggers a warning. Set TCL_UNION_WAIT to 0, as modern systems no longer use union.

view details

Kamil Rytarowski

commit sha 8da3f519fe2f16f2109352cd3bff79ec81b72bce

Remove the obsolete fallback definition of compat and ./config

view details

Kamil Rytarowski

commit sha 7c52959f2a429bb7341be0b1495a7b9d08c59d11

Makefile: Drop NO_PROTOTYPE support (pre-ANSI)

view details

Kamil Rytarowski

commit sha 7434d262c0a192142bb3daad06a12dee0f46e3e7

Makefile: Drop SHELL variable for obsolete make(1) variations

view details

Kamil Rytarowski

commit sha ac3abd3513f151ea987e07d1fb92af8253ca16f6

Retire pre-ANSI compat glue Remove: _ANSI_ARGS_, CONST, VOID, VARARGS. Add comment for C++ compat for EXTERN that is still needed.

view details

Kamil Rytarowski

commit sha 054699ffe370e55c36e8c42fdfdcaaac8bf8f491

Retire the usage of register keyword

view details

Kamil Rytarowski

commit sha 0a37047a26654288dc458c010c4b417df9ea868a

Correct GCC warnings in sprintf/printf-like functions.

view details

Kamil Rytarowski

commit sha 98112279a2e0caeb0d0e4a1aacf1fd7cb64ee61b

tcl.h: Remove fallback definition of NULL from this file

view details

Kamil Rytarowski

commit sha 4315e92b97b186d9fe42cc91837053ca2b7b3087

panic.c: Convert to ANSI definitions

view details

Kamil Rytarowski

commit sha db13152ed9c3c4a55ed869a52432573d7ebf290c

regexp.c: Remove pre-ANSI static fallback

view details

Kamil Rytarowski

commit sha d3d7144b4f62ca912523d3319ce2ff3e94204dc1

regexp.c: Remove another compat definition of strcspn()

view details

Kamil Rytarowski

commit sha 7c7ab7e694c92db95b48c35557612d63f1a00fa4

regexp.c: Switch to ANSI function definitions

view details

Kamil Rytarowski

commit sha bfd91a41735919034066db431b8d325839181355

tclAssem.c: Convert to ANSI function definitions

view details

Kamil Rytarowski

commit sha 586e1b5258fed8b1862e2cea4bca179a4c2068f6

tclBasic.c: Convert to ANSI function definitions

view details

Kamil Rytarowski

commit sha c41accc7e889311acc25c7eb15710f8127f76b69

tclCkalloc.c: Convert to ANSI function definitions

view details

Kamil Rytarowski

commit sha 610144bd595900f2b2fc6f5a17efcb634c14b68e

tclCmdAH.c: Convert to ANSI function definitions

view details

Kamil Rytarowski

commit sha 04c9f940ef2412ee9512afc4815432c0e9e30509

tclCmdIL.c: Convert to ANSI function definitions

view details

Kamil Rytarowski

commit sha 27f5ba5e74ed517072ca33a3b0851fcaafcc2410

tclCmdMZ.c: Convert to ANSI function definitions

view details

Kamil Rytarowski

commit sha 468e9303f3af3a68aa0d63d154371cbd33ff08c2

tclEnv.c: Convert to ANSI function definitions

view details

Kamil Rytarowski

commit sha 929a77ec8d1989f8313bd1cbca7ba753fc70ab88

tclExpr.c: Convert to ANSI function definitions

view details

push time in a month

create barnchkrytarowski/hax

branch : old-master-2

created branch time in a month

create barnchkrytarowski/hax

branch : old-master

created branch time in a month

push eventMoritz-Systems/src

Kamil Rytarowski

commit sha 8eac277cf5554dbcc2cb59fb371f27679b0ce3bc

fix

view details

Kamil Rytarowski

commit sha f81e27e4b4392e2612134feecee26557819d206c

fix

view details

Kamil Rytarowski

commit sha f6d691f58fed1e3edc3788ebaabf5ccd52cfbd1d

fix

view details

push time in a month

pull request commentNetBSD/pkgsrc

devel/icecc Add new icecc and libcap-ng package

Please submit new packages via https://pkgsrc.org/wip/

gang65

comment created time in a month

pull request commentNetBSD/pkgsrc

lang/gcc5: Refine the condition to enable multilib

Having this logic in another package does not make it optimal and it can introduce now repetitive code.

gang65

comment created time in a month

pull request commentNetBSD/pkgsrc

lang/gcc5: Refine the condition to enable multilib

Alternatively, can you use ${MACHINE_GNU_PLATFORM} in this Makefile?

gang65

comment created time in a month

pull request commentNetBSD/pkgsrc

cmake: Remove not needed patch for libarchive

Looks OK to me.

gang65

comment created time in a month

pull request commentNetBSD/pkgsrc

lang/gcc5: Refine the condition to enable multilib

IMHO this should be pushed to mk/platform/Linux.mk

https://github.com/NetBSD/pkgsrc/blob/trunk/mk/platform/Linux.mk#L51

gang65

comment created time in a month

pull request commentNetBSD/pkgsrc

lang/gcc5: Refine the condition to enable multilib

What Linux distro is this?

gang65

comment created time in a month

issue commentlsof-org/lsof

Remove dialects we cannot maintain

If you will end up with a tool in util-linux it is fine, but it will be Linux-only.

masatake

comment created time in 2 months

issue commentlsof-org/lsof

Remove dialects we cannot maintain

Do you mean a successor of lsof?

masatake

comment created time in 2 months

issue commentlsof-org/lsof

Remove dialects we cannot maintain

If you could switch FreeBSD to it, it would be a good reference for NetBSD later. Certainly other BSDs will catch up.

masatake

comment created time in 2 months

issue commentlsof-org/lsof

Remove dialects we cannot maintain

Basically, please check FreeBSD's kinfo_getfile():

https://www.freebsd.org/cgi/man.cgi?query=kinfo_getfile&apropos=0&sektion=0&manpath=FreeBSD+12.1-RELEASE+and+Ports&arch=default&format=html

It wraps internally sysctl: KERN_PROC_FILEDESC.

We should get something similar in NetBSD.

masatake

comment created time in 2 months

issue commentlsof-org/lsof

Remove dialects we cannot maintain

I agree with karelzak. BTW. Vic Abell is a BSD developer.

masatake

comment created time in 2 months

pull request commentintel/haxm

windows: remove ununsed PptRegGetDword function

Looks OK.

Biswa96

comment created time in 2 months

Pull request review commentcrystal-lang/crystal

Port to NetBSD

-{% if flag?(:linux) || flag?(:freebsd) || flag?(:openbsd) || flag?(:dragonfly) %}+{% if flag?(:linux) || flag?(:bsd) %}

Removing dragonfly?

niacat

comment created time in 2 months

Pull request review commentcrystal-lang/crystal

Port to NetBSD

 class Socket     end      private def ipv6_addr8(addr : LibC::In6Addr)-      {% if flag?(:darwin) || flag?(:openbsd) || flag?(:freebsd) || flag?(:dragonfly) %}+      {% if flag?(:darwin) || flag?(:bsd) %}

Removing dragonfly?

niacat

comment created time in 2 months

issue closedsmherwig/netbsd-sandbox

Missing license?

Please add license to the source files. The NetBSD template is as follows:

/*-
 * Copyright (c) 2020 The NetBSD Foundation, Inc.
 * All rights reserved.
 *
 * This code is derived from software contributed to The NetBSD Foundation
 * by 
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 *
 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 */

closed time in 2 months

krytarowski

issue commentsmherwig/netbsd-sandbox

Missing license?

Ah, ok. You fixed it. Thanks! Also great work on the sandbox!

krytarowski

comment created time in 2 months

issue commentlsof-org/lsof

Remove dialects we cannot maintain

Just go ahead. If there is interest, users of these OSs will reintroduce the support with updated code.

masatake

comment created time in 2 months

issue commentsmherwig/netbsd-sandbox

Missing license?

Please double check src/mock/systm.c

krytarowski

comment created time in 2 months

issue commentsmherwig/netbsd-sandbox

Missing license?

Please add your name.

krytarowski

comment created time in 2 months

issue commentlsof-org/lsof

Remove dialects we cannot maintain

@masatake NetBSD has users and lsof is in pkgsrc.. however we plan to add a better userspace interface to list open file descriptors in a process. Before materializing that, it's better to hold on.

Regarding other kernels, I have nothing to say or defend them.

masatake

comment created time in 2 months

issue openedsmherwig/netbsd-sandbox

Missing license?

Please add license to the source files. The NetBSD template is as follows:

/*-
 * Copyright (c) 2020 The NetBSD Foundation, Inc.
 * All rights reserved.
 *
 * This code is derived from software contributed to The NetBSD Foundation
 * by 
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 *
 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 */

created time in 2 months

fork krytarowski/netbsd-sandbox

The secmodel_sandbox security module for NetBSD

fork in 2 months

more