gitly
gitly copied to clipboard
Error: net__TcpConn_write_ptr: RUNTIME ERROR: invalid memory access
Details:
Running a Vweb app on http://localhost:8080
[INFO 2021-02-07 01:51:47] init_once()
/tmp/v/gitly.9883544477089273822.tmp.c:19088: at net__TcpConn_write_ptr: RUNTIME ERROR: invalid memory access
/tmp/v/gitly.9883544477089273822.tmp.c:19118: by net__TcpConn_write
/tmp/v/gitly.9883544477089273822.tmp.c:43598: by vweb__send_string
/tmp/v/gitly.9883544477089273822.tmp.c:21728: by vweb__Context_send_response_to_client
/tmp/v/gitly.9883544477089273822.tmp.c:21759: by vweb__Context_text
/tmp/v/gitly.9883544477089273822.tmp.c:45940: by main__App_info
/tmp/v/gitly.9883544477089273822.tmp.c:45964: by main__App_init_once
/tmp/v/gitly.9883544477089273822.tmp.c:21938: by vweb__run_app_T_main__App
/tmp/v/gitly.9883544477089273822.tmp.c:21925: by vweb__run_T_main__App
/tmp/v/gitly.9883544477089273822.tmp.c:45934: by main__main
/tmp/v/gitly.9883544477089273822.tmp.c:51837: by main
charles@charles-pad:~/gitly$
Same problem:
$:~/code/gitly$ v up
Updating V...
V self compiling ...
V built successfully!
Current V version:
V 0.2.2 0f8edd9, timestamp: 2021-02-17 05:19:25 +0100
$:~/code/gitly$ v run .
./security_log.v:30:7: warning: use e.g. `...struct_var` instead
28 | fn (mut app App) security_log(log SecurityLog) {
29 | log2 := {
30 | log |
| ^
31 | ip: app.ip()
32 | }
[Vweb] Running app on http://localhost:8080
[INFO 2021-02-16 20:23:36] init_once()
/tmp/v/gitly.7385282719175851481.tmp.c:19106: at net__TcpConn_write_ptr: RUNTIME ERROR: invalid memory access
/tmp/v/gitly.7385282719175851481.tmp.c:19136: by net__TcpConn_write
/tmp/v/gitly.7385282719175851481.tmp.c:43991: by vweb__send_string
/tmp/v/gitly.7385282719175851481.tmp.c:21689: by vweb__Context_send_response_to_client
/tmp/v/gitly.7385282719175851481.tmp.c:21728: by vweb__Context_text
/tmp/v/gitly.7385282719175851481.tmp.c:46232: by main__App_info
/tmp/v/gitly.7385282719175851481.tmp.c:46256: by main__App_init_once
/tmp/v/gitly.7385282719175851481.tmp.c:21907: by vweb__run_app_T_main__App
/tmp/v/gitly.7385282719175851481.tmp.c:21894: by vweb__run_T_main__App
/tmp/v/gitly.7385282719175851481.tmp.c:46226: by main__main
/tmp/v/gitly.7385282719175851481.tmp.c:52131: by main
System: wsl ubuntu 20.04
@changrui, @youyuanwu, can you reproduce errors now?