-
RhodiumToad
(because POSIX says so)
-
rwp
It used to be that POSIX was not a design by committee document but was instead a standardization of existing practice. Basically an operating system feature nonproliferation treaty.
-
sfox
I wasn't aware that I could have printing without cups.
-
RhodiumToad
right, but in this case it standardized lp rather than lpr :-)
-
xtile
The standards are mostly just a description of System V.
-
sfox
RhodiumToad, I am
-
sfox
but this printer works with standard subroutines built into computer's BIOSes
-
rwp
sfox, Sure! CUPS is the "new" (in the grand scheme of things) Apple dynamic configuration printing system.
-
sfox
and works with DOS
-
RhodiumToad
uh, no BIOS that I ever used had any printer support
-
RhodiumToad
sfox: do you have an lpd process running?
-
rwp
That BIOS comment throws my head into a tizzy too...
-
sfox
RhodiumToad, it's called printscreen. it's what that button is supposed to do on PS/2 & compatibles
-
RhodiumToad
sfox: and/or lpd_enable="YES" in /etc/rc.conf ?
-
sfox
i did not
-
sfox
thankyou, i will look into that
-
rwp
PrintScreen is an OS feature not a BIOS feature. Though in DOS it was usually a TSR terminate stay resident routine
-
RhodiumToad
don't enable it if you weren't using it before
-
sfox
is there any way to make the printer available over the network without cups too?
-
RhodiumToad
lpd supports remote access as I recall, but it's ancient and useless with most modern printers
-
xtile
Yes, I've done remote lpr/lp printing before with an HP printer, ages ago
-
sfox
rwp I have a laptop here from which my friend wrote a bootsector hex editor for REAL mode. When you press printscreen button the printer goes to work.
-
xtile
by ages I mean a couple years ago
-
xtile
Never did non-remote printing with lpr or lp, actually
-
RhodiumToad
sfox: that says nothing about how you're expecting the printer to work from within freebsd.
-
xtile
only over the network
-
rwp
sfox, Does it boot that program or is that program invoked from DOS?
-
sfox
I was talking to rwp about the BIOS feature. rwp, it's booted from a raw floppy.
-
rwp
Booted what exactly from a raw floppy? DOS? Probably. I am thinking it is booting DR-DOS, MS-DOS, or FreeDOS from a floppy.
-
sfox
the hex editor that was written in assembly
-
sfox
in a bootsector
-
RhodiumToad
it. doesn't. matter.
-
RhodiumToad
how you use the printer in freebsd is not in any way related to how you use it in any other OS
-
sfox
rwp we should probably take this to private message for further discussion on how it's implemented. I think it's annoying RhodiumToad
-
rwp
Agreed. It's OT here. We should be in -social or something talking about museum pieces.
-
polyex
seems like tracking latest pkgs isn't any less stable than quarterly because quarterly pkgs sometimes have problems too, and when latest pkgs have problems they get fixed faster. am i wrong?
-
RhodiumToad
latest gets more updates
-
RhodiumToad
this sometimes means that security fixes take longer because the latest package set is taking days to finish a build cycle
-
polyex
security fixes sometimes hit quarterly sooner than latest?
-
rwp
If it is a security problem then that will get fixed as an errata. Or at least should.
-
RhodiumToad
in terms of the package repo rather than the ports tree, the quarterly might or might not be faster, it's dependent on the build cycle
-
rwp
Mostly there is nothing that I use daily that I want daily changes. All of that ends up being wasteful thrash for me. Disruptive to me.
-
polyex
well my thing is i've run into broken (temporarily) packages on both quarterly and latest. but another problem i've had is quarterly packages taking a long time to get a version update i wanted. so it feels like latest is better than quarterly
-
polyex
for me
-
rwp
Can you give an example of a package that you use that you enjoy getting the daily changes? No judgement here. ykinmkbykiok. Just curious.
-
polyex
i didnt say anything about daily updates. when there's a new version of something i want, it obviously hits latest faster, rather than having to wait up to 3 months like on quarterly
-
RhodiumToad
if you want control over what you get, then build your own repo
-
polyex
ya i dont wanna do that. yet anyway
-
RhodiumToad
otherwise if you want latest, then use latest
-
xtile
I use quarterly but probably should switch to latest. I trust software devs to know their own software best.
-
polyex
my only concern about latest is with quarterly, i can provision a few servers over a few hours and know they all have the same or pretty close versions, but with latest a package could be updated in between those servers getting provisioned and end up with pretty different versions between them
-
polyex
bit more of a moving target
-
RhodiumToad
well yes
-
RhodiumToad
if you want to avoid that you'd have to maintain your own repo
-
rwp
Yes. That is the way latest works. Always in motion.
-
sfox
I'd like to network my mail server over High Frequency radio, does FreeBSD still support UUCP?
-
xtile
sfox: freebsd-uucp package
-
sfox
thanks
-
vkarlsen
I think that was way faster than rm: rsync -a --delete /empty/ /usr/ports/ 0.30s user 3.84s system 5% cpu 1:18.47 total
-
meena
oh, cool!
-
debdrup
sfox: I hope for your sake nobody sends you a PGP encrypted email, or that your mail daemon isn't configured to support TLS or any form of encryption..
-
tercaL
When having a PF rule in FreeBSD like "block in from no-route to any", should I remove the other line of mine related to that; nonrout = "{ 127.0.0.0/8, 192.168.0.0/16, 172.16.0.0/12, 10.0.0.0/8, 169.254.0.0/16, 192.0.2.0/24, 0.0.0.0/8, 240.0.0.0/4, 255.255.255.255/32 }" (and block in quick on $ext_if from $nonrout to any + block out quick on $ext_if from any to $nonrout) ? Does having "block in from no-route to any" do that all?
-
V_PauAmma_V
I think they do different things. RFC1918 addresses (private/not globally routable) may still be reachable from your host, and public addresses may still be unreachable from your host.
-
n-st
hi, i've got a freebsd installation that was forgotten for some time… can i freebsd-update -r it directly from 12.2 to 13.2, or do i need to take the/some intermediate steps too? (can't seem to find any mention of that in
docs.freebsd.org/en/books/handbook/cutting-edge)
-
phryk
what's the version string for freebsd-update to upgrade to 14? 14-LATEST?
-
yuripv
it's not supported
-
yuripv
(and man page says that)
-
nimaje
freebsd-update can only update to releases and CURRENT has no releases
-
phryk
so, to upgrade i download and mount the boot image for 14, extract kernel and base.txz over my mounted system and reboot?
-
» yuripv eyes #271281
-
meena
yuripv: that person seems angry
-
meena
phryk: or else, build
-
meena
(usually, at this point i would advertise my PkgBase repo, however, that's defunct)
-
gzar
if i want to built-in a kernel module, do i put 'device linux' etc. in the kernconf ?
-
trev
gzar: yeah. that's how i did it at least.
-
gzar
alright, i'll try
-
trev
gzar: not sure which arch you are on but this is the generic conf:
github.com/freebsd/freebsd-src/blob/main/sys/amd64/conf/GENERIC
-
VimDiesel
Title: freebsd-src/GENERIC at main · freebsd/freebsd-src · GitHub
-
gzar
i know, i am modifying that one
-
gzar
do i include the `options COMPAT_LINUX` or can i just leave it out
-
trev
-
VimDiesel
Title: config(5)
-
gzar
thanks thats what i was looking for
-
trev
gzar: it's already there in the generic one
-
gzar
yeah but idk if its necessary if i am causing the module to be built-in
-
nimaje
(the question read to me like compiled in linux support is wanted, instead of the default of a loadable kernel module)
-
gzar
yes exactly
-
trev
ah yes, sorry.
-
trev
what benefit does that give? faster boot time?
-
gzar
i want to check what happens if i compile it in and then try again compiling with gcc. it should do something even if it panics i'll at least have a crash log of whats happening
-
trev
oh ok
-
gzar
cause it was segfaulting, the linux compat
-
gzar
if i understand correctly, this will either work or panic with gdb trace output
-
nimaje
but that was a userland process (?), it shouldn't matter if you have a loadable kernelmodule or have that compiled in
-
gzar
oh, well my hope it is it will work
-
gzar
if not then i'll just use clang for the time being
-
gzar
i could mix and match it by not compiling the linux compat module with gcc but the compile it separately with clang but that just seems unnecessarily complicated
-
gzar
it may have been a userland process nimaje but the problem disappeared when i rebooted into a kernel built with clang instead of gcc
-
parv
As long as FreeBSD project allows use og GCC to build world, thing not working as a result should be reported as bugs
-
gzar
build world with gcc doesnt compile on 13.2
-
gzar
the linker complains about an executable stack
-
gzar
and i dont know where to put the flag to silence the linker, cause its a warning treated as an error i believe
-
parv
Could be due to options used (/etc/{make,src}.conf.?
-
gzar
and gcc12 doesnt work at all due to -fformat-extensions flag not being recognized anymore
-
» parv throws a ")" ...
-
gzar
i had no options in src.conf. i only added them later when it wouldnt compile without -Wno-error=redundant-decls
-
gzar
clang seems to tolerate a lot more errors
-
gzar
i narowed down the segfault to __vdso_gettimeofday()
-
gzar
seems like programs calling a time function are the ones to crash
-
RhodiumToad
well, that looks like it's not so much a time problem as the whole __vdso thing
-
RhodiumToad
where exactly is the fault? do you have a backtrace?
-
gzar
i have a core and backtrace and sessioin output
-
gzar
but its with color so its kinda messy
-
gzar
-
VimDiesel
Title: dpaste: bash_segfault_linux_compat_gcc.session.txt
-
RhodiumToad
can you disassemble what's at 0x7fffffffecf0 ?
-
RhodiumToad
you can disassemble a range of bytes if it doesn't correspond to a function
-
RhodiumToad
e.g. disass 0x7fffffffecf0,+512
-
gzar
hand on, i'll try
-
gzar
-
VimDiesel
Title: dpaste: bash core paste 2
-
RhodiumToad
and the output of info reg
-
gzar
-
VimDiesel
Title: dpaste: bash core paste 3
-
gzar
that should also be in the first mess i posted
-
gzar
rsi is 0x7fff0000000
-
RhodiumToad
hm
-
RhodiumToad
kernel was compiled with gcc, or just userland, or both?
-
gzar
just kernel
-
gzar
i could try getting debugging symbols into my linux chroot for bash or other programs
-
gzar
but im preparing a better session of the whole thing
-
RhodiumToad
so my guess is this is something to do with the kernel's construction of the shared vdso page
-
gzar
thats outside my knowledge, but i can provide the core file along with the binary with the symbols
-
RhodiumToad
what cpu is this, btw?
-
» RhodiumToad guesses AMD
-
gzar
this is intel
-
gzar
intel core2quad q6600
-
RhodiumToad
huh
-
gzar
this paste is significantly better, included disassemblies in both syntaxes and followed frames around:
dpaste.com/35M38XGL2
-
VimDiesel
Title: dpaste: bash_gcc_linux_segfault_session
-
gzar
still stupid color codes got in but oh well
-
gzar
most of it is color-free
-
RhodiumToad
do you have the same system compiled by clang running?
-
gzar
yeah, using my clang compiled kernel right now
-
gzar
the gdb output is from the chroot actually
-
gzar
well, gdb from inside the devuan chroot linux compat
-
RhodiumToad
what's the output of procstat -v $$
-
RhodiumToad
er, procstat -v $$ | tail -1 will do
-
gzar
1966 0x7ffffffff000 0x800000000000 r-x 1 1 66 0 ----- ph
-
gzar
inside the chroot? or host
-
gzar
this is from host
-
RhodiumToad
host
-
RhodiumToad
hmm.
-
RhodiumToad
the segfault is for linux binaries only?
-
gzar
yes, and only inside chroot i think
-
gzar
when i tried to run a linux-java-runtime it works fine
-
gzar
outside a chroot
-
RhodiumToad
hmm.
-
RhodiumToad
the chroot is /compat/devuan, do you also have the usual files in /compat/linux ?
-
gzar
yeah i mean, /bin/bash should be there
-
gzar
i dont have compat/linux core files though
-
gzar
and i dont have gdb installed in that chroot either
-
RhodiumToad
running gdb on the core, is a symbol kern_timekeep_base visible anywhere?
-
RhodiumToad
gzar: do you have the files for your gdb-compiled kernel around?
-
gzar
let me check
-
gzar
i have the core files if that is what you mean RhodiumToad
-
RhodiumToad
no
-
RhodiumToad
I mean the actual kernel and module binaries
-
gzar
but i cleared my build dir
-
RhodiumToad
oh
-
gzar
oh, yeah i think i have it
-
RhodiumToad
did you build again since then? in particular, do you have debug files in /usr/lib/debug/boot/kernel* corresponding to the gcc-built one?
-
gzar
i think i didnt build, i just used an older kernel i had
-
RhodiumToad
compare the file times for the gcc-built kernel+modules with the files in /usr/lib/debug/boot/kernel
-
RhodiumToad
what I want to see is the output from doing kgdb linux64.ko and disass elf64_linux_vdso_fixup
-
gzar
my kernel.old matches with the files in that debug dir
-
RhodiumToad
on the gcc-built version of linux64.ko
-
gzar
ah i see, but idk how to identify which kernel is built with clang and which not
-
RhodiumToad
matches /usr/lib/debug/boot/kernel or /usr/lib/debug/boot/kernel.old ?
-
gzar
readelf -a |grep -i gnu gives me no helpfull result
-
gzar
kernel.old
-
RhodiumToad
try strings /boot/kernel.old/kernel | grep -i gcc
-
RhodiumToad
(or grep -i clang)
-
gzar
gcc version 9.5.0
-
RhodiumToad
that's the version you used?
-
gzar
yes
-
RhodiumToad
ok. so see if you can do kgdb linux64.ko and disass elf64_linux_vdso_fixup
-
gzar
so i have both the kernel and the .ko debug files
-
RhodiumToad
on /boot/kernel.old/linux64.ko that is
-
RhodiumToad
basically this function is the one responsible for storing the value that's causing the segfault.
-
gzar
yeah i can do it
-
gzar
but its just a bunch of add instructions
-
RhodiumToad
hm
-
gzar
-
VimDiesel
Title: dpaste: 822ALW5L3
-
gzar
those are padding bytes
-
RhodiumToad
yeah
-
gzar
so what do i do next
-
RhodiumToad
did it say it was reading symbols from both /boot/kernel.old/... and /usr/lib/debug//boot/kernel.old/... ?
-
gzar
i did specifically do file /usr/lib/debug/boot/kernel
-
gzar
my debug/boot/kernel matches up with my kernel.old
-
gzar
because i just swapped the kernel dirs after my recent compile
-
gzar
warning: the debug information found in "/usr/lib/debug//boot/kernel.old/linux64.ko.debug" does not match "/boot/kernel.old/linux64.ko" (CRC mismatch).
-
RhodiumToad
right, you need to rename the dirs in /usr/lib/debug/boot to match the actual /boot
-
gzar
alright
-
gzar
alright, it found the right symbols
-
gzar
ok, i see the function
-
gzar
-
VimDiesel
Title: dpaste: B85FLVVH4
-
gzar
want me to print the source code as well? i assume that should be unchanged tho
-
RhodiumToad
no need
-
RhodiumToad
what exact fbsd version, though?
-
gzar
FreeBSD blackbsd 13.2-RELEASE FreeBSD 13.2-RELEASE GENERIC amd64
-
gzar
-
VimDiesel
Title: dpaste: /etc/src.conf
-
gzar
^-. that is the /etc/src.conf i compiled it with