vadimcn / codelldb

A native debugger extension for VSCode based on LLDB
https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb
MIT License
2.58k stars 246 forks source link

thread 'main' panicked at 'assertion failed: !ptr.is_null()' #429

Closed hacke2 closed 3 years ago

hacke2 commented 3 years ago

OS: Ubuntu 20.04.2 VSCode version: Internal IDE, based on vs Code 1.44.2 Extension version: 1.6.2 Compiler: 1.53.0-nightly Build target: x86_64-linux.vsix

When I Debug with Codelens,the terminal will execute /xxx/vscode-lldb-1.6.2/adapter/codelldb terminal-agent --port=37818 And It will throw a error but still hit the breakpoint:

thread 'main' panicked at 'assertion failed: !ptr.is_null()', adapter/loader/terminal_agent.rs:13:13
stack backtrace:
   0: rust_begin_unwind
   1: core::panicking::panic_fmt
   2: core::panicking::panic
   3: codelldb::terminal_agent::terminal_agent
   4: codelldb::main

image

I found to the source code:

image

Why the ptr is null? Is this exception related to my container environment?

configuration: {
  type: 'lldb',
  request: 'launch',
  name: 'run hello_world',
  program: '${workspaceFolder}/target/debug/hello_world',
  args: [],
  cwd: '${workspaceFolder}',
  sourceMap: {},
  sourceLanguages: [ 'rust' ],
  relativePathBase: '/home/admin/xinglong.wangwxl/xinglong.wangwxl/rust-hello-world',
  _adapterSettings: {
    displayFormat: 'auto',
    showDisassembly: 'auto',
    dereferencePointers: true,
    suppressMissingSourceFiles: true,
    evaluationTimeout: 5,
    consoleMode: 'commands',
    sourceLanguages: null,
    terminalPromptClear: null,
    evaluateForHovers: true,
    commandCompletions: true
  }
}
liblldb: /xxx/vscode-lldb/lldb/lib/liblldb.so
params: {
  evaluateForHovers: true,
  commandCompletions: true,
  sourceLanguages: [ 'rust' ]
}
Listening on port 48128
[2021-04-26T06:23:01.128Z DEBUG codelldb] New debug session
INFO(Python) 06:23:01 formatters: Initializing
INFO(Python) 06:23:01 formatters.rust: Initializing
[2021-04-26T06:23:01.737Z DEBUG codelldb::dap_codec] --> {"seq":76,"type":"request","command":"initialize","arguments":{"clientID":"KatiTian","clientName":"KatiTian IDE","adapterID":"lldb","locale":"en-US","linesStartAt1":true,"columnsStartAt1":true,"pathFormat":"path","supportsVariableType":false,"supportsVariablePaging":false,"supportsRunInTerminalRequest":true}}

[2021-04-26T06:23:01.738Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":76,"success":true,"command":"initialize","body":{"exceptionBreakpointFilters":[{"default":true,"filter":"rust_panic","label":"Rust: on panic"}],"supportTerminateDebuggee":true,"supportsCancelRequest":true,"supportsCompletionsRequest":true,"supportsConditionalBreakpoints":true,"supportsConfigurationDoneRequest":true,"supportsDataBreakpoints":true,"supportsDelayedStackTraceLoading":true,"supportsEvaluateForHovers":true,"supportsFunctionBreakpoints":true,"supportsGotoTargetsRequest":true,"supportsHitConditionalBreakpoints":true,"supportsLogPoints":true,"supportsReadMemoryRequest":true,"supportsRestartFrame":true,"supportsSetVariable":true}}
[2021-04-26T06:23:01.856Z DEBUG codelldb::dap_codec] --> {"seq":77,"type":"request","command":"launch","arguments":{"type":"lldb","request":"launch","name":"run hello_world","program":"/home/admin/xinglong.wangwxl/xinglong.wangwxl/rust-hello-world/target/debug/hello_world","args":[],"cwd":"/home/admin/xinglong.wangwxl/xinglong.wangwxl/rust-hello-world","sourceMap":{},"sourceLanguages":["rust"],"env":{"RUST_BACKTRACE":"1","NODE_LOG_DIR":"/home/admin/.idegg-logs/alinode","npm_config_save_dev":"","npm_config_legacy_bundling":"","npm_config_dry_run":"","npm_package_devDependencies_lint_staged":"^8.1.0","npm_package_devDependencies__ali_ide_menu_bar":"2.1.3","npm_package_dependencies_request":"^2.88.0","npm_package_dependencies__alipay_egg_yuyan_monitor":"^1.0.16","ELECTRON_MIRROR":"https://npm.alibaba-inc.com/mirrors/electron","Sigma_Region":"","npm_config_viewer":"man","npm_config_only":"","npm_config_commit_hooks":"true","npm_config_browser":"","npm_package_eslintIgnore_0":"coverage","npm_package_devDependencies_react_intl":"^3.3.2","npm_package_devDependencies__ali_ide_keymaps":"2.1.3","npm_package_dependencies__ali_ide_connection_worker":"^0.0.3","npm_package_scripts_autod":"autod","POD_NAMESPACE":"linkw","npm_config_also":"","npm_package_devDependencies__types_webpack_env":"^1.16.0","npm_package_devDependencies__types_shortid":"^0.0.29","npm_package_devDependencies__alipay_basement_build":"^1.4.8","npm_package_scripts_ci":"npm run lint && npm run tsc","npm_config_sign_git_commit":"","npm_config_rollback":"true","npm_package_dependencies_min":"^0.2.2","npm_package_dependencies_md5":"^2.2.1","npm_package_dependencies__ali_ide_workspace":"2.1.3","npm_package_scripts_dev_dev_container":"EXT_HOST_RUNTIME=DEV_CONTAINER EXT_HOST_PROXY_SOCKET_PORT=10298 run-p -r dev:ide-server run:ext-host-proxy","Sigma_Model":"SA5212M4","HOSTNAME":"egumomng-eu95-100083057152","NODE":"/opt/taobao/tnvm/versions/alinode/v5.16.4/bin/node","npm_config_usage":"","npm_config_audit":"true","npm_package_devDependencies_file_loader":"^4.2.0","npm_package_devDependencies__ali_ide_markdown":"2.1.3","Sigma_UplinkHostName":"","INIT_CWD":"/release","npm_package_devDependencies_tslint_config_prettier":"^1.18.0","npm_package_devDependencies_terser_webpack_plugin":"^4.2.3","npm_package_devDependencies__types_semver":"^6.0.0","npm_package_devDependencies__types_marked":"^0.7.4","npm_package_dependencies_moment":"^2.24.0","npm_package_dependencies__ali_ide_extension_storage":"2.1.3","npm_config_globalignorefile":"/opt/taobao/tnvm/versions/alinode/v5.16.4/etc/npmignore","npm_package_devDependencies__ali_ide_theme":"2.1.3","npm_package_dependencies_ajv":"^6.10.0","npm_package_dependencies__ali_ide_file_service":"2.1.3","TERM":"xterm","KUBERNETES_PORT_443_TCP_PORT":"443","KUBERNETES_PORT":"tcp://172.16.0.1:443","HOST":"svc-xbd6shicuhlxqi3i.linkw.svc.eu95.alipay.net","SHELL":"/bin/bash","npm_config_shell":"/bin/bash","npm_config_maxsockets":"50","npm_config_init_author_url":"","npm_package_devDependencies__ali_ide_variable":"2.1.3","npm_package_devDependencies__ali_ide_status_bar":"2.1.3","npm_package_resolutions_tslib":"1.11.2","npm_package_egg_tsHelper_autoRemoveJs":"false","npm_config_shrinkwrap":"true","npm_config_parseable":"","npm_config_metrics_registry":"https://registry.npm.alibaba-inc.com/","npm_package_devDependencies_tslint":"^5.16.0","npm_package_devDependencies_semver":"^6.1.1","npm_package_devDependencies_react_media":"^1.8.0","npm_package_devDependencies__types_react_textarea_autosize":"^4.3.5","npm_package_devDependencies__ali_ide_toolbar":"2.1.3","npm_package_resolutions_vscode_textmate":"5.1.1","npm_package_scripts_tsc":"ets && tsc -p tsconfig.prod.json","npm_package_scripts_dev_ide_server":"IS_DEV=1 HMR=reload CLOUDIDE_ENV=local egg-bin dev --port=10199 --framework=@alipay/idegg","npm_package_versionCommit":"37cde9bd","LEGACY_CONTAINER_SIZE_CPU_COUNT":"2","npm_config_timing":"","npm_config_init_license":"ISC","npm_package_devDependencies_shortid":"^2.2.14","npm_package_devDependencies_path_to_regexp":"^2.1.0","npm_package_devDependencies__alipay_cloudide":"^1.0.3","npm_package_dependencies_qrcode_generator":"^1.4.4","npm_package_dependencies_copy_to_clipboard":"^3.2.0","npm_package_dependencies__alipay_hon_locator_generator":"^1.1.0","npm_package_dependencies__ali_cloud_ide_utils":"^2.0.0","npm_package_scripts_lint":"tslint --project . -c tslint.yml","npm_config_if_present":"","npm_package_dependencies_js_base64":"^3.5.2","npm_package_scripts_dev_mini_program":"CLOUDIDE_STACK_NAME='Mini Program' tnpm run dev","KUBERNETES_SERVICE_PORT":"6443","npm_package_scripts_dev":"EXT_HOST_RUNTIME=IDE_CONTAINER npm run dev:ide-server","NODE_OPTIONS":"--max_old_space_size=4096","npm_config_sign_git_tag":"","npm_config_init_author_email":"","npm_config_cache_max":"Infinity","npm_package_devDependencies__types_crypto_js":"^3.1.43","npm_package_dependencies_uuid":"^3.4.0","npm_package_dependencies_use_async_memo":"^1.2.2","npm_package_scripts_dev_example":"DEBUG_EXAMPLE=1 npm run dev","npm_config_preid":"","npm_config_long":"","npm_config_local_address":"","npm_config_git_tag_version":"true","npm_config_cert":"","npm_package_devDependencies_memoize_one":"^4.0.0","npm_package_devDependencies_autod_egg":"^1.1.0","npm_package_devDependencies__types_mocha":"^2.2.40","npm_package_devDependencies__types_classnames":"^2.2.9","npm_package_dependencies_urllib":"^2.34.2","npm_package_dependencies__ali_ide_logs":"2.1.3","Sigma_Rack":"D01","Sigma_Site":"EU95","POD_NAME":"sts-xbd6shicuhlxqi3i-0","KUBERNETES_SERVICE_HOST":"apiserver.sigma-eu95.svc.alipay.net","npm_config_noproxy":"","npm_config_fetch_retries":"2","npm_config_registry":"https://registry.npm.alibaba-inc.com/","npm_package_devDependencies__types_jsonwebtoken":"^8.5.0","npm_package_devDependencies__ali_ide_explorer":"2.1.3","npm_package_devDependencies__ali_great_scripts":"^1.1.2","npm_package_dependencies_js_yaml":"^3.13.1","npm_package_dependencies__ali_secure_identity_login_module":"^1.1.1","npm_package_private":"true","npm_package_repository_url":"git@code.alipay.com:cloud-ide/api-server.git","npm_package_devDependencies_store2":"^2.10.0","npm_package_devDependencies_expect":"^25.1.0","npm_package_devDependencies_commitizen":"^4.0.3","npm_package_dependencies_compressing":"^1.5.0","npm_package_scripts_debug":"egg-bin debug --port=10199 --framework=@alipay/idegg","npm_package_scripts_prepare_env":"yum --version && sudo yum -y install unzip gcc-c++ libX11-devel libxkbfile-devel || echo 'no yum'","npm_config_versions":"","npm_config_message":"%s","npm_config_key":"","npm_package_readmeFilename":"README.md","npm_package_devDependencies__types_url_parse":"^1.4.3","npm_package_dependencies__alipay_totp_generator":"^1.0.0","Sigma_NetLogicSite":"EU95-SQA","IS_SIDECAR":"true","npm_package_devDependencies_webpack":"^4.44.2","npm_package_devDependencies__ali_ide_overlay":"2.1.3","npm_package_devDependencies__ali_ide_file_scheme":"2.1.3","npm_package_devDependencies__ali_ide_decoration":"2.1.3","npm_package_description":"Cloud IDE 的编辑器镜像项目。","LOCAL_DIR":"/opt/taobao","USER":"admin","CLOUDIDE_ENV":"TEST","npm_package_license":"MIT","npm_package_devDependencies_webpack_cli":"^4.2.0","npm_package_devDependencies__types_react":"^16.8.14","npm_package_devDependencies__types_js_yaml":"^3.12.2","npm_package_devDependencies__rjsf_core":"^2.2.1","npm_package_devDependencies__ali_ide_extension_manager":"2.1.3","npm_package_egg_typescript":"true","DefaultRoute":"100.83.57.247","SIGMA_MAX_PROCESSORS_LIMIT":"2","npm_package_scripts_build_ext_host":"webpack --config ./scripts/webpack.config.ext-host.js --progress","CLOUDIDE_MAIN_CONTAINER_NAME":"contract","npm_config_globalconfig":"/opt/taobao/tnvm/versions/alinode/v5.16.4/etc/npmrc","npm_package_devDependencies_qs":"^6.8.0","npm_package_devDependencies__types_lodash_orderby":"^4.6.6","npm_config_prefer_online":"","npm_config_logs_max":"10","npm_config_always_auth":"","npm_package_devDependencies_egg_bin":"^4.11.0","npm_package_devDependencies__ali_ide_main_layout":"2.1.3","npm_package_devDependencies__ali_ide_monaco":"2.1.3","Sigma_NcHostname":"11.166.81.156","npm_package_devDependencies_dayjs":"^1.8.29","npm_package_devDependencies__types_md5":"^2.1.33","npm_package_dependencies__ali_ide_storage":"2.1.3","npm_execpath":"/opt/taobao/tnvm/versions/alinode/v5.16.4/lib/node_modules/npm/bin/npm-cli.js","npm_config_global_style":"","npm_config_cache_lock_retries":"10","npm_package_husky_hooks_pre_commit":"lint-staged","npm_package_devDependencies_tslib":"1.11.2","npm_package_dependencies__alipay_egg_basement":"^3.1.0","npm_package_dependencies__ali_ide_core_node":"2.1.3","CLOUDIDE_SVC_NAME":"svc-xbd6shicuhlxqi3i.linkw.svc.eu95.alipay.net","npm_config_update_notifier":"true","npm_config_cafile":"","npm_package_devDependencies_debug":"^4.1.1","npm_package_devDependencies_antd":"^4.2.4","npm_package_dependencies_marked":"^1.1.0","SQLITE3_BINARY_SITE":"https://npm.alibaba-inc.com/mirrors/sqlite3","npm_package_author_name":"CloudIDE Team","npm_package_devDependencies_glob":"^7.1.4","npm_package_devDependencies__types_supertest":"^2.0.0","npm_package_devDependencies__rjsf_antd":"^2.2.1","npm_package_devDependencies__alipay_cloudide_ext_devtools":"^0.0.37","npm_config_heading":"npm","npm_config_audit_level":"low","npm_package_devDependencies__types_react_dom":"^16.8.4","npm_package_devDependencies__ali_ide_i18n":"2.1.3","pouch_container_image":"reg.docker.alibaba-inc.com/cloudide-platform/contract@sha256:0102e2a4e2c5a338244fd7ddde23b912e147cd6e442ce2a9d153c5a42378d7d6","Sigma_ASW":"1","npm_config_searchlimit":"20","npm_config_read_only":"","npm_config_offline":"","npm_config_fetch_retry_mintimeout":"10000","npm_package_dependencies_ettr":"^1.0.2","ali_run_mode":"alipay_container","CLOUDIDE_TENANT":"cloudide","npm_config_json":"","npm_config_access":"","npm_config_argv":"{\"remain\":[],\"cooked\":[\"start\"],\"original\":[\"start\"]}","npm_package_devDependencies__types_qs":"^6.5.3","npm_package_devDependencies__types_js_cookie":"^2.2.4","npm_package_dependencies__alipay_yuyan_monitor_node":"^2.0.11","npm_package_scripts_postinstall":"npm run init","CLOUDIDE_WORKSPACE_ID":"10000675","PATH":"/opt/taobao/.ext-host:/usr/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/admin/.local/bin:/home/admin/bin","npm_config_allow_same_version":"","npm_package_dependencies_wolfy87_eventemitter":"^5.2.9","npm_config_https_proxy":"","npm_config_engine_strict":"","npm_config_description":"true","npm_package_devDependencies_cz_conventional_changelog":"^3.1.0","npm_package_devDependencies_autod":"^3.0.1","npm_package_devDependencies__types_execa":"^0.9.0","npm_package_dependencies_utility":"^1.16.3","_":"/opt/taobao/.ext-host/exthost-runner","Sigma_NetArchVersion":"","npm_config_userconfig":"/home/admin/.npmrc","npm_config_init_module":"/home/admin/.npm-init.js","npm_package_devDependencies_commitlint":"^8.3.5","npm_package_devDependencies_ajv_i18n":"^3.5.0","npm_package_dependencies_typescript":"3.8.3","npm_package_dependencies_p_map":"^3.0.0","npm_package_dependencies__alipay_h5data":"^2.0.2","npm_package_dependencies__ali_ide_search":"2.1.3","npm_package_scripts_init":"node scripts/init-project.js","NVM_NODEJS_ORG_MIRROR":"https://npm.alibaba-inc.com/mirrors/node","npm_config_cidr":"","npm_package_devDependencies_npm_run_all":"^4.1.5","npm_package_devDependencies__types_mime":"^2.0.3","PWD":"/home/admin","npm_config_user":"","npm_config_node_version":"12.18.4","npm_package_devDependencies__types_lodash":"^4.14.136","npm_package_dependencies_log4js":"^6.3.0","io.alibaba.pouch.snapshotter":"rafs","npm_lifecycle_event":"start","npm_package_engines_install_alinode":"5","npm_package_devDependencies__types_vscode":"^1.45.1","npm_package_devDependencies__ali_ide_core_browser":"2.1.3","npm_package_scripts_run_ext_host_proxy":"node app/lib/exthost/ext.host.proxy.js","pouch_container_id":"941c18fe84aa4b4a3e2d633cd301ba4c71af0ee52922841654f2efb8568edc6d","DefaultNic":"bond0.701","npm_config_save":"true","npm_config_ignore_prepublish":"","npm_config_editor":"vi","npm_config_auth_type":"legacy","npm_package_repository_type":"git","npm_package_devDependencies__ali_ide_webview":"2.1.3","npm_package_devDependencies__ali_ide_markers":"2.1.3","npm_package_dependencies_url_parse":"^1.4.7","npm_package_scripts_build_image":"BUILD_LOCAL_IMAGE=1 node scripts/build-image.js","npm_package_egg_declarations":"true","npm_package_name":"ide-server","CLOUDIDE_STACK_ID":"7000229","npm_config_tag":"latest","npm_config_script_shell":"","npm_package_dependencies_mime":"^2.5.0","Sigma_Pod":"16","EMPID":"80222","npm_config_progress":"true","npm_config_global":"","npm_config_before":"","npm_package_dependencies_rxjs":"^6.5.3","npm_package_dependencies_net":"^1.0.2","npm_package_dependencies__ali_ide_extension_installer":"^2.0.0","npm_package_scripts_build":"rm -rf dist && node scripts/basement-build.js","npm_package_scripts_start":"NODE_LOG_DIR=$HOME/.idegg-logs/alinode ideggctl start --workers=1 --port=10099 --ignore-stderr","npm_package_scripts_preinstall":"npm run prepare:env","npm_config_searchstaleness":"900","npm_config_optional":"true","npm_config_ham_it_up":"","npm_package_devDependencies_ts_loader":"^8.0.11","npm_package_devDependencies__types_ws":"^7.2.2","npm_package_dependencies_formstream":"^1.1.0","SN":"6d88243f-c038-4f44-aa76-04478746a2ee","npm_config_save_prod":"","npm_config_force":"","npm_config_bin_links":"true","npm_package_devDependencies_lodash_decorators":"^6.0.0","npm_package_devDependencies__ant_design_icons":"^4.2.1","npm_package_devDependencies__ali_ide_editor":"2.1.3","npm_package_dependencies_crypto_js":"^4.0.0","npm_package_dependencies__alipay_cloud_ide_sdk":"^0.3.2-alpha.17","ali_safety_out":"0","npm_config_searchopts":"","npm_package_dependencies_classnames":"^2.2.6","npm_package_dependencies__alipay_idegg":"^2.0.0","npm_package_dependencies__ali_ide_debug":"2.1.3","npm_config_node_gyp":"/opt/taobao/tnvm/versions/alinode/v5.16.4/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js","npm_config_depth":"Infinity","npm_package_dependencies_mz_modules":"^2.1.0","npm_package_dependencies__ali_ide_comments":"2.1.3","Sigma_NcSn":"817451097","npm_config_sso_poll_frequency":"500","npm_config_rebuild_bundle":"true","npm_package_devDependencies_umi":"^2.7.1","npm_package_dependencies_ws":"^7.3.0","npm_package_dependencies_scarlet_task":"^1.0.0","npm_package_dependencies__ali_ide_process":"2.1.3","npm_package_version":"1.0.24","CLOUDIDE_WORKSPACE_NAME":"xbd6shicuhlxqi3i","npm_config_unicode":"","npm_package_config_assets_hash":"true","npm_package_devDependencies__ali_ide_output":"2.1.3","npm_package_dependencies__ali_ide_terminal_next":"2.1.3","Sigma_UplinkSn":"","EMAILPREFIX":"xinglong.wangwxl","npm_package_devDependencies_lodash_orderby":"^4.6.0","npm_package_dependencies__alipay_yuyan_monitor_web":"^3.0.2","npm_package_dependencies__alipay_egg_hon_locator":"^1.0.2","SHLVL":"0","HOME":"/home/admin","LESSCHARSET":"utf-8","Sigma_Room":"C1-2.EU95","CLOUDIDE_CONTAINER_NAME":"contract","npm_config_fetch_retry_maxtimeout":"60000","npm_package_scripts_test":"egg-bin test --framework=@alipay/idegg","NPM_CONFIG_REGISTRY":"https://registry.npm.alibaba-inc.com","npm_config_tag_version_prefix":"v","npm_config_strict_ssl":"true","npm_config_sso_type":"oauth","npm_config_scripts_prepend_node_path":"warn-only","npm_config_save_prefix":"^","npm_config_loglevel":"notice","npm_config_ca":"","npm_package_devDependencies__ali_ide_preferences":"2.1.3","npm_package_devDependencies__ali_ide_outline":"2.1.3","npm_package_dependencies_address":"^1.1.2","npm_package_dependencies__ali_ide_kaitian_extension":"2.1.3","Sigma_LogicPod":"16","Sigma_ParentServiceTag":"","KUBERNETES_PORT_443_TCP_PROTO":"tcp","INSTANCE_IP":"100.83.57.152","npm_config_save_exact":"","npm_config_group":"500","npm_config_fetch_retry_factor":"10","npm_config_dev":"","npm_package_husky_hooks_commit_msg":"commitlint -E HUSKY_GIT_PARAMS","npm_package_devDependencies_husky":"^3.1.0","npm_package_devDependencies__commitlint_cli":"^8.3.5","npm_package_devDependencies__ali_ide_static_resource":"2.1.3","npm_package_resolutions_typescript":"3.8.3","SASS_BINARY_SITE":"https://npm.alibaba-inc.com/mirrors/node-sass","KUBERNETES_SERVICE_PORT_HTTPS":"443","npm_config_version":"","npm_config_prefer_offline":"","npm_config_cache_lock_stale":"60000","npm_package_dependencies_js_cookie":"^2.2.1","npm_package_scripts_dev_public":"CLOUDIDE_IS_PUBLIC=1 npm run dev","PHANTOMJS_CDNURL":"https://npm.alibaba-inc.com/mirrors/phantomjs","Sigma_SmName":"F45S1","npm_config_otp":"","npm_config_cache_min":"10","npm_package_commitlint_extends_0":"@commitlint/config-conventional","npm_package_devDependencies_co":"^4.6.0","npm_package_dependencies_xhr_file":"^0.8.4","npm_package_dependencies_path_match":"^1.2.4","Sigma_NcIp":"11.166.81.156","npm_config_searchexclude":"","npm_config_cache":"/home/admin/.npm","npm_package_lint_staged____ts_tsx_":"tslint -c tslint.yml -p tsconfig.json -t stylish","npm_package_devDependencies__alipay_antd_kaitian_theme":"^1.0.0-beta.12","npm_package_dependencies_fs_extra":"^8.0.1","npm_package_dependencies_execa":"^1.0.0","RequestedIP":"100.83.57.152","LOGNAME":"admin","npm_lifecycle_script":"NODE_LOG_DIR=$HOME/.idegg-logs/alinode ideggctl start --workers=1 --port=10099 --ignore-stderr","npm_config_color":"true","npm_package_devDependencies_tslint_react":"^4.0.0","npm_package_devDependencies_egg_mock":"^3.16.0","npm_package_dependencies_lru":"^3.1.0","npm_package_dependencies__alipay_idegg_scripts":"^1.0.0","NODEJS_ORG_MIRROR":"https://npm.alibaba-inc.com/mirrors/node","Sigma_UplinkIp":"","npm_config_proxy":"","npm_config_package_lock":"true","TNVM_DIR":"/opt/taobao/tnvm","npm_config_package_lock_only":"","npm_config_fund":"true","npm_package_devDependencies__types_debug":"^4.1.5","npm_package_dependencies_mkdirp":"^0.5.1","npm_package_productVersion":"1.0.24 (37cde9bd)","npm_config_save_optional":"","npm_package_devDependencies_tslint_config_egg":"^1.0.0","npm_package_devDependencies__types_glob":"^7.1.1","AJDK_MAX_PROCESSORS_LIMIT":"2","EGUMO_INSTALLERS":"[{\"commandLine\":\"/tmp/installer/installers/setup/init_user.sh\",\"name\":\"egumo.initUser\",\"priority\":1,\"privileged\":true},{\"commandLine\":\"while [ ! -f /.cloudide_shared/.ext-host/ext.host.proxy.js ]; do sleep 1; done; killall exthost-runner; su - admin -c 'exthost-runner /.cloudide_shared/.ext-host/ext.host.proxy.js'\",\"name\":\"cloudide.extension.host\",\"priority\":2,\"privileged\":false},{\"commandLine\":\"nohup su - admin -c 'LANG=zh_CN.UTF-8;/tmp/installer/installers/exec-agent/exec-agent --addr=:9000' &\",\"name\":\"egumo.agent.exec\",\"priority\":3,\"privileged\":false,\"servers\":[{\"port\":\"9000\",\"protocol\":\"http\"}]}]","npm_config_ignore_scripts":"","npm_config_user_agent":"npm/6.14.6 node/v12.18.4 linux x64","npm_package_devDependencies_react_container_query":"^0.9.1","npm_package_devDependencies__types_uuid":"^3.4.7","npm_package_dependencies_path_list_to_tree":"^1.1.1","NVM_IOJS_ORG_MIRROR":"https://npm.alibaba-inc.com/mirrors/iojs","npm_config_cache_lock_wait":"10000","npm_package_devDependencies_rc_animate":"^2.4.4","npm_package_devDependencies_chalk":"^3.0.0","npm_package_devDependencies__types_node":"^10.17.58","npm_package_devDependencies__ali_ide_monaco_enhance":"2.1.3","npm_config_production":"","npm_package_devDependencies_nsfw_sync":"0.0.1","npm_package_dependencies_jsonwebtoken":"^8.5.1","npm_package_scripts_cov":"egg-bin cov --framework=@alipay/idegg","KUBERNETES_PORT_443_TCP_ADDR":"172.16.0.1","npm_config_send_metrics":"","npm_config_save_bundle":"","npm_package_devDependencies_umi_plugin_react":"^1.8.2","DefaultMask":"255.255.255.0","npm_config_umask":"0022","npm_config_node_options":"","npm_config_init_version":"1.0.0","npm_package_devDependencies_nzh":"^1.0.3","npm_package_devDependencies__ali_ide_extension_storage":"2.1.3","npm_package_dependencies_react_textarea_autosize":"^7.1.2","Sigma_DswCluster":"EU95-SQA-G1","KUBERNETES_PORT_443_TCP":"tcp://172.16.0.1:443","ALIPAY_SIGMA_CPUMODE":"cpushare","npm_config_init_author_name":"","npm_config_git":"git","npm_config_scope":"","npm_package_devDependencies_umi_request":"^1.0.7","npm_package_devDependencies__commitlint_config_conventional":"^8.3.4","npm_package_dependencies__ali_ide_express_file_server":"2.1.3","npm_package_scripts_clean":"ets clean","container":"placeholder","npm_config_unsafe_perm":"true","npm_config_tmp":"/tmp","npm_config_onload_script":"","npm_package_devDependencies_mini_svg_data_uri":"^1.1.3","npm_node_execpath":"/opt/taobao/tnvm/versions/alinode/v5.16.4/bin/node","npm_config_prefix":"/opt/taobao/tnvm/versions/alinode/v5.16.4","npm_config_link":"","npm_config_format_package_lock":"true","npm_package_dependencies__ali_ide_core_common":"2.1.3","NODE_ENV":"production","Path":"/release/node_modules/.bin:/release/.node/bin:/opt/taobao/tnvm/versions/alinode/v5.16.4/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/release/node_modules/.bin:/opt/taobao/tnvm/versions/alinode/v5.16.4/bin:/opt/taobao/git-2.22.0/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin","ENABLE_NODE_LOG":"YES","CLOUDIDE_STACK_NAME":"智能合约","CLOUDIDE_SCENARIO":"cloudide:repo","CLOUDIDE_ACTION_ID":"4f91f277-87a3-4f33-9919-7b414eb61571","VSCODE_NLS_CONFIG":"{\"locale\":\"zh-cn\",\"availableLanguages\":{\"*\":\"zh-cn\"},\"_languagePackId\":\"8847fa9369e6d5ba551846641cde50b3.zh-cn\",\"_translationsConfigFile\":\"/home/admin/.cloudide/workspace-storage/clp/8847fa9369e6d5ba551846641cde50b3.zh-cn/tcf.json\",\"_cacheRoot\":\"/home/admin/.cloudide/workspace-storage/clp/8847fa9369e6d5ba551846641cde50b3.zh-cn\",\"_resolvedLanguagePackCoreLocation\":\"/home/admin/.cloudide/workspace-storage/clp/8847fa9369e6d5ba551846641cde50b3.zh-cn/f06011ac164ae4dc8e753a3fe7f9549844d15e35\",\"_corruptedFile\":\"/home/admin/.cloudide/workspace-storage/clp/8847fa9369e6d5ba551846641cde50b3.zh-cn/corrupted.info\",\"_languagePackSupport\":true}","CXX":"/usr/bin/clang++-10","EXT_HOST_NODE_VERSION":"12.20.0","CARGO_HOME":"/usr/local/cargo","EXT_HOST_RUNNER_DIR":"/opt/taobao/.ext-host","EXT_HOST_RUNTIME":"DEV_CONTAINER","RUSTUP_HOME":"/usr/local/rustup","RUSTC_WRAPPER":"sccache","EXT_HOST_RUNNER_NODE_DIR":"/opt/taobao/.ext-host/node-v12.20.0","MAX_WORKERS":"2","SSL_CERT_FILE":"/etc/ssl/certs/ca-certificates.crt","CC":"clang-10","MAIL":"/var/mail/admin","DEBIAN_FRONTEND":"noninteractive","APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL":"true"},"relativePathBase":"/home/admin/xinglong.wangwxl/xinglong.wangwxl/rust-hello-world","_adapterSettings":{"displayFormat":"auto","showDisassembly":"auto","dereferencePointers":true,"suppressMissingSourceFiles":true,"evaluationTimeout":5,"consoleMode":"commands","sourceLanguages":null,"terminalPromptClear":null,"evaluateForHovers":true,"commandCompletions":true}}}

[2021-04-26T06:23:01.857Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":1,"event":"capabilities","body":{"capabilities":{"exceptionBreakpointFilters":[{"default":true,"filter":"rust_panic","label":"Rust: on panic"}],"supportTerminateDebuggee":true,"supportsCancelRequest":true,"supportsCompletionsRequest":true,"supportsConditionalBreakpoints":true,"supportsConfigurationDoneRequest":true,"supportsDataBreakpoints":true,"supportsDelayedStackTraceLoading":true,"supportsEvaluateForHovers":true,"supportsFunctionBreakpoints":true,"supportsGotoTargetsRequest":true,"supportsHitConditionalBreakpoints":true,"supportsLogPoints":true,"supportsReadMemoryRequest":true,"supportsRestartFrame":true,"supportsSetVariable":true}}}
[2021-04-26T06:23:01.963Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":2,"event":"initialized"}
[2021-04-26T06:23:01.964Z DEBUG codelldb::dap_codec] <-- {"type":"request","seq":3,"command":"runInTerminal","arguments":{"args":["/home/admin/.cloudide/_extensions/vscode-extensions.vscode-lldb-1.6.2-linux-x64/adapter/codelldb","terminal-agent","--port=37818"],"cwd":"","kind":"integrated","title":"run hello_world"}}
[2021-04-26T06:23:01.973Z DEBUG codelldb::dap_codec] --> {"seq":78,"type":"request","command":"setBreakpoints","arguments":{"source":{"name":"main.rs","path":"/home/admin/xinglong.wangwxl/xinglong.wangwxl/rust-hello-world/src/main.rs"},"sourceModified":false,"lines":[13],"breakpoints":[{"line":13}]}}

[2021-04-26T06:23:01.980Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":78,"success":true,"command":"setBreakpoints","body":{"breakpoints":[{"id":1,"line":13,"message":"Locations: 2","verified":true}]}}
[2021-04-26T06:23:01.987Z DEBUG codelldb::dap_codec] --> {"type":"response","seq":79,"command":"runInTerminal","request_seq":3,"success":true}

[2021-04-26T06:23:02.057Z DEBUG codelldb::dap_codec] --> {"seq":80,"type":"request","command":"setExceptionBreakpoints","arguments":{"filters":["rust_panic"]}}

[2021-04-26T06:23:02.057Z DEBUG codelldb::dap_codec] --> {"seq":81,"type":"request","command":"configurationDone","arguments":{}}

[2021-04-26T06:23:02.065Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":80,"success":true,"command":"setExceptionBreakpoints"}
[2021-04-26T06:23:02.065Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":81,"success":true,"command":"configurationDone"}
[2021-04-26T06:23:02.078Z DEBUG codelldb::dap_codec] --> {"seq":82,"type":"request","command":"threads","arguments":{}}

[2021-04-26T06:23:02.078Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":82,"success":true,"command":"threads","body":{"threads":[]}}
[2021-04-26T06:23:06.964Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":4,"event":"output","body":{"category":"stderr","output":"Failed to redirect stdio to a terminal. (Terminal agent did not respond within the allotted time.)\nDebuggee output will appear here.\n"}}
[2021-04-26T06:23:06.967Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":5,"event":"output","body":{"output":"Launching: /home/admin/xinglong.wangwxl/xinglong.wangwxl/rust-hello-world/target/debug/hello_world\n"}}
[2021-04-26T06:23:07.502Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":6,"event":"output","body":{"output":"Launched process 102072\n"}}
[2021-04-26T06:23:07.503Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":77,"success":true,"command":"launch"}
[2021-04-26T06:23:07.503Z DEBUG codelldb::debug_session] Debug event: 0x7fa300ab76c0 Event: broadcaster = 0x7fa2ffba8968 (lldb.target), type = 0x00000002 (modules-loaded), data = {ld-2.31.so}
[2021-04-26T06:23:07.503Z DEBUG codelldb::debug_session] Debug event: 0x7fa300ab0ae0 Event: broadcaster = 0x7fa2ffba8968 (lldb.target), type = 0x00000002 (modules-loaded), data = {[vdso](0x00007ffff7fcd000)}
[2021-04-26T06:23:07.503Z DEBUG codelldb::debug_session] Debug event: 0x7fa3007b9e50 Event: broadcaster = 0x7fa2ffba8968 (lldb.target), type = 0x00000001 (breakpoint-changed), data = {}
[2021-04-26T06:23:07.503Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":7,"event":"module","body":{"module":{"addressRange":"7FFFF7FCF000","id":"7FFFF7FCF000","name":"ld-2.31.so","path":"/usr/lib/x86_64-linux-gnu/ld-2.31.so","symbolFilePath":"/usr/lib/x86_64-linux-gnu/ld-2.31.so","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2021-04-26T06:23:07.503Z DEBUG codelldb::debug_session] Debug event: 0x7fa300accdf0 Event: broadcaster = 0x7fa2ffba8968 (lldb.target), type = 0x00000001 (breakpoint-changed), data = {}
[2021-04-26T06:23:07.503Z DEBUG codelldb::debug_session] Debug event: 0x7fa300acd000 Event: broadcaster = 0x7fa2ffba8968 (lldb.target), type = 0x00000001 (breakpoint-changed), data = {}
[2021-04-26T06:23:07.503Z DEBUG codelldb::debug_session] Debug event: 0x7fa300acd110 Event: broadcaster = 0x7fa2ffba8968 (lldb.target), type = 0x00000002 (modules-loaded), data = {hello_world}
[2021-04-26T06:23:07.503Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":8,"event":"module","body":{"module":{"addressRange":"7FFFF7FCD000","id":"7FFFF7FCD000","name":"[vdso]","path":"[vdso]","symbolStatus":"Symbols not found"},"reason":"new"}}
[2021-04-26T06:23:07.503Z DEBUG codelldb::debug_session] Debug event: 0x7fa300aa92c0 Event: broadcaster = 0x7fa3007a96b8 (lldb.process), type = 0x00000001 (state-changed), data = { process = 0x7fa3007a9680 (pid = 102072), state = running}
[2021-04-26T06:23:07.503Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":9,"event":"module","body":{"module":{"addressRange":"555555554000","id":"555555554000","name":"hello_world","path":"/home/admin/xinglong.wangwxl/xinglong.wangwxl/rust-hello-world/target/debug/hello_world","symbolFilePath":"/home/admin/xinglong.wangwxl/xinglong.wangwxl/rust-hello-world/target/debug/hello_world","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2021-04-26T06:23:07.503Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":10,"event":"continued","body":{"allThreadsContinued":true,"threadId":0}}
[2021-04-26T06:23:07.505Z DEBUG codelldb::debug_session] Debug event: 0x7fa2b80a69a0 Event: broadcaster = 0x7fa2ffba8968 (lldb.target), type = 0x00000002 (modules-loaded), data = {ld-linux-x86-64.so.2}
[2021-04-26T06:23:07.505Z DEBUG codelldb::debug_session] Debug event: 0x7fa2b800aab0 Event: broadcaster = 0x7fa2ffba8968 (lldb.target), type = 0x00000001 (breakpoint-changed), data = {}
[2021-04-26T06:23:07.505Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":11,"event":"module","body":{"module":{"addressRange":"FFFFFFFFFFFFFFFF","id":"FFFFFFFFFFFFFFFF","name":"ld-linux-x86-64.so.2","path":"/lib64/ld-linux-x86-64.so.2","symbolFilePath":"/lib64/ld-linux-x86-64.so.2","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2021-04-26T06:23:07.505Z DEBUG codelldb::debug_session] Debug event: 0x7fa2b80a69d0 Event: broadcaster = 0x7fa2ffba8968 (lldb.target), type = 0x00000001 (breakpoint-changed), data = {}
[2021-04-26T06:23:07.508Z DEBUG codelldb::debug_session] Debug event: 0x7fa2b80bf460 Event: broadcaster = 0x7fa2ffba8968 (lldb.target), type = 0x00000002 (modules-loaded), data = {libsysconf-alipay.so}
[2021-04-26T06:23:07.508Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":12,"event":"module","body":{"module":{"addressRange":"7FFFF7DC9000","id":"7FFFF7DC9000","name":"libsysconf-alipay.so","path":"/lib/libsysconf-alipay.so","symbolFilePath":"/lib/libsysconf-alipay.so","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2021-04-26T06:23:07.509Z DEBUG codelldb::debug_session] Debug event: 0x7fa2b80b42d0 Event: broadcaster = 0x7fa2ffba8968 (lldb.target), type = 0x00000002 (modules-loaded), data = {libgcc_s.so.1}
[2021-04-26T06:23:07.509Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":13,"event":"module","body":{"module":{"addressRange":"7FFFF7DA7000","id":"7FFFF7DA7000","name":"libgcc_s.so.1","path":"/lib/x86_64-linux-gnu/libgcc_s.so.1","symbolFilePath":"/lib/x86_64-linux-gnu/libgcc_s.so.1","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2021-04-26T06:23:07.560Z DEBUG codelldb::debug_session] Debug event: 0x7fa2b83a0b40 Event: broadcaster = 0x7fa2ffba8968 (lldb.target), type = 0x00000002 (modules-loaded), data = {libpthread.so.0}
[2021-04-26T06:23:07.560Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":14,"event":"module","body":{"module":{"addressRange":"7FFFF7D84000","id":"7FFFF7D84000","name":"libpthread.so.0","path":"/lib/x86_64-linux-gnu/libpthread.so.0","symbolFilePath":"/usr/lib/debug/.build-id/e5/4761f7b554d0fcc1562959665d93dffbebdaf0.debug","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2021-04-26T06:23:07.561Z DEBUG codelldb::debug_session] Debug event: 0x7fa2b83a0b70 Event: broadcaster = 0x7fa2ffba8968 (lldb.target), type = 0x00000002 (modules-loaded), data = {libdl.so.2}
[2021-04-26T06:23:07.561Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":15,"event":"module","body":{"module":{"addressRange":"7FFFF7D7E000","id":"7FFFF7D7E000","name":"libdl.so.2","path":"/lib/x86_64-linux-gnu/libdl.so.2","symbolFilePath":"/lib/x86_64-linux-gnu/libdl.so.2","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2021-04-26T06:23:07.569Z DEBUG codelldb::debug_session] Debug event: 0x7fa2b83a5ca0 Event: broadcaster = 0x7fa2ffba8968 (lldb.target), type = 0x00000002 (modules-loaded), data = {libc.so.6}
[2021-04-26T06:23:07.569Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":16,"event":"module","body":{"module":{"addressRange":"7FFFF7B8C000","id":"7FFFF7B8C000","name":"libc.so.6","path":"/lib/x86_64-linux-gnu/libc.so.6","symbolFilePath":"/lib/x86_64-linux-gnu/libc.so.6","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2021-04-26T06:23:07.569Z DEBUG codelldb::debug_session] Debug event: 0x7fa2b80b5090 Event: broadcaster = 0x7fa2ffba8968 (lldb.target), type = 0x00000002 (modules-loaded), data = {libsysconf-alipay.so, libgcc_s.so.1, libpthread.so.0, libdl.so.2, libc.so.6}
[2021-04-26T06:23:07.569Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":17,"event":"module","body":{"module":{"addressRange":"7FFFF7DC9000","id":"7FFFF7DC9000","name":"libsysconf-alipay.so","path":"/lib/libsysconf-alipay.so","symbolFilePath":"/lib/libsysconf-alipay.so","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2021-04-26T06:23:07.569Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":18,"event":"module","body":{"module":{"addressRange":"7FFFF7DA7000","id":"7FFFF7DA7000","name":"libgcc_s.so.1","path":"/lib/x86_64-linux-gnu/libgcc_s.so.1","symbolFilePath":"/lib/x86_64-linux-gnu/libgcc_s.so.1","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2021-04-26T06:23:07.569Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":19,"event":"module","body":{"module":{"addressRange":"7FFFF7D84000","id":"7FFFF7D84000","name":"libpthread.so.0","path":"/lib/x86_64-linux-gnu/libpthread.so.0","symbolFilePath":"/usr/lib/debug/.build-id/e5/4761f7b554d0fcc1562959665d93dffbebdaf0.debug","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2021-04-26T06:23:07.569Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":20,"event":"module","body":{"module":{"addressRange":"7FFFF7D7E000","id":"7FFFF7D7E000","name":"libdl.so.2","path":"/lib/x86_64-linux-gnu/libdl.so.2","symbolFilePath":"/lib/x86_64-linux-gnu/libdl.so.2","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2021-04-26T06:23:07.569Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":21,"event":"module","body":{"module":{"addressRange":"7FFFF7B8C000","id":"7FFFF7B8C000","name":"libc.so.6","path":"/lib/x86_64-linux-gnu/libc.so.6","symbolFilePath":"/lib/x86_64-linux-gnu/libc.so.6","symbolStatus":"Symbols loaded."},"reason":"new"}}
[2021-04-26T06:23:07.572Z DEBUG codelldb::debug_session] Debug event: 0x7fa260000ce0 Event: broadcaster = 0x7fa3007a96b8 (lldb.process), type = 0x00000004 (stdout-available), data = { process = 0x7fa3007a9680 (pid = 102072), state = running}
[2021-04-26T06:23:07.572Z DEBUG codelldb::debug_session] Debug event: 0x7fa260004940 Event: broadcaster = 0x7fa3007a96b8 (lldb.process), type = 0x00000004 (stdout-available), data = { process = 0x7fa3007a9680 (pid = 102072), state = running}
[2021-04-26T06:23:07.572Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":22,"event":"output","body":{"category":"stdout","output":"UTC now is: 2021-04-26 06:23:07.572115527 UTC\r\nUTC now in RFC 2822 is: Mon, 26 Apr 2021 06:23:07 +0000\r\nUTC now in RFC 3339 is: 2021-04-26T06:23:07.572115527+00:00\r\n"}}
[2021-04-26T06:23:07.572Z DEBUG codelldb::debug_session] Debug event: 0x7fa2600049f0 Event: broadcaster = 0x7fa3007a96b8 (lldb.process), type = 0x00000004 (stdout-available), data = { process = 0x7fa3007a9680 (pid = 102072), state = running}
[2021-04-26T06:23:07.573Z DEBUG codelldb::debug_session] Callback for breakpoint location 1.1: where = hello_world`main + 542 at main.rs:13:51, address = 0x0000555555561eae, resolved, hit count = 1 

[2021-04-26T06:23:07.573Z DEBUG codelldb::debug_session] Debug event: 0x7fa2ffd81f80 Event: broadcaster = 0x7fa3007a96b8 (lldb.process), type = 0x00000001 (state-changed), data = { process = 0x7fa3007a9680 (pid = 102072), state = stopped}
[2021-04-26T06:23:07.573Z DEBUG codelldb::dap_codec] <-- {"type":"event","seq":23,"event":"stopped","body":{"allThreadsStopped":true,"reason":"breakpoint","threadId":102072}}
[2021-04-26T06:23:07.611Z DEBUG codelldb::dap_codec] --> {"seq":83,"type":"request","command":"threads","arguments":{}}

[2021-04-26T06:23:07.611Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":83,"success":true,"command":"threads","body":{"threads":[{"id":102072,"name":"1: tid=102072 \"hello_world\""}]}}
[2021-04-26T06:23:07.622Z DEBUG codelldb::dap_codec] --> {"seq":84,"type":"request","command":"stackTrace","arguments":{"startFrame":0,"levels":1,"threadId":102072}}

[2021-04-26T06:23:07.624Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":84,"success":true,"command":"stackTrace","body":{"stackFrames":[{"column":51,"id":1001,"line":13,"name":"main","source":{"name":"main.rs","path":"/home/admin/xinglong.wangwxl/xinglong.wangwxl/rust-hello-world/src/main.rs"}}],"totalFrames":13}}
[2021-04-26T06:23:07.673Z DEBUG codelldb::dap_codec] --> {"seq":85,"type":"request","command":"stackTrace","arguments":{"startFrame":1,"levels":19,"threadId":102072}}

[2021-04-26T06:23:07.673Z DEBUG codelldb::disassembly] hello_world`lang_start_internal + 778 [inlined] std::panicking::try + 7 at panic.rs:431
    hello_world`lang_start_internal + 771 [inlined] std::panic::catch_unwind at rt.rs:51
    hello_world`lang_start_internal + 771 at rt.rs:51
[2021-04-26T06:23:07.674Z DEBUG codelldb::disassembly] hello_world`main + 28
[2021-04-26T06:23:07.674Z DEBUG codelldb::disassembly] libc.so.6`__libc_start_main + 243
[2021-04-26T06:23:07.675Z DEBUG codelldb::disassembly] hello_world`_start + 46
[2021-04-26T06:23:07.675Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":85,"success":true,"command":"stackTrace","body":{"stackFrames":[{"column":5,"id":1002,"line":227,"name":"call_once<fn(),()>","source":{"name":"function.rs","path":"/usr/local/rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs"}},{"column":18,"id":1003,"line":125,"name":"__rust_begin_short_backtrace<fn(),()>","source":{"name":"backtrace.rs","path":"/usr/local/rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys_common/backtrace.rs"}},{"column":18,"id":1004,"line":66,"name":"{{closure}}<()>","source":{"name":"rt.rs","path":"/usr/local/rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/rt.rs"}},{"column":0,"id":1005,"line":175,"name":"core::ops::function::impls::_$LT$impl$u20$core..ops..function..FnOnce$LT$A$GT$$u20$for$u20$$RF$F$GT$::call_once","presentationHint":"subtle","source":{"name":"@std::rt::lang_start_internal::h965c28c9ce06ee73","sourceReference":1000}},{"column":0,"id":1006,"line":173,"name":"std::panicking::try::do_call","presentationHint":"subtle","source":{"name":"@std::rt::lang_start_internal::h965c28c9ce06ee73","sourceReference":1000}},{"column":0,"id":1007,"line":173,"name":"std::panicking::try","presentationHint":"subtle","source":{"name":"@std::rt::lang_start_internal::h965c28c9ce06ee73","sourceReference":1000}},{"column":0,"id":1008,"line":173,"name":"std::panic::catch_unwind","presentationHint":"subtle","source":{"name":"@std::rt::lang_start_internal::h965c28c9ce06ee73","sourceReference":1000}},{"column":0,"id":1009,"line":173,"name":"lang_start_internal","presentationHint":"subtle","source":{"name":"@std::rt::lang_start_internal::h965c28c9ce06ee73","sourceReference":1000}},{"column":5,"id":1010,"line":65,"name":"lang_start<()>","source":{"name":"rt.rs","path":"/usr/local/rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/rt.rs"}},{"column":0,"id":1011,"line":10,"name":"main","presentationHint":"subtle","source":{"name":"@main","sourceReference":1001}},{"column":0,"id":1012,"line":64,"name":"__libc_start_main","presentationHint":"subtle","source":{"name":"@__libc_start_main","sourceReference":1002}},{"column":0,"id":1013,"line":15,"name":"_start","presentationHint":"subtle","source":{"name":"@_start","sourceReference":1003}}],"totalFrames":13}}
[2021-04-26T06:23:08.117Z DEBUG codelldb::dap_codec] --> {"seq":86,"type":"request","command":"scopes","arguments":{"frameId":1001}}

[2021-04-26T06:23:08.117Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":86,"success":true,"command":"scopes","body":{"scopes":[{"expensive":false,"name":"Local","variablesReference":1014},{"expensive":false,"name":"Static","variablesReference":1015},{"expensive":false,"name":"Global","variablesReference":1016},{"expensive":false,"name":"Registers","variablesReference":1017}]}}
[2021-04-26T06:23:08.129Z DEBUG codelldb::dap_codec] --> {"seq":87,"type":"request","command":"variables","arguments":{"variablesReference":1016,"filter":"indexed","start":0}}

[2021-04-26T06:23:08.129Z DEBUG codelldb::dap_codec] <-- {"type":"response","request_seq":87,"success":true,"command":"variables","body":{"variables":[]}}
vadimcn commented 3 years ago

Why the ptr is null? Is this exception related to my container environment?

Since it's your internal IDE, you are in a better position to know, I think :)

hacke2 commented 3 years ago

@vadimcn Can you give me a hint?😹

vadimcn commented 3 years ago

Honestly, I've no idea. ttyname is not supposed to fail unless the process is running detached from a TTY, which is unlikely in this case.

Try compiling a simple program that only calls ttyname and prints result, see if that fails too. If so, what's the error code in errno?

hacke2 commented 3 years ago

Thanks, this is my container system problem.

image