Open bstarynk opened 4 years ago
In commit f43a31ad6799fadef56b1 we even have a memory corruption error
In commit 73927cbdc167ff5e4e37ab we still have it. The gdb debugger says:
/home/basile/helpcovid/helpcovid[14857]: hcv_main.cc:699 - !! start of /home/basile/helpcovid/helpcovid
version:github.com/bstarynk/helpcovid built sam. 28 mars 2020 16:11:48 CET
... gitcommit 73927cbdc167 copied commit 171fc2e353d60989106117cc1 of https://github.com/yhirose/cpp-httplib
... md5sum 3d82063a53ac10d4299e2c6bf586c3b8 on piotr
at Sat Mar 28 16:12:01 2020 CET on piotr
/home/basile/helpcovid/helpcovid[14857]: hcv_main.cc:527 - !! loading configuration file /home/basile/.helpcovidrc
/home/basile/helpcovid/helpcovid[14857]: hcv_main.cc:533 - !! helpcovid loaded configuration file /home/basile/.helpcovidrc
/home/basile/helpcovid/helpcovid[14857]: hcv_web.cc:61 - !! hcv_initialize_web: weburl='http://localhost:8089/', webroot='/home/basile/helpcovid/webroot/', opensslcert='', opensslkey=''
/home/basile/helpcovid/helpcovid[14857]: hcv_web.cc:99 - !! starting plain HTTP server using weburl http://localhost:8089/ and webroot /home/basile/helpcovid/webroot/ hcv_webserver@0x55555572a400
/home/basile/helpcovid/helpcovid[14857]: hcv_main.cc:776 - !! helpcovid debugging enabled
/home/basile/helpcovid/helpcovid[14857]: ΔBG!hcv_main.cc:777:00.00 s helpcovid is debugging
/home/basile/helpcovid/helpcovid[14857]: hcv_main.cc:823 - !! helpcovid unable to write builtin pidfile /var/run/helpcovid.pid
-: Permission denied
/home/basile/helpcovid/helpcovid[14857]: hcv_database.cc:111 - !! using 'dbname=helpcovid_db user=helpcovid_usr password=passwd1234helpcovid hostaddr=127.0.0.1 port=5432' as PostGreSQL connection string.
/home/basile/helpcovid/helpcovid[14857]: hcv_database.cc:126 - !! hcv_initialize_database connstr=dbname=helpcovid_db user=helpcovid_usr password=passwd1234helpcovid hostaddr=127.0.0.1 port=5432
/home/basile/helpcovid/helpcovid[14857]: hcv_database.cc:130 - !! hcv_initialize_database for connstr=dbname=helpcovid_db user=helpcovid_usr password=passwd1234helpcovid hostaddr=127.0.0.1 port=5432 hcv_dbconn is 0x55555572e2d0
/home/basile/helpcovid/helpcovid[14857]: hcv_database.cc:138 - !! hcv_initialize_database got PostGreSQL version PostgreSQL 11.7 (Ubuntu 11.7-0ubuntu0.19.10.1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 9.2.1-9ubuntu2) 9.2.1 20191008, 64-bit(server version 11.7 (Ubuntu 11.7-0ubuntu0.19.10.1))
/home/basile/helpcovid/helpcovid[14857]: ΔBG!hcv_database.cc:220:00.01 s hcv_initialize_database before preparing statements in dbname=helpcovid_db user=helpcovid_usr password=passwd1234helpcovid hostaddr=127.0.0.1 port=5432
/home/basile/helpcovid/helpcovid[14857]: ΔBG!hcv_database.cc:248:00.01 s preparing find_user_by_email_pstm
/home/basile/helpcovid/helpcovid[14857]: ΔBG!hcv_database.cc:274:00.01 s Registering prepared SQL statement user_create_pstm
/home/basile/helpcovid/helpcovid[14857]: ΔBG!hcv_database.cc:274:00.01 s Registering prepared SQL statement user_get_password_by_email_pstm
/home/basile/helpcovid/helpcovid[14857]: hcv_database.cc:222 - !! PostGreSQL database dbname=helpcovid_db user=helpcovid_usr password=passwd1234helpcovid hostaddr=127.0.0.1 port=5432 successfully initialized
[New LWP 14859]
/home/basile/helpcovid/helpcovid[14857]: ΔBG!hcv_background.cc:186:00.01 s hcv_start_background_thread did start hcv_bgthread of id 140737326507776
/home/basile/helpcovid/helpcovid[14857]: hcv_background.cc:65 - !! hcv_background_thread_body starting thread hcovibg14857
/home/basile/helpcovid/helpcovid[14857]: hcv_web.cc:349 - !! Starting HelpCovid web server hcv_webserver@0x55555572a400 with hcv_weburl=http://localhost:8089/ and 3 threads and 16777216 maximal payload
/home/basile/helpcovid/helpcovid[14857]: hcv_web.cc:361 - !! weburl=http://localhost:8089/ listening on webhost=localhost webport=8089
[New LWP 14860]
[New LWP 14861]
[New LWP 14862]
/home/basile/helpcovid/helpcovid[14857]: ΔBG!hcv_web.cc:472:07.56 s root URL handling GET path '/'
free(): invalid size
Thread 3 "helpcovid" received signal SIGABRT, Aborted.
This issue is still present in our commit f3c24909269e261b472465, and can be reproduced by running ./helpcovid -D -T 2
then browsing http://localhost:8089/ - if that URL was configured by running our generate-config.py
script.
The usual way of interacting with a new site is to just open the root domain.
But in commit 76b3b2beaef1d5ab9a40eaeb42e the root URL http://localhost:8089/ shows an error.