armdbg creating log files in /tmp/ armdbg_support_log_files

Hi,

I am using armdbg in Unix environment  to debug the hardware in the shell scripts. I noticed that armdbg creates log files in /tmp/armdbg_support_log_files even if the log_file is explicitly defined for it. The problem is that if there are multiple users sharing the environment the created folder has the first user as the owner and second user can not run the tool and gets the following error:

[date,time] main ERROR FileManager (/tmp/armdbg_support_log_files/armdbg_support_log_file_<date,time>.log) java.io.FileNotFoundException: /tmp/armdbg_support_log_files/armdbg_support_log_file_<date,time>.log (Permission denied) java.io.FileNotFoundException: /tmp/armdbg_support_log_files/armdbg_support_log_file_<date,time>.log (Permission denied)
	at java.base/java.io.FileOutputStream.open0(Native Method)
	at java.base/java.io.FileOutputStream.open(FileOutputStream.java:289)
	at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:230)
	at org.apache.logging.log4j.core.appender.FileManager$FileManagerFactory.createManager(FileManager.java:438)
	at org.apache.logging.log4j.core.appender.FileManager$FileManagerFactory.createManager(FileManager.java:422)
	at org.apache.logging.log4j.core.appender.AbstractManager.getManager(AbstractManager.java:114)
	at org.apache.logging.log4j.core.appender.OutputStreamManager.getManager(OutputStreamManager.java:100)
	at org.apache.logging.log4j.core.appender.FileManager.getFileManager(FileManager.java:182)
	at org.apache.logging.log4j.core.appender.FileAppender$Builder.build(FileAppender.java:96)
	at com.arm.debug.logging.LogFactory.createSupportLogFile(LogFactory.java:389)
	at com.arm.debug.cli.Launcher.run(Launcher.java:1195)
	at com.arm.debug.cli.Launcher.main(Launcher.java:696)
	at com.arm.debug.launcher.EclipseRunner.run(EclipseRunner.java:89)
	at com.arm.debug.launcher.EclipseRunner.start(EclipseRunner.java:96)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:402)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:651)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:588)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1459)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1432)

Is there any way to change the log files destination location?

Regards
Amir
Parents
  • Hi

    My name is Stephen and I work at Arm.

    Sorry to hear that you've hit this issue, but thanks for reporting it.  We are investigating.

    Unfortunately, there is no way to change the log files destination location.

    A workaround is to make that single folder accessible to everyone.  
    Please could the first user run the command:

    chmod -R 777 /tmp/armdbg_support_log_files

    Do let me know if that helps.

    Stephen

Reply
  • Hi

    My name is Stephen and I work at Arm.

    Sorry to hear that you've hit this issue, but thanks for reporting it.  We are investigating.

    Unfortunately, there is no way to change the log files destination location.

    A workaround is to make that single folder accessible to everyone.  
    Please could the first user run the command:

    chmod -R 777 /tmp/armdbg_support_log_files

    Do let me know if that helps.

    Stephen

Children