Opened 13 years ago

Closed 12 years ago

#30889 closed defect (fixed)

Nedit abort()s in __memset_chk

Reported by: mvondavier@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.1
Keywords: Cc:
Port: nedit

Description (last modified by jmroot (Joshua Root))

This is what the system reports:

Process:         nedit [16802]
Path:            /opt/local/bin/nedit
Identifier:      nedit
Version:         ??? (???)
Code Type:       X86-64 (Native)
Parent Process:  bash [1747]

Date/Time:       2011-08-19 10:52:44.868 -0400
OS Version:      Mac OS X 10.6.8 (10K549)
Report Version:  6

Interval Since Last Report:          65852 sec
Crashes Since Last Report:           11
Per-App Crashes Since Last Report:   5


Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Application Specific Information:
__abort() called

Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
0   libSystem.B.dylib             	0x00007fff80c360b6 __kill + 10
1   libSystem.B.dylib             	0x00007fff80cd6997 __abort + 103
2   libSystem.B.dylib             	0x00007fff80ccb1db mach_msg_receive + 0
3   libSystem.B.dylib             	0x00007fff80c43ce0 __memset_chk + 14
4   nedit                         	0x0000000100046bd4 0x100000000 + 289748
5   nedit                         	0x0000000100001e22 0x100000000 + 7714
6   nedit                         	0x0000000100001554 0x100000000 + 5460

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000000  rbx: 0x00007fff5fbfeac0  rcx: 0x00007fff5fbfeab8  rdx: 0x0000000000000000
  rdi: 0x00000000000041a2  rsi: 0x0000000000000006  rbp: 0x00007fff5fbfeae0  rsp: 0x00007fff5fbfeab8
   r8: 0x0000000000000000   r9: 0x0000000100a485d0  r10: 0x00007fff80c320fa  r11: 0xffffff80002e4730
  r12: 0x00007fff70159be0  r13: 0x0000000100a37c19  r14: 0x0000000000000015  r15: 0x0000000100a375d0
  rip: 0x00007fff80c360b6  rfl: 0x0000000000000202  cr2: 0x00000001000c5000

Binary Images:
       0x100000000 -        0x10012aff7 +nedit ??? (???) <A51DF4F3-E21E-32A9-808F-06DDBDE76149> /opt/local/bin/nedit
       0x1001aa000 -        0x1003b0fe7 +libXm.4.dylib 5.2.0 (compatibility 5.0.0) <DC42069D-F645-36C3-90FD-09CB450D61EE> /opt/local/lib/libXm.4.dylib
       0x1004b3000 -        0x1004b8ff7 +libXp.6.dylib 9.0.0 (compatibility 9.0.0) <D0660AE7-F011-3547-9A26-588720005FBB> /opt/local/lib/libXp.6.dylib
       0x1004bc000 -        0x1004c9fe7 +libXpm.4.dylib 16.0.0 (compatibility 16.0.0) <59B8A148-975D-372F-81C0-123273EE2C45> /opt/local/lib/libXpm.4.dylib
       0x1004cd000 -        0x1004dbff7 +libXext.6.dylib 11.0.0 (compatibility 11.0.0) <76A1C5CD-846D-3B4B-9E95-96FA261E303C> /opt/local/lib/libXext.6.dylib
       0x1004e1000 -        0x10052aff7 +libXt.6.dylib 7.0.0 (compatibility 7.0.0) <32287F41-1337-3939-B2AB-71EF408D28A5> /opt/local/lib/libXt.6.dylib
       0x100541000 -        0x100546ff7 +libSM.6.dylib 7.1.0 (compatibility 7.0.0) <AE715496-4900-313C-9FC4-20D6321CAC4D> /opt/local/lib/libSM.6.dylib
       0x10054a000 -        0x10055bfff +libICE.6.dylib 10.0.0 (compatibility 10.0.0) <127742AA-9DFF-38C6-B663-B615B2679FAC> /opt/local/lib/libICE.6.dylib
       0x100565000 -        0x10067dff7 +libX11.6.dylib 10.0.0 (compatibility 10.0.0) <1C5C1895-2C6E-3181-8A9B-F561E32C303D> /opt/local/lib/libX11.6.dylib
       0x1006a0000 -        0x1006b2fff +libXmu.6.dylib 9.0.0 (compatibility 9.0.0) <A604CD5B-4CDD-346A-8AC7-E045FB46F98D> /opt/local/lib/libXmu.6.dylib
       0x1006bb000 -        0x1006cdfff +libxcb.1.dylib 3.0.0 (compatibility 3.0.0) <2B70A60B-945A-34F4-84B7-4EA6EA86D181> /opt/local/lib/libxcb.1.dylib
       0x1006d9000 -        0x1006daff7 +libXau.6.dylib 7.0.0 (compatibility 7.0.0) <241E9C5C-10E2-30B5-BC04-C87A6C90E2F3> /opt/local/lib/libXau.6.dylib
       0x1006dd000 -        0x1006e0fe7 +libXdmcp.6.dylib 7.0.0 (compatibility 7.0.0) <A781945B-33FF-31EC-B776-ACB9D76F00BB> /opt/local/lib/libXdmcp.6.dylib
       0x1006e3000 -        0x1007dcff7 +libiconv.2.dylib 8.1.0 (compatibility 8.0.0) <408E334D-977A-3FE3-B186-E4590374471D> /opt/local/lib/libiconv.2.dylib
       0x1007e9000 -        0x1007efff7 +libXrender.1.dylib 5.0.0 (compatibility 5.0.0) <7ACC8B76-323B-38E4-9FBA-020AD421F1CE> /opt/local/lib/libXrender.1.dylib
       0x1007f3000 -        0x100803fe7 +libXft.2.dylib 5.0.0 (compatibility 5.0.0) <6ABA2461-FF04-3D3B-AC93-13FC4ED175F8> /opt/local/lib/libXft.2.dylib
       0x100809000 -        0x10083afe7 +libfontconfig.1.dylib 6.4.0 (compatibility 6.0.0) <ADDD3B83-5D4C-32E7-B86E-62F22CE17674> /opt/local/lib/libfontconfig.1.dylib
       0x100844000 -        0x100862fef +libexpat.1.dylib 7.2.0 (compatibility 7.0.0) <89C2BE21-24B7-344B-AD3E-A4D8DD317FB5> /opt/local/lib/libexpat.1.dylib
       0x100869000 -        0x1008edfef +libfreetype.6.dylib 14.1.0 (compatibility 14.0.0) <7E1C7FA1-6505-3E8D-BE33-0B826F2A2906> /opt/local/lib/libfreetype.6.dylib
       0x100901000 -        0x100914fff +libz.1.dylib 1.2.5 (compatibility 1.0.0) <886765B6-E54B-3B27-AB8B-2E043D2FFC7D> /opt/local/lib/libz.1.dylib
       0x100918000 -        0x100926ff7 +libbz2.1.0.dylib 1.0.6 (compatibility 1.0.0) <D3BEA84F-9BED-390E-8501-ABDF1A22367F> /opt/local/lib/libbz2.1.0.dylib
       0x10092b000 -        0x10095ffe7 +libjpeg.8.dylib 12.0.0 (compatibility 12.0.0) <D311B42D-CBD4-3B03-A05E-744A4CEDF435> /opt/local/lib/libjpeg.8.dylib
       0x100966000 -        0x100985fe7 +libpng14.14.dylib 23.0.0 (compatibility 23.0.0) <B0FBBECA-A7B9-31ED-A060-06A179E664FB> /opt/local/lib/libpng14.14.dylib
       0x10098c000 -        0x100995fff +libintl.8.dylib 10.1.0 (compatibility 10.0.0) <F58A2F2A-FC2B-31FF-ADF0-59D629CB753C> /opt/local/lib/libintl.8.dylib
    0x7fff5fc00000 -     0x7fff5fc3be0f  dyld 132.1 (???) <DD3F7F3E-8612-A7BD-F508-9EF29132C419> /usr/lib/dyld
    0x7fff806d9000 -     0x7fff8078fff7  libobjc.A.dylib 227.0.0 (compatibility 1.0.0) <03140531-3B2D-1EBA-DA7F-E12CC8F63969> /usr/lib/libobjc.A.dylib
    0x7fff80be7000 -     0x7fff80da8fef  libSystem.B.dylib 125.2.11 (compatibility 1.0.0) <9AB4F1D1-89DC-0E8A-DC8E-A4FE4D69DB69> /usr/lib/libSystem.B.dylib
    0x7fff811b1000 -     0x7fff81328fe7  com.apple.CoreFoundation 6.6.5 (550.43) <31A1C118-AD96-0A11-8BDF-BD55B9940EDC> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x7fff841c1000 -     0x7fff8420dfff  libauto.dylib ??? (???) <328CCF97-091D-C529-E576-C78583445711> /usr/lib/libauto.dylib
    0x7fff84fe8000 -     0x7fff851a6fff  libicucore.A.dylib 40.0.0 (compatibility 1.0.0) <4274FC73-A257-3A56-4293-5968F3428854> /usr/lib/libicucore.A.dylib
    0x7fff85c5f000 -     0x7fff85cdcfef  libstdc++.6.dylib 7.9.0 (compatibility 7.0.0) <35ECA411-2C08-FD7D-11B1-1B7A04921A5C> /usr/lib/libstdc++.6.dylib
    0x7fff88725000 -     0x7fff88736ff7  libz.1.dylib 1.2.3 (compatibility 1.0.0) <5BAFAE5C-2307-C27B-464D-582A10A6990B> /usr/lib/libz.1.dylib
    0x7fff89818000 -     0x7fff8981cff7  libmathCommon.A.dylib 315.0.0 (compatibility 1.0.0) <95718673-FEEE-B6ED-B127-BCDBDB60D4E5> /usr/lib/system/libmathCommon.A.dylib
    0x7fffffe00000 -     0x7fffffe01fff  libSystem.B.dylib ??? (???) <9AB4F1D1-89DC-0E8A-DC8E-A4FE4D69DB69> /usr/lib/libSystem.B.dylib

Model: MacBookPro8,1, BootROM MBP81.0047.B0E, 2 processors, Intel Core i7, 2.7 GHz, 4 GB, SMC 1.68f96
Graphics: Intel HD Graphics 3000, Intel HD Graphics 3000, Built-In, 384 MB
Memory Module: global_name
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0xD6), Broadcom BCM43xx 1.0 5.100.198.104.5)
Bluetooth: Version 2.4.5f3, 2 service, 19 devices, 1 incoming serial ports
Network Service: Ethernet, Ethernet, en0
Network Service: AirPort, AirPort, en1
Serial ATA Device: TOSHIBA MK5065GSXF, 465.76 GB
Serial ATA Device: MATSHITADVD-R   UJ-8A8
USB Device: FaceTime HD Camera (Built-in), 0x05ac  (Apple Inc.), 0x8509, 0xfa200000 / 3
USB Device: Hub, 0x0424  (SMSC), 0x2513, 0xfa100000 / 2
USB Device: Apple Internal Keyboard / Trackpad, 0x05ac  (Apple Inc.), 0x0245, 0xfa120000 / 5
USB Device: BRCM2070 Hub, 0x0a5c  (Broadcom Corp.), 0x4500, 0xfa110000 / 4
USB Device: Bluetooth USB Host Controller, 0x05ac  (Apple Inc.), 0x821a, 0xfa113000 / 7
USB Device: Hub, 0x0424  (SMSC), 0x2513, 0xfd100000 / 2
USB Device: IR Receiver, 0x05ac  (Apple Inc.), 0x8242, 0xfd110000 / 3

Change History (4)

comment:1 Changed 13 years ago by jmroot (Joshua Root)

Description: modified (diff)
Port: nedit added
Summary: Nedit does build, but crashes on Snow Leopard with Macports tree 2.0.1Nedit abort()s in __memset_chk

Please remember to preview and use WikiFormatting (or better, use an attachment for log files), and fill in the Port field.

comment:2 Changed 12 years ago by raimue (Rainer Müller)

Has duplicate #30854.

comment:3 Changed 12 years ago by econoplas@…

The following patch fixed the problem for me on Mac OS X Lion 10.7.2... likely the same fix will work on 10.6.x. I don't have 10.6 so don't have a way to test it.

--- nedit-5.5/source/regularExp.c	2004-08-20 10:37:30.000000000 -0600
+++ nedit-5.5-macosx-lion-built/source/regularExp.c	2012-01-12 18:04:36.000000000 -0700
@@ -2645,7 +2645,7 @@
 
 /* Default table for determining whether a character is a word delimiter. */
 
-static unsigned char  Default_Delimiters [UCHAR_MAX] = {0};
+static unsigned char  Default_Delimiters [UCHAR_MAX+1] = {0};
 
 static unsigned char *Current_Delimiters;  /* Current delimiter table */

comment:4 Changed 12 years ago by raimue (Rainer Müller)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.