Ticket #299 (closed crash: fixed)

Opened 4 years ago

Last modified 3 years ago

nedit crashes on cut or paste

Reported by: jamesrome@… Owned by: jeremyhu@…
Priority: Nice to Have Milestone: 2.5.0
Component: x11-apps Version: 2.4.0 (xserver-1.5.3-apple14)
Keywords: Cc:

Description

I am using 2.4.0 on a MacPro Intel running OS X 10.5.8.

Every time I try to cut or paste using nedit, it crashes with a bus error. This happens with crtl-v, ctrl-c, or using the menu items. Clicking sometimes pastes correctly.

Attachments

nedit_2009-08-17-134402_jarmac.crash.zip (4.3 KB) - added by jamesrome@… 4 years ago.
zip of crash log
nedit_2009-08-17-105601_jarmac.crash.zip (4.3 KB) - added by jamesrome@… 4 years ago.
zip of a different crash

Change History

Changed 4 years ago by jamesrome@…

zip of crash log

Changed 4 years ago by jamesrome@…

zip of a different crash

comment:1 Changed 4 years ago by jeremyhu@…

Can you please repost the logs uncompressed.

Can you please try using the 1.4.2-apple47 server:

curl -LO http://static.macosforge.org/xquartz/downloads/X11.bin-1.4.2-apple47.bz2
bunzip2 X11.bin-1.4.2-apple47.bz2
sudo mv /Applications/Utilities/X11.app/Contents/MacOS/X11.bin /Applications/Utilities/X11.app/Contents/MacOS/X11.bin.bak
sudo cp X11.bin-1.4.2-apple47 /Applications/Utilities/X11.app/Contents/MacOS/X11.bin 
sudo chmod 755 /Applications/Utilities/X11.app/Contents/MacOS/X11.bin 

Then restart X11.app

comment:2 Changed 4 years ago by jeremyhu@…

  • Status changed from new to assigned
  • Version set to 2.4.0 (xserver-1.5)
  • Component changed from xserver to x11-apps
  • Milestone set to 2.4.1

comment:3 Changed 4 years ago by merlereinhart@…

FYI, it appears the nedit crash was being caused by a bug in lesstif which the fink nedit was built against.

Date: Thu, 27 Aug 2009 23:39:54 -0400
From: Jack Howarth <howarth@bromo.med.uc.edu>
To: xquartz-dev@lists.macosforge.org
Subject: [Xquartz-dev] X11 2.4.0 vs nedit 5.6-cvs20081118


   I have been trying to solve some issues with the lesstif-0.95.2
and nedit fink packages on i386, powerpc and x86_64. I believe I 
have solved the lesstif 0.95.2 bus errors (which was due to missing
braces from a debian patch accepted upstream)...

--- lesstif-0.95.2/lib/Xm-2.1/CutPaste.c.org    2009-08-27 21:44:12.000000000 -0400
+++ lesstif-0.95.2/lib/Xm-2.1/CutPaste.c        2009-08-27 21:45:25.000000000 -0400
@@ -1028,9 +1028,11 @@
        /* XChangeProperty expects a buffer of longs when receiving 32 bits
           data, MEUHH */
        if (sizeof(long) != 4)
+        {
            convert_buf = XtMalloc(len * sizeof(long));
         for (i = 0; i < len; i++)
             convert_buf[i] = data[i];
+        }
        break;
 
     case 16:


This seems to have resolved the cut or paste crashes (ie, it really appears to be a lesstif problem).

Merle

comment:4 Changed 4 years ago by jeremyhu@…

  • Status changed from assigned to closed
  • Resolution set to fixed

I pushed the patch to MacPorts a while back as well.

Note: See TracTickets for help on using tickets.