[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

>run program >segmentation fault >run program again

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 15
Thread images: 4

File: vfevt8uezd5z.jpg (48KB, 652x569px) Image search: [Google]
vfevt8uezd5z.jpg
48KB, 652x569px
>run program
>segmentation fault
>run program again
>runs with no errors

Explain this bullshit
>>
Utilized a non-problematic section of memory on the 2nd run
>>
your input changed
>>
>>62303677
How come?

>>62303714
Literally ran the program again.
>>
If your shit is multithreaded, you might have some race conditions
>>
>>62303632
you probably have a race condition on a variable you're using to index memory

sudo apt-get install valgrind
>>
>>62303632
One case could be the null terminator of a string. First time, there was no zero found outside the allocated space, but there was on the second time.
>>
File: nene can't code for shit.jpg (204KB, 496x1122px) Image search: [Google]
nene can't code for shit.jpg
204KB, 496x1122px
>>62303632
Is this you?
>>
>>62303775
>>62303820
>you might have some race conditions
>you probably have a race condition

wow... I didn't think that race was going to be brought into question here.
>>
>>62303848
I'm the only black programmer in my company, and now that you mentioned the other coders don't run in these kind of problems as often. I guess C++ is racist.
>>
>>62303848
nice dude
>>
>>62303632
uninitialized automatic variable
used for memory indexing
>>
shit out some mallocs into your code
>>
>>62303838
Why is she going to shit if she sees another keyboard though?
>>
>when your code directory is filled with core dumps
Thread posts: 15
Thread images: 4


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.