The Official Status Thread
-
Status: Making a name for myself elsewhere...
-
@dkf said in The Official Status Thread:
@PleegWat Suggested fix: put a mutex in so only one thread can crash at a time.
Step 2) Dedicate a thread at start-up to immediate seg-fault
Step 3) No more crashes
Step 4) Profit
-
Status: I went to Reddit and instead of the website I've just got simple "Not Found". I expect to wake up from this dream in a few hours.
-
@Gąska Sounds like a nice dream. I'd enjoy it while it lasts.
-
@Gąska said in The Official Status Thread:
You may want to make it atomic. GCC loves to "optimize" exactly this kind of code.
+1
Use a proper mutex.
-
Status: I just saw a Polandball advertisement on YouTube.
There was a frenchball, a sleeping belgiumball, a naziball in a tank running over the maginot line. What there wasn’t, however, was any hint what the fuck this is advertisement for!?!
-
@topspin if I was a millionaire I'd also buy non-ads on YT to mess with people.
-
@Gąska 40 minute long advertisements for robots in the news? Where have I heard that before?
-
@topspin said in The Official Status Thread:
@Gąska 40 minute long advertisements for robots in the news? Where have I heard that before?
The site has ads?! I've never seen them
-
@Tsaukpaetra said in The Official Status Thread:
Status: Apparently CD-Extra disks cannot contain a UDF filesystem. Or, ImgBurn freaks out at loading UDF Isos for no apparent reason.
Operation complete.
Also, this duplicator has a printer function that can label discs so long as their surfaces are compatible with inkjet printing.
Nah, buying the cartridges is totally not worth it....
-
You just love to use the least reliable data media for storage, admit it.
-
@Zerosquare said in The Official Status Thread:
You just love to use the least reliable data media for storage, admit it.
It's not going to be used for long-term storage, these are supposed to be given to plebs who might put them in their car or computer I guess.
-
@topspin said in The Official Status Thread:
Status: I just saw a Polandball advertisement on YouTube.
There was a frenchball, a sleeping belgiumball, a naziball in a tank running over the maginot line. What there wasn’t, however, was any hint what the fuck this is advertisement for!?!Subliminal messages
-
@Tsaukpaetra said in The Official Status Thread:
It's not going to be used for long-term storage, these are supposed to be given to plebs
Knowing user habits, that's such a bad idea.
-
@dkf said in The Official Status Thread:
@Tsaukpaetra said in The Official Status Thread:
It's not going to be used for long-term storage, these are supposed to be given to plebs
Knowing user habits, that's such a bad idea.
Meh. What they end up doing with a ten-minute-long disc is no longer my concerned. The deliverables have been delivered to glowing praises and that's that.
-
Status: I've just adjusted webcam angle during a meeting in which I have disabled webcam. Wake up, brain!
-
So I actually looked at the code just now and look what I find:
if (gs_in_sig_hnd) { _exit(2); } gs_in_sig_hnd = 1;
Yup, that won't work if two threads are killed at the same time.
-
@PleegWat Now I need to find out whether we actually need that or it's just belt-and-suspenders thinking. I've always been under the impression that receiving SIGSEGV while in a SIGSEGV handler is fatal without any further assistance.
-
@PleegWat said in The Official Status Thread:
@PleegWat Now I need to find out whether we actually need that or it's just belt-and-suspenders thinking. I've always been under the impression that receiving SIGSEGV while in a SIGSEGV handler is fatal without any further assistance.
I trust you're talking about ?
-
status I had forgotten that Zed Shaw existed. He should show up more often.
-
Status: I got some vegan sausages. Might as well try once, right?
The taste was so terrible, it made me sad.
-
QooC-
-
@Zerosquare I'm sure that'd've tasted better.
-
Status: Inspired by some today's posts, I tried connecting a Bluetooth mouse to my Android phone. It works way better than I expected. In fact, it works flawlessly. Even scrolling works!
-
-
@topspin said in The Official Status Thread:
@Gąska said in The Official Status Thread:
Bluetooth
works flawlesslyHeretic!
Forgot to mention the half second delay.
-
@PleegWat said in The Official Status Thread:
Yup, that won't work if two threads are killed at the same time.
You might reduce the chance of there being trouble by making
gs_in_sig_hnd
into avolatile
. But you're probably going to have to pay the price of a proper lock. It can be a spin lock; you don't need the code to be efficient, just to not heap crashes on crashes.
-
@PleegWat said in The Official Status Thread:
Status: It appears my crash diagnostics system will not work if two threads are crashing at the same time.
This causes me several problems.
The Redundant Department of Redundant Redundancy suggests: follow the SIL-ly guide lines, and add another reduntant layer of redundant redundancy.
-
@Tsaukpaetra said in The Official Status Thread:
@topspin said in The Official Status Thread:
@Gąska said in The Official Status Thread:
Bluetooth
works flawlesslyHeretic!
Forgot to mention the half second delay.
I completed a full game of Picross and had zero mouse lag problems.
-
@dkf said in The Official Status Thread:
@PleegWat said in The Official Status Thread:
Yup, that won't work if two threads are killed at the same time.
You might reduce the chance of there being trouble by making
gs_in_sig_hnd
into avolatile
. But you're probably going to have to pay the price of a proper lock. It can be a spin lock; you don't need the code to be efficient, just to not heap crashes on crashes.It turned out the handler was also installed with
SA_RESETHAND|SA_NODEFER
. So I left that in place, threw outgs_in_sig_hnd
, and fixed my heartbeat monitor to not kill further threads when it's found an offender.This does still leave some cases where the detail handler doesn't run fully, but at least all paths end in a coredump (if enabled).
-
Status: Inherited a monitor so I've decided to add it to my desktop setup as a second display. I have a PC and a laptop dock, and I noticed 2 DP inputs on the monitor so I ordered 2 6ft DP cables. But when they arrived I realized one is actually an output for daisy chaining. So instead had to use one DP and one HDMI. In the meantime I've also found an unused DP cable I've already had, so both of the cables I ordered are useless to me. Thank God for Amazon Prime.
-
Status: Woke up about 04:00 and couldn't get back to sleep.
Status: No work today for Lounge , so no need to be awake at all, much less that early.
Status: Time to post Status updates I didn't get around to posting yesterday.
Status: I have USB hubs. Receivers for wireless mouse and trackball are plugged into USB hub within <0.5 m from devices, rather than on the other side of the room 2.4 GHz-absorbing ugly bag of mostly water between transmitters and receivers. Very flaky input devices now work perfectly — well, neglecting things like the mouse's tendency to go to sleep at inopportune times and the fact that the right button on the trackball takes so little force to actuate that you can click it just by staring at it hard, let alone having your finger resting in its normal position — but those are things working USB won't fix.
-
Reading a plurality of documents containing a plurailty of chapters related to a plurality of claims... Fuck patent legalese!
-
@HardwareGeek said in The Official Status Thread:
Woke up about 04:00 and couldn't get back to sleep.
That's happened to me two nights in the row. Both times I was dreaming I was an agent of the shadow and I was coming under attack. I'm 75%ish of the way though clean code because of it. Book I wish I read about 9ish years ago when I started my career.
STATUS Friday! Sleep deprived and not altogether happy with assigned work. Figuring out what libraries work with Java 7 and which don't is not fun.
-
The embodiments of the thoughts according to
the present confusion share the disadvantages of the respective
embodiments of the thought system according to the
present confusion.
-
Status: A symptom occurred in a way that only happens in a single specific condition which quite clearly does not apply.
Why does this happen to me at 16:00 on a Friday.
-
Status: Packing everything up for a convention this weekend.
Can't find my Square Reader or my A-Team shirt...
-
@Zenith said in The Official Status Thread:
Can't find (...) my A-Team shirt...
If you have a problem, if no one else can help, and if you can find it, maybe you can wear... the A-Team shirt.
-
@dkf said in The Official Status Thread:
You might reduce the chance of there being trouble by making
gs_in_sig_hnd
into avolatile
.Don't. Using
volatile
isn't sufficient on modern multi-core processor architectures. Use a proper mutex, and leavevolatile
to us weirdos who develop on dinky embedded devices with no file system.
-
@Zerosquare said in The Official Status Thread:
@dkf said in The Official Status Thread:
You might reduce the chance of there being trouble by making
gs_in_sig_hnd
into avolatile
.Don't. Using
volatile
isn't sufficient on modern multi-core processor architectures. Use a proper mutex, and leavevolatile
to us weirdos who develop on dinky embedded devices with no file system.Which of the async-signal-handler-safe functions whitelisted here looks to you like it offers mutex functionality?
-
@BernieTheBernie said in The Official Status Thread:
The embodiments of the thoughts according to
the present confusion share the disadvantages of the respective
embodiments of the thought system according to the
present confusion.The Word Salad thread is
-
@PleegWat said in The Official Status Thread:
Which of the async-signal-handler-safe functions whitelisted here looks to you like it offers mutex functionality?
Oh, lovely! None of the pthread API is listed, but that seems to be because that's a different spec. It looks like a mutex will do the job provided you don't allow the signal handler itself to be reentered from the same thread.
-
@dkf I specifically noticed it includes
sem_post
but notsem_wait
orsem_trywait
.
-
@PleegWat said in The Official Status Thread:
@Zerosquare said in The Official Status Thread:
@dkf said in The Official Status Thread:
You might reduce the chance of there being trouble by making
gs_in_sig_hnd
into avolatile
.Don't. Using
volatile
isn't sufficient on modern multi-core processor architectures. Use a proper mutex, and leavevolatile
to us weirdos who develop on dinky embedded devices with no file system.Which of the async-signal-handler-safe functions whitelisted here looks to you like it offers mutex functionality?
atomic_bool plus spin lock?
-
@PleegWat when I said "make it atomic", I literally meant to mark the variable as atomic (in whatever way is supported by your language of choice - just based on your code snippets it could be either C or C++) rather than using any OS-level synchronization primitive. As far as I can tell, C++11 specifically mandates that atomic variables are safe to use in signal handlers.
-
@Gąska said in The Official Status Thread:
when I said "make it atomic", I literally meant to
https://thumbs.gfycat.com/WideeyedMeanAfricanporcupine-max-1mb.gif
-
@Tsaukpaetra said in The Official Status Thread:
@Tsaukpaetra said in The Official Status Thread:
Luckily I was planning on going camping this weekend anyways, so I guess I have an extra day of preparation? Hoo... ray?
status: got a text that the company is filing for chapter 7 bankruptcy. Woo... Hooo.........
Got notified of the case number, so I did my best to file claim thingy.
I'm... the first claimant? How.... did they not... what?
I can't be the first person to put in a claim, right? The case has been open for like three weeks at this point...
-
Every claim is #1 because they forgot to use
AUTO_INCREMENT
for the database column
-
@Zenith Square Reader, you had one job - stay in the box with my other convention gear - and you fucked it up.
At least I found the shirt!
-
Status Blocked on picking up new work due to QA backlogs (having the main tester on vacation does that...). So reading Clean Architecture by Uncle Bob. Am I presumptuous to say that most of it is just vacuous restatements of basic principles, dressed up in a lot of smuggled assumptions and heavy over-complication/over-formalization? It's basically a recipe for
AbstractFactoryInterfaceBeanFactoryBuilder
classes everywhere, where everything's abstract and "flexible"...but only if you're doing the approved thing.Edit: And it falls prey to the common trap of hyper-simplified, opinionated examples. It all looks great when you've got these tiny little toy problems, but...yeah. Those don't actually help anyone understand anything more complex than those toy problems.