-
Notifications
You must be signed in to change notification settings - Fork 418
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
python tracing failure for a tensorflow program #1858
Labels
Milestone
Comments
The same crash happens with the following simple import statement. $ cat import-tensor.py
#!/usr/bin/env python3
import tensorflow
|
yihong0618
added a commit
to yihong0618/uftrace
that referenced
this issue
Feb 8, 2024
size, for issue namhyung#1858 import tensorflow will import a huge default packages, the `update_dbg_info` will fail casue Segmentation fault Signed-off-by: Yi Hong <zouzou0208@gmail.com>
yihong0618
added a commit
to yihong0618/uftrace
that referenced
this issue
Feb 8, 2024
size, for issue namhyung#1858 import tensorflow will import a huge default packages, the `update_dbg_info` will fail casue Segmentation fault Signed-off-by: yihong0618 <zouzou0208@gmail.com>
yihong0618
added a commit
to yihong0618/uftrace
that referenced
this issue
Feb 8, 2024
size, for issue namhyung#1858 import tensorflow will import a huge default packages, the `update_dbg_info` will fail casue Segmentation fault Signed-off-by: Yi Hong <zouzou0208@gmail.com>
@honggyukim
|
Hi @yihong0618, I also see that it work fine with your fix! Superb! |
yihong0618
added a commit
to yihong0618/uftrace
that referenced
this issue
Feb 8, 2024
For issue namhyung#1858: Importing tensorflow triggers the import of several large default packages, causing the update_dbg_info function to fail with a Segmentation Fault. Signed-off-by: Yi Hong <zouzou0208@gmail.com>
yihong0618
added a commit
to yihong0618/uftrace
that referenced
this issue
Feb 8, 2024
For issue namhyung#1858: the logic to increase uftrace_dbginfo_size should be new_hdr.offset >= uftrace_dbginfo_size instead of new_hdr.offset >= uftrace_symtab_size. Signed-off-by: Yi Hong <zouzou0208@gmail.com>
yihong0618
added a commit
to yihong0618/uftrace
that referenced
this issue
Feb 8, 2024
The logic to increase uftrace_dbginfo_size should be compared with uftrace_dbginfo_size instead of uftrace_symtab_size. This looks like a mistake due to confusion with get_new_sym_addr. Fixed: namhyung#1858 Signed-off-by: Yi Hong <zouzou0208@gmail.com> Signed-off-by: Honggyu Kim <honggyu.kp@gmail.com>
shen390s
pushed a commit
to shen390s/uftrace
that referenced
this issue
Feb 19, 2024
The logic to increase uftrace_dbginfo_size should be compared with uftrace_dbginfo_size instead of uftrace_symtab_size. This looks like a mistake due to confusion with get_new_sym_addr. Fixed: namhyung#1858 Signed-off-by: Yi Hong <zouzou0208@gmail.com> Signed-off-by: Honggyu Kim <honggyu.kp@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've recorded the following tensorflow program with uftrace.
It works fine without uftrace.
But it fails when running with uftrace as follows.
The text was updated successfully, but these errors were encountered: