{"action":"created","issue":{"url":"https://api.github.com/repos/simh/simh/issues/276","repository_url":"https://api.github.com/repos/simh/simh","labels_url":"https://api.github.com/repos/simh/simh/issues/276/labels{/name}","comments_url":"https://api.github.com/repos/simh/simh/issues/276/comments","events_url":"https://api.github.com/repos/simh/simh/issues/276/events","html_url":"https://github.com/simh/simh/issues/276","id":133472022,"number":276,"title":"Graph enabled emulators cancel with SIGSEGV when compiled with clang on OSX","user":{"login":"jguillaumes","id":1552242,"avatar_url":"https://avatars.githubusercontent.com/u/1552242?v=3","gravatar_id":"","url":"https://api.github.com/users/jguillaumes","html_url":"https://github.com/jguillaumes","followers_url":"https://api.github.com/users/jguillaumes/followers","following_url":"https://api.github.com/users/jguillaumes/following{/other_user}","gists_url":"https://api.github.com/users/jguillaumes/gists{/gist_id}","starred_url":"https://api.github.com/users/jguillaumes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jguillaumes/subscriptions","organizations_url":"https://api.github.com/users/jguillaumes/orgs","repos_url":"https://api.github.com/users/jguillaumes/repos","events_url":"https://api.github.com/users/jguillaumes/events{/privacy}","received_events_url":"https://api.github.com/users/jguillaumes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-02-13T20:41:41Z","updated_at":"2016-02-15T19:37:13Z","closed_at":null,"body":"I'm using the microvax3900 as example here. It fails at startup, not even displaying the prompt (so I can't do a \"show version\".\r\n\r\n```\r\nCrashed Thread:        0  Dispatch queue: com.apple.main-thread\r\n\r\nException Type:        EXC_BAD_ACCESS (SIGSEGV)\r\nException Codes:       KERN_INVALID_ADDRESS at 0x0000090000000a03\r\n\r\nVM Regions Near 0x90000000a03:\r\n    MALLOC guard page      0000000100a5b000-0000000100a5c000 [    4K] ---/rwx SM=NUL  \r\n--> \r\n    MALLOC_TINY            00007fae31c00000-00007fae31e00000 [ 2048K] rw-/rwx SM=PRV  \r\n\r\nThread 0 Crashed:: Dispatch queue: com.apple.main-thread\r\n0   ???                           \t0x0000090000000a03 0 + 9895604652547\r\n1   microvax3900                  \t0x0000000100448720 main + 96\r\n2   libdyld.dylib                 \t0x00007fff9c5995ad start + 1\r\n\r\nThread 0 crashed with X86 Thread State (64-bit):\r\n  rax: 0x0000000000000000  rbx: 0x0000000000000000  rcx: 0x0000090000000a03  rdx: 0x00000a0000000a00\r\n  rdi: 0x0000000000000000  rsi: 0x0000000000012068  rbp: 0x00007fff5f842940  rsp: 0x00007fff5f8428b8\r\n   r8: 0x0000000000000040   r9: 0x00007fff7b0b2110  r10: 0xffffffffffffffff  r11: 0x00007fae31d00000\r\n  r12: 0x0000000000000000  r13: 0x0000000000000000  r14: 0x0000000000000000  r15: 0x0000000000000000\r\n  rip: 0x0000090000000a03  rfl: 0x0000000000010246  cr2: 0x0000090000000a03\r\n ``` \r\n\r\nBacktrace in debugger:\r\n\r\n```\r\n(lldb) bt\r\n* thread #1: tid = 0x17c496, 0x00007fff5fbff968, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=2, address=0x7fff5fbff968)\r\n  * frame #0: 0x00007fff5fbff968\r\n    frame #1: 0x00000001000cc12c microvax3900`_XInitThreads + 108 at sim_video.c:326\r\n    frame #2: 0x00000001000cbf6f microvax3900`main(argc=1, argv=0x00007fff5fbff968) + 47 at sim_video.c:382\r\n    frame #3: 0x00007fff9c5995ad libdyld.dylib`start + 1\r\n    frame #4: 0x00007fff9c5995ad libdyld.dylib`start + 1\r\n```\r\nThe following \"show version\" is for the vax780, which is not affected:\r\n\r\n```\r\nVAX 11/780 simulator V4.0-0 Beta\r\n\tSimulator Framework Capabilities:\r\n\t\t64b data\r\n\t\t64b addresses\r\n\t\tEthernet Packet transports:PCAP:TAP:VDE:NAT:UDP\r\n\t\tIdle/Throttling support is available\r\n\t\tVirtual Hard Disk (VHD) support\r\n\t\tAsynchronous I/O support\r\n\t\tFrontPanel API Version 2\r\n\tHost Platform:\r\n\t\tCompiler: GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)\r\n\t\tSimulator Compiled: Feb 13 2016 at 21:40:32\r\n\t\tMemory Access: Little Endian\r\n\t\tMemory Pointer Size: 64 bits\r\n\t\tLarge File (>2GB) support\r\n\t\tSDL Video support: No Video Support\r\n\t\tPCRE RegEx support for EXPECT commands\r\n\t\tOS clock resolution: 1ms\r\n\t\tTime taken by msleep(1): 2ms\r\n\t\tOS: Darwin macjordi.jguillaumes.dyndns.org 15.3.0 Darwin Kernel Version 15.3.0: Thu Dec 10 18:40:58 PST 2015; root:xnu-3248.30.4~1/RELEASE_X86_64 x86_64\r\n        git commit id: d497aea1\r\n```\r\n\r\nBy contrast, if I use the gcc compiler it does not crash:\r\n\r\n```\r\n ./BIN/vax\r\n2016-02-13 21:43:06.819 vax[25397:1562480] 21:43:06.818 WARNING:  140: This application, or a library it uses, is using the deprecated Carbon Component Manager for hosting Audio Units. Support for this will be removed in a future release. Also, this makes the host incompatible with version 3 audio units. Please transition to the API's in AudioComponent.h.\r\n\r\nMicroVAX 3900 simulator V4.0-0 Beta        git commit id: d497aea1\r\nsim> show ver\r\nMicroVAX 3900 simulator V4.0-0 Beta\r\n\tSimulator Framework Capabilities:\r\n\t\t64b data\r\n\t\t64b addresses\r\n\t\tEthernet Packet transports:PCAP:TAP:VDE:NAT:UDP\r\n\t\tIdle/Throttling support is available\r\n\t\tVirtual Hard Disk (VHD) support\r\n\t\tAsynchronous I/O support\r\n\t\tFrontPanel API Version 2\r\n\tHost Platform:\r\n\t\tCompiler: GCC 5.3.0\r\n\t\tSimulator Compiled: Feb 13 2016 at 21:42:29\r\n\t\tMemory Access: Little Endian\r\n\t\tMemory Pointer Size: 64 bits\r\n\t\tLarge File (>2GB) support\r\n\t\tSDL Video support: SDL Version 1.2.15\r\n\t\tPCRE RegEx support for EXPECT commands\r\n\t\tOS clock resolution: 1ms\r\n\t\tTime taken by msleep(1): 2ms\r\n\t\tOS: Darwin macjordi.jguillaumes.dyndns.org 15.3.0 Darwin Kernel Version 15.3.0: Thu Dec 10 18:40:58 PST 2015; root:xnu-3248.30.4~1/RELEASE_X86_64 x86_64\r\n        git commit id: d497aea1\r\nsim> \r\n```\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/simh/simh/issues/comments/184357312","html_url":"https://github.com/simh/simh/issues/276#issuecomment-184357312","issue_url":"https://api.github.com/repos/simh/simh/issues/276","id":184357312,"user":{"login":"markpizz","id":422671,"avatar_url":"https://avatars.githubusercontent.com/u/422671?v=3","gravatar_id":"","url":"https://api.github.com/users/markpizz","html_url":"https://github.com/markpizz","followers_url":"https://api.github.com/users/markpizz/followers","following_url":"https://api.github.com/users/markpizz/following{/other_user}","gists_url":"https://api.github.com/users/markpizz/gists{/gist_id}","starred_url":"https://api.github.com/users/markpizz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markpizz/subscriptions","organizations_url":"https://api.github.com/users/markpizz/orgs","repos_url":"https://api.github.com/users/markpizz/repos","events_url":"https://api.github.com/users/markpizz/events{/privacy}","received_events_url":"https://api.github.com/users/markpizz/received_events","type":"User","site_admin":false},"created_at":"2016-02-15T19:37:12Z","updated_at":"2016-02-15T19:37:12Z","body":"Ahhh.  I didn't look that closely.  Thanks.\r\n\r\nSo, that traceback clearly points to change which was made to address problems with libSDL (not libSDL2) on platforms using X11 for display.  The problem was reported in #248.  It would be great if you could: 1) confirm that you're running with the latest libSDL package available from MacPorts, and 2) git bisect to identify when this started happening.  The fix for #248 was implemented in early December.\r\n\r\nThanks.\r\n\r\n- Mark"}}