-
yuripv
andyf: /opt/ooce/bin/gdb spews a lot of the following on every startup:
pastebin.com/EiXsZnib, how do i fix it? :)
-
jclulow
First you must understand gdb
-
jclulow
Which is usually what keeps me from making any progress with it :P
-
jbk
oh, i thought you were making some sort of zen like statement :P
-
yuripv
jclulow: well, it's *before* starting to understand it :D
-
sommerfeld
yuripv: most likely an install was copied without preserving relative timestamps between the .scm and the .go files.
-
sommerfeld
.go appears to be the bytecode-compiled version of the .scm file
-
yuripv
it's pkg://extra.omnios/ooce/developer/gdb⊙120:20230714T085149Z
-
sommerfeld
whoever packaged it should read about the "timestamp" attribute in pkg(7); what it advises about adding them to .py files should also apply to .scm files..
-
andyf
-
andyf
It looks like this is also done in the guile package, but it's possible that it wasn't rebuilt and published at the time. I'll push an updated package to the r151047/bloody repo for you to test.
-
andyf
I've published a new 'guile' package for r151047, which looks good to me, can you please test yuripv ?
-
andyf
file path=opt/ooce/guile/share/guile/2.0/ice-9/eval.scm timestamp=20230927T080707Z
-
andyf
file path=opt/ooce/lib/amd64/guile/2.0/ccache/ice-9/eval.go timestamp=20230927T080737Z
-
yuripv
andyf: looks good now, thanks!
-
yuripv
and it starts very fast now
-
yuripv
illumos.org/issues/15926 nice, we have headers from distant future
-
fenix
→
BUG 15926: uchar.h has a wrong conditional macro (New)
-
tsoome
-
yuripv
and i wonder why it's not VERIFY(), dereferencing possible null pointer below is imo worse
-
tsoome
I kind of figured, KM_NOSLEEP would need pointer check anyhow:D
-
jlevon
yuripv: worse in what way. it's pretty obvious what happened.
-
jlevon
tsoome: if we really can't allocate there we're not going to get much further :)
-
tsoome
obviously:)
-
yuripv
jlevon: well, why ASSERT() it at all then
-
jlevon
yuripv: I agree
-
tsoome
well, ASSERT/VERIFY should denote that we are aware of potential issue, but in that case it should be VERIFY IMO
-
tsoome
and then it would be good if we wont get notified by smatch:)
-
tsoome
-
yuripv
is that some new gcc version yelling at you?
-
tsoome
yuripv no, new smatch
-
sommerfeld
andyf: thanks for following up!
-
pilonsi
I've noticed that grep -R is extremely slow on illumos, at least for me in two different machines
-
pilonsi
Or it directly hangs
-
pilonsi
Do you know why that may be the case? I.e
-
pilonsi
/src/illumos-gate/usr/src/uts > time grep -R kbtrans_putcode
-
pilonsi
While that was doing its thing I waited a few minutes and then cloned the gate again to my mac, and when it finised i did the same
-
pilonsi
~/src/illumos-gate/usr/src/uts > grep -R kbtrans_putcode
-
pilonsi
And it finished almost instantly, while the illumos grep is still going
-
pilonsi
In fact I don't recall any grep -R having finished executing, i end up ctrl-cing them after a while
-
tsoome
as you did create the clone, the tree is most likely still in the cache.
-
tsoome
of course, our grep may still need some love;)
-
rmustacc
pilonsi: The issue is that you need to specify a file.
-
tsoome
or, fs code for that matter, because we are missing some updates the OpenZFS have done (I have some of those in my backlog, waiting for free time slot)
-
rmustacc
That is grep -R foo and no path doesn't do anything.
-
rmustacc
No, this is much simpler.
-
tsoome
or, you can try 'git grep ...'
-
rmustacc
I bet if you run pstack on it you'll see it's waiting for input.
-
rmustacc
That is, GNU grep (not sure about the various BSDs) will assume if you give it no arguments it should go recurse the current directory.
-
tsoome
and yes, no files means it is reading stdin:)
-
rmustacc
So you need to do 'grep -R kbtrans_putcode *'
-
rmustacc
So I'd use this as a learning exercise for a moment.
-
rmustacc
In another shell run pstack $(pgrep grep)
-
rmustacc
The first line of the stack trace is 'fee7ba37 read (0, 8323cc8, 2000)'
-
rmustacc
In this case we're reading from fd 0, which is stdin.
-
rmustacc
So it's not doing quite what you expected.
-
rmustacc
pilonsi: Does that make sense?
-
tsoome
I did start to check for performance related updates in OpenZFS because my 3+1 raidz is sometimes slow (but not always;)
-
pilonsi
rmustacc: thanks for the detailed explanation! Indeed it does make more sense that you need to specify a file first
-
pilonsi
pstack does show feeec095 read (0, 8068630, 2000)
-
yuripv
i got used to gnu/fbsd grep not requiring argument if -r is specified, so i sit there waiting for illumos grep to finish :D
-
tsoome
0 is stdin :)
-
tsoome
(or you can check with pfiles command)
-
pilonsi
pfiles shows the fds open by a process right?
-
tsoome
yes
-
pilonsi
Indeed if i do grep -R kbtrans_putcode . it works almost instant and if i switch terminals quick enough I can see with pfiles and pthread that it's opening other fds
-
pilonsi
Thanks!
-
patrikr
ripgrep is pretty fast and nice to use if you do recursive grep often, it's even in the omnios repositories
-
pilonsi
patrikr: I'll check it out, i do use recursive grep a lot
-
pilonsi
Is there any issue with the ipkg.sfbay domain? I was building the BE with the changes with > pfexec onu -t 15839-test
-
pilonsi
But it fails complaining that it cannot resolve the hostname for ipkg.sfbay
-
pilonsi
If I do a dig for it I just get an authority section with the domain for a root server, and looking through dns testing websites in case it was my dns, still fails
-
pilonsi
When updating catalogs: Unable to contact valid package repository:
ipkg.sfbay/on-nightly
-
pilonsi
Framework error: code: E_COULDNT_RESOLVE_HOST (6) reason: Could not resolve host: ipkg.sfbay
-
rmustacc
What pointed you to that domain?
-
rmustacc
If you're using onu you need to give it a path to the build image.
-
rmustacc
*built
-
jbk
that or a flux capacitor :)
-
pilonsi
-
rmustacc
Sorry, looks like that's missing a flag that points t your local worskapce.
-
pilonsi
And after building and setting up bldenv
-
pilonsi
Aaah!
-
rmustacc
You'll need to use a -d to point to the built packages directory.
-
pilonsi
I see, thank you!
-
jbk
(but we should probably change that default)
-
pilonsi
That's from the sun days right?
-
rmustacc
Mind noting a bug about that issue on
github.com/illumos/dev-guide about the wrong example?
-
pilonsi
Sure!
-
sommerfeld
pilonsi: yes. that was "ipkg.sfbay.sun.com" (an internal machine at Sun)
-
LxGHTNxNG
damn
-
pilonsi
:(
-
pilonsi
-
richlowe
We should adjust onu to be clever if it's in a workspace, maybe
-
richlowe
though I'm not sure if "in" means "bldenv" or "$PWD" in this case.
-
danmcd
You remind me... we need to just make `ws` a wrapper-or-alias around `bldenv`.
-
richlowe
really we need to delete it and ask the old folks to adjust
-
richlowe
not that I haven't failed at that twice already
-
richlowe
(hi sommerfeld!)
-
richlowe
it's easier now the default env file is location-agnostic, though.
-
richlowe
but there was some reason either sommerfeld or carlsonj convinced me that wasn't enough.
-
richlowe
but also that was many years ago, so who knows if anyone remembers why, or even if I remember right.
-
gitomat
[illumos-gate] 15885 fmtopo produces inconsistent output for unsigned arrays -- Andy Fiddaman <illumos⊙fn>
-
sommerfeld
richlowe: I've largely stopped using it in favor of bldenv
-
danmcd
My ONLY reason for using "ws" is that a repo w/o a .env file should be able to be used for building something. OTOH doesn't bldenv w/o an env file DTRT now?
-
danmcd
Nope, no it doesn't.
-
danmcd
I wanna be able to:
-
danmcd
- git clone
-
danmcd
- ws my-copy-of-gate
-
danmcd
- Get dropped in and started.
-
danmcd
It's great for single-module development.
-
danmcd
I suppose just copying an env file + bldenv is sufficient.
-
danmcd
I won't whine (publically) if ws goes bye-bye.
-
sommerfeld
I have a "local.env" I drop into the root that drops a half-dozen environment variables on top of usr/src/tools/env/illumos.sh
-
tsoome
-
tsoome
apparently its there from 2007.
-
jbk
o/~ it's a little bit funny, this spelling inside...
-
danmcd
Whoa!
-
sommerfeld
oops.
-
tsoome
this alone is good cause to make sure we do not have -Wno-unused-label :D
-
nomad
Bad accent day, 'dis is de alt'
-
richlowe
danmcd: the template 'illumos' env file should default everything properly, so you can 'bldenv illumos' or 'bldenv usr/src/tools/env/illumos' and get running
-
danmcd
Lemme try... because if THAT works, one could replace "ws" with a tiny shell script.
-
richlowe
I think jeffpc finally got that done years ago
-
sommerfeld
it's almost there. my local.env sets PKGVERS_BRANCH and a bunch of PERL_* variables - all needed to build packages I can install on top of openindiana
-
danmcd
Stock ws on my OmniOS build environment fails in similar ways to the bldenv of $TOOLS/env/illumos.sh (namely wrong path for gcc10).
-
danmcd
So hey, might be worth it to write ws-the-wrapper.
-
richlowe
I think Marcel fixed it so the Perl stuff defaults now
-
richlowe
the pkgvers stuff I set to <bignum>.<datestamp> in a way that seems to (now) beat everyone again
-
richlowe
that could easily go upstream in some variant
-
richlowe
`PKGVERS_BRANCH=999999.$(date +%Y.%-m.%-e.%-H); export PKGVERS_BRANCH`
-
richlowe
machines are fast enough now that really needs %-M on the end too
-
danmcd
I have a possibly really dumb question: Is there ANY reason in 2023 for (even older) machines to NOT enable full-64-bit PCIe addressing?
-
nomad
danmcd, I'm curious what reason there could be to not do it?
-
danmcd
It's a superstition at this point, but ISTR some BIOSes default to 32-bit.
-
danmcd
e.g. one of Kebecloud's CNs was 32-bit PCI, and I think it's a default (Haswell-E era machine).
-
jbk
and i'm guessing no way to tell other than 'it breaks'
-
nomad
so... you enable it in the OS but the host says nyet and crashes?
-
nomad
but it's fixable with a BIOS setting?
-
nomad
If 64bit is a major speed improvement and I have to do something (manually) to enable it in all my modern hosts then ... yeah, I'd prefer it be default at this point.
-
richlowe
danmcd: I don't know of any, but I suspect you'd find out quickly if there were one :)
-
jbk
(speaking of breaks, it appears intel's server platforms took a cue from a certain hades-adjent vendor and blocks correctable memory events to the OS :()
-
nomad
It makes sense to flip the "you have to do something to make this work" onto the older hardware.
-
» nomad once again offers the old SPARCstation LX he found in his garage to anyone who really wants to play with the old stuff.
-
jbk
there is an intel 'RAS' pci device though... i thought I saw something that it might handle some of this (maybe just needs a driver to allow the OS to see the DIMM correctable errors?)
-
alanc
tsoome: apparently when we were doing the work to remove -Wno-unused-label from our builds, we found 4 different misspellings of default to fix (defaul: deault: defult: delaut:)
-
yuripv
mmm delaut