You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Server segfaults when a non-defined request method is received. #48
If the server receives a request method that is non-standard, it segfaults.
Reproducing the Error
Start the server
Issue a request with at non-standard method: curl -X SEGFAULTPLS http://localhost:8080/
Backtrace
#0 0x00007ffff63c299a in pthread_rwlock_wrlock () from /usr/lib/libpthread.so.0
#1 0x00007ffff7bc3ab2 in httpserver::webserver::request_completed(void*, MHD_Connection*, void**, MHD_RequestTerminationCode) () from /usr/lib/libhttpserver.so.0
#2 0x00007ffff6ddadc6 in ?? () from /usr/lib/libmicrohttpd.so.10
#3 0x00007ffff6de03e9 in MHD_run_from_select () from /usr/lib/libmicrohttpd.so.10
#4 0x00007ffff6de0691 in ?? () from /usr/lib/libmicrohttpd.so.10
#5 0x00007ffff6de024b in MHD_run () from /usr/lib/libmicrohttpd.so.10
#6 0x00007ffff7bc65cb in httpserver::webserver::select(void*) () from /usr/lib/libhttpserver.so.0
#7 0x00007ffff63bf0a2 in start_thread () from /usr/lib/libpthread.so.0
#8 0x00007ffff70d1d1d in clone () from /usr/lib/libc.so.6
Activity
etr commentedon Apr 19, 2014
Thanks for the catch :).
Issue solved. Added a test to avoid regressions on this.
TASK-027 review: majors+minors cleanup pass
TASK-050: Tier 6 minor review cleanup (48 items)
TASK-051 Tier 3: address 2nd-pass review findings (fix/task-051-2nd-r…