https://bugzilla.novell.com/show_bug.cgi?id=816571
https://bugzilla.novell.com/show_bug.cgi?id=816571#c9
Don Hughes changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |NEW
InfoProvider|support@microtechniques.com |
--- Comment #9 from Don Hughes 2013-05-29 01:16:38 UTC ---
Here is the results of the strace:
open("/tmp/rexref.work3", O_RDWR) = 5
open("/tmp/rexref.work3", O_RDWR) = -1 ENOENT (No such file or directory)
Here are the relevant bits from a much larger program:
#! /usr/local/sbin/rexx
rexwrk3 = "/tmp/rexref.work3"
CALL LINEOUT rexwrk3,"Write some data to the file"
"rm" rexwrk3
CALL LINEOUT rexwrk3
rc = STREAM(rexwrk3,'C','CLOSE')
/* Process the file */
Normally the "rm" would come before the write, but a code refactoring
incorrectly placed it after. Although closing a deleted file may be an error,
the expected result would be an empty file, or, at worst, an error return, not
a segmentation fault.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.