Bug 3533

Summary: can't run funit when no home directory
Product: frysk Reporter: Andrew Cagney <cagney>
Component: generalAssignee: Unassigned <frysk-bugzilla>
Status: NEW ---    
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Bug Depends on:    
Bug Blocks: 2234, 2242    

Description Andrew Cagney 2006-11-16 22:13:51 UTC
Last login: Thu Nov 16 05:48:31 2006 from vpn-15-16.rdu.redhat.com
Could not chdir to home directory /home/cygnus/cagney: No such file or directory
-bash-3.1$ /usr/libexec/frysk/funit
Error upon logging: OPEN_FAILURE
java.io.FileNotFoundException:
/home/cygnus/cagney/.frysk/logs/frysk_core_event.log (No such file or directory)
   at gnu.java.nio.channels.FileChannelImpl.open(libgcj.so.7rh)
   at gnu.java.nio.channels.FileChannelImpl.<init>(libgcj.so.7rh)
   at gnu.java.nio.channels.FileChannelImpl.create(libgcj.so.7rh)
   at java.io.FileOutputStream.<init>(libgcj.so.7rh)
   at java.util.logging.FileHandler.createFileStream(libgcj.so.7rh)
   at java.util.logging.FileHandler.<init>(libgcj.so.7rh)
   at java.util.logging.FileHandler.<init>(libgcj.so.7rh)
   at frysk.EventLogger.get(funit)
   at frysk.junit.Runner.<clinit>(funit)
   at java.lang.Class.initializeClass(libgcj.so.7rh)
   at funit.main(funit)
Comment 1 Phil Muldoon 2006-11-16 22:26:53 UTC
Looks like that loggeer has a FileHandler attached to it that tries to write to
the location outlined above. No home, no location. This probably affects all
core/ui loggers.
Comment 2 Andrew Cagney 2006-11-16 22:27:22 UTC
path was /home/foo/cagney but directory /home/cagney present