servalproject / serval-dna

The Serval Project's core daemon that implements Distributed Numbering Architecture (DNA), MDP, VoMP, Rhizome, MeshMS, etc.
http://servalproject.org
Other
171 stars 80 forks source link

servald crashing on OS X due to http_server.c #78

Closed TobiasWooldridge closed 10 years ago

TobiasWooldridge commented 10 years ago

When runnning servald compiled with Clang on OS X (10.9), servald crashes due to the following error

All rhizomerestful tests crash with the following message, which is triggered when a browser makes a request to the provided HTTP server

➜  serval-dna git:(development) ✗ ./servald start foreground
INFO: Local date/time: 2014-07-07 14:48:01 +0930
INFO: Serval DNA version: START-3163-g6322614+tobias@wooldridge.id.au-20140707144723
WARN: conf.c:66:reload()  config file /usr/local/etc/serval/serval.conf does not exist -- using all defaults
WARN: No network interfaces configured (empty 'interfaces' config option)
Assertion failed: ((const char*)resp >= (const char*)r), function _release_reserved, file http_server.c, line 302.
FATAL:main.c:60:crash_handler()  Caught signal SIGABRT (6) Abort trap: 6
FATAL:main.c:61:crash_handler()  The following clue may help: no clue
FATAL:performance_timing.c:227:dump_stack()  http_server_poll
FATAL:performance_timing.c:227:dump_stack()  call_alarm
FATAL:performance_timing.c:227:dump_stack()  fd_poll
FATAL:performance_timing.c:227:dump_stack()  server
FATAL:performance_timing.c:227:dump_stack()  app_server_start
FATAL:performance_timing.c:227:dump_stack()  cli_invoke
FATAL:performance_timing.c:227:dump_stack()  parseCommandLine
FATAL:main.c:63:crash_handler()  GDB BACKTRACE
FATAL:GDB execlp("gdb"): No such file or directory
FATAL:gdb exited normally with status 253
[1]    17394 abort      ./servald start foreground
lakeman commented 10 years ago

Github is being too clever, please reopen if not fixed.