Please note: We are aware of an issue affecting replies on the Arm Community forums, which may not be loading as expected.

We apologize for any inconvenience and appreciate your patience while we investigate and work to resolve the issue.

Thank you for your understanding.


This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

aga-daemon: Aborted (core dumped) at runtime

Hi All,

I using aga-daemon in Linux base. but i will see Aborted (core dumped) at last time.

Env:

  • DS 2021.1  Graphic Analyzer 5.8.0
  • Linux 4.9.119 #1 SMP PREEMPT Fri Dec 30 09:56:16 UTC 2022 armv7l GNU/Linux
  • Libs

    Libs

    板子

    librt.so.1

    librt-2.31.so

    libatomic.so.1

    libatomic.so.1.2.0

    libdl.so.2

    libdl-2.31.so

    libm.so.6

    libm-2.31.so

    libgcc_s.so.1

    libgcc_s.so.1

    libpthread.so.0

    libpthread-2.31.so

    libc.so.6

    libc-2.31.so

    ld-linux-armhf.so.3

    ld-2.31.so

Error Msg:

  • Only ./aga-daemon
    terminate called after throwing an instance of 'std::bad_cast'
      what():  std::bad_cast
    Aborted (core dumped)
  • libEGL & libGLES* link to libinterceptor + aga-daemon
    terminate called without an active exception
    Aborted (core dumped)

Thank you

Haru Zheng

Parents
  • Hi Haru,

    This is Mark from Arm. I'm really sorry you are continuing to have problems.

    As a DS customer, you are entitled to raise support tickets. We need to continue this discussion in a support ticket, so please would you create a ticket about this issue in order for us to help you further?


    That said, I will briefly address potential causes of this issue in this forum. You have given us three ways in which you ran "aga-daemon". Only one of them seems to be correct.

    The normal correct approach was simply typing "./aga-daemon". In your new support ticket, could you confirm that you do not have symbolic links set up to "libinterceptor.so" (as you do for your third way of running "aga-daemon")? Again in the support ticket, could also you send us the environment in which you are running "aga-daemon" (type "env" at the command line)? In particular, can you confirm that you do not have special settings of LD_LIBRARY_PATH and/or LD_PRELOAD? If that doesn't help us, we will probably want to analyse the core file produced when "aga-daemon" crashes.

    You also gave two incorrect ways of running "aga-daemon":

    a. You ran the daemon by typing "LD_LIBRARY_PATH=/lib:/usr/lib LD_PRELOAD=./libinterceptor.so ./aga-daemon". This is incorrect: "libinterceptor.so" must *not* be pre-loaded when you run aga-daemon.

    b. You also set up some symbolic links, then set LD_LIBRARY_PATH to "/lib:/usr/lib" and LD_PRELOAD to point at "libinterceptor.so". This is incorrect: again, LD_PRELOAD must not point at "libinterceptor.so" when "aga-daemon" is running. I'm not sure whether this approach is based upon section 7.1 of the user documentation. To be clear, that section is not relevant to running "aga-daemon" and should not be used for that purpose. Instead, it is speaking about another way of running monitored applications. (Incidentally, your settings of LD_PRELOAD / LD_LIBRARY_PATH are not consistent with the instructions in that section.)

    Thanks and regards,

    Mark

Reply
  • Hi Haru,

    This is Mark from Arm. I'm really sorry you are continuing to have problems.

    As a DS customer, you are entitled to raise support tickets. We need to continue this discussion in a support ticket, so please would you create a ticket about this issue in order for us to help you further?


    That said, I will briefly address potential causes of this issue in this forum. You have given us three ways in which you ran "aga-daemon". Only one of them seems to be correct.

    The normal correct approach was simply typing "./aga-daemon". In your new support ticket, could you confirm that you do not have symbolic links set up to "libinterceptor.so" (as you do for your third way of running "aga-daemon")? Again in the support ticket, could also you send us the environment in which you are running "aga-daemon" (type "env" at the command line)? In particular, can you confirm that you do not have special settings of LD_LIBRARY_PATH and/or LD_PRELOAD? If that doesn't help us, we will probably want to analyse the core file produced when "aga-daemon" crashes.

    You also gave two incorrect ways of running "aga-daemon":

    a. You ran the daemon by typing "LD_LIBRARY_PATH=/lib:/usr/lib LD_PRELOAD=./libinterceptor.so ./aga-daemon". This is incorrect: "libinterceptor.so" must *not* be pre-loaded when you run aga-daemon.

    b. You also set up some symbolic links, then set LD_LIBRARY_PATH to "/lib:/usr/lib" and LD_PRELOAD to point at "libinterceptor.so". This is incorrect: again, LD_PRELOAD must not point at "libinterceptor.so" when "aga-daemon" is running. I'm not sure whether this approach is based upon section 7.1 of the user documentation. To be clear, that section is not relevant to running "aga-daemon" and should not be used for that purpose. Instead, it is speaking about another way of running monitored applications. (Incidentally, your settings of LD_PRELOAD / LD_LIBRARY_PATH are not consistent with the instructions in that section.)

    Thanks and regards,

    Mark

Children
  • Hi Mark

    As a DS customer, you are entitled to raise support tickets. We need to continue this discussion in a support ticket, so please would you create a ticket about this issue in order for us to help you further?

    I unable to report support tickets, because I not has way with ARM Support, i just has agent email, but it not reply to me. So I report to here.

    type "env" at the command line

    My env:

    # env
    SHELL=/bin/sh
    TERM=xterm
    HUSHLOGIN=FALSE
    OLDPWD=/home/root
    USER=root
    LD_LIBRARY_PATH=/usr/lib:/usr/lib/realtek
    SYSTEMD_PAGER=/bin/cat
    MAIL=/var/spool/mail/root
    PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
    PWD=/nvram/armds/hf
    QT_QPA_EGLFS_HIDECURSOR=1
    EDITOR=vi
    QT_QPA_FONTDIR=/usr/share/fonts
    PS1=\u@\h:\w\$
    SHLVL=1
    HOME=/home/root
    LOGNAME=root
    RMF_USE_SOUPHTTPSRC=true
    _=/usr/bin/env

    That said, I will briefly address potential causes of this issue in this forum. You have given us three ways in which you ran "aga-daemon". Only one of them seems to be correct.

    Not, it(correct) is not show GPU info, and it is unable to open library.

    1672305110282: aga_daemon[2471]: [2471]:ERROR: DlOpenInterceptor: Unable to open library: ./aga-daemon
    1672305110292: aga_daemon[2471]: [2471]:ERROR: DeviceInfo: Unable to load GPU information (GL_VENDOR, GL_RENDERER, GL_VERSION) for this device.

    a. You ran the daemon by typing "LD_LIBRARY_PATH=/lib:/usr/lib LD_PRELOAD=./libinterceptor.so ./aga-daemon". This is incorrect: "libinterceptor.so" must *not* be pre-loaded when you run aga-daemon.

    This like *2.4.3 Connect the host and the target*, but it will be got "terminate called after throwing an instance of 'std::bad_cast'".

    b. You also set up some symbolic links, then set LD_LIBRARY_PATH to "/lib:/usr/lib" and LD_PRELOAD to point at "libinterceptor.so". This is incorrect: again, LD_PRELOAD must not point at "libinterceptor.so" when "aga-daemon" is running. I'm not sure whether this approach is based upon section 7.1 of the user documentation. To be clear, that section is not relevant to running "aga-daemon" and should not be used for that purpose. Instead, it is speaking about another way of running monitored applications. (Incidentally, your settings of LD_PRELOAD / LD_LIBRARY_PATH are not consistent with the instructions in that section.)

    I try to section 7.1, but it is not work. like:

    a. LD_LIBRARY_PATH=/lib:/usr/lib:/nvram/armds/hf/libinterceptor.so MGD_LIBRARY_PATH=/usr/lib /nvram/armds/hf/aga-daemon

    # LD_LIBRARY_PATH=/lib:/usr/lib:/nvram/armds/hf/libinterceptor.so MGD_LIBRARY_PATH=/usr/lib /nvram/armds/hf/aga-daemon
    1673431874684: aga_daemon[17193]: [17193]:INFO: Main: The Graphics Analyzer daemon is starting
    Daemon is version: D027
    Socket is: \0aga-daemon
    terminate called after throwing [92424.862254] audit_printk_skb: 33 callbacks suppressed
    an instance of 'std::bad_cast'
    [92424.862261] audit: type=1701 audit(1673431874.701:178): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=17193 comm="aga-daemon" exe="/nvram/armds/hf/aga-daemon" sig=6
      what():  std::bad_cast
    Aborted (core dumped)

    b. libEGL & libGLES* link to libinterceptor + aga-daemon

    # ln -s libinterceptor.so libEGL.so;
    # ln -s libinterceptor.so libEGL.so.1
    # ln -s libinterceptor.so libGLESv1_CM.so
    # ln -s libinterceptor.so libGLESv1_CM.so.1
    # ln -s libinterceptor.so libGLESv2.so
    # ln -s libinterceptor.so libGLESv2.so.2
    # LD_LIBRARY_PATH=/lib:/usr/lib:/nvram/armds/hf/libinterceptor.so MGD_LIBRARY_PATH=/usr/lib /nvram/armds/hf/aga-daemon
    1673431931038: aga_daemon[17971]: [17971]:INFO: Main: The Graphics Analyzer daemon is starting
    Daemon is version: D027
    Socket is: \0aga-daemon
    1673431931057: aga_daemon[17971]: [17971]:ERROR: DlOpenInterceptor: Unable to open library: /nvram/armds/hf/aga-daemon
    1673431931057: aga_daemon[17971]: [17971]:ERROR: DlOpenInterceptor: Unable to open library: /nvram/armds/hf/aga-daemon
    1673431931057: aga_daemon[17971]: [17971]:ERROR: DlOpenInterceptor: Unable to op[92481.244446] audit: type=1701 audit(1673431931.079:179): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=17971 comm="aga-daemon" exe="/nvram/armds/hf/aga-daemon" sig=6
    en library: /nvram/armds/hf/aga-daemon
    1673431931057: aga_daemon[17971]: [17971]:ERROR: DlOpenInterceptor: Unable to open library: /nvram/armds/hf/aga-daemon
    1673431931057: aga_daemon[17971]: [17971]:ERROR: DlOpenInterceptor: Unable to open library: /nvram/armds/hf/aga-daemon
    1673431931058: aga_daemon[17971]: [17971]:ERROR: DlOpenInterceptor: Unable to open library: /nvram/armds/hf/aga-daemon
    1673431931058: aga_daemon[17971]: [17971]:ERROR: DlOpenInterceptor: Unable to open library: /nvram/armds/hf/aga-daemon
    1673431931058: aga_daemon[17971]: [17971]:ERROR: DlOpenInterceptor: Unable to open library: /nvram/armds/hf/aga-daemon
    1673431931058: aga_daemon[17971]: [17971]:ERROR: DlOpenInterceptor: Unable to open library: /nvram/armds/hf/aga-daemon
    1673431931058: aga_daemon[17971]: [17971]:ERROR: DlOpenInterceptor: Unable to open library: /nvram/armds/hf/aga-daemon
    1673431931058: aga_daemon[17971]: [17971]:ERROR: DlOpenInterceptor: Unable to open library: /nvram/armds/hf/aga-daemon
    terminate called without an active exception
    Aborted (core dumped)

     

    Thanks. But I not has any-way to report ticket, like jira.

    Haru

  • You can open a support case from here:

    developer.arm.com/support

    Kind regards, 
    Pete