klange changed the topic of #osdev to: Operating System Development || Don't ask to ask---just ask! || For 3+ LoC, use a pastebin (for example https://gist.github.com/) || Stats + Old logs: http://osdev-logs.qzx.com New Logs: https://libera.irclog.whitequark.org/osdev || Visit https://wiki.osdev.org and https://forum.osdev.org || Books: https://wiki.osdev.org/Books
vdamewood has joined #osdev
da5id has quit [Quit: WeeChat 4.7.0]
edr has quit [Quit: Leaving]
dude12312414 has quit [Remote host closed the connection]
dude12312414 has joined #osdev
Gooberpatrol66 has quit [Read error: Connection reset by peer]
averymt_ is now known as averymt
Shaddox404 has quit [Quit: Connection closed for inactivity]
GeDaMo has joined #osdev
Gooberpatrol66 has joined #osdev
averymt has quit [Quit: Quit]
Lucretia has joined #osdev
agent314 has joined #osdev
goliath has joined #osdev
sbalmos has quit [Ping timeout: 252 seconds]
sbalmos has joined #osdev
<sortie> today in osdev: my bison port has stopped working for unknown reasons, just messed a bit around with sysconf, pathconf, unistd.h, limits.h
<sortie> /bin/bison: m4 subprocess failed: Bad file descriptor
<GeDaMo> Does m4 work on its own?
agent314 has quit [Ping timeout: 245 seconds]
<sortie> It used to :)
<sortie> It appears that m4 is not even managing to get executed
<GeDaMo> Could it be a file permissions thing?
<sortie> I already listed the things that changed above :)
<sortie> I'm going to guess towards gnulib bullshit and some interpretation of sysconf limits or something that blows up in my face
<sortie> god it's happening inside an insanely complex if condition that's longer than a page in my editor
<sortie> yep.. it broke because I changed sysconf(_SC_OPEN_MAX) from 0x10000 to -1 (unlimited)
<sortie> https://cgit.git.savannah.gnu.org/cgit/gnulib.git/tree/lib/spawn_faction_adddup2.c#n40 ← dammit this is even a bug in the latest gnulib
<Ermine> TIL CONFIG_RELR
<sortie> god.. it's not just gnulib.. it's _so much_ that's broken with no file descriptor limits. SO MUCH software iterating from 3 to sysconf(_SC_OPEN_MAX) to e.g. close all file descriptors, since closefrom(2) didn't exist portably. Other stuff too. It might be feasible to fix but it sure it is a lot of work and who knows how upstream will react
<Ermine> RELR is not news though
KitsuWhooa has quit [Quit: Unable to handle kernel NULL pointer dereference at null]
KitsuWhooa has joined #osdev
<heat> > no file descriptor limits
<heat> found the problem
EmanueleDavalli has joined #osdev
<sortie> heat: I mean, I'm just trying to have sysconf and friends describe the current situation, without changing it yet
<sortie> The whole limits thing is a longer discussion, you saw the meta issue :)
<zid> I mean, shouldn't the limit be INT_MAX regardless
<zid> given int fd
<heat> -1 means "limit is indeterminate"
<ZetItUp> sqrt(-1);
<heat> which no one handles because there's a valid reason for fd limits that exist _everywhere_
<zid> I mean, looping 0 to 2 billion sounds bad too
<zid> so it's fucked all round
dennis95 has joined #osdev
jcea has joined #osdev
Left_Turn has joined #osdev
Turn_Left has joined #osdev
Left_Turn has quit [Ping timeout: 248 seconds]
goliath has quit [Quit: SIGSEGV]
xvmt has quit [Remote host closed the connection]
xvmt has joined #osdev
xvmt has quit [Read error: Connection reset by peer]
Left_Turn has joined #osdev
xvmt has joined #osdev
Turn_Left has quit [Ping timeout: 245 seconds]
Lucretia-backup has joined #osdev
Lucretia has quit [Ping timeout: 260 seconds]
Lucretia-backup is now known as Lucretia
goliath has joined #osdev
Turn_Left has joined #osdev
Left_Turn has quit [Ping timeout: 248 seconds]
nitrix_ is now known as nitrix
jcea has quit [Ping timeout: 276 seconds]
therealsdf has joined #osdev
<therealsdf> wsg
<therealsdf> i'm new to this lol how do y'all be making operating systems?
<zid> With a compiler, generally
<EmanueleDavalli> Sometimes an assembler too
* kof673 makes obscene kernel + userland finger gestures
<kof673> like that
<therealsdf> yea lol imma read up on the wiki fr
EmanueleDavalli has quit [Quit: Leaving]
EmanueleDavalli has joined #osdev
<kof673> https://wiki.osdev.org/Richard_Theseus that has other meanings, but ...one approach is just replace every piece until you have your own dictatorship set up
<bslsk05> ​wiki.osdev.org: Just a moment...
<kof673> generically, that doesn't require cloning per se, just gathering all the pieces
<kof673> so just need to write a manifesto to plan your coup /s
therealsdf has quit [Ping timeout: 252 seconds]
<heat> imma read up on the wiki frfr on god bro
<heat> chat i cant believe bro wrote a slab allocator 💀
<CompanionCube> huh?
<kof673> i think it was a wiki-directed comment "oh god"
<kof673> as in: "i'll just read the wiki" .... "oh, god"
goliath has quit [Quit: SIGSEGV]
sahilister has left #osdev [bye!]
fgarcia has joined #osdev
xenos1984 has quit [Read error: Connection reset by peer]
* Ermine wants to implement relr in onyx one day
<heat> i already have it
<Ermine> oh
<Ermine> late to the party
<heat> yeah
<heat> well the kernel doesn't have it, but musl and glibc do
<heat> but i don't relocate the kernel anyway
goliath has joined #osdev
xenos1984 has joined #osdev
bauen1 has quit [Ping timeout: 276 seconds]
GeDaMo has quit [Quit: 0wt 0f v0w3ls.]
goliath has quit [Quit: SIGSEGV]
Gooberpatrol66 has quit [Remote host closed the connection]
therealsdf has joined #osdev
Gooberpatrol66 has joined #osdev
therealsdf has quit [Ping timeout: 252 seconds]
therealsdf has joined #osdev
<therealsdf> hate how hp sets a password on my bios on my computer that my (dad) paid his money for
goliath has joined #osdev
therealsdf has quit [Remote host closed the connection]
<Ermine> the what
<heat> the linuxkernel
therealsdf has joined #osdev
dutch has quit [Ping timeout: 276 seconds]
therealsdf has quit [Ping timeout: 252 seconds]
<SarahMalik> they left
<heat> openrc really is unfun
<heat> sadly systemd is probably far off
EmanueleDavalli has quit [Quit: Leaving]
<geist> really? thought openrc would be fairly straightforward
<geist> or maybe building it up from scratch is unfun?
mrpops2ko has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
<heat> yeah i mean, it's just not fancy at all
<geist> does it make you feel bad for using something simple?
<heat> and the init scripts are just super unreadable (IMO)
<geist> not enough python or rust or C+=?
<heat> and that's the big problem
<geist> yah okay, that would check out
<heat> they try to do more shit than what my system needs, requires all sorts of UNIX tooling (particularly ifconfig, route)
<heat> all sorts of "IF UNAME IS LINUX DO THIS, ELSE THAT"
<SarahMalik> openrc is not fancy and it doesn't have to be
dennis95 has quit [Quit: Leaving]
<geist> ah i see, if it has autoconfig style compatibility that might be annoying as heck
<Ermine> do you look at gentoo scripts
<Ermine> because i don't remember seeing this shit in alpine scripts
<heat> i looked at whatever is shipping with upstream openrc
<Ermine> i believe openrc upstream stuff is tailored to gentoo
<Ermine> so alpine basically ships its own scripts
<heat> it's all delightfully quaint at the very least
<heat> manually add ttys and stuff
<Ermine> actually, are they trying to support bsds?
<heat> probably
<heat> hence the if uname = Linux stuff
<geist> yah maybe the gentoo stuff has had that all stripped out
<geist> heat: have you asked A1 for help?
<heat> who
<geist> hey A1, make me some openrc scripts for my os kthx plox
<geist> you need to add more A1 to your diet
<Ermine> geez
<geist> (the joke doesn't really work on non americans, but A1 is a well known steak sauce and one of the current govt administrators gave this long speech about how we need to add more A1 to our schools, instead of AI)
<geist> A1 the company went all in for a minute and posted adds on twitter and whatnot like 'yeah make sure your kids get more A1!'
<geist> the speech was hilarious and sad because she clearly had no fucking clue what she was talking about and hadn't even proof read the script
<geist> anyway i always locally name everything A1 and whatnot, just in case i can get the nomenclature to stick
<geist> it's my little piece of being a hard core rebel
<geist> actually writing a chrome extension that replaces 'AI' with 'A1 Steak Sauce' would be kinda fun
<geist> i used to run one that replaced 'Millenials' with 'snake people'
<geist> and all the usual variants of it
<geist> there, found an extension that does it
Turn_Left has quit [Read error: Connection reset by peer]
<kof673> this A1 fellow seems like a type of rubber duck
* kof673 goes to ask mrs. buttersworth, aunt jemima, uncle ben, and captain crunch for coding tips
<chiselfuse> https://gabi.xinuos.com/elf/07-pheader.html#:~:text=during%20dynamic%20linking.-,An%20executable,-or%20shared%20object
<bslsk05> ​gabi.xinuos.com: 7. Program Loading — ELF Object File Format 4.3 DRAFT documentation
<chiselfuse> Why does this this calculation include (twice) truncation to the nearest multiple of the maximum page size instead of immediately just getting the difference between the memory address and the p_vaddr? I read somewhere that the memory address and p_vaddr ought to always be congruent module the page size which would mean this truncation step doesn't affect the result.
Lucretia has quit [Remote host closed the connection]
* SarahMalik sips maple syrup
dude12312414 has quit [Remote host closed the connection]
dude12312414 has joined #osdev
goliath has quit [Quit: SIGSEGV]