Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

10.10 Beta crash when creating a new user #1961

Closed
chazmuzz opened this issue Jul 4, 2014 · 14 comments
Closed

10.10 Beta crash when creating a new user #1961

chazmuzz opened this issue Jul 4, 2014 · 14 comments

Comments

@chazmuzz
Copy link

chazmuzz commented Jul 4, 2014

I'm experiencing this on Sequel Pro 1.0.2. Steps are:

  1. Connect to localhost
  2. Open users pane
  3. Click new user button
  4. Enter new credentials
  5. Press Apply, the user is successfully created but the application crashes.

#1940 Possibly related, although different stack traces.

My system:

OS X 10.10 Yosemite
MySQL 5.6.19
Sequel Pro 1.0.2 installed via homebrew cask

Stack trace:

Process:               Sequel Pro [28650]
Path:                  /opt/homebrew-cask/*/Sequel Pro.app/Contents/MacOS/Sequel Pro
Identifier:            com.sequelpro.SequelPro
Version:               1.0.2 (4096)
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           Sequel Pro [28650]
User ID:               501

Date/Time:             2014-07-04 09:34:00.488 +0100
OS Version:            Mac OS X 10.10 (14A261i)
Report Version:        11
Anonymous UUID:        CF5D0A03-6D3D-4D7C-CCF9-A11E0C1A9C5D

Sleep/Wake UUID:       9C8AE95B-B453-4E6B-8E37-2779A9FBAD07

Time Awake Since Boot: 190000 seconds
Time Since Wake:       1400 seconds

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000018

VM Regions Near 0x18:
--> 
    __TEXT                 0000000100000000-00000001001fc000 [ 2032K] r-x/rwx SM=COW  /opt/homebrew-cask/*/Sequel Pro.app/Contents/MacOS/Sequel Pro

Application Specific Information:
objc_msgSend() selector name: isKindOfClass:


Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libobjc.A.dylib                 0x00007fff9166d0dd objc_msgSend + 29
1   com.apple.AppKit                0x00007fff94667263 -[NSTableView _shouldUseSecondaryHighlightColor] + 23
2   com.apple.AppKit                0x00007fff9466723a -[NSTableView selectionShouldUsePrimaryColor] + 17
3   com.apple.AppKit                0x00007fff94c053e7 -[NSTableView _updateBlurSelectionViewsIfNeeded] + 448
4   com.apple.AppKit                0x00007fff946e7d5b -[NSTableView viewWillDraw] + 27
5   com.apple.AppKit                0x00007fff946e7d2f -[NSOutlineView viewWillDraw] + 169
6   com.apple.AppKit                0x00007fff946e75e6 -[NSView viewWillDraw] + 1101
7   com.apple.AppKit                0x00007fff946e75e6 -[NSView viewWillDraw] + 1101
8   com.apple.AppKit                0x00007fff946e7aaf -[NSScrollView viewWillDraw] + 49
9   com.apple.AppKit                0x00007fff946e75e6 -[NSView viewWillDraw] + 1101
10  com.apple.AppKit                0x00007fff946e75e6 -[NSView viewWillDraw] + 1101
11  com.apple.AppKit                0x00007fff946e7a6b -[NSSplitView viewWillDraw] + 145
12  com.apple.AppKit                0x00007fff946e75e6 -[NSView viewWillDraw] + 1101
13  com.apple.AppKit                0x00007fff946e75e6 -[NSView viewWillDraw] + 1101
14  com.apple.AppKit                0x00007fff946e626e -[NSView _sendViewWillDrawInRect:clipRootView:] + 1435
15  com.apple.AppKit                0x00007fff946c8522 -[NSView displayIfNeeded] + 1232
16  com.apple.AppKit                0x00007fff946e54a5 -[NSWindow displayIfNeeded] + 232
17  com.apple.AppKit                0x00007fff94722b42 _handleWindowNeedsDisplayOrLayoutOrUpdateConstraints + 936
18  com.apple.AppKit                0x00007fff94cdf981 __83-[NSWindow _postWindowNeedsDisplayOrLayoutOrUpdateConstraintsUnlessPostingDisabled]_block_invoke1494 + 46
19  com.apple.CoreFoundation        0x00007fff951697d7 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
20  com.apple.CoreFoundation        0x00007fff95169730 __CFRunLoopDoObservers + 368
21  com.apple.CoreFoundation        0x00007fff9515b144 __CFRunLoopRun + 868
22  com.apple.CoreFoundation        0x00007fff9515ab98 CFRunLoopRunSpecific + 296
23  com.apple.HIToolbox             0x00007fff8abb58ff RunCurrentEventLoopInMode + 235
24  com.apple.HIToolbox             0x00007fff8abb5576 ReceiveNextEventCommon + 179
25  com.apple.HIToolbox             0x00007fff8abb54b3 _BlockUntilNextEventMatchingListInModeWithFilter + 71
26  com.apple.AppKit                0x00007fff945c25a5 _DPSNextEvent + 1000
27  com.apple.AppKit                0x00007fff945c1d79 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 139
28  com.apple.AppKit                0x00007fff945b5d53 -[NSApplication run] + 594
29  com.apple.AppKit                0x00007fff945a16ce NSApplicationMain + 1778
30  com.sequelpro.SequelPro         0x0000000100002084 start + 52

Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0   libsystem_kernel.dylib          0x00007fff8c2be2c6 kevent64 + 10
1   libdispatch.dylib               0x00007fff88e6670c _dispatch_mgr_thread + 52

Thread 2:
0   libsystem_kernel.dylib          0x00007fff8c2b85ae mach_msg_trap + 10
1   libsystem_kernel.dylib          0x00007fff8c2b775f mach_msg + 55
2   com.apple.CoreFoundation        0x00007fff9515be54 __CFRunLoopServiceMachPort + 212
3   com.apple.CoreFoundation        0x00007fff9515b345 __CFRunLoopRun + 1381
4   com.apple.CoreFoundation        0x00007fff9515ab98 CFRunLoopRunSpecific + 296
5   com.apple.AppKit                0x00007fff94726637 _NSEventThread + 137
6   libsystem_pthread.dylib         0x00007fff8b8b9780 _pthread_body + 131
7   libsystem_pthread.dylib         0x00007fff8b8b96fd _pthread_start + 176
8   libsystem_pthread.dylib         0x00007fff8b8b794d thread_start + 13

Thread 3:: com.apple.NSURLConnectionLoader
0   libsystem_kernel.dylib          0x00007fff8c2b85ae mach_msg_trap + 10
1   libsystem_kernel.dylib          0x00007fff8c2b775f mach_msg + 55
2   com.apple.CoreFoundation        0x00007fff9515be54 __CFRunLoopServiceMachPort + 212
3   com.apple.CoreFoundation        0x00007fff9515b345 __CFRunLoopRun + 1381
4   com.apple.CoreFoundation        0x00007fff9515ab98 CFRunLoopRunSpecific + 296
5   com.apple.CFNetwork             0x00007fff8981c7f0 +[NSURLConnection(Loader) _resourceLoadLoop:] + 434
6   com.apple.Foundation            0x00007fff912aeada __NSThread__main__ + 1345
7   libsystem_pthread.dylib         0x00007fff8b8b9780 _pthread_body + 131
8   libsystem_pthread.dylib         0x00007fff8b8b96fd _pthread_start + 176
9   libsystem_pthread.dylib         0x00007fff8b8b794d thread_start + 13

Thread 4:: com.apple.CFSocket.private
0   libsystem_kernel.dylib          0x00007fff8c2bd4d6 __select + 10
1   libsystem_pthread.dylib         0x00007fff8b8b9780 _pthread_body + 131
2   libsystem_pthread.dylib         0x00007fff8b8b96fd _pthread_start + 176
3   libsystem_pthread.dylib         0x00007fff8b8b794d thread_start + 13

Thread 5:
0   libsystem_kernel.dylib          0x00007fff8c2bda26 __workq_kernreturn + 10
1   libsystem_pthread.dylib         0x00007fff8b8b793d start_wqthread + 13

Thread 6:
0   libsystem_kernel.dylib          0x00007fff8c2bda26 __workq_kernreturn + 10
1   libsystem_pthread.dylib         0x00007fff8b8b793d start_wqthread + 13

Thread 7:
0   libsystem_kernel.dylib          0x00007fff8c2bda26 __workq_kernreturn + 10
1   libsystem_pthread.dylib         0x00007fff8b8b793d start_wqthread + 13

Thread 8:

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x00007fff792b30d0  rbx: 0x0000000100a18c50  rcx: 0x0000000101803098  rdx: 0x00007fff792b30d0
  rdi: 0x0000000100a18c50  rsi: 0x00007fff886d53e4  rbp: 0x00007fff5fbfd130  rsp: 0x00007fff5fbfd108
   r8: 0x00000000000001ff   r9: 0x000060000025b000  r10: 0x00007fff886d53e4  r11: 0x0000000000000000
  r12: 0x0000000000000001  r13: 0x00000001009ce2b0  r14: 0x00000001009ce2b0  r15: 0x00007fff9166d0c0
  rip: 0x00007fff9166d0dd  rfl: 0x0000000000010246  cr2: 0x0000000000000018

Logical CPU:     1
Error Code:      0x00000004
Trap Number:     14


External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 586
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 64218159
    thread_create: 0
    thread_set_state: 2780

VM Region Summary:
ReadOnly portion of Libraries: Total=269.2M resident=376.9M(140%) swapped_out_or_unallocated=16777216.0T(6534248005632%)
Writable regions: Total=1.2G written=23.6M(2%) resident=53.2M(4%) swapped_out=0K(0%) unallocated=1.1G(96%)

REGION TYPE                        VIRTUAL
===========                        =======
Activity Tracing                     2048K
CG backing stores                    7488K
CG image                               64K
CG raster data                         60K
CG shared images                      496K
CoreAnimation                         152K
CoreGraphics                            8K
CoreImage                              92K
CoreServices                         4400K
CoreUI image data                     316K
Foundation                              4K
IOKit                                16.6M
Image IO                              348K
JS JIT generated code                   8K
JS JIT generated code (reserved)      1.0G        reserved VM address space (unallocated)
Kernel Alloc Once                       8K
MALLOC                              124.3M
MALLOC (admin)                         48K
Memory Tag 242                         12K
Memory Tag 251                         28K
OpenCL                                 84K
OpenGL GLSL                           256K
STACK GUARD                          56.0M
Stack                                11.1M
Stack (reserved)                      520K        reserved VM address space (unallocated)
VM_ALLOCATE                          16.7M
WebKit Malloc                         728K
__DATA                               34.4M
__GLSLBUILTINS                       2588K
__IMAGE                               528K
__LINKEDIT                           74.5M
__TEXT                              194.7M
__UNICODE                             544K
mapped file                         109.8M
shared memory                          68K
===========                        =======
TOTAL                                 1.6G
TOTAL, minus reserved VM space      658.1M


Model: iMac14,2, BootROM IM142.0118.B00, 4 processors, Intel Core i5, 3.4 GHz, 32 GB, SMC 2.15f5
Graphics: NVIDIA GeForce GTX 775M, NVIDIA GeForce GTX 775M, PCIe, 2048 MB
Memory Module: BANK 0/DIMM0, 8 GB, DDR3, 1600 MHz, 0x80AD, 0x484D54343147533641465238412D50422020
Memory Module: BANK 1/DIMM0, 8 GB, DDR3, 1600 MHz, 0x80AD, 0x484D54343147533641465238412D50422020
Memory Module: BANK 0/DIMM1, 8 GB, DDR3, 1600 MHz, 0x80AD, 0x484D54343147533641465238412D50422020
Memory Module: BANK 1/DIMM1, 8 GB, DDR3, 1600 MHz, 0x80AD, 0x484D54343147533641465238412D50422020
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x111), Broadcom BCM43xx 1.0 (7.15.84.5.4)
Bluetooth: Version 4.3.0d54 14222, 3 services, 27 devices, 1 incoming serial ports
Network Service: Ethernet, Ethernet, en0
Network Service: Wi-Fi, AirPort, en1
Serial ATA Device: APPLE SSD SD0128F, 121.33 GB
Serial ATA Device: APPLE HDD ST3000DM001, 3 TB
USB Device: Keyboard Hub
USB Device: Apple Keyboard
USB Device: BRCM20702 Hub
USB Device: Bluetooth USB Host Controller
USB Device: FaceTime HD Camera (Built-in)
Thunderbolt Bus: iMac, Apple Inc., 23.10
@dmoagx
Copy link
Member

dmoagx commented Jul 27, 2014

Confirmed in nb 0c2ea8b
Actually just showing and closing the users sheet is enough to cause the crash.

Related crash is:
http://log.sequelpro.com/view/4857
http://log.sequelpro.com/view/4886

The stack trace doesn't show any involvement of Sequel Pro, though. So I'm not sure this is actually our fault.

@dmoagx dmoagx added the Bug label Jul 27, 2014
@dmoagx dmoagx changed the title OS X Beta crash when creating a new user 10.10 Beta crash when creating a new user Jul 27, 2014
@dmoagx
Copy link
Member

dmoagx commented Jul 28, 2014

So from poking around a bit:
bildschirmfoto 2014-07-28 um 01 56 09
This is a use-after-free of SPUserManager.
(Note: In userManagerSheetDidEnd:returnCode:contextInfo: the retainCount is 1 on both 10.9 and 10.10)

@jasonkerner
Copy link

Happens on the release version of Yosemite too

@designermonkey
Copy link

I can confirm this too, using Maria DB locally on Yosemite release. Every time I add a user it crashes.

@TheLastCicada
Copy link

I can reproduce this every time I add a user. Happy to provide further information if any is needed.

@jaimeeee
Copy link

@TheLastCicada it's been already solved. You can download the files, compile it, and it will be working now.

@TheLastCicada
Copy link

Are the installation instructions on GitHub the official way to install Sequel Pro now? Are there no more official releases on http://www.sequelpro.com/? It has been 18 months since version 1.0.2 on Github. The "check for updates" in Sequel Pro is no longer useful to get bugfix releases? Any of these options are fine, I'm just finding this really confusing as to what I'm supposed to do as a user at this point.

@dmoagx
Copy link
Member

dmoagx commented Dec 11, 2014

As a user:
Wait for the next update. Don't use the User Manager until then or don't use 10.10 until then.

As a software developer:
Try the development snapshots from http://nightly.sequelpro.com/

@markhowellsmead
Copy link

a) http://nightly.sequelpro.com/ doesn't work any more.
b) #1961 hasn't been touched for the last few months. Is it dead?

@dmoagx
Copy link
Member

dmoagx commented Apr 10, 2015

It hasn't been touched because it is fixed and closed.

@markhowellsmead
Copy link

Apologies again. The newest release is indicated as release-1.0.2, although I see that there are nearly two years' worth of commits since then. Are the updates no longer receiving release numbers?

@markhowellsmead
Copy link

The nightly builds indicate that they are not suitable for use in “a production environment”. Could you let me know where I can download the latest stable version please?

@dmoagx
Copy link
Member

dmoagx commented Apr 10, 2015

I agree, 1.0.2 is a bit outdated by now, but still the most recent official version.
We are planning on doing another release (soon...ish) but right now we are short on staff.

@markhowellsmead
Copy link

OK, thanks for the update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants