XSP2 在提供静态图像时崩溃

发布于 2024-08-22 07:40:37 字数 1838 浏览 4 评论 0原文

请求带有 jpg 图像的简单 HTML 页面会使 XSP2 崩溃。如果我从 HTML 中删除图像,则页面始终可以正常运行。

版本是XSP2 2.0 mono 2.6.1。 2.4.2.2版本在同一台机器上工作正常。

我在两台不同的机器上测试过它,都是 Windows Vista Business SP1。

有人有过同样的经历吗?任何线索可能是什么问题吗?

下面是控制台显示的堆栈跟踪:(西班牙语行表示“远程主机已强制中断现有连接”)

编辑:

因为另一个用户也遇到了同样的问题我已向 Novell 提交了一个错误,并创建了一个小 zip 来重现该问题:https:// /bugzilla.novell.com/show_bug.cgi?id=582162

Peer unexpectedly closed the connection on write. Closing our end.
System.IO.IOException: Write failure ---> System.Net.Sockets.SocketException: Se
 ha forzado la interrupción de una conexión existente por el host remoto.

  at System.Net.Sockets.Socket.Send (System.Byte[] buf, Int32 offset, Int32 size
, SocketFlags flags) [0x00000] in <filename unknown>:0
  at System.Net.Sockets.NetworkStream.Write (System.Byte[] buffer, Int32 offset,
 Int32 size) [0x00000] in <filename unknown>:0
  --- End of inner exception stack trace ---
  at System.Net.Sockets.NetworkStream.Write (System.Byte[] buffer, Int32 offset,
 Int32 size) [0x00000] in <filename unknown>:0
  at Mono.WebServer.XSPWorker.Write (System.Byte[] buffer, Int32 position, Int32
 size) [0x00000] in <filename unknown>:0
Peer unexpectedly closed the connection on write. Closing our end.
System.ObjectDisposedException: The object was used after being disposed.
  at System.Net.Sockets.NetworkStream.CheckDisposed () [0x00000] in <filename un
known>:0
  at System.Net.Sockets.NetworkStream.Write (System.Byte[] buffer, Int32 offset,
 Int32 size) [0x00000] in <filename unknown>:0
  at Mono.WebServer.XSPWorker.Write (System.Byte[] buffer, Int32 position, Int32
 size) [0x00000] in <filename unknown>:0

谢谢。

Requesting a simple HTML page with a jpg image makes XSP2 crash. If I remove the image from the HTML then the page is served OK all the time.

The version is XSP2 2.0 mono 2.6.1. the version 2.4.2.2 in the same machine works fine.

I have tested it in two different machines, both Windows Vista Business SP1.

Anyone has experienced the same? Any clue of what can be the problem?

Below is the stack trace displayed by the console: (The line in Spanish says "it has been forced the interruption of an existing connection by the remote host")

EDIT:

since another user is having the same problem I have submited a bug to Novell and created a litle zip to reproduce the problem: https://bugzilla.novell.com/show_bug.cgi?id=582162

Peer unexpectedly closed the connection on write. Closing our end.
System.IO.IOException: Write failure ---> System.Net.Sockets.SocketException: Se
 ha forzado la interrupción de una conexión existente por el host remoto.

  at System.Net.Sockets.Socket.Send (System.Byte[] buf, Int32 offset, Int32 size
, SocketFlags flags) [0x00000] in <filename unknown>:0
  at System.Net.Sockets.NetworkStream.Write (System.Byte[] buffer, Int32 offset,
 Int32 size) [0x00000] in <filename unknown>:0
  --- End of inner exception stack trace ---
  at System.Net.Sockets.NetworkStream.Write (System.Byte[] buffer, Int32 offset,
 Int32 size) [0x00000] in <filename unknown>:0
  at Mono.WebServer.XSPWorker.Write (System.Byte[] buffer, Int32 position, Int32
 size) [0x00000] in <filename unknown>:0
Peer unexpectedly closed the connection on write. Closing our end.
System.ObjectDisposedException: The object was used after being disposed.
  at System.Net.Sockets.NetworkStream.CheckDisposed () [0x00000] in <filename un
known>:0
  at System.Net.Sockets.NetworkStream.Write (System.Byte[] buffer, Int32 offset,
 Int32 size) [0x00000] in <filename unknown>:0
  at Mono.WebServer.XSPWorker.Write (System.Byte[] buffer, Int32 position, Int32
 size) [0x00000] in <filename unknown>:0

Thank you.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

堇色安年 2024-08-29 07:40:37

该问题已得到修复,并将在版本 2.6.5 中提供:

https:// /bugzilla.novell.com/show_bug.cgi?id=582162#c7

更新:这是最新的无错误 Windows 版本

It has been fixed and it will be featured in version 2.6.5:

https://bugzilla.novell.com/show_bug.cgi?id=582162#c7

Update: Here is the latest bug free windows version.

清欢 2024-08-29 07:40:37

有同样的问题...我认为问题在于线程安全...轨道导致在 mono/mono/metadata/socket-io.c 处调用 _wapi_send 。本机代码中肯定会引发异常。我认为 Mono 2.4.2 没什么特别的...我查看了源代码,发现所有这些(发现)在两个版本中都是相同的。
我的测试表明,有时xsp会因为加载js而崩溃,甚至因为空html的连续Ctrl-F5(例如);
但如果以较高的间隔加载页面,崩溃的可能性就会降低......

Have the same problem... I think that problem is in thread safety... Tracks lead to _wapi_send call at mono/mono/metadata/socket-io.c. Definitely exception raises in native code. And i think it's nothing special about Mono 2.4.2... I looked through sources and all of them (spoted) are same in both versions.
My tests shown that sometimes it xsp crashes because of loading js, and even because of contineous-Ctrl-F5 of an empty html (like );
But if to laod pages with higher interval the probability of crash lowers...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文