Bug 3395

Summary: Frysk throw file name too long exception.
Product: frysk Reporter: Yong Zheng <zhengyzy>
Component: generalAssignee: Unassigned <frysk-bugzilla>
Status: NEW ---    
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: X86/X86_64/PPC64 Target:
Build: Last reconfirmed:
Bug Depends on:    
Bug Blocks: 3398    
Attachments: the dogtail script to reproduce the bug
The debuggee for the dogtail script

Description Yong Zheng 2006-10-19 11:42:19 UTC
In Frysk Startup Manager, if you click the "copy" for many times(maybe more than
30 times?), you will get file name too long exception like the following:

java.io.FileNotFoundException:
/home/zhengyong/.frysk/Sessions/FryskSessionCopyException_(copy)_(copy)_(copy)_(copy)_(copy)_(copy)_(copy)_(copy)_(copy)_(copy)_(copy)_(copy)_(copy)_(copy)_(copy)_(copy)_(copy)_(copy)_(copy)_(copy)_(copy)_(copy)_(copy)_(copy)_(copy)_(copy)_(copy)_(copy)_(copy)_(copy)_(copy)_(copy)_(copy)_(copy)_(copy)_(copy)_(copy)_(copy)_(copy)_(copy)
(File name too long)
   at gnu.java.nio.channels.FileChannelImpl.open(libgcj.so.7)
   at gnu.java.nio.channels.FileChannelImpl.<init>(libgcj.so.7)
   at java.io.FileOutputStream.<init>(libgcj.so.7)
   at java.io.FileOutputStream.<init>(libgcj.so.7)
   at java.io.FileOutputStream.<init>(libgcj.so.7)
   at java.io.FileWriter.<init>(libgcj.so.7)
   at frysk.gui.monitor.ObjectFactory.exportNode(FryskGui)
   at frysk.gui.sessions.SessionManager.save(FryskGui)
   at frysk.gui.SessionManagerGui$8.buttonEvent(FryskGui)
   at org.gnu.gtk.Button.fireButtonEvent(libgtkjava-2.8.so)
   at org.gnu.gtk.Button.handleClick(libgtkjava-2.8.so)
   at org.gnu.gtk.Gtk.gtk_main(libgtkjava-2.8.so)
   at frysk.gui.Gui.gui(FryskGui)
   at frysk.gui.FryskGui.main(FryskGui)

The bug is not so bad but maybe frysk should give user some notification(by one
message box?)but not just print the exception info in the background.

One dogtail script is written to reproduce this bug. Before running the dogtail
script, please run the loop.c first. And before you run the dogtail script, you
should modify the frysk's path and loop program's path in the script according
to your local environment. See the attach.
Comment 1 Yong Zheng 2006-10-19 11:44:35 UTC
Created attachment 1376 [details]
the dogtail script to reproduce the bug
Comment 2 Yong Zheng 2006-10-19 11:45:25 UTC
Created attachment 1377 [details]
The debuggee for the dogtail script
Comment 3 Andrew Cagney 2006-10-24 17:00:38 UTC
Just FYI,  It should realise that it's copying a copy and start using "(copy
2)", et.al.