Nils
EINVAL Bad arguments (n or lineptr is NULL, or stream is not valid).
Aha!
Cengizhan
Size cannot be null..
Cengizhan
You are giving 0 as size instead of &size.
Nils
Ohhhh, I missed that size has to be a pointer
Cengizhan
Nils
Yep, that fixed it.
Nils
I told you.
I didn't quite understand, I'm sorry.
Nils
/workspace/simpc-httpd$ ./main.c
In file included from ./main.c:3:
./definitions.h:60: warning: assignment discards qualifiers from pointer target type
HTTP/1.0 /hdfjshfdb GET
/workspace/simpc-httpd$
Perfect, thx. No segfault, no assertion error! 👍
Anonymous
Im the c++ begginer
Anonymous
Any one can send lecture or preparation about object and class
Nils
Question, what does "core dumped" actually mean?
pavan
how to lesrn hashing c++??
Cengizhan
Nils
Nils
It's a result of a segmentation fault, that's what I know
Cengizhan
It is not related with C++, thats how process handled in OS in the background. So, search "core dump" on the internet.
Nils
Where is it stored?
Nils
Can't find it
Cengizhan
OF course, if you have compiled with debug symbols.
Nils
Is it hidden or something like that?
Nils
Command not found 🤔
Cengizhan
compile your program with -g flag, and run it with gdb.
Cengizhan
Afterwards, your program will be crashed and type "bt" to see which functions are called before your program crashed.
Cengizhan
See backtraces.
Nils
linux
Nils
Nils
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 63288
max locked memory (kbytes, -l) 65536
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 63288
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
Nils
aha, is it "core file size"?
Nils
Btw, how does my desktop detect a program having crashed?
Nils
Ahh yes, I see that core file now
Nils
I mean, when some programs has a segmentation fault, I get that desktop notification "oops, xxx has crashed. [keep closed] [restart]"
Nils
Nils
I did
Nils
There is
Nils
We are mixing up 2 topics right now, the desktop stuff I am talking about is unrelated
Nils
In both cases I was just wondering what it is/how it works
Nils
Yeah, oops
Nils
nvm then
Nils
So the crashing program sends that noticifation before crashing?
pavan
/get
pavan
@MissRose_bot
pavan
what r the available commands?
pavan
/get cbook
pavan
/get cppbookguide
Nils
So the kernel contains some module that sends the notification directly to KDE when a program crashes?
pavan
/get cppbookguide
Nils
Wow I didn't know that running a desktop even involves stuff in kernel.
Nils
ahhh, like dbus does?
Nils
thx for the explaination @lightness_races_in_orbit
Swaroop
/d
Alex
Can't find it
it depends on ulimits and other variables in linux. depending on your config creating core dumps can be forbidden at all
Võ Lê Huy
Võ Lê Huy
Võ Lê Huy
Can anyone share me library to make userbot?
Võ Lê Huy
Does anyone online to help me?
klimi
Võ Lê Huy
😩
/home/aleksandr/
Hey. after python, I obviously don't understand how this language works. Why can I access a nonexistent index in an array? where did the given value in this array come from?
Dima
klimi
😩
I don't have it anymore....
Võ Lê Huy
saddd
klimi
Dima
klimi
saddd
I used python and telethon... If you want to know that
Võ Lê Huy
/home/aleksandr/
no, I want to understand why index 88 is not giving errors?
Dima
أحمد
/home/aleksandr/
))
Dima
/home/aleksandr/
well thank you. the last question, where did the pluses get this great value under the index 88?
Anonymous
Anonymous