[Mono-bugs] [Bug 76192][Nor] Changed - Can't write files past 2gb
on AMD64 (x86_64)
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu Sep 22 17:09:56 EDT 2005
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by brion at pobox.com.
http://bugzilla.ximian.com/show_bug.cgi?id=76192
--- shadow/76192 2005-09-22 17:05:15.000000000 -0400
+++ shadow/76192.tmp.8835 2005-09-22 17:09:56.000000000 -0400
@@ -2,13 +2,13 @@
Product: Mono: Runtime
Version: 1.1
OS: GNU/Linux [Other]
OS Details: Fedora Core 3 x86_64
Status: NEW
Resolution:
-Severity:
+Severity: Unknown
Priority: Normal
Component: io-layer
AssignedTo: dick at ximian.com
ReportedBy: brion at pobox.com
QAContact: mono-bugs at ximian.com
TargetMilestone: ---
@@ -55,6 +55,20 @@
------- Additional Comments From brion at pobox.com 2005-09-22 17:05 -------
Created an attachment (id=15778)
Patch to mono/io-layer/io.c which appears to fix the problem
+
+------- Additional Comments From brion at pobox.com 2005-09-22 17:09 -------
+To demo sign extension problem:
+$ gcc -o try `pkg-config --cflags glib-2.0` try.c && ./try
+offset -1149239296 highmovedistance 0 distance -1149239296
+offset 3145728000 highmovedistance 0 distance -1149239296
+
+First line is as the code is written in io.c; second line is as patched.
+
+Attached patch seems to get the offset flowing positively again and I can successfully write
+out a 3000MB file on amd64 with it applied against 1.1.9. It's unclear to me whether
+file_seek() is supposed to accept negative values here or what will happen to them, so this
+might not be a totally correct patch.
+
More information about the mono-bugs
mailing list