Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V panic: malloc(<=0) when vweb/vweb_example.v #3138

Closed
marlock9 opened this issue Dec 18, 2019 · 3 comments
Closed

V panic: malloc(<=0) when vweb/vweb_example.v #3138

marlock9 opened this issue Dec 18, 2019 · 3 comments
Labels
Bug This tag is applied to issues which reports bugs.

Comments

@marlock9
Copy link

marlock9 commented Dec 18, 2019

V version: V 0.1.23 9e11de4
OS: Linux fedora-desktop 5.3.16-300.fc31.x86_64 #1 SMP Fri Dec 13 17:59:04 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

What did you do?
../v run vweb/vweb_example.v

What did you expect to see?
Running web server

What did you see instead?

../v -g run vweb/vweb_example.v
C compiler=cc
compiling tmpl index.html
Running a Vweb app on http://localhost:8082 ...
net.listen(8082)
listen res = 0
================ V panic ================
   module: builtin
 function: malloc()
     file: /home/marlock/v/vlib/builtin/builtin.v
     line: 108
  message: malloc(<=0)
=========================================
/home/marlock/v/vlib/builtin/builtin.v:70:     |       0x40b2e1 | ./vweb/vweb_example(panic_debug+0x123) 
/home/marlock/v/vlib/builtin/builtin.v:109:    |       0x40b4f9 | ./vweb/vweb_example(v_malloc+0x8e) 
/home/marlock/v/vlib/builtin/map.v:50:         |       0x40cf69 | ./vweb/vweb_example(new_node+0x57) 
/home/marlock/v/vlib/builtin/map.v:121:        |       0x40d341 | ./vweb/vweb_example(map_set+0x52) 
/home/marlock/v/vlib/vweb/vweb.v:323:          |       0x422c7e | ./vweb/vweb_example(vweb__Context_scan_static_directory+0x444) 
/home/marlock/v/vlib/vweb/vweb.v:333:          |       0x422e21 | ./vweb/vweb_example(vweb__Context_handle_static+0x7b) 
/home/marlock/v/examples/vweb/vweb_example.v:24: |       0x4230f7 | ./vweb/vweb_example(App_init+0x2e) 
/home/marlock/v/examples/vweb/vweb_example.v:131: |       0x423e90 | ./vweb/vweb_example(vweb__run_T_App+0x131) 
/home/marlock/v/examples/vweb/vweb_example.v:20: |       0x4230c6 | ./vweb/vweb_example(main__main+0x36) 
/tmp/v/vweb_example.tmp.c:20573:               |       0x423a9e | ./vweb/vweb_example(main+0x59) 
                                               | 0x7fa135b511a3 | /lib64/libc.so.6(__libc_start_main+0xf3) 
                                               |       0x40961e | ./vweb/vweb_example(_start+0x2e) 
@marlock9 marlock9 added the Bug This tag is applied to issues which reports bugs. label Dec 18, 2019
@Delta456
Copy link
Member

Does #3137 works for you?

@marlock9
Copy link
Author

@Delta456 yup, that works.

@medvednikov
Copy link
Member

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This tag is applied to issues which reports bugs.
Projects
None yet
Development

No branches or pull requests

3 participants