Hi All,
I using aga-daemon in Linux base. but i will see Aborted (core dumped) at last time.
Env:
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
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:
terminate called after throwing an instance of 'std::bad_cast' what(): std::bad_cast Aborted (core dumped)
terminate called without an active exception Aborted (core dumped)
Thank you
Haru Zheng
Hi Haru,
I am Ghufran and I work here at Arm. Thank you for reporting the error. Can you please confirm which target binaries you are running? It will also be useful if you can provide the commands.
Is it possible for you to try a newer version of Graphics Analyzer? the latest version is 5.12.Thanks,
Ghufran
Hi Ghufran
> Can you please confirm which target binaries you are running?
C:\Program Files\Arm\Development Studio 2021.1\sw\graphics_analyzer\target\linux\arm\32-bit_hardfloat
# LD_LIBRARY_PATH=/lib:/usr/lib LD_PRELOAD=./libinterceptor.so ./aga-daemon 1672305110263: aga_daemon[2471]: [2471]:INFO: Main: The Graphics Analyzer daemon is starting Daemon is version: D027 Socket is: \0aga-daemon 1672305110281: aga_daemon[2471]: [2471]:ERROR: DlOpenInterceptor: Unable to open library: ./aga-daemon 1672305110281: aga_daemon[2471]: [2471]:ERROR: DlOpenInterceptor: Unable to open library: ./aga-daemon 1672305110281: aga_daemon[2471]: [2471]:ERROR: DlOpenInterceptor: Unable to open library: ./aga-daemon 1672305110281: aga_daemon[2471]: [2471]:ERROR: DlOpenInterceptor: Unable to open library: ./aga-daemon 1672305110281: aga_daemon[2471]: [2471]:ERROR: DlOpenInterceptor: Unable to open library: ./aga-daemon 1672305110282: aga_daemon[2471]: [2471]:ERROR: DlOpenInterceptor: Unable to open library: ./aga-daemon 1672305110282: aga_daemon[2471]: [2471]:ERROR: DlOpenInterceptor: Unable to open library: ./aga-daemon 1672305110282: aga_daemon[2471]: [2471]:ERROR: DlOpenInterceptor: Unable to open library: ./aga-daemon 1672305110282: aga_daemon[2471]: [2471]:ERROR: DlOpenInterceptor: Unable to open library: ./aga-daemon 1672305110282: aga_daemon[2471]: [2471]:ERROR: DlOpenInterceptor: Unable to open library: ./aga-daemon 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. 1672305110292: aga_daemon[2471]: [2471]:ERROR: DeviceInfo: eglInitialize, EGL error: 0x3001 1672305110293: aga_daemon[2471]: [2471]:INFO: HostConnection: Initializing host connection 1672305110293: aga_daemon[2471]: [2471]:TRACE: SocketLinux: Waiting for connections on Unix (PF_UNIX) socket bound as server to abstract Unix socket "\0aga-daemon" with socket no. 1 / FD 7 1672305110293: aga_daemon[2471]: [2471]:INFO: InterceptorListener: Initializing interceptor listener 1672305110293: aga_daemon[2471]: [2471]:INFO: Daemon: Daemon initializing 1672305110293: aga_daemon[2471]: [2494]:INFO: HostConnection: Host connection listening 1672305110293: aga_daemon[2471]: [2495]:INFO: InterceptorListener: Interceptor Listener waiting for connections 1672305110293: aga_daemon[2471]: [2494]:TRACE: SocketLinux: Waiting for connections on Internet ver.6 (PF_INET6) socket bound as server to :: with socket no. 0 / FD 9 1672305110294: aga_daemon[2471]: [2496]:INFO: Daemon: Daemon running 1672305110294: aga_daemon[2471]: [2496]:INFO: Daemon: Daemon is version: D027
> It will also be useful if you can provide the commands.
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 LD_PRELOAD=./libinterceptor.so ./aga-daemon
> Is it possible for you to try a newer version of Graphics Analyzer? the latest version is 5.12.
# ./aga-daemon 1673318461953: aga_daemon[969]: [969]:INFO: Main: The Graphics Analyzer daemon is starting Daemon is version: D032 Socket is: \0aga-daemon terminate called after throwing an instance of 'std::bad_cast' what(): std::bad_cast Aborted (core dumped)
# LD_LIBRARY_PATH=/lib:/usr/lib LD_PRELOAD=./libinterceptor.so ./aga-daemon 1673318482379: aga_daemon[1139]: [1139]:INFO: Main: The Graphics Analyzer daemon is starting Daemon is version: D032 Socket is: \0aga-daemon 1673318482395: aga_daemon[1139]: [1139]:ERROR: DlOpenInterceptor: Unable to open library: ./aga-daemon 1673318482395: aga_daemon[1139]: [1139]:ERROR: DlOpenInterceptor: Unable to open library: ./aga-daemon 1673318482395: aga_daemon[1139]: [1139]:ERROR: DlOpenInterceptor: Unable to open library: ./aga-daemon 1673318482395: aga_daemon[1139]: [1139]:ERROR: DlOpenInterceptor: Unable to open library: ./aga-daemon 1673318482396: aga_daemon[1139]: [1139]:ERROR: DlOpenInterceptor: Unable to open library: ./aga-daemon 1673318482396: aga_daemon[1139]: [1139]:ERROR: DlOpenInterceptor: Unable to open library: ./aga-daemon 1673318482396: aga_daemon[1139]: [1139]:ERROR: DlOpenInterceptor: Unable to open library: ./aga-daemon 1673318482396: aga_daemon[1139]: [1139]:ERROR: DlOpenInterceptor: Unable to open library: ./aga-daemon 1673318482396: aga_daemon[1139]: [1139]:ERROR: DlOpenInterceptor: Unable to open library: ./aga-daemon 1673318482396: aga_daemon[1139]: [1139]:ERROR: DlOpenInterceptor: Unable to open library: ./aga-daemon 1673318482396: aga_daemon[1139]: [1139]:ERROR: DlOpenInterceptor: Unable to open library: ./aga-daemon 1673318482411: aga_daemon[1139]: [1139]:DEBUG: DeviceInfo: GL_VENDOR = ARM, GL_RENDERER = Mali-G31, GL_VERSION = OpenGL ES 3.2 v1.r29p0-01eac0.c395bfb72e7d98618c6deddd220ea9e5, OS_ARCHITECTURE = 32-bit 1673318482412: aga_daemon[1139]: [1139]:INFO: HostConnection: Initializing host connection 1673318482413: aga_daemon[1139]: [1139]:ERROR: Main: Failed to bind server socket: errno = 98 (Address already in use) 1673318482413: aga_daemon[1139]: [1139]:ERROR: Main: Error initialising daemon - is Graphics Analyzer daemon already running?
# 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 LD_PRELOAD=./libinterceptor.so ./aga-daemon 1673318683135: aga_daemon[4129]: [4129]:INFO: Main: The Graphics Analyzer daemon is starting Daemon is version: D032 Socket is: \0aga-daemon 1673318683138: aga_interceptor[4129]: [4129]:ERROR: PassThroughClApi: Could not find any libraries for 'cl'. Looked in the following places: {/usr/lib/libOpenCL.so, /usr/lib64/libOpenCL.so, /usr/lib32/libOpenCL.so, libOpenCL.so} 1673318683155: aga_interceptor[4129]: [4129]:INFO: PassThroughEglApi: Found the following libraries for 'egl': {/usr/lib/libEGL.so, libEGL.so} 1673318683157: aga_interceptor[4129]: [4129]:INFO: PassThroughGlesApi: Found the following libraries for 'gles': {/usr/lib/libGLESv2.so, /usr/lib/libGLESv1_CM.so, libGLESv2.so, libGLESv1_CM.so} 1673318683169: aga_interceptor[4129]: [4129]:TRACE: SocketLinux: Unix (PF_UNIX) socket connected to abstract Unix socket "\0aga-daemon" with socket no. 0 / FD 3 1673318683169: aga_daemon[26894]: [26903]:TRACE: SocketLinux: Accepted connection from process with PID 4129 on Unix (PF_UNIX) socket (new socket no. 4 / FD 12; parent socket no. 1 / FD 9) 1673318683169: aga_daemon[26894]: [26903]:INFO: InterceptorConnection: Initializing interceptor connection 1673318683169: aga_daemon[26894]: [26903]:INFO: Daemon: onInterceptorConnected 1673318683169: aga_daemon[26894]: [26903]:INFO: Protocol: Sending host detached command to Interceptor for process 4129 1673318683169: aga_interceptor[4129]: [4129]:WARNING: GatorConnection: Not connected to gatord, the application will run normally but Streamline will not collect annotations. To collect annotations, please verify you are running gatord 5.22 or later and that SELinux is disabled. 1673318683169: aga_daemon[26894]: [4131]:INFO: InterceptorConnection: Interceptor connection waiting 1673318683172: aga_interceptor[4129]: [4129]:ERROR: Interceptor: MGD failed to read the process whitelist file: basic_ios::clear: iostream error 1673318683172: aga_interceptor[4129]: [4129]:INFO: MarshallerBase: Connecting to daemon. Sending header... 1673318683173: aga_interceptor[4129]: [4129]:INFO: Interceptor: Interceptor loaded for 4129: ./aga-daemon 1673318683173: aga_daemon[26894]: [4131]:WARNING: InterceptorConnection: InterceptorConnection::run threw an exception: Interceptor connection with version D032 refused. Only version D027 is accepted. Please make sure that the Graphics Analyzer daemon and Graphics Analyzer interceptor are from the same Graphics Analyzer release. 1673318683173: aga_daemon[26894]: [4131]:WARNING: InterceptorConnection: If a traced application was just terminated, this message is expected and can be ignored. 1673318683173: aga_interceptor[4129]: [4129]:INFO: Interceptor: Activating tracing 1673318683173: aga_daemon[26894]: [4131]:INFO: Daemon: onInterceptorDisconnected 1673318683173: aga_daemon[26894]: [4131]:INFO: Daemon: Sending process ended message to host for pid: 4129 1673318683173: aga_daemon[26894]: [4131]:TRACE: SocketLinux: Closing Unix (PF_UNIX) socket with socket no. 4 / FD 12 1673318683173: aga_daemon[26894]: [4131]:INFO: InterceptorConnection: Interceptor connection closed 1673318683173: aga_interceptor[4129]: [4133]:DEBUG: SocketLinux: Remote closed connection (but may still be data to read) on Unix (PF_UNIX) socket connected to abstract Unix socket "\0aga-daemon" with socket no. 0 / FD 3 1673318683173: aga_interceptor[4129]: [4133]:DEBUG: SocketLinux: Remote closed connection (but may still be data to read) on Unix (PF_UNIX) socket connected to abstract Unix socket "\0aga-daemon" with socket no. 0 / FD 3 1673318683173: aga_interceptor[4129]: [4133]:INFO: ListenerThread: Received new message: C:1 E:0 F:0 1673318683174: aga_interceptor[4129]: [4133]:INFO: Interceptor: Host detached 1673318685190: aga_interceptor[4129]: [4133]:DEBUG: SocketLinux: Remote closed connection (but may still be data to read) on Unix (PF_UNIX) socket connected to abstract Unix socket "\0aga-daemon" with socket no. 0 / FD 3 terminate called without an active exception Aborted (core dumped)
Thanks.
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
Hi Mark
Mark Thurman said: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.
Mark Thurman said: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
Mark Thurman said: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.
Mark Thurman said: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'".
Mark Thurman said: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.
You can open a support case from here:
developer.arm.com/support
Kind regards, Pete
Hi Pete
https://services.arm.com/support/s/case/5004L00000RauM9QAJ/agadaemon-aborted-core-dumped-at-runtime
Thanks