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

crash if the path in log_file does not exist #278

Closed
leoadonia opened this issue Nov 14, 2024 · 0 comments · Fixed by #282
Closed

crash if the path in log_file does not exist #278

leoadonia opened this issue Nov 14, 2024 · 0 comments · Fixed by #282
Assignees

Comments

@leoadonia
Copy link
Collaborator

[Switching to Thread 0x7ff437400640 (LWP 43001)]
0x00007ff486c79524 in fileno_unlocked () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) bt
#0 0x00007ff486c79524 in fileno_unlocked () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00007ff486b96839 in ten_file_get_fd (fp=) at ../../../core/src/ten_utils/lib/sys/posix/file.c:30
#2 0x00007ff486ba9fb2 in get_log_fd (log_path=0x7ff4373f7e40 "/var/log/uap/rtsc.rte_stt.log") at ../../../core/src/ten_utils/log/output.c:55
#3 ten_log_set_output_to_file (self=self@entry=0x7ff486bf1500 <ten_global_log>, log_path=0x7ff4373f7e40 "/var/log/uap/rtsc.rte_stt.log") at ../../../core/src/ten_utils/log/output.c:90
#4 0x00007ff486baacc3 in ten_log_global_set_output_to_file (log_path=) at ../../../core/src/ten_utils/log/global.c:29
#5 0x00007ff48668ccaf in ten_app_init_log_file (self=, value=0x7ff414270100) at ../../../core/include/ten_utils/lib/string.h:250
#6 0x00007ff48668cf19 in ten_app_determine_ten_namespace_properties (ten_namespace_properties=, self=0xecfd40) at ../../../core/src/ten_runtime/app/metadata.c:152
#7 ten_app_handle_ten_namespace_properties (self=self@entry=0xecfd40) at ../../../core/src/ten_runtime/app/metadata.c:185
#8 0x00007ff4866bdb0c in ten_app_on_configure_done (ten_env=ten_env@entry=0xecf0f0) at ../../../core/src/ten_runtime/app/ten_env/on_xxx.c:138
#9 0x00007ff4866eca18 in ten_env_on_configure_done (self=self@entry=0xecf0f0, err=err@entry=0x7ff4373f92b0) at ../../../core/src/ten_runtime/ten_env/internal/on_xxx_done.c:35
#10 0x00007ff486e37672 in ten_env_proxy_notify_on_configure_done (ten_env=0xecf0f0, user_data=) at ../../../core/src/ten_runtime/binding/go/native/ten_env/ten_env_on_configure_done.c:29
#11 0x00007ff4866efac6 in ten_env_proxy_notify (self=0x7ff414001b30, notify_func=notify_func@entry=0x7ff486e37620 <ten_env_proxy_notify_on_configure_done>, user_data=user_data@entry=0x0, sync=sync@entry=false, err=err@entry=0x7ff4373f9c70)
at ../../../core/src/ten_runtime/ten_env_proxy/internal/notify.c:202
#12 0x00007ff486e37785 in ten_go_ten_env_on_configure_done (bridge_addr=) at ../../../core/src/ten_runtime/binding/go/native/ten_env/ten_env_on_configure_done.c:50
#13 0x0000000000473424 in runtime.asmcgocall () at /usr/local/go/src/runtime/asm_amd64.s:918

@halajohn halajohn self-assigned this Nov 15, 2024
@halajohn halajohn linked a pull request Nov 15, 2024 that will close this issue
@github-project-automation github-project-automation bot moved this to Done in Kanban Nov 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants