Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
aritzh7527y@ClySuva oh does it? Just running it, it gives no information, unless you run it in the debugger. You could extract some info from the dump, but I would argue that an AIOOB exception gives much much more information by itself. On top of that, it is recoverable with a try catch, would love to do that with a segfault.
And all of this while I heavily prefer C++ to Java. -
ClySuva19117y@aritzh ah yes, in case of out of bounds array indeed. But if you are using C++, you should probably not use raw arrays, but some higher level types that can handle going out bounds, similarly, with exceptions.
If you are using arrays or manually allocated memory, you know you are in the wild west and prepared to draw you debugger once the things go bad. :D
But core dump contains whole memory, and you can go awfully deep to find the issue. Which sometimes you unfortunately have to do while developing low level programs. -
The core dump is more reflective of the actual error, but it's hard to learn how to read those
-
PHP:
Call to a member function get() on null on line 1
Call to a member function balls() on null on line 2
Call to a member function butts() on null on line 3
Call to a member function boobs() on null on line 4
Error: Allowed memory size of 12 bytes exhausted (tried to allocate 2 bytes)
Haskell:
The function 'balls' is applied to two arguments, but its type '[Butt] -> Butt -> Butt' has only two.
Couldn't match type 'b0' with '[Char]' 'b0' is untouchable inside the constraints (Functor ~ Functor) bound at a pattern with constructor F :: F Functor, in a case alternative in the pattern: F in a case alternative: F -> return "POOP" in the second argument of '($)', namely 'case F of { F -> return "POOP" }' -
henlo32766yAh the segmentation error. Most of my class of *cs* guys freak out after seeing it, and boi do they see it so frequently. It just warms my cold cold heart.
Related Rants
-
xjose97x19Just saw a variable in C named like this: long time_ago; //in a galaxy far away I laughed no stop.
-
Cyborg15A guy and a girl are in a Java seminar. Afterward, the guy approaches the girl and asks, "Hey gurrl, can I ge...
-
Unskipp24So this happened last night... Gf: my favorite bra is not fitting me anymore Me: get a new one ? Gf: but it ...
C++ 101
joke/meme
y u do dis cpp
java
c++
spongebob