qinguoyi / TinyWebServer

:fire: Linux下C++轻量级WebServer服务器
Apache License 2.0
16.89k stars 3.96k forks source link

make后无法运行 报错 './server' terminated by signal SIGSEGV (Address boundary error) #238

Closed fhawk12 closed 1 year ago

fhawk12 commented 1 year ago

image image image

fhawk12 commented 1 year ago

how to fix it, please help me, thanks

hencejacki commented 1 year ago

It seems that there are some errors in memory access, based on the console error messages. The errors occur when attempting to access an invalid memory location, such as a null pointer or something similar.

You can try the following methods to identify the location of the errors:

  1. Use gdb to debug your program and obtain the error location.
  2. Utilize the command coredumpctl gdb processID to investigate where the errors are occurring. However, please note that you must first know the process ID of your program before using this command.
fhawk12 commented 1 year ago

It's useful, I find where I was wrong, my database field name is "password", but it should be "passwd". Thank you for your advice!