kristapsdz / kcgi

minimal CGI and FastCGI library for C/C++
https://kristaps.bsd.lv/kcgi
ISC License
275 stars 40 forks source link

Segmentation fault. #81

Closed echkourine25 closed 4 years ago

echkourine25 commented 4 years ago

Have a look here : stackoverflow

Thank you.

kristapsdz commented 4 years ago

Buddy this isn't an appropriate place for C questions, so I'm closing the issue. If you find something specifically in kcgi, then by all means ask.

However, when you post these questions whether here or on SO, you're not going to get valuable feedback unless you also provide a backtrace, versions of software (and how you acquired them), how you compiled, etc. As for your code, I've found at least one problem in simply looking it over. (Namely that you're passing to your callback a pointer to a pointer &req, but reading it back as a pointer alone.) So I suggest spending some time with printfs and a debugger.