« first day (1322 days earlier)      last day (3852 days later) » 

21:02
ITT room policy is defined by the quirks of a dead puppy
woof
one who isn't even an owner anymore
Something about vagina.
Well, I guess I can give it a shot then. I have a C++ class that I'm using across multiple static libraries. I've discovered that offsetof(MyClass, myDataMember) is varying from library to library, and causing EXC_BAD_ACCESS when I try to call virtual methods on myDataMember. As far as I can tell, there are no #pragma alignment things going on, so I'm wondering what else could be causing this.
Offsetof can be kinda finicky (undefined) with polymorphism, but MyClass is not inherited by any other classes, so I'm at a loss for what could be causing the apparent layout to change, causing the data members and vtable to be addressed incorrectly. Notably, I can manually compensate for this error by fixing the 4-byte offset error that's introduced through simple pointer arithmetic.
Also, some of the data members of MyClass, including their vtables work fine as if they are unaffected by whatever is causing the others not to work.
oh my god
user3010322
:|
user3010322
21:08
you're using offsetof with a class that has a vtable.
user3010322
You're fucked.
@ThePhD speaks from experience.
Why does your class have a vtable if no other class derives from it?
because OOP
Xeo
Xeo
lol
21:11
Anyway you get UB if the class does not have standard layout
@StackedCrooked Depends what's in the header :p
oh, it finished now
@ClickRick I was assuming the header did not contain a global variable that has a constructor which starts a detached thread that spins a loop :P
I'm not actually using offsetof for anything other than picking apart this weird behavior I'm observing.
assumptions, assumptions ... ;-)
21:17
Yeah... Not sure how else to approach it though. In one module, I can correctly interact with this object instance, and in another I can't, because it's reading/writing to the wrong addresses. Kinda stuck, TBH.
yeah, and it's caused by bad code
how queer
I unfortunately have a talent for finding compiler bugs. :(
you're calling an implementation-dependent feature a "compiler bug"?
I'm just calling a method. I'd hardly say I'm doing anything where I should be worried about implementation details.
"just". It's one of those danger words
21:21
Not really. "color.getterFunc();" just a plain jane function call.
Ok, I have finally reached a state of nirv... Doom Bar:)
so where does offsetof come into it?
I'm using offsetof to print messages to the console regarding the positions of data members, so I can see that it is infact in different offsets (and different addresses).
/Users/brent/Documents/git/brainlib/RenderNodeViews/TextureView.cpp (16): The address of the TextureView instance while in Root::Root(): 0x113f67f0
/Users/brent/Documents/git/brainlib/RenderNodeViews/TextureView.cpp (17): The address of the TextureView instance while in TextureView::Render(): 0x113f67f0
/Users/brent/Documents/git/brainlib/RenderNodeViews/TextureView.cpp (18): The address of the Animation::Animatable<Color> TextureView::color instance while in Root::Root(): 0x113f7be4
/Users/brent/Documents/git/brainlib/RenderNodeViews/TextureView.cpp (19): The address of the Animation::Anim
user3010322
What in the world...
user3010322
Put that in a pastebin
21:24
Since the address of this data member is inconsistent, I'm assuming that whatever is happening is fubaring the vtable address too, which is why I can't call a method through the vtable of "color"
er, no.
no no no
EVER using offset-of on a non-standard-layout class is UB.
ever, ever, ever.
you use offsetof compiler assumes it's standard layout and standard layout has no vptr.
OK... but I also took the plain address-of operator and did some arithmetic. This TextureView instance is in one location in memory, and when I &myTextureView.color in Root::Root() it's 0x113d7be4, and in TextureView::Render() &myTextureView.color is 0x113f7be0. How can that possibly be right?
user1804599
Are you ThePhD?
Considering that &myTextureView is consistent, and its data member is not.
user3010322
Because there's a vtable, dummy.
21:29
so data members are indirectly accessed through the vtable too?
user1804599
The V in vtable stands for my vag.
@Brent The results of which are utterly irrelevant in any code that ever had offsetof anywhere near it, ever.
I can remove the offsetof usage (its only for debugging). The problem remains.
well, let me ask you a question
what on earth do you want me to do about it?
user1804599
Just accept it you’re bad at C++.
21:32
I don't see any of your code.
I mean, clearly you've undefined your behaviours somewhere, but that's about it.
user1804599
Q/A ratio > 1 you’re instantly bad.
5
there's nothing more to be done or said.
@rightfold That's bullshit rightfold
Hmm... Well, here's the code. pastebin.com/usywjA4w
But I guess I'm on my own.
what
that is not your code.
Yeah it is.
21:34
if I put that in my compiler, all I will get is "What the fuck are these types and variables?"
it will not produce me a nice little executable.
it will bitch loudly, and repeatedly, and cry like a little girl.
for one thing, actual code needs a "main" function.
sizeist! :P
I guess I could put the whole project on github... hundreds of files... but I think my employer would have an issue with that. shrugs
then you need to reduce the problem until you have a suitably small reproducing example.
user3010322
//    Color _color = color.getterFunc(); //crashes with EXC_BAD_ACCESS
user3010322
Show me what color is
21:36
else there is nothing anybody here or on the main site can do to help you.
user3010322
show me how it's declared
user3010322
I have money it's the slicing problem.
if you post such a thing on the main site all you'll get is down and close votes because there's nowhere near enough code to repro.
@ThePhD His class doesn't derive from any others.
Well, here's the TextureView class: pastebin.com/QqQmwMex
user3010322
What
21:38
... I thought you said it didn't derive from anything?
user3010322
What function am I supposed to be in
The definition for Animation::Animatable: pastebin.com/QyT75kbW
user3010322
What function is that EXC_BAD_ACCESS for
user3010322
Which function is being called
and those - let me guess - #defined things?
NONARITHMETICAL_ANIMATABLE
21:39
It's in TextureView.cpp pastebin.com/qps0b5Bw
Those are defines, but they aren't macro magic. They just convert to stuff like Animation::Animatable<Color>
my guess is that the problem is somewhere deep in the bowels of REF_TYPEDEF(TextureView)
if it's different between different static libraries, then my money is on an ABI violation as a result of incompatible compiler settings.
Yet more, Root::Root pastebin.com/66bbyDSJ
user3010322
<_>
but like I said
user3010322
21:41
I couldn't help youwith this even fi I wanted to
REF_TYPEDEF is just a declaration for typedef std::shared_ptr<TextureView>
user3010322
You couldn't just
user3010322
type that out?
you need to reproduce the problem in a small, self-contained example that we can run on our own machines.
Alright... I'll see what I can do.
user3010322
21:41
I can't understand half of your code
Felt like this is related to writing c++.
3
there's nothing we can do without it.
user3010322
it's like
@ThePhD I've gotta hand it: you reduced that one to the essence pretty quick
user3010322
this big monstrous mess, what am I supposed to be able to figure out ;~;
21:42
@JohanLarsson Oh god. That's .... so unexpectable
Well, admittedly REF_TYPEDEF is more than that. It declares Ref, ConstRef, WeakRef, and ConstWeakRef, but they're all just typedefs
@sehe yeah, clearly a runtime issue
lol
@ClickRick assumption day was yesterday :/
in which time zone?
Xeo
Xeo
@Brent make that a class template to inherit from, and provide those typedefs there or something
21:44
@JohanLarsson lol
Doesn't work well for polymorphism. If a class has REF_TYPEDEF and inherits another class that has REF_TYPDEF, which one is it supposed to use?
Xeo
Xeo
hm, alas, good point
@DeadMG muhhhhh go format an answer :)
@DeadMG reminds me of this:
May 29 '12 at 23:26, by sehe
I'm just hinting that sloppy style leads to UB when in the land of bazooka wielding cute little girls (poetic license)
Am I bad for remembering random quotes almost precisely two years down the road?
I guess only because I'm so bad at trivia
21:49
@sehe do you watch Koningin Elizabeth wedstrijd?
ah, they all drop their bazookas and knickers when encountering me, the Lord of C++
@StackedCrooked No. is it on :)
Xeo
Xeo
@sehe Is that supposed to be read '(bazooka-wielding) little girls' or 'bazooka (wielding little girls)'? :P
It seems to have finished now.
So I guess it's my civic duty to stick around till I answer as many questions as I asked, huh?
+1
21:49
@sehe the firework dog is pretty close to that definition of ub?
@StackedCrooked Oh, it was singers this time around?
But it was only zang for some reason.
@Brent Absolutely not
@sehe yeah
all glory to the hypnotoad
21:50
@Xeo That's what we ended up making it
Xeo
Xeo
'A or B?' - 'That'
@StackedCrooked Mostly not my cup of tea (I love some, but I would likely not enjoy a whole concours of it)
Xeo
Xeo
great, thanks
@Xeo I know, right. You just fill in the blanks, spelling things our makes baby Jesus cry
21:52
I'm used to seeing Koreans do everything westerners do
@sehe north or south?
user1804599
South.
user1804599
You don’t see North Koreans.
They don't wear their forehead signs
user1804599
They’re hidden.
21:53
evening
user1804599
Hi Tonywonypony:3
user1804599
Kony.
What you doing?
@TonyTheLion surprise cockfags! it's totally not surprising at all that I am here
@sehe reminds me of the armbands in Schindler's List
user1804599
21:54
@TonyTheLion I am chatting with a bunch of people and looking for tentacle porn on Tumblr that I cannot find.
@DeadMG yea not really a surprise at all. I guess the Lounge is your life these days?
@DeadMG oh and what are you? a dogfag?
... the mark of the beast
There you go
If I fuck a horse it has to love me back
@rightfold mmm?
21:55
@rightfold oh tentacles porn :O
you need the right search terms
user1804599
@sehe vOv
@TonyTheLion Well, I'm looking for a new one. I am. Now that I'm better
don't leave us
@DeadMG Good. Well keep looking.
user1804599
21:56
@Griwes My Little Pony: Morocco.
user1804599
I am going to sleep.
@rightfold Cough. I loled today. I got this recruiter's mail. I must say they pretty much nailed it!
Except for a minor detail
user1804599
Have to perform labour tomorrow.
er, you might have to give us the gist of it
21:57
@DeadMG Nah. It's fun as it is. For those who can.
@sehe Python?
user1804599
@sehe Wat een schijtbedrijf.
I can give you the minor detail, though
@rightfold lol
sure.
21:58
@rightfold On the contrary. I fully believe it might be the Cat's dream-job, but...
user1804599
> Magento
@DeadMG it says hello, stackoverflow, something, byte, devops team, something something something
@sehe lol
I'm a programmer :/ I'm not thrilled when baby sitting production environments
user1804599
I’m a software developer. :)
21:59
I'm a human being. Lion.
I'm an expert.
user1804599
I’m a female.
user1804599
Maybe.
So, the biggest thing I learned today is that @rightfold is apparently into tentacle porn
2
user1804599
:3
22:00
@TonyTheLion Is that even a real thing?
Xeo
Xeo
@FredOverflow hahahahaha
user1804599
J'aime tentacules.
@FredOverflow yes NSFW
Xeo
Xeo
you never heard of Japan's most famous type of porn, eh
user1804599
> 1814
user1804599
22:01
Nice.
@rightfold you need a t-shirt with a I love Tentacles print.
you can probably order custom printed tshirts online
user1804599
I want a pink Scala T-shirt.
@TonyTheLion TIL tentacle porn ok because tentacles aren't indecent
user1804599
Most porn is OK.
Some porn is UK.
22:04
@doug65536 Learn something every day.
@StackedCrooked an expert jerk
hey what?
:D
I had to assume something there, where you left it open. I just filled in the most reliable guess
user1804599
22:05
@sehe s/Stackoverflow/Stack Overflow/ s/zijn/is/
user1804599
Wat een faalhaas, die Folkje.
user1804599
Komt niet bepaald professioneel over.
Meh. Wat een pedanticus die rechtervouw
user1804599
Recruiten mag wel met taalfouten, maar solliciteren ho maar!
I got an 11,000 ton rocket working well in KSP - 2 G's of lift at launch
22:07
@rightfold Pffft. Wrong application, bud
@doug65536 Probably won't get it to work after the next update.
they're bringing in budgets.
@DeadMG even in sandbox?
oh
dunno but I doubt it, I guess
ok cool. yeah having infinite money always felt overpowered
not in sandbox
that's the point of sandbox :P
22:09
exactly
user1804599
@sehe we had an application the other day that started with “Motivatuiebrief” followed by a non-capitalised sentence with the guy’s first name uncapitalised. :)
user1804599
I suspect he was a communist.
I suspect he just didn't want the job
user1804599
It was for an internship, actually.
user1804599
#MBO *hides*
22:12
@rightfold what's wrong with those people
are they simply retarded?
They can't be bothered to spell.
user1804599
I think they didn’t care, they just had to do it for school.
@StackedCrooked Within ten years I expect to see words like "ur" and "amirite" in resumes
@doug65536 will you hire them?
user1804599
His CV looked decent (as in spelling and markup), except the only hobby listed was playing video games, which doesn’t really have anything to do with software development.
22:14
@StackedCrooked only if their job involves looking down 60 degrees and pressing letters with their thumbs
@rightfold minecraft :)
@doug65536 what the... are you living under a rock? These already happen, of course. It's just, they get discarded even more quickly
user1804599
Although arguably he might be a good cleaner.
user1804599
So maybe we should’ve taken him anyway.
@doug65536 Ur sounds like the name of an ancient city.
Of course not. If the letter cannot even be tidy, then how do you think he tidies up a kitchen?
> "der Chaldeeën"
("Uit Oer is hij getogen")
22:15
lol, so it was a city
Yup
user1804599
@sehe true.
user1804599
The letter said he learned c# (sic) at school, though.
user1804599
So I just killed a fly that dared to enter my territory. That fucker.
user1804599
Buzzing you do in your own country.
user1804599
@sehe I indeed consider my own race to be superior over any fly race.
I realized this, and attributes this key insight to you
user1804599
@AlexM. would you grow tentacles for me, my love? <3
I feel like I want to read from my textwriter :)
Hi..
22:23
> wan't
@rightfold hmm
ask jeffrey :D
user1804599
@Jefffrey would Alex, my love, grow tentacles for me? <3
oh you
@sehe oh wtf, I probably do that often
What. Read from a textwriter?
user1804599
22:25
Kut. PowNews gemist.
yeah I is dumb/wrong. Want to check the last line written to it
@JohanLarsson you do so, before writing it :)
@rightfold Powned
user1804599
> psychiatrisch onderzoek
user1804599
So if someone has a cow poop fetish they need to see a psych?
22:27
@sehe will require ugliness, overriding all write methods is probably the cleanest way for what I do
user1804599
I predict that in 2030, cow poop fetish will not anymore be considered a mental illness.
I suspect it will be.
what's a good type of work sample to include on a resume?
@JohanLarsson C# again? write a wrapper stream.
user1804599
@Crow string.
22:29
@sehe always C#
@rightfold well, it's not. It's /just/ a weird fetish. This particular case got it's publicity because the guy apparently went on to threaten people. That's an offense
@Crow stuff that is relevant for the position you apply for
@Crow awesome work
user1804599
Should I include on my resume my fetishes?
user3010322
Only if you think it will titillate HR.
22:32
@rightfold yes
user1804599
Hmm.
user1804599
That’s gonna be a long resume then.
@rightfold yes
user1804599
Ik moet niet naar een psychiater gaan.
Want de psychiater mag niet gestoord worden.
@Crow links to online repos of your work seem like a good idea to me
22:34
@rightfold Is that a pun?
@rightfold therapy is only needed if you are suffering or cause suffering in other people
@rightfold How could you not? Unless you don't apply for a s/w dev gig
user1804599
@TonyTheLion Ja.
user1804599
@StackedCrooked I am suffering from all the idiots on this planet.
22:36
can't fix that. you'll need medication.
user1804599
Mass murder can fix it. :v
@rightfold that or a sufficiently large meteor
@StackedCrooked ugh
user1804599
Oh and I think I’m suffering from that thing I don’t dare to tell people about.
@rightfold Go for it. I fully support you.
user1804599
22:37
@doug65536 I think I’ll use Phobos.
@rightfold The tentacles in your penis? :P
user1804599
I don’t like the shape of Deimos. I think I will sling it into the Sun.
user1804599
It would be so fucking awesome if humans were able to do such a thing. :P
Oh, cool. I can not update to neither GCC 4.9, nor Clang, because otherwise some ROS header files will not compile.
user3010322
ROS?
22:47
"Robot Operational System", but it is really just a message passing system.
any ideas why I get weird compile problems like this sometimes with clang? works on my machine's clang, but I've had a similar problem on my machine before.
@TonyTheLion I have a summer car. It is extremely expensive
> Volkswagon
> Woerthersee car show in Germany
is daily mail written by 15 year olds?
23:19
Woerthersee is perfectly fine. Jump on the bandwagen!
from what I've seen, woerthersee is in austria, not germany
odd, adding #define __extern_always_inline extern __attribute__((always_inline)) fixes it
why not use alignas?
and... why are you reinventing std::complex?
I kinda always thought std::complex did this under the hood.
I'm not actually sure it does.
but it seems like a good opportunity to do so?
23:39
@AlexM. ahahaha
@Rapptz because I wrote a specialization that uses SSE for the double case
I wrote one for the float case too but it isn't any faster - it's #if'd out
I'm too pissed to bother now. I'll catch up with the martian moons thing tomorrow.
@AlexM. Essentially, yes.
@Rapptz old habits I guess :)
in JavaScript, 21 secs ago, by DemCodeLines
help help help help help help help
The guy is unbelievable.
Oh - 'stalker guy' is back.
23:48
I don't understand why some people think making a fool of themselves is actually decent trolling
@MartinJames lol
@Jefffrey inb4 he's a moron
@AlexM. because morons
in JavaScript, 25 secs ago, by Benjamin Gruenbaum
Tell me, Mr. DemCodeLines... what good is a phone call... if you're unable to speak
in JavaScript, 26 secs ago, by Benjamin Gruenbaum
!!mute DemCodeLines 1h
:LOL:
dat matrix reference
I'm watching The Lego Movie.
23:51
They told me it's sexy.
@Rapptz Everything is awesome! (Maybe expect ROS)
I tried lego harry potter
I guess I just can't find the joys of being a kid again
I'm watching the PHP movie 'For a Few Dollars More'.
Mario Kart 8 is incredibly fun.
@MartinJames he he
23:59
I should study some more languages
Why use bit operations? Why not consider a solution that leverages the cloud? — Patrick87 May 27 at 19:33
Awesome
and by that I mean languages used by people to communicate

« first day (1322 days earlier)      last day (3852 days later) »