Bug 3395 - Frysk throw file name too long exception.
Summary: Frysk throw file name too long exception.
Status: NEW
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks: 3398
  Show dependency treegraph
 
Reported: 2006-10-19 11:42 UTC by Yong Zheng
Modified: 2006-11-28 16:43 UTC (History)
0 users

See Also:
Host: X86/X86_64/PPC64
Target:
Build:
Last reconfirmed:


Attachments
the dogtail script to reproduce the bug (963 bytes, text/x-python)
2006-10-19 11:44 UTC, Yong Zheng
Details
The debuggee for the dogtail script (94 bytes, text/x-csrc)
2006-10-19 11:45 UTC, Yong Zheng
Details

Note You need to log in before you can comment on or make changes to this bug.
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.