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
oldgalileo has quit [Ping timeout: 256 seconds]
oldgalileo has joined #osdev
netbsduser has quit [Ping timeout: 260 seconds]
gorgonical has joined #osdev
rpnx has joined #osdev
rpnx has quit [Ping timeout: 240 seconds]
<Ermine> So, IA32e == Long mode?
<zid`> yep, one of the many many names
<xFCFFDFFFFEFFFAF> rep пук
gog has quit [Quit: byee]
navi has quit [Ping timeout: 264 seconds]
chibill has quit [Ping timeout: 268 seconds]
Arthuria has joined #osdev
Arthuria has quit [Ping timeout: 268 seconds]
xFCFFDFFFFEFFFAF has quit [Ping timeout: 252 seconds]
Arthuria has joined #osdev
Arthuria has quit [Ping timeout: 260 seconds]
edr has quit [Quit: Leaving]
PapaFrog has quit [Quit: ZNC 1.8.2+deb3.1 - https://znc.in]
xFCFFDFFFFEFFFAF has joined #osdev
foudfou has quit [Remote host closed the connection]
foudfou has joined #osdev
gorgonical has quit [Ping timeout: 260 seconds]
PapaFrog has joined #osdev
gorgonical has joined #osdev
<gorgonical> well well well. if it isn't my old friend, flaky wifi
<gorgonical> does anyone here use pijul for source control? somehow it caught my eye and I'm trying to discern if it's a way out of the git madness
chibill has joined #osdev
agent314 has joined #osdev
<geist> hmm, doesn't ring a bell
agent314 has quit [Ping timeout: 268 seconds]
<gorgonical> The selling point is that the internals are implemented as a series of diffs/patches on top of a mathematical framework, guaranteeing order independence and other attractive properties, in theory
<gorgonical> Instead of git's internal snapshot mechanism
<gorgonical> One of the main claims is that it will avoid the behavior observed in 3 way merges where order of merging can affect how the final repo looks. They say such a thing is not possible. But I don't know if this is true, how useful it is, tec
<zid`> sounds like git but complicated in a different way
<gorgonical> perhaps. But I feel like every time I use git for anything other than add; commit; push I have to consult manpages to figure out what the hell it does. Maybe I am just dumb
<zid`> That's 99% of what you need to do anyway, it should be somewhat rare you need to do something more complicated, and double checking with the manual seems fine?
<zid`> Like "I want to re-root this repo off a different commit" is not a typical oepration, needing to google it or whatever seems fine to me?
<gorgonical> But all the hard/difficult stuff in git is when you rebase/merge anyway, so wouldn't it make more sense to switch to a system that makes that as error-proof as possible?
<gorgonical> It's a good question anyway: what is it that git makes as easy as possible?
<gorgonical> concurrent edits? distributed repos?
<zid`> I just rebase -i
<zid`> everything
<zid`> done
<gorgonical> rebase -i is the only way to make sense of the rebase process
<zid`> it also does like, impossible ass things in other cmseses
<zid`> so the fact you can rebase at all is rad
<gorgonical> Yeah but that sounds like what pijul is saying it's even better at
<zid`> I don't need something to be better at something sneaky I probably shoudn't be doing anyway, especially considering it already does it so well, shrug
<gorgonical> How do you reckon it should be done differently? My regular workflow is to do a bunch of commits, saving work in coarse-grained chunks with commit messages like "got x, y, and z working" by fixing a bunch of tangentially-related things.
<gorgonical> Then, after the dust has settled, rebase -i allows me to turn that big mess into actual "good" commits
<zid`> Why would I want it done differently
<zid`> I said it's already too powerful
<gorgonical> Ooh
<zid`> we need to stop it before it escapes and starts to overtake the universe
<gorgonical> I still don't get the "I shouldn't be doing anyway"
<zid`> In theory, a CMS shouldn't be allowing me to futz with history etc
xFCFFDFFFFEFFFAF has quit [Remote host closed the connection]
<zid`> I should have just done it right the first time
<gorgonical> but why not? if you want to snip out a fully-independent commit, what difference does it make?
<zid`> but thankfully, we're allowed that power, as long as we promise
<zid`> not to abuse it
<zid`> you can do *terrible* things with rebase, if you wish
<zid`> But as long as you don't go farther back than the head you intend to push onto, it's gg
srjek has quit [Ping timeout: 240 seconds]
MrCryo has joined #osdev
xFCFFDFFFFEFFFAF has joined #osdev
MrCryo has quit [Remote host closed the connection]
<vdamewood> Hi, people etc.
xFCFFDFFFFEFFFAF has quit [Killed (Sario (<No reason given>))]
<Ermine> hi vdamewood
<Ermine> gorgonical: imo version control is not the hill worth dying on
<Ermine> Though I heard CVS is very simple
bradd has quit [Ping timeout: 256 seconds]
oldgalileo has quit [Ping timeout: 256 seconds]
<kof673> just to answer the q: > You may want to have upwards of 10 or 15 gigabytes available to build the compiler. [rust] if i get there, i will find some old c89 thing lol
<kof673> i just use tarball backups for now lol
* kof673 stares at w2c2 examples/ 26047179 clang.wasm 2677621 rust-wasi.wasm 20175212 python.wasm
<kof673> so that is perhaps not needed but, ..... not in any hurry to pull in dependencies, build or otherwise
bradd has joined #osdev
<Ermine> Btw there was hardware lock elision in x86...
<Mondenkind> still is
xenos1984 has quit [Read error: Connection reset by peer]
<Ermine> no, at least in intel
<Mondenkind> back in spr
xenos1984 has joined #osdev
goliath has joined #osdev
zxrom has quit [Quit: Leaving]
agent314 has joined #osdev
ZombieChicken has joined #osdev
ZombieChicken has quit [Client Quit]
node1 has joined #osdev
ZombieChicken has joined #osdev
gbowne1 has quit [Quit: Leaving]
bradd has quit [Quit: No Ping reply in 180 seconds.]
bradd has joined #osdev
node1 has quit [Quit: Client closed]
vdamewood has quit [Quit: Life beckons]
zetef has joined #osdev
chiselfuse has quit [Remote host closed the connection]
chiselfuse has joined #osdev
zetef has quit [Ping timeout: 260 seconds]
Goodbye_Vincent2 has joined #osdev
Ermine_ has joined #osdev
tommybomb_ has joined #osdev
remexre_ has joined #osdev
staceee_ has joined #osdev
gjn_ has joined #osdev
randm_ has joined #osdev
hl_ has joined #osdev
Bonstra_ has joined #osdev
rwb has joined #osdev
kanzure_ has joined #osdev
gjn has quit [Ping timeout: 268 seconds]
tommybomb has quit [Ping timeout: 268 seconds]
Ermine has quit [Ping timeout: 268 seconds]
graphitemaster has quit [Ping timeout: 268 seconds]
rb has quit [Quit: ZNC - https://znc.in]
erai has quit [Remote host closed the connection]
staceee has quit [Read error: Connection reset by peer]
Goodbye_Vincent has quit [Read error: Connection reset by peer]
Bonstra has quit [Read error: Connection reset by peer]
hl has quit [Read error: Connection reset by peer]
Bitweasil has quit [Read error: Connection reset by peer]
remexre has quit [Ping timeout: 268 seconds]
kanzure has quit [Ping timeout: 268 seconds]
tommybomb_ is now known as tommybomb
Goodbye_Vincent2 is now known as Goodbye_Vincent
gjn_ is now known as gjn
Ermine_ is now known as Ermine
staceee_ is now known as staceee
Bitweasil- has joined #osdev
randm has quit [Ping timeout: 268 seconds]
erai has joined #osdev
V has quit [Ping timeout: 268 seconds]
rwb is now known as rb
randm_ is now known as randm
remexre_ is now known as remexre
graphitemaster has joined #osdev
V has joined #osdev
dalme has joined #osdev
GeDaMo has joined #osdev
ZombieChicken has quit [Quit: WeeChat 4.2.1]
gog has joined #osdev
osdev199 has joined #osdev
<osdev199> Hello, I'm getting the invalid opcode (vector nr. 6) exception on executing the bash shell (a compiled 64-bit linux elf binary for x86-64 arch) in my os on my real machine. The `rip` is outside the loaded segments of the bash shell. How to debug this? Thanks.
netbsduser has joined #osdev
<GeDaMo> osdev199: did you compile this program yourself? At what point do you get the error?
<osdev199> GeDaMo: yes. I don't know. This is my question itself :p
<GeDaMo> You don't know if you compiled the program?
<osdev199> yes, I compiled bash by myself.
<GeDaMo> Does the error happen when you launch the program? Or does it run for a time?
<osdev199> I was getting an exception earlier indicating the stack segment fault. In the disassembly, I found that this occured after running few instructions. I then fixed it and this occured. So yes, it does run for a time.
<GeDaMo> Have you tried running under qemu?
<osdev199> yes. The exception msg is not getting printed but on debugging using gdb, I get the rip and the backtraces having very large addresses.
npc has joined #osdev
<GeDaMo> Is this the only program that behaves this way on your OS?
<osdev199> This is my first userspace program that I'm trying to execute with minimum possible kernel code. And yes, for more info, I'm executing it in kernel mode.
<osdev199> This is my qemu debug output: https://pastebin.com/yAXDWvh5. The `rip` on my real machine is 0x67a10008.
<bslsk05> ​pastebin.com: (gdb) info regrip 0x2f0825ad34 0x2f0825ad34(gdb) bt#0 0 - Pastebin.com
<GeDaMo> "Computer Engineering: A DEC View of Hardware Systems Design" http://bitsavers.org/pdf/dec/_Books/Bell-ComputerEngineering.pdf
<GeDaMo> osdev199: I'd be inclined to try a much simpler program, maybe a Hello, World just to see if it runs to completion
<osdev199> Ok. I will try it now.
<osdev199> Thank you.
osdev199 has quit [Remote host closed the connection]
agent314 has quit [Ping timeout: 268 seconds]
agent314 has joined #osdev
osdev199 has joined #osdev
<osdev199> GeDaMo: I tried your suggestion and I'm getting the same exception with the same `rip` (0x67a10008) on my real machine!
tomaw has quit [Read error: Connection reset by peer]
oldgalileo has joined #osdev
<GeDaMo> osdev199: Maybe try stepping through the loading process to see how it gets there
tomaw_ has joined #osdev
<osdev199> Ok.
tomaw_ is now known as tomaw
xenos1984 has quit [Read error: Connection reset by peer]
j00ru has quit [Ping timeout: 256 seconds]
<osdev199> GeDaMo: strange! before `stepi`, if I do `x/10i $rip` to display the code at the PC position, I'm getting the first 10 instructions as same `add %al,(%rax)`.
<GeDaMo> Zeroes
xenos1984 has joined #osdev
srjek has joined #osdev
osdev199 has quit [Remote host closed the connection]
osdev199 has joined #osdev
<osdev199> GeDaMo: It is going into an infinite loop with the instruction `loop 0xfffff922`. Don't know how it got there and why it is happening here! https://pastebin.com/gwLPhur6
<bslsk05> ​pastebin.com: (gdb) target remote localhost:1234Remote debugging using localhost:12340x000 - Pastebin.com
srjek has quit [Ping timeout: 260 seconds]
<GeDaMo> I'm not sure why there's a rex prefix on that loop
<GeDaMo> Is that code in your kernel?
<osdev199> There is no rex prefix. It's `0xfffff922:mov %eax,0x7ffffc(,%rcx,4)` and `0xfffff929:loop 0xfffff922` at the end of the paste.
<GeDaMo> Line 41 "0xfffffba0:rex loop 0xfffffb9d"
<osdev199> there is no `loop` mnemonic in my kernel's disassembly.
<osdev199> Yes. But the code of which I'm talking about is at line #62.
<GeDaMo> Is it in the program you're trying to run? Is it possible this is just garbage data?
<osdev199> Oh yes. Forgot about my program!
netbsduser has quit [Ping timeout: 252 seconds]
<osdev199> No. ditto. there is no `loop` mnemonic.
bauen1 has quit [Ping timeout: 264 seconds]
dalme has quit [Ping timeout: 260 seconds]
<GeDaMo> So the "code" that's being run may not be your program or your kernel
<osdev199> Yes. But instead of stepping if I do `continue`, then I get the output in the qemu window except the interrupt handler's message and the `rip` is 0x2f08231e5a. on finding the code at `rip`, it says "Cannot access memory at address <rip addr>".
<osdev199> But in the previous stepping, the rip was different.
<osdev199> GeDaMo: Maybe you want the code and the binaries?
j00ru has joined #osdev
edr has joined #osdev
navi has joined #osdev
gsekulski has joined #osdev
osdev199 has quit [Remote host closed the connection]
osdev199 has joined #osdev
osdev199 has quit [Remote host closed the connection]
gsekulski has quit [Ping timeout: 268 seconds]
m257 has joined #osdev
bauen1 has joined #osdev
k_hachig has joined #osdev
gsekulski has joined #osdev
npc has quit [Ping timeout: 272 seconds]
srjek has joined #osdev
Arthuria has joined #osdev
Arthuria has quit [Killed (NickServ (GHOST command used by Guest684531))]
Arthuria has joined #osdev
theruran has quit [Quit: Connection closed for inactivity]
frumon has joined #osdev
zetef has joined #osdev
theyneversleep has joined #osdev
Left_Turn has joined #osdev
gsekulski has quit [Quit: Leaving.]
zetef has quit [Remote host closed the connection]
osdev199 has joined #osdev
theyneversleep has quit [Remote host closed the connection]
m257 has quit [Quit: Client closed]
m257 has joined #osdev
Arthuria has quit [Ping timeout: 256 seconds]
agent314 has quit [Ping timeout: 255 seconds]
dalme has joined #osdev
osdev199 has quit [Remote host closed the connection]
Nixkernal_ has joined #osdev
Nixkernal has quit [Read error: Connection reset by peer]
bauen1 has quit [Ping timeout: 240 seconds]
voidah has quit [Ping timeout: 252 seconds]
bauen1 has joined #osdev
node1 has joined #osdev
zetef has joined #osdev
Halofreak1990 has joined #osdev
zetef has quit [Remote host closed the connection]
node1 has quit [Quit: Client closed]
node1 has joined #osdev
node1 has quit [Quit: Client closed]
node1 has joined #osdev
srjek has quit [Ping timeout: 240 seconds]
spareproject has joined #osdev
m257 has quit [Ping timeout: 250 seconds]
gog has quit [Quit: Konversation terminated!]
oldgalileo has quit [Ping timeout: 268 seconds]
skipwich_ is now known as skipwich
k_hachig has quit [Ping timeout: 268 seconds]
netbsduser has joined #osdev
bauen1 has quit [Ping timeout: 260 seconds]
Bitweasil- is now known as Bitweasil
foudfou has quit [Remote host closed the connection]
gog has joined #osdev
foudfou has joined #osdev
* Ermine gives gog a piece of cheese
Left_Turn has quit [Ping timeout: 240 seconds]
<mcrod> gog: may I pet you
dalme has quit [Read error: Connection reset by peer]
dalme has joined #osdev
k_hachig has joined #osdev
k_hachig has quit [Ping timeout: 268 seconds]
Starfoxxes has quit [Quit: Leaving]
spareproject has quit [Remote host closed the connection]
zxrom has joined #osdev
eschaton has quit [Ping timeout: 256 seconds]
bauen1 has joined #osdev
oldgalileo has joined #osdev
teardown has quit [Ping timeout: 260 seconds]
k_hachig has joined #osdev
oldgalileo has quit [Ping timeout: 268 seconds]
teardown_ has joined #osdev
node1 has quit [Quit: Client closed]
node1 has joined #osdev
<gog> hi
* gog fascinate
<gog> hi mcrod you may pet me
<nikolar> Hello gov
<nikolar> (not what I meant but still works lol)
<gorgonical> Someone tell me why using motif is a bad idea
<nikolar> it's not
<nikolar> use it
<nikolar> enjoy it
<gorgonical> Or said another way: what is the simplest, easiest gui toolkit I can use
<nikolar> uh
<nikolar> nuklear?
<gorgonical> Looks nice
<zid`> winapi
<nikolar> it's immediate mode if that's important to you
<nikolar> winapi bad
<gorgonical> I basically just want something I can use for informal, private gui applications and shit. I found a lua binding to motif that seems very nice
<zid`> winapi good
<nikolar> winapi is windows => winapi bad
<zid`> winapi good -> despite windows
<zid`> it's all the non-winapi bits that suck
<zid`> like the kernel and mfc and com and stuff
<nikolar> well i can't use winapi on linux can i (wine doesn't count)
<zid`> just because you're too lazy to draw your own widgets
<zid`> doesn't mean everybody is
<nikolar> do it
<nikolar> and then you can say that
<zid`> I didn't say I wasn't also too lazy
<nikolar> well then
<nikolar> winapi bad
<zid`> have you actually used winapi btw
<nikolar> nope
<zid`> It's actually.. really good
<zid`> It's consistent wall the way through and basically covers.. everything a desktop does
<zid`> rather than being split across 40 libraries with different styles
<zid`> as compared to say, linux
<zid`> s/wall/all
<nikolar> i am not opposed to the idea os using winapi itself but sadly it has one massive dependency
<nikolar> called windows
<zid`> just gut wine
<zid`> smh
<nikolar> also windows is hardly a coherent visual experience
<nikolar> zid`: doesn't count
<zid`> mmc theme forever
<nikolar> lol
<zid`> I miss being able to disable aero and having usable widgets
<nikolar> lol
oldgalileo has joined #osdev
<bslsk05> ​www.merriam-webster.com <no title>
<zid`> why is
<zid`> WM hosting quordle
<GeDaMo> Ah, you've seen this one before? It's new to me :P
<zid`> there's duovigintordle and stuff
<zid`> 3, 5, 6, 7
<nikolar> duoviginti?
<nikolar> duodeviginti is 18
GeDaMo has quit [Quit: 0wt 0f v0w3ls.]
<zid`> nikolapdp when terry
node1 has quit [Quit: Client closed]
<Ermine> I miss all settings stuff being in one place
PublicWiFi has quit [Ping timeout: 264 seconds]
<netbsduser> zid`: i thought it was the opposite
<zid`> that quordle hosts the dictionary?
<netbsduser> never in my live have i heard someone praise win32 but denounce the kernel
* Ermine NtQueriesTimerResolution
<zid`> disgusting kernel api function
<zid`> cringe
<Ermine> but paired with NtQuerySetTimerResolution it fixes sound in win2000 and winXP in vmware
<Ermine> Anyway, how do I get widgets with win32 api. Do i need comctrl ?
<zid`> CreateWindow
<zid`> "EDIT" for a text box, "BUTTON" for a button, etc as first param
<zid`> afaik
<Ermine> Ex for starters
<zid`> memory rusty
<zid`> Ex is nicer but not needed for widgets
<zid`> very useful for making actual windows
<zid`> because the extended styles are normal
Left_Turn has joined #osdev
srjek has joined #osdev
k_hachig has quit [Quit: WeeChat 4.2.2]
foudfou has quit [Remote host closed the connection]
foudfou has joined #osdev
leon has quit [Ping timeout: 256 seconds]
chiselfuse has quit [Ping timeout: 260 seconds]
chiselfuse has joined #osdev
* mcrod pets gog
<mcrod> i'm very late gog
<zid`> maybe you're gregnat
Left_Turn has quit [Read error: Connection reset by peer]
dalme has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
goliath has quit [Quit: SIGSEGV]
<gog> i'm pregonte
<zid`> It's mine, I offer 2 snickers bars and a popstation 2 in child support
Gooberpatrol66 has quit [Quit: Konversation terminated!]
Halofreak1990 has quit [Quit: Konversation terminated!]
<Griwes> pregognte?
xenos1984 has quit [Read error: Connection reset by peer]
voidah has joined #osdev
xenos1984 has joined #osdev
<mcrod> pregonte
netbsduser has quit [Ping timeout: 256 seconds]
teardown_ is now known as teardown
Nixkernal_ has quit [Ping timeout: 268 seconds]
<gog> zid`: you are not the father