Recent

Author Topic: [CLOSED] CGI brookfreepascal+lighttpd EAccessViolation  (Read 1076 times)

kqha

  • New Member
  • *
  • Posts: 23
[CLOSED] CGI brookfreepascal+lighttpd EAccessViolation
« on: May 18, 2020, 06:38:43 am »
I just created a simple CGI hello world using brookfreepascal from brookfreepascal example (https://github.com/risoflora/brookfreepascal) and run the resulted .bf file on lighttpd. The test in browser run just fine but in lighttpd console there are some EAccessViolation:

Code: Pascal  [Select][+][-]
  1. An unhandled exception occurred at $0000000100037B00:
  2. EAccessViolation: Access violation
  3.   $0000000100037B00
  4.   $0000000100008640
  5.   $0000000100037E8E
  6.   $0000000100008640
  7.   $000000010002E899 line 99 of ../brokers/brookfclcgibroker.pas
  8.   $000000010000917C
  9.   $000000010000845B
  10.   $0000000100012318
  11.   $0000000100009FAA
  12.   $000000010000A282
  13.   $000000010000A31A
  14.   $00000001000016C8 line 13 of brookhello.lpr
  15.   $00000001000016D6 line 13 of brookhello.lpr
  16.   $000000010000F773
  17.   $0000000100010271
  18.   $00007FFFA91E7BD4
  19.   $00007FFFA9C0CE51
  20.  

line 13 on brookhello.lpr is just a simple "end."

lighttpd.conf I modified:
Code: Pascal  [Select][+][-]
  1. ...
  2. server.modules              = (
  3.        ...
  4.        "mod_cgi",
  5.        ...
  6. )
  7. ...
  8. cgi.assign = (".bf" => "")
  9. ...
  10.  

Did I miss something somewhere?
« Last Edit: May 20, 2020, 07:26:51 am by kqha »

kqha

  • New Member
  • *
  • Posts: 23
Re: CGI brookfreepascal+lighttpd EAccessViolation
« Reply #1 on: May 20, 2020, 07:25:16 am »
After some searching I decided to use lazarus CGI project instead brook, because it probably related to "legacyrouting" thing (https://forum.lazarus.freepascal.org/index.php/topic,39867.msg358562.html#msg358562) which I believe brook didn't handle yet (or handled somewhere just not documented and/or I can't find yet)

 

TinyPortal © 2005-2018