| Status: closed, reported by conradwt on 2009-07-22 (bug) |
|
Textmate generates a crash log when attempting running script on Snow Leopard
darnoc-laptop:DiagnosticReports conradwt$ cat ruby_2009-07-21-190335_darnoc-laptop.crash
Process: ruby [759]
Path: /opt/local/bin/ruby
Identifier: ruby
Version: ??? (???)
Code Type: X86 (Native)
Parent Process: ruby [755]
Date/Time: 2009-07-21 19:03:35.620 -0700
OS Version: Mac OS X 10.6 (10A411)
Report Version: 6
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000000
Crashed Thread: 0
Thread 0 Crashed:
0 libSystem.B.dylib 0x97e14a6e malloc + 40
1 libSystem.B.dylib 0x97e1ccfc strdup + 37
2 tm_interactive_input.dylib 0x00006a24 mode_contains + 49
3 tm_interactive_input.dylib 0x00006ae3 tm_interactive_input_is_active + 45
4 tm_interactive_input.dylib 0x000071b2 read_override + 44
5 tm_interactive_input.dylib 0x0000735e read$NOCANCEL$UNIX2003 + 48
6 libSystem.B.dylib 0x97e15fc9 arc4_stir + 134
7 libSystem.B.dylib 0x97e15de9 arc4random + 126
8 libSystem.B.dylib 0x97e1537f create_scalable_zone + 428
9 libSystem.B.dylib 0x97e14feb _malloc_initialize + 1370
10 libSystem.B.dylib 0x97e14a61 malloc + 27
11 libSystem.B.dylib 0x97e1ccfc strdup + 37
12 tm_interactive_input.dylib 0x00006a24 mode_contains + 49
13 tm_interactive_input.dylib 0x00006ae3 tm_interactive_input_is_active + 45
14 tm_interactive_input.dylib 0x000071b2 read_override + 44
15 tm_interactive_input.dylib 0x0000735e read$NOCANCEL$UNIX2003 + 48
16 libSystem.B.dylib 0x97e14714 __guard_setup + 92
17 libSystem.B.dylib 0x97e1457a __libc_init + 46
18 libSystem.B.dylib 0x97e12c6f libSystem_initializer + 28
19 dyld 0x8fe0ed6d ImageLoaderMachO::doModInitFunctions(ImageLoader::LinkContext const&) + 235
20 dyld 0x8fe0d31e ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int) + 246
21 dyld 0x8fe0d2c2 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int) + 154
22 dyld 0x8fe0d2c2 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int) + 154
23 dyld 0x8fe0d2c2 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int) + 154
24 dyld 0x8fe0d2c2 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int) + 154
25 dyld 0x8fe0d3d1 ImageLoader::runInitializers(ImageLoader::LinkContext const&) + 61
26 dyld 0x8fe0248f dyld::initializeMainExecutable() + 108
27 dyld 0x8fe07950 dyld::_main(macho_header const*, unsigned long, int, char const**, char const**, char const**) + 4189
28 dyld 0x8fe018b1 dyldbootstrap::start(macho_header const*, int, char const**, long) + 779
29 dyld 0x8fe01057 _dyld_start + 39
Thread 0 crashed with X86 Thread State (32-bit):
eax: 0x00000000 ebx: 0x97e14a52 ecx: 0xbffff331 edx: 0xbffff330
edi: 0xbffff331 esi: 0x0000000a ebp: 0xbfffbbc8 esp: 0xbfffbbb0
ss: 0x0000001f efl: 0x00010202 eip: 0x97e14a6e cs: 0x00000017
ds: 0x0000001f es: 0x0000001f fs: 0x00000000 gs: 0x00000037
cr2: 0x00000000
Binary Images:
0x1000 - 0x1ff5 +ruby ??? (???) <1964B402-639B-3586-1C4C-638B2163DC79> /opt/local/bin/ruby
0x5000 - 0x7ff7 +tm_interactive_input.dylib ??? (???) /Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm_interactive_input.dylib
0xc000 - 0x164fe7 +libruby.dylib ??? (???) <825FA7CC-3A5F-E1E5-1B0C-2E2326248857> /opt/local/lib/libruby.dylib
0x8fe00000 - 0x8fe4162b dyld 132.1 (???) <E95170B9-30C4-2280-A456-E49BB83BAE29> /usr/lib/dyld
0x90035000 - 0x90038fe7 libmathCommon.A.dylib ??? (???) <5505DDE1-5D69-1786-6101-2C99BD752ADC> /usr/lib/system/libmathCommon.A.dylib
0x919ab000 - 0x919b9fe7 libz.1.dylib ??? (???) <7B7A02AB-DA99-6180-880E-D28E4F9AA8EB> /usr/lib/libz.1.dylib
0x91b2a000 - 0x91cacfe7 libicucore.A.dylib ??? (???) <FBB66376-CBA9-8149-A1AA-10AB8578C3B3> /usr/lib/libicucore.A.dylib
0x91f98000 - 0x9210ffef com.apple.CoreFoundation 6.6 (549) <D10A3E6C-87F2-C542-10F9-BA3BBAD87A3D> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x9211e000 - 0x921cbfe7 libobjc.A.dylib ??? (???) <410DD065-A18F-F054-0457-65525F4D1039> /usr/lib/libobjc.A.dylib
0x95c43000 - 0x95cadfe7 libstdc++.6.dylib ??? (???) <411D87F4-B7E1-44EB-F201-F8B4F9227213> /usr/lib/libstdc++.6.dylib
0x96a46000 - 0x96a8cff7 libauto.dylib ??? (???) <FAB17F30-A28B-E33D-6E21-C7119C9C83ED> /usr/lib/libauto.dylib
0x97e12000 - 0x97fb6feb libSystem.B.dylib ??? (???) <F46BE3ED-763C-543E-8378-07680E179BFD> /usr/lib/libSystem.B.dylib
0xffff0000 - 0xffff1fff libSystem.B.dylib ??? (???) <F46BE3ED-763C-543E-8378-07680E179BFD> /usr/lib/libSystem.B.dylib
|
| Note added by Allan Odgaard on 2009-07-22 07:50:43 |
From the crash log it looks like a problem with the interactve input we inject into the running interpreter.
You can try disable this by setting the TM_INTERACTIVE_INPUT_DISABLED variable (Preferences → Advanced → Shell Variables).
Can you also please attach a minimal script which reproduce this problem?
|
| Note added by conradwt on 2009-07-22 08:28:29 |
What should 'TM_INTERACTIVE_INPUT_DISABLED' be set to?
|
| Note added by conradwt on 2009-07-22 08:38:43 |
Here are some of the messages that were generated in the console:
7/22/09 1:31:13 AM [0x0-0x17017].com.macromates.textmate[277] objc[277]: Class TMDChameleon is implemented in both /Applications/TextMate.app/Contents/PlugIns/Dialog.tmplugin/Contents/MacOS/Dialog and /Applications/TextMate.app/Contents/PlugIns/Dialog2.tmplugin/Contents/MacOS/Dialog2. One of the two will be used. Which one is undefined.
7/22/09 1:31:13 AM [0x0-0x17017].com.macromates.textmate[277] objc[277]: Class OakStringToColorTransformer is implemented in both /Applications/TextMate.app/Contents/PlugIns/Dialog.tmplugin/Contents/MacOS/Dialog and /Applications/TextMate.app/Contents/PlugIns/Dialog2.tmplugin/Contents/MacOS/Dialog2. One of the two will be used. Which one is undefined.
7/22/09 1:31:13 AM [0x0-0x17017].com.macromates.textmate[277] objc[277]: Class OakIntArrayToIndexSetTransformer is implemented in both /Applications/TextMate.app/Contents/PlugIns/Dialog.tmplugin/Contents/MacOS/Dialog and /Applications/TextMate.app/Contents/PlugIns/Dialog2.tmplugin/Contents/MacOS/Dialog2. One of the two will be used. Which one is undefined.
7/22/09 1:31:13 AM [0x0-0x17017].com.macromates.textmate[277] objc[277]: Class OakIntArrayToIndexPathTransformer is implemented in both /Applications/TextMate.app/Contents/PlugIns/Dialog.tmplugin/Contents/MacOS/Dialog and /Applications/TextMate.app/Contents/PlugIns/Dialog2.tmplugin/Contents/MacOS/Dialog2. One of the two will be used. Which one is undefined.
7/22/09 1:31:15 AM defaults[287]
The domain/default pair of (com.macromates.textmate.webpreview, SelectedTheme) does not exist
7/22/09 1:31:16 AM ReportCrash[289] Saved crash report for ruby[288] version ??? (???) to /Users/conradwt/Library/Logs/DiagnosticReports/ruby_2009-07-22-013116_darnoc-laptop.crash
|
| Note added by Allan Odgaard on 2009-07-22 08:44:42 |
Setting the variable to any value disables interactive input.
The console messages are not related to ruby crashing.
|
| Note added by Alexey Karguine on 2009-08-05 21:26:54 |
I have same problem. When I trying to run python script from textmate by cmd-r, i have a crash.
Process: python2.6 [30822]
Path: /Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6
Identifier: python2.6
Version: ??? (???)
Code Type: X86 (Native)
Parent Process: ruby [30807]
Date/Time: 2009-08-06 01:14:24.258 +0400
OS Version: Mac OS X 10.6 (10A421a)
Report Version: 6
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000000
Crashed Thread: 0
Thread 0 Crashed:
0 libSystem.B.dylib 0x9413ba6e malloc + 40
1 libSystem.B.dylib 0x94143cfc strdup + 37
2 tm_interactive_input.dylib 0x00006a24 mode_contains + 49
3 tm_interactive_input.dylib 0x00006ae3 tm_interactive_input_is_active + 45
4 tm_interactive_input.dylib 0x000071b2 read_override + 44
5 tm_interactive_input.dylib 0x0000735e read$NOCANCEL$UNIX2003 + 48
6 libSystem.B.dylib 0x9413cfc9 arc4_stir + 134
7 libSystem.B.dylib 0x9413cde9 arc4random + 126
8 libSystem.B.dylib 0x9413c37f create_scalable_zone + 428
9 libSystem.B.dylib 0x9413bfeb _malloc_initialize + 1370
10 libSystem.B.dylib 0x9413ba61 malloc + 27
11 libSystem.B.dylib 0x94143cfc strdup + 37
12 tm_interactive_input.dylib 0x00006a24 mode_contains + 49
13 tm_interactive_input.dylib 0x00006ae3 tm_interactive_input_is_active + 45
14 tm_interactive_input.dylib 0x000071b2 read_override + 44
15 tm_interactive_input.dylib 0x0000735e read$NOCANCEL$UNIX2003 + 48
16 libSystem.B.dylib 0x9413b714 __guard_setup + 92
17 libSystem.B.dylib 0x9413b57a __libc_init + 46
18 libSystem.B.dylib 0x94139c6f libSystem_initializer + 28
19 dyld 0x8fe0ed6d ImageLoaderMachO::doModInitFunctions(ImageLoader::LinkContext const&) + 235
20 dyld 0x8fe0d31e ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int) + 246
21 dyld 0x8fe0d2c2 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int) + 154
22 dyld 0x8fe0d2c2 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int) + 154
23 dyld 0x8fe0d2c2 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int) + 154
24 dyld 0x8fe0d2c2 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int) + 154
25 dyld 0x8fe0d3d1 ImageLoader::runInitializers(ImageLoader::LinkContext const&) + 61
26 dyld 0x8fe0248f dyld::initializeMainExecutable() + 108
27 dyld 0x8fe07950 dyld::_main(macho_header const*, unsigned long, int, char const**, char const**, char const**) + 4189
28 dyld 0x8fe018b1 dyldbootstrap::start(macho_header const*, int, char const**, long) + 779
29 dyld 0x8fe01057 _dyld_start + 39
Thread 0 crashed with X86 Thread State (32-bit):
eax: 0x00000000 ebx: 0x9413ba52 ecx: 0xbffff4d3 edx: 0xbffff4d0
edi: 0xbffff4d3 esi: 0x0000000a ebp: 0xbfffbf58 esp: 0xbfffbf40
ss: 0x0000001f efl: 0x00010202 eip: 0x9413ba6e cs: 0x00000017
ds: 0x0000001f es: 0x0000001f fs: 0x00000000 gs: 0x00000037
cr2: 0x00000000
Binary Images:
0x1000 - 0x1fff +python ??? (???) /Library/Frameworks/Python.framework/Versions/2.6/bin/python
0x5000 - 0x7ff7 +tm_interactive_input.dylib ??? (???) /Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm_interactive_input.dylib
0x8fe00000 - 0x8fe4162b dyld 132.1 (???) <EC5BF03B-8B9B-3087-E2F6-490AF19F807C> /usr/lib/dyld
0x92ff4000 - 0x93176fe7 libicucore.A.dylib ??? (???) <FBB66376-CBA9-8149-A1AA-10AB8578C3B3> /usr/lib/libicucore.A.dylib
0x94139000 - 0x942ddfeb libSystem.B.dylib ??? (???) <60AA3BCD-04BB-A786-BC8B-3606C446BFB2> /usr/lib/libSystem.B.dylib
0x943bb000 - 0x943c9fe7 libz.1.dylib ??? (???) <7B7A02AB-DA99-6180-880E-D28E4F9AA8EB> /usr/lib/libz.1.dylib
0x94748000 - 0x948bffef com.apple.CoreFoundation 6.6 (550) <193E33D6-2E92-3452-773B-60A1A9CCC573> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x94bcb000 - 0x94c11ff7 libauto.dylib ??? (???) <FAB17F30-A28B-E33D-6E21-C7119C9C83ED> /usr/lib/libauto.dylib
0x94ee6000 - 0x94ee9fe7 libmathCommon.A.dylib ??? (???) <1622A54F-1A98-2CBE-B6A4-2122981A500E> /usr/lib/system/libmathCommon.A.dylib
0x957e8000 - 0x95895fe7 libobjc.A.dylib ??? (???) <410DD065-A18F-F054-0457-65525F4D1039> /usr/lib/libobjc.A.dylib
0x97d74000 - 0x97ddefe7 libstdc++.6.dylib ??? (???) <411D87F4-B7E1-44EB-F201-F8B4F9227213> /usr/lib/libstdc++.6.dylib
0xffff0000 - 0xffff1fff libSystem.B.dylib ??? (???) <60AA3BCD-04BB-A786-BC8B-3606C446BFB2> /usr/lib/libSystem.B.dylib
But perl scripts runs good without any crashes.
How can I solve this problem?
|
| Note added by Allan Odgaard on 2009-08-05 21:52:02 |
As suggested in the ticket, try disable interactive input and report back (the other guy never did).
|
| Note added by Alexey Karguine on 2009-08-05 22:17:16 |
Of course I tried this. It doesn't helps.
|
| Note added by conradwt on 2009-08-05 23:23:11 |
I have spoken with the MacPort administrators and I was instructed to do the following:
a) port installed >& ~/macports-port-installed.txt
b) mv /opt /opt-leopard
c) download and install MacPorts 1.8 from svn trunk
{{{
mkdir -p /opt/mports
cd /opt/mports
svn checkout http://svn.macports.org/repository/macports/trunk/base
cd ./base/
./configure --enable-readline
make
sudo make install
make distclean
sudo port -v selfupdate
}}}
d) reinstall all ports for Snow Leopard contained in the output file in (a)
Doing the above, resolved the issue that I was seeing within Textmate.
|
| Note added by Alexey Karguine on 2009-08-06 07:30:08 |
I don't have macports instaled at all.
|
| Note added by Alexey Karguine on 2009-08-06 08:06:35 |
Thanks alot! Renaming tm_interactive_input.dylib in Textmate.app did help me.
|
| Note added by Thomas Deniau on 2009-08-10 17:41:38 |
For the ones using GetBundles, you should also remove that dylib from the Pristine Copy folder in the app support folder.
|
| Note added by Release Notes on 2009-08-29 12:28:47 |
Revision 1509 has been released (as cutting edge) and has the following change:
[FIXED] Remove “interactive input” dylib (as it fails with Snow Leopard) — ticket FAB08510.
Therefore this ticket has now been closed.
|
| File added by conradwt on 2009-07-22 08:25:54 |
crash-textmate.rb (174 bytes) |