Not able to launch program through vscode


#1

i am getting below error when i launch my executable through VS code.
I am using GDB debugger

warning: Missing auto-load script at offset 0 in section .debug_gdb_scripts
of file /home/birendar/Fractalsrc/fractalglobal-user-panel-04540678b060/target/debug/fractal-website.
Use `info auto-load python-scripts [REGEXP]' to list them.

Running executable
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".

Breakpoint 7, fractal_website::main () at /home/birendar/Fractalsrc/fractalglobal-user-panel-04540678b060/src/main.rs:138
138	    let server = route_server();

Breakpoint 6, fractal_website::route_server () at /home/birendar/Fractalsrc/fractalglobal-user-panel-04540678b060/src/main.rs:154
154	    let mut handlebars = Handlebars::new();
[New Thread 0x7ffff51ad700 (LWP 18103)]
Server running at http://0.0.0.0:80/
undefinedthread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: Error { repr: Os { code: 13, message: "Permission denied" } }', src/libcore/result.rs:859
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Io(Error { repr: Os { code: 13, message: "Permission denied" } })', src/libcore/result.rs:859
stack backtrace:
   0: std::sys::imp::backtrace::tracing::imp::unwind_backtrace
   1: std::sys_common::backtrace::_print
   2: std::panicking::default_hook::{{closure}}
   3: std::panicking::default_hook
   4: std::panicking::rust_panic_with_hook
   5: std::panicking::begin_panic
   6: std::panicking::begin_panic_fmt
   7: rust_begin_unwind
   8: core::panicking::panic_fmt
   9: core::result::unwrap_failed
             at /builddir/build/BUILD/rustc-1.18.0-src/src/libcore/macros.rs:29
  10: <core::result::Result<T, E>>::unwrap
             at /builddir/build/BUILD/rustc-1.18.0-src/src/libcore/result.rs:737
  11: core::ops::FnOnce::call_once
             at ./src/main.rs:103
             at /builddir/build/BUILD/rustc-1.18.0-src/src/libcore/ops.rs:2626
  12: <lazy_static::lazy::Lazy<T>>::get::{{closure}}
             at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/lazy_static-0.2.2/src/lazy.rs:16
  13: std::sync::once::Once::call_once::{{closure}}
             at /builddir/build/BUILD/rustc-1.18.0-src/src/libstd/sync/once.rs:227
  14: std::sync::once::Once::call_inner
  15: std::sync::once::Once::call_once
             at /builddir/build/BUILD/rustc-1.18.0-src/src/libstd/sync/once.rs:227
  16: <fractal_website::SESSION_MGR as core::ops::Deref>::deref
             at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/lazy_static-0.2.2/src/lazy.rs:15
             at ./<lazy_static macros>:21
             at ./<lazy_static macros>:22
  17: fractal_website::manage_sessions_thread
             at ./src/main.rs:146
  18: core::ops::FnOnce::call_once
             at /builddir/build/BUILD/rustc-1.18.0-src/src/libcore/ops.rs:2626
  19: <std::panic::AssertUnwindSafe<F> as core::ops::FnOnce<()>>::call_once
             at /builddir/build/BUILD/rustc-1.18.0-src/src/libstd/panic.rs:296
  20: std::panicking::try::do_call
             at /builddir/build/BUILD/rustc-1.18.0-src/src/libstd/panicking.rs:454
  21: __rust_maybe_catch_panic
  22: std::panicking::try
             at /builddir/build/BUILD/rustc-1.18.0-src/src/libstd/panicking.rs:433
  23: std::panic::catch_unwind
             at /builddir/build/BUILD/rustc-1.18.0-src/src/libstd/panic.rs:361
  24: std::thread::Builder::spawn::{{closure}}
             at /builddir/build/BUILD/rustc-1.18.0-src/src/libstd/thread/mod.rs:360
  25: <F as alloc::boxed::FnBox<A>>::call_box
             at /builddir/build/BUILD/rustc-1.18.0-src/src/liballoc/boxed.rs:640
  26: std::sys::imp::thread::Thread::new::thread_start
  27: start_thread
  28: __clone
stack backtrace:
   0: std::sys::imp::backtrace::tracing::imp::unwind_backtrace
   1: std::sys_common::backtrace::_print
   2: std::panicking::default_hook::{{closure}}
   3: std::panicking::default_hook
   4: std::panicking::rust_panic_with_hook
   5: std::panicking::begin_panic
   6: std::panicking::begin_panic_fmt
   7: rust_begin_unwind
   8: core::panicking::panic_fmt
   9: core::result::unwrap_failed
             at /builddir/build/BUILD/rustc-1.18.0-src/src/libcore/macros.rs:29
  10: <core::result::Result<T, E>>::unwrap
             at /builddir/build/BUILD/rustc-1.18.0-src/src/libcore/result.rs:737
  11: fractal_website::main
             at ./src/main.rs:142
  12: __rust_maybe_catch_panic
  13: std::rt::lang_start
  14: main
  15: __libc_start_main
  16: _start
[Thread 0x7ffff51ad700 (LWP 18103) exited]
[Inferior 1 (process 18094) exited with code 0145]
Program exited with code 0145