Menu

#272 latest macOS version can't import data in Stata .dta files

v1.0_(example)
closed
nobody
None
5
2022-07-19
2022-07-11
No

In macOS, opening a datafile in Stata .dta format causes GRETL to crash.

I'm using gretl 2022a
macOS (arm64, gtk2)
build date 2022-02-02

I've experienced this problem on two computers, an M1 MacBook Air (late 2020) and a 14" MacBook Pro (2021).

I've tried this with several .dta files on both computers. In Stata, these files open successfully.

When I attempt to open a .dta file in GRETL, GRETL seems to freeze for a few seconds; sometimes I get the spinning beach ball, other times nothing. After approximately 10 seconds, GRETL goes away. macOS gives me a (very long & detailed) crash report. I've pasted it below. Thanks so much for any information or help.

--


Translated Report (Full Report Below)

Process: gretl [956]
Path: /Applications/Gretl.app/Contents/MacOS/gretl
Identifier: net.sourceforge.gretl
Version: 2022a
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
User ID: 502

Date/Time: 2022-07-10 18:46:09.0841 -0500
OS Version: macOS 12.4 (21F79)
Report Version: 12
Anonymous UUID: BA3FEE17-C14D-295F-1F41-37D0B4F39172

Time Awake Since Boot: 150 seconds

System Integrity Protection: enabled

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

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY

Application Specific Information:
stack buffer overflow

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x1b17e2d98 __pthread_kill + 8
1 libsystem_pthread.dylib 0x1b1817ee0 pthread_kill + 288
2 libsystem_c.dylib 0x1b17523cc __abort + 128
3 libsystem_c.dylib 0x1b1743d48 __stack_chk_fail + 96
4 stata_import.so 0x10cc97558 dta_get_data + 3612
5 gretl 0x104eceb1c get_imported_data + 500
6 gretl 0x104ecef74 do_open_data + 384
7 gretl 0x104e97c44 gtk_file_selector + 2704
8 libgobject-2.0.0.dylib 0x105cd5754 g_closure_invoke + 216
9 libgobject-2.0.0.dylib 0x105ceb484 signal_emit_unlocked_R + 1832
10 libgobject-2.0.0.dylib 0x105cec0b0 g_signal_emit_valist + 2296
11 libgobject-2.0.0.dylib 0x105cec420 g_signal_emit + 28
12 libgtk-quartz-2.0.0.dylib 0x105755008 _gtk_action_emit_activate + 76
13 libgobject-2.0.0.dylib 0x105cd5754 g_closure_invoke + 216
14 libgobject-2.0.0.dylib 0x105ceb0fc signal_emit_unlocked_R + 928
15 libgobject-2.0.0.dylib 0x105cec0b0 g_signal_emit_valist + 2296
16 libgobject-2.0.0.dylib 0x105cec420 g_signal_emit + 28
17 libgtk-quartz-2.0.0.dylib 0x105950f24 gtk_widget_activate + 80
18 libgtk-quartz-2.0.0.dylib 0x105838ee0 gtk_menu_shell_activate_item + 284
19 libgtk-quartz-2.0.0.dylib 0x10583a328 gtk_menu_shell_button_release + 536
20 libgtk-quartz-2.0.0.dylib 0x105825900 _gtk_marshal_BOOLEAN__BOXED + 116
21 libgobject-2.0.0.dylib 0x105cd5754 g_closure_invoke + 216
22 libgobject-2.0.0.dylib 0x105ceb284 signal_emit_unlocked_R + 1320
23 libgobject-2.0.0.dylib 0x105cec0e4 g_signal_emit_valist + 2348
24 libgobject-2.0.0.dylib 0x105cec420 g_signal_emit + 28
25 libgtk-quartz-2.0.0.dylib 0x105950cc4 gtk_widget_event_internal + 652
26 libgtk-quartz-2.0.0.dylib 0x105823760 gtk_propagate_event + 312
27 libgtk-quartz-2.0.0.dylib 0x105823434 gtk_main_do_event + 1240
28 libgdk-quartz-2.0.0.dylib 0x1053d5e70 gdk_event_dispatch + 100
29 libglib-2.0.0.dylib 0x10666a1ec g_main_context_dispatch + 320
30 libglib-2.0.0.dylib 0x10666a580 g_main_context_iterate + 520
31 libglib-2.0.0.dylib 0x10666a930 g_main_loop_run + 256
32 libgtk-quartz-2.0.0.dylib 0x105822c80 gtk_main + 196
33 gretl 0x104ec51f4 main + 3792
34 dyld 0x1050c908c start + 520

Thread 1:
0 libsystem_pthread.dylib 0x1b1813078 start_wqthread + 0

Thread 2:: com.apple.NSEventThread
0 libsystem_kernel.dylib 0x1b17da8b0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x1b17dad20 mach_msg + 76
2 CoreFoundation 0x1b18e52b0 __CFRunLoopServiceMachPort + 372
3 CoreFoundation 0x1b18e3760 __CFRunLoopRun + 1180
4 CoreFoundation 0x1b18e2b24 CFRunLoopRunSpecific + 600
5 AppKit 0x1b45b6374 _NSEventThread + 196
6 libsystem_pthread.dylib 0x1b181826c _pthread_start + 148
7 libsystem_pthread.dylib 0x1b181308c thread_start + 8

Thread 3:
0 libsystem_kernel.dylib 0x1b17de270 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x1b181883c _pthread_cond_wait + 1236
2 libgdk-quartz-2.0.0.dylib 0x1053d645c select_thread_func + 132
3 libsystem_pthread.dylib 0x1b181826c _pthread_start + 148
4 libsystem_pthread.dylib 0x1b181308c thread_start + 8

Thread 4:: gmain
0 libsystem_kernel.dylib 0x1b17e2eb0 poll + 8
1 libglib-2.0.0.dylib 0x10666a520 g_main_context_iterate + 424
2 libglib-2.0.0.dylib 0x10666a640 g_main_context_iteration + 112
3 libglib-2.0.0.dylib 0x10666c77c glib_worker_main + 48
4 libglib-2.0.0.dylib 0x106692390 g_thread_proxy + 68
5 libsystem_pthread.dylib 0x1b181826c _pthread_start + 148
6 libsystem_pthread.dylib 0x1b181308c thread_start + 8

Thread 5:: pool-spawner
0 libsystem_kernel.dylib 0x1b17de270 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x1b181883c _pthread_cond_wait + 1236
2 libglib-2.0.0.dylib 0x1066b8a4c g_cond_wait + 44
3 libglib-2.0.0.dylib 0x106638750 g_async_queue_pop_intern_unlocked + 144
4 libglib-2.0.0.dylib 0x1066929d8 g_thread_pool_spawn_thread + 88
5 libglib-2.0.0.dylib 0x106692390 g_thread_proxy + 68
6 libsystem_pthread.dylib 0x1b181826c _pthread_start + 148
7 libsystem_pthread.dylib 0x1b181308c thread_start + 8

Thread 6:
0 libsystem_pthread.dylib 0x1b1813078 start_wqthread + 0

Thread 7:
0 libsystem_pthread.dylib 0x1b1813078 start_wqthread + 0

Thread 8:
0 libsystem_pthread.dylib 0x1b1813078 start_wqthread + 0

Thread 9:: pool-gretl
0 libsystem_kernel.dylib 0x1b17de270 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x1b1818868 _pthread_cond_wait + 1280
2 libglib-2.0.0.dylib 0x1066b8c78 g_cond_wait_until + 128
3 libglib-2.0.0.dylib 0x106638774 g_async_queue_pop_intern_unlocked + 180
4 libglib-2.0.0.dylib 0x1066936d0 g_thread_pool_thread_proxy + 172
5 libglib-2.0.0.dylib 0x106692390 g_thread_proxy + 68
6 libsystem_pthread.dylib 0x1b181826c _pthread_start + 148
7 libsystem_pthread.dylib 0x1b181308c thread_start + 8

Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x0000000000000000
x4: 0x0000000000000000 x5: 0x0000000000000000 x6: 0x0000000000000000 x7: 0x00000001b17585fe
x8: 0xc29b8f8a52c6038a x9: 0xc29b8f8b57d5c60a x10: 0x00000000000007fb x11: 0x00000000000007fd
x12: 0x0000000000000040 x13: 0x000000008cc34841 x14: 0x000000008ce35000 x15: 0x000000000000006a
x16: 0x0000000000000148 x17: 0x000000020b8a3680 x18: 0x0000000000000000 x19: 0x0000000000000006
x20: 0x000000010513c580 x21: 0x0000000000000103 x22: 0x000000010513c660 x23: 0x0000000000000040
x24: 0x0000000000000000 x25: 0x0000000000005b7f x26: 0x0000600001fc6580 x27: 0x0000600002ecdad0
x28: 0x0000600003d7d7a0 fp: 0x000000016afa1cd0 lr: 0x00000001b1817ee0
sp: 0x000000016afa1cb0 pc: 0x00000001b17e2d98 cpsr: 0x40001000
far: 0x000000010638b668 esr: 0x56000080 Address size fault

Binary Images:
0x1b17d9000 - 0x1b1810fff libsystem_kernel.dylib () <03f48dc5-caa7-3678-af61-1a3c7fa8b06e> /usr/lib/system/libsystem_kernel.dylib
0x1b1811000 - 0x1b181dfff libsystem_pthread.dylib (
) <42166a2c-89a9-3c38-a215-f028544cea23> /usr/lib/system/libsystem_pthread.dylib
0x1b16d8000 - 0x1b1759fff libsystem_c.dylib () <86746b94-88e3-342d-b2b2-54303404e492> /usr/lib/system/libsystem_c.dylib
0x10cc90000 - 0x10cc9bfff stata_import.so (
) <ec6f7915-0380-329e-b329-675dbaa3272e> /Applications/Gretl.app/Contents/Resources/lib/gretl-gtk2/stata_import.so
0x104e5c000 - 0x104f77fff net.sourceforge.gretl () <61024218-1758-331c-940b-2a264168a576> /Applications/Gretl.app/Contents/MacOS/gretl
0x105cc4000 - 0x105d07fff libgobject-2.0.0.dylib (
) <019f2a93-f18d-3ed2-9060-af412cb20627> /Applications/Gretl.app/Contents/Resources/lib/libgobject-2.0.0.dylib
0x105744000 - 0x105aa7fff libgtk-quartz-2.0.0.dylib () <48d92d3e-55a1-35b4-8af9-46adff9a6256> /Applications/Gretl.app/Contents/Resources/lib/libgtk-quartz-2.0.0.dylib
0x105398000 - 0x10540ffff libgdk-quartz-2.0.0.dylib (
) <ca931c49-d602-3780-8fc0-42995c534240> /Applications/Gretl.app/Contents/Resources/lib/libgdk-quartz-2.0.0.dylib
0x106628000 - 0x106743fff libglib-2.0.0.dylib () <19c88d19-3cd4-3521-ac8d-289200e07473> /Applications/Gretl.app/Contents/Resources/lib/libglib-2.0.0.dylib
0x1050c4000 - 0x105123fff dyld (
) <d9c2a46e-8dc4-3950-9d6a-f799e8ccb683> /usr/lib/dyld
0x1b1860000 - 0x1b1da6fff com.apple.CoreFoundation (6.9) <994db908-11a1-3e43-b7df-25c09d51368a> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x1b4408000 - 0x1b52bffff com.apple.AppKit (6.9) <a773dd23-b1c8-3c9b-9175-9a71d210ace0> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit</a773dd23-b1c8-3c9b-9175-9a71d210ace0></d9c2a46e-8dc4-3950-9d6a-f799e8ccb683></ca931c49-d602-3780-8fc0-42995c534240></ec6f7915-0380-329e-b329-675dbaa3272e>

External Modification Summary:
Calls made by other processes targeting this process:
task_for_pid: 0
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: 0
thread_create: 0
thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=807.0M resident=0K(0%) swapped_out_or_unallocated=807.0M(100%)
Writable regions: Total=1.7G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=1.7G(100%)

                            VIRTUAL   REGION

REGION TYPE SIZE COUNT (non-coalesced)
=========== ======= =======
Accelerate framework 512K 4
Activity Tracing 256K 1
CG backing stores 2176K 4
CG image 272K 5
ColorSync 528K 26
CoreAnimation 38.5M 22
CoreGraphics 32K 2
CoreUI image data 1088K 7
Foundation 16K 1
Kernel Alloc Once 32K 1
MALLOC 302.3M 64
MALLOC guard page 192K 10
MALLOC_MEDIUM (reserved) 952.0M 8 reserved VM address space (unallocated)
MALLOC_NANO (reserved) 384.0M 1 reserved VM address space (unallocated)
STACK GUARD 56.2M 10
Stack 12.8M 10
VM_ALLOCATE 544K 19
__AUTH 1808K 157
__AUTH_CONST 9.9M 310
__CTF 756 1
__DATA 8944K 324
__DATA_CONST 10.5M 338
__DATA_DIRTY 596K 100
__FONT_DATA 4K 1
__LINKEDIT 582.0M 31
__OBJC_CONST 1264K 129
__OBJC_RO 83.0M 1
__OBJC_RW 3152K 1
__TEXT 225.0M 354
__UNICODE 592K 1
dyld private memory 1024K 1
mapped file 81.8M 22
shared memory 912K 15
=========== ======= =======
TOTAL 2.7G 1981
TOTAL, minus reserved VM space 1.4G 1981


Full Report

{"app_name":"gretl","timestamp":"2022-07-10 18:46:20.00 -0500","app_version":"","sroute_id":4,"slice_uuid":"61024218-1758-331c-940b-2a264168a576","build_version":"2022a","platform":1,"bundleID":"net.sourceforge.gretl","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"macOS 12.4 (21F79)","incident_id":"2577B36C-6DBC-42BD-B721-0B4B42DAEBF0","name":"gretl"}
{
"uptime" : 150,
"procLaunch" : "2022-07-10 18:44:35.5996 -0500",
"procRole" : "Foreground",
"version" : 2,
"userID" : 502,
"deployVersion" : 210,
"modelCode" : "MacBookAir10,1",
"procStartAbsTime" : 1490528593,
"coalitionID" : 947,
"osVersion" : {
"train" : "macOS 12.4",
"build" : "21F79",
"releaseType" : "User"
},
"captureTime" : "2022-07-10 18:46:09.0841 -0500",
"incident" : "2577B36C-6DBC-42BD-B721-0B4B42DAEBF0",
"bug_type" : "309",
"pid" : 956,
"procExitAbsTime" : 3734176147,
"translated" : false,
"cpuType" : "ARM-64",
"procName" : "gretl",
"procPath" : "\/Applications\/Gretl.app\/Contents\/MacOS\/gretl",
"bundleInfo" : {"CFBundleVersion":"2022a","CFBundleIdentifier":"net.sourceforge.gretl"},
"storeInfo" : {"deviceIdentifierForVendor":"A657B935-B181-50E4-B5F6-D96D11DCA953","thirdParty":true},
"parentProc" : "launchd",
"parentPid" : 1,
"coalitionName" : "net.sourceforge.gretl",
"crashReporterKey" : "BA3FEE17-C14D-295F-1F41-37D0B4F39172",
"sip" : "enabled",
"sroute_id" : 4,
"isCorpse" : 1,
"exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGABRT"},
"asi" : {"libsystem_c.dylib":["stack buffer overflow"]},
"extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
"faultingThread" : 0,
"threads" : [{"triggered":true,"id":7858,"threadState":{"x":[{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":7272236542,"symbolLocation":2472,"symbol":"hexlist"},{"value":14022959689005138826},{"value":14022959693385025034},{"value":2043},{"value":2045},{"value":64},{"value":2361608257},{"value":2363707392},{"value":106},{"value":328},{"value":8783541888},{"value":0},{"value":6},{"value":4380149120,"symbolLocation":0,"symbol":"_main_thread"},{"value":259},{"value":4380149344,"symbolLocation":224,"symbol":"_main_thread"},{"value":64},{"value":0},{"value":23423},{"value":105553149584768},{"value":105553165343440},{"value":105553180743584}],"flavor":"ARM_THREAD_STATE64","lr":{"value":7273021152},"cpsr":{"value":1073745920},"fp":{"value":6089743568},"sp":{"value":6089743536},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":7272803736,"matchesCrashFrame":1},"far":{"value":4399347304}},"queue":"com.apple.main-thread","frames":[{"imageOffset":40344,"symbol":"__pthread_kill","symbolLocation":8,"imageIndex":0},{"imageOffset":28384,"symbol":"pthread_kill","symbolLocation":288,"imageIndex":1},{"imageOffset":500684,"symbol":"__abort","symbolLocation":128,"imageIndex":2},{"imageOffset":441672,"symbol":"__stack_chk_fail","symbolLocation":96,"imageIndex":2},{"imageOffset":30040,"symbol":"dta_get_data","symbolLocation":3612,"imageIndex":3},{"imageOffset":469788,"symbol":"get_imported_data","symbolLocation":500,"imageIndex":4},{"imageOffset":470900,"symbol":"do_open_data","symbolLocation":384,"imageIndex":4},{"imageOffset":244804,"symbol":"gtk_file_selector","symbolLocation":2704,"imageIndex":4},{"imageOffset":71508,"symbol":"g_closure_invoke","symbolLocation":216,"imageIndex":5},{"imageOffset":160900,"symbol":"signal_emit_unlocked_R","symbolLocation":1832,"imageIndex":5},{"imageOffset":164016,"symbol":"g_signal_emit_valist","symbolLocation":2296,"imageIndex":5},{"imageOffset":164896,"symbol":"g_signal_emit","symbolLocation":28,"imageIndex":5},{"imageOffset":69640,"symbol":"_gtk_action_emit_activate","symbolLocation":76,"imageIndex":6},{"imageOffset":71508,"symbol":"g_closure_invoke","symbolLocation":216,"imageIndex":5},{"imageOffset":159996,"symbol":"signal_emit_unlocked_R","symbolLocation":928,"imageIndex":5},{"imageOffset":164016,"symbol":"g_signal_emit_valist","symbolLocation":2296,"imageIndex":5},{"imageOffset":164896,"symbol":"g_signal_emit","symbolLocation":28,"imageIndex":5},{"imageOffset":2150180,"symbol":"gtk_widget_activate","symbolLocation":80,"imageIndex":6},{"imageOffset":1003232,"symbol":"gtk_menu_shell_activate_item","symbolLocation":284,"imageIndex":6},{"imageOffset":1008424,"symbol":"gtk_menu_shell_button_release","symbolLocation":536,"imageIndex":6},{"imageOffset":923904,"symbol":"_gtk_marshal_BOOLEAN__BOXED","symbolLocation":116,"imageIndex":6},{"imageOffset":71508,"symbol":"g_closure_invoke","symbolLocation":216,"imageIndex":5},{"imageOffset":160388,"symbol":"signal_emit_unlocked_R","symbolLocation":1320,"imageIndex":5},{"imageOffset":164068,"symbol":"g_signal_emit_valist","symbolLocation":2348,"imageIndex":5},{"imageOffset":164896,"symbol":"g_signal_emit","symbolLocation":28,"imageIndex":5},{"imageOffset":2149572,"symbol":"gtk_widget_event_internal","symbolLocation":652,"imageIndex":6},{"imageOffset":915296,"symbol":"gtk_propagate_event","symbolLocation":312,"imageIndex":6},{"imageOffset":914484,"symbol":"gtk_main_do_event","symbolLocation":1240,"imageIndex":6},{"imageOffset":253552,"symbol":"gdk_event_dispatch","symbolLocation":100,"imageIndex":7},{"imageOffset":270828,"symbol":"g_main_context_dispatch","symbolLocation":320,"imageIndex":8},{"imageOffset":271744,"symbol":"g_main_context_iterate","symbolLocation":520,"imageIndex":8},{"imageOffset":272688,"symbol":"g_main_loop_run","symbolLocation":256,"imageIndex":8},{"imageOffset":912512,"symbol":"gtk_main","symbolLocation":196,"imageIndex":6},{"imageOffset":430580,"symbol":"main","symbolLocation":3792,"imageIndex":4},{"imageOffset":20620,"symbol":"start","symbolLocation":520,"imageIndex":9}]},{"id":7876,"frames":[{"imageOffset":8312,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":7898,"name":"com.apple.NSEventThread","frames":[{"imageOffset":6320,"symbol":"mach_msg_trap","symbolLocation":8,"imageIndex":0},{"imageOffset":7456,"symbol":"mach_msg","symbolLocation":76,"imageIndex":0},{"imageOffset":545456,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":372,"imageIndex":10},{"imageOffset":538464,"symbol":"__CFRunLoopRun","symbolLocation":1180,"imageIndex":10},{"imageOffset":535332,"symbol":"CFRunLoopRunSpecific","symbolLocation":600,"imageIndex":10},{"imageOffset":1762164,"symbol":"_NSEventThread","symbolLocation":196,"imageIndex":11},{"imageOffset":29292,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":1},{"imageOffset":8332,"symbol":"thread_start","symbolLocation":8,"imageIndex":1}]},{"id":7901,"frames":[{"imageOffset":21104,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":30780,"symbol":"_pthread_cond_wait","symbolLocation":1236,"imageIndex":1},{"imageOffset":255068,"symbol":"select_thread_func","symbolLocation":132,"imageIndex":7},{"imageOffset":29292,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":1},{"imageOffset":8332,"symbol":"thread_start","symbolLocation":8,"imageIndex":1}]},{"id":8116,"name":"gmain","frames":[{"imageOffset":40624,"symbol":"poll","symbolLocation":8,"imageIndex":0},{"imageOffset":271648,"symbol":"g_main_context_iterate","symbolLocation":424,"imageIndex":8},{"imageOffset":271936,"symbol":"g_main_context_iteration","symbolLocation":112,"imageIndex":8},{"imageOffset":280444,"symbol":"glib_worker_main","symbolLocation":48,"imageIndex":8},{"imageOffset":435088,"symbol":"g_thread_proxy","symbolLocation":68,"imageIndex":8},{"imageOffset":29292,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":1},{"imageOffset":8332,"symbol":"thread_start","symbolLocation":8,"imageIndex":1}]},{"id":8117,"name":"pool-spawner","frames":[{"imageOffset":21104,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":30780,"symbol":"_pthread_cond_wait","symbolLocation":1236,"imageIndex":1},{"imageOffset":592460,"symbol":"g_cond_wait","symbolLocation":44,"imageIndex":8},{"imageOffset":67408,"symbol":"g_async_queue_pop_intern_unlocked","symbolLocation":144,"imageIndex":8},{"imageOffset":436696,"symbol":"g_thread_pool_spawn_thread","symbolLocation":88,"imageIndex":8},{"imageOffset":435088,"symbol":"g_thread_proxy","symbolLocation":68,"imageIndex":8},{"imageOffset":29292,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":1},{"imageOffset":8332,"symbol":"thread_start","symbolLocation":8,"imageIndex":1}]},{"id":8706,"frames":[{"imageOffset":8312,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":8754,"frames":[{"imageOffset":8312,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":8755,"frames":[{"imageOffset":8312,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":8822,"name":"pool-gretl","frames":[{"imageOffset":21104,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":30824,"symbol":"_pthread_cond_wait","symbolLocation":1280,"imageIndex":1},{"imageOffset":593016,"symbol":"g_cond_wait_until","symbolLocation":128,"imageIndex":8},{"imageOffset":67444,"symbol":"g_async_queue_pop_intern_unlocked","symbolLocation":180,"imageIndex":8},{"imageOffset":440016,"symbol":"g_thread_pool_thread_proxy","symbolLocation":172,"imageIndex":8},{"imageOffset":435088,"symbol":"g_thread_proxy","symbolLocation":68,"imageIndex":8},{"imageOffset":29292,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":1},{"imageOffset":8332,"symbol":"thread_start","symbolLocation":8,"imageIndex":1}]}],
"usedImages" : [
{
"source" : "P",
"arch" : "arm64e",
"base" : 7272763392,
"size" : 229376,
"uuid" : "03f48dc5-caa7-3678-af61-1a3c7fa8b06e",
"path" : "\/usr\/lib\/system\/libsystem_kernel.dylib",
"name" : "libsystem_kernel.dylib"
},
{
"source" : "P",
"arch" : "arm64e",
"base" : 7272992768,
"size" : 53248,
"uuid" : "42166a2c-89a9-3c38-a215-f028544cea23",
"path" : "\/usr\/lib\/system\/libsystem_pthread.dylib",
"name" : "libsystem_pthread.dylib"
},
{
"source" : "P",
"arch" : "arm64e",
"base" : 7271710720,
"size" : 532480,
"uuid" : "86746b94-88e3-342d-b2b2-54303404e492",
"path" : "\/usr\/lib\/system\/libsystem_c.dylib",
"name" : "libsystem_c.dylib"
},
{
"source" : "P",
"arch" : "arm64",
"base" : 4509466624,
"size" : 49152,
"uuid" : "ec6f7915-0380-329e-b329-675dbaa3272e",
"path" : "\/Applications\/Gretl.app\/Contents\/Resources\/lib\/gretl-gtk2\/stata_import.so",
"name" : "stata_import.so"
},
{
"source" : "P",
"arch" : "arm64",
"base" : 4377133056,
"CFBundleIdentifier" : "net.sourceforge.gretl",
"size" : 1163264,
"uuid" : "61024218-1758-331c-940b-2a264168a576",
"path" : "\/Applications\/Gretl.app\/Contents\/MacOS\/gretl",
"name" : "gretl",
"CFBundleVersion" : "2022a"
},
{
"source" : "P",
"arch" : "arm64",
"base" : 4392239104,
"size" : 278528,
"uuid" : "019f2a93-f18d-3ed2-9060-af412cb20627",
"path" : "\/Applications\/Gretl.app\/Contents\/Resources\/lib\/libgobject-2.0.0.dylib",
"name" : "libgobject-2.0.0.dylib"
},
{
"source" : "P",
"arch" : "arm64",
"base" : 4386471936,
"size" : 3555328,
"uuid" : "48d92d3e-55a1-35b4-8af9-46adff9a6256",
"path" : "\/Applications\/Gretl.app\/Contents\/Resources\/lib\/libgtk-quartz-2.0.0.dylib",
"name" : "libgtk-quartz-2.0.0.dylib"
},
{
"source" : "P",
"arch" : "arm64",
"base" : 4382621696,
"size" : 491520,
"uuid" : "ca931c49-d602-3780-8fc0-42995c534240",
"path" : "\/Applications\/Gretl.app\/Contents\/Resources\/lib\/libgdk-quartz-2.0.0.dylib",
"name" : "libgdk-quartz-2.0.0.dylib"
},
{
"source" : "P",
"arch" : "arm64",
"base" : 4402085888,
"size" : 1163264,
"uuid" : "19c88d19-3cd4-3521-ac8d-289200e07473",
"path" : "\/Applications\/Gretl.app\/Contents\/Resources\/lib\/libglib-2.0.0.dylib",
"name" : "libglib-2.0.0.dylib"
},
{
"source" : "P",
"arch" : "arm64e",
"base" : 4379656192,
"size" : 393216,
"uuid" : "d9c2a46e-8dc4-3950-9d6a-f799e8ccb683",
"path" : "\/usr\/lib\/dyld",
"name" : "dyld"
},
{
"source" : "P",
"arch" : "arm64e",
"base" : 7273316352,
"CFBundleShortVersionString" : "6.9",
"CFBundleIdentifier" : "com.apple.CoreFoundation",
"size" : 5533696,
"uuid" : "994db908-11a1-3e43-b7df-25c09d51368a",
"path" : "\/System\/Library\/Frameworks\/CoreFoundation.framework\/Versions\/A\/CoreFoundation",
"name" : "CoreFoundation",
"CFBundleVersion" : "1863"
},
{
"source" : "P",
"arch" : "arm64e",
"base" : 7319093248,
"CFBundleShortVersionString" : "6.9",
"CFBundleIdentifier" : "com.apple.AppKit",
"size" : 15433728,
"uuid" : "a773dd23-b1c8-3c9b-9175-9a71d210ace0",
"path" : "\/System\/Library\/Frameworks\/AppKit.framework\/Versions\/C\/AppKit",
"name" : "AppKit",
"CFBundleVersion" : "2113.50.132"
}
],
"sharedCache" : {
"base" : 7269695488,
"size" : 3136077824,
"uuid" : "513553bb-5ca5-3b9e-a613-b0603ffe3038"
},
"vmSummary" : "ReadOnly portion of Libraries: Total=807.0M resident=0K(0%) swapped_out_or_unallocated=807.0M(100%)\nWritable regions: Total=1.7G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=1.7G(100%)\n\n VIRTUAL REGION \nREGION TYPE SIZE COUNT (non-coalesced) \n=========== ======= ======= \nAccelerate framework 512K 4 \nActivity Tracing 256K 1 \nCG backing stores 2176K 4 \nCG image 272K 5 \nColorSync 528K 26 \nCoreAnimation 38.5M 22 \nCoreGraphics 32K 2 \nCoreUI image data 1088K 7 \nFoundation 16K 1 \nKernel Alloc Once 32K 1 \nMALLOC 302.3M 64 \nMALLOC guard page 192K 10 \nMALLOC_MEDIUM (reserved) 952.0M 8 reserved VM address space (unallocated)\nMALLOC_NANO (reserved) 384.0M 1 reserved VM address space (unallocated)\nSTACK GUARD 56.2M 10 \nStack 12.8M 10 \nVM_ALLOCATE 544K 19 \n__AUTH 1808K 157 \n__AUTH_CONST 9.9M 310 \n__CTF 756 1 \n__DATA 8944K 324 \n__DATA_CONST 10.5M 338 \n__DATA_DIRTY 596K 100 \n__FONT_DATA 4K 1 \n__LINKEDIT 582.0M 31 \n__OBJC_CONST 1264K 129 \n__OBJC_RO 83.0M 1 \n__OBJC_RW 3152K 1 \n__TEXT 225.0M 354 \n__UNICODE 592K 1 \ndyld private memory 1024K 1 \nmapped file 81.8M 22 \nshared memory 912K 15 \n=========== ======= ======= \nTOTAL 2.7G 1981 \nTOTAL, minus reserved VM space 1.4G 1981 \n",
"legacyInfo" : {
"threadTriggered" : {
"queue" : "com.apple.main-thread"
}
},
"trialInfo" : {
"rollouts" : [
{
"rolloutId" : "6112dda2fc54bc3389840642",
"factorPackIds" : {
"SIRI_DICTATION_ASSETS" : "628bd2fda5168570b594bb52"
},
"deploymentId" : 240000137
},
{
"rolloutId" : "60da5e84ab0ca017dace9abf",
"factorPackIds" : {

  },
  "deploymentId" : 240000008
}

],
"experiments" : [

]
}
}

Model: MacBookAir10,1, BootROM 7459.121.3, proc 8:4:4 processors, 16 GB, SMC
Graphics: Apple M1, Apple M1, Built-In
Display: Color LCD, 2560 x 1600 Retina, Main, MirrorOff, Online
Memory Module: LPDDR4
AirPort: Wi-Fi, wl0: Mar 23 2022 19:57:59 version 18.60.27.0.7.8.129 FWID 01-570be953
Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
USB Device: USB31Bus
USB Device: USB31Bus
Thunderbolt Bus: MacBook Air, Apple Inc.
Thunderbolt Bus: MacBook Air, Apple Inc.

Related

Bugs: #272

Discussion

  • Allin Cottrell

    Allin Cottrell - 2022-07-11

    Could you please post a dta file that provokes the crash? Thanks.

     
  • Ron Cronovich

    Ron Cronovich - 2022-07-11

    Thanks for getting back to me so quickly.

    I've found that GRETL on my two computers does open some .dta files and not others.

    Here's one that crashes GRETL.

     
    • Allin Cottrell

      Allin Cottrell - 2022-07-11

      Thanks. Your cps12.dta opens OK on Linux -- and the valgrind memory checker shows no problems -- so I'm afraid I'll have to wait until I can try it on a Mac before I can comment further. I'll be able to do that when I get home, in 10 days.

       
      • Sven Schreiber

        Sven Schreiber - 2022-07-11

        Maybe we can collect a little more information on the problem in the meantime, FWIW. Ron, do I understand correctly that one of your Macs is one with a M1/ARM CPU, but the other one isn't? Could you perhaps say which version of Mac OS your computers are running?
        We could ask some Mac users on the gretl mailing list to try out your example file, maybe that would show some pattern.

         
        • Ron Cronovich

          Ron Cronovich - 2022-07-12

          Thanks! Both of my macs have the M1 processor. I have not tried this on a
          Mac with an Intel processor.

          On Mon, Jul 11, 2022 at 4:02 PM Sven S. svetosch@users.sourceforge.net
          wrote:

          Maybe we can collect a little more information on the problem in the
          meantime, FWIW. Ron, do I understand correctly that one of your Macs is one
          with a M1/ARM CPU, but the other one isn't? Could you perhaps say which
          version of Mac OS your computers are running?
          We could ask some Mac users on the gretl mailing list to try out your
          example file, maybe that would show some pattern.


           

          Last edit: Allin Cottrell 2022-07-15
          • Sven Schreiber

            Sven Schreiber - 2022-07-13

            Thanks, that's interesting. I guess the working hypothesis is then that it only happens with ARM Macs, but it remains to be verified. We'll probably ask other people on Intel Macs to try your file.

             
            • Sven Schreiber

              Sven Schreiber - 2022-07-13

              The hypothesis is already falsified, a colleague on an Intel Mac is seeing a crash with your example file as well.

               
  • Ron Cronovich

    Ron Cronovich - 2022-07-11

    Here's a .dta file that does not crash GRETL

     
    • Riccardo "Jack" Lucchetti

      Thanks, this is useful.

      The difference between this file and the other one you posted earlier is that this one is recognised by gretl as version 8, whereas the one that provoked the crash is identified as version 117. Internally, we separate code for the two cases. It looks as if we have some machine-dependent issue when we read the newer format (the header or the data, or both).

       
  • Ron Cronovich

    Ron Cronovich - 2022-07-11

    When I extract data from IPUMS in the form of a .dta file, it crashes GRETL on my macs every time.

    But my research partner can successfully open these same files in GRETL on her Windows computer.

     
  • Allin Cottrell

    Allin Cottrell - 2022-07-14

    Here's something that could be useful in debugging: trying to open cps12.dta using gretlcli. I think the following command, executed in a Terminal window, should do it. (You may have to specify the full path to the dta file.)

    /Applications/Gretl.app/Contents/Resources/bin/gretlcli cps12.dta
    

    When I do the equivalent on on Linux I see the response shown below. It would be interesting to know how much, if any, of it can be seen on macOS before the crash occurs.

    Stata dta version 117, byte-order LSF
    endianness: little
    number of variables = 5
    number of observations = 7440
    length of varnames = 32
    timestamp: '22 Jan 2014 10:25'
    variable 1: float type
    variable 2: float type
    variable 3: float type
    variable 4: float type
    variable 5: float type
    variable 1: name = 'year'
    variable 2: name = 'ahe'
    variable 3: name = 'bachelor'
    variable 4: name = 'female'
    variable 5: name = 'age'
    Listing 6 variables:
      0) const       1) year        2) ahe         3) bachelor    4) female    
      5) age       
    
     
    • Luca Pedini

      Luca Pedini - 2022-07-14

      Hi all,
      This is the report from the gretlcli command on my Intel Mac:
      ————-
      Stata dta version 117, byte-order LSF
      endianness: little
      number of variables = 5
      number of observations = 7440
      length of varnames = 32
      timestamp: '22 Jan 2014 10:25'
      variable 1: float type
      variable 2: float type
      variable 3: float type
      variable 4: float type
      variable 5: float type
      variable 1: name = 'year'
      variable 2: name = 'ahe'
      variable 3: name = 'bachelor'
      variable 4: name = 'female'
      variable 5: name = 'age'
      Abort trap: 6
      —————
      I hope this may help!
      Best regards,
      Luca

       

      Last edit: Allin Cottrell 2022-07-15
  • Allin Cottrell

    Allin Cottrell - 2022-07-15

    Thanks to Luca for testing. I've now posted a snapshot with some more debugging info for dta importation. If Luca (or someone else) could re-try opening the file with gretlcli, hopefully we'll learn some more about where the crash is.

     
    • Luca Pedini

      Luca Pedini - 2022-07-15

      Something weird just happened…I’ve downloaded the new snapshot and now
      opening that problematic .dta file doesn’t trigger the crash anymore…it
      works fine. Should I attach the gretlcli report?

       

      Last edit: Allin Cottrell 2022-07-15
      • Allin Cottrell

        Allin Cottrell - 2022-07-15

        Thanks, Luca, that's interesting. Besides the extra debugging I also made a few minor changes but I didn't expect them to prevent the crash. Anyway, please go ahead and attach the gretlcli report just in case I see anything informative.

         
        • Luca Pedini

          Luca Pedini - 2022-07-15

          Here’s the report!
          Best regards,
          Luca
          ————-
          Stata dta version 117, byte-order LSF
          endianness: little
          number of variables = 5
          number of observations = 7440
          length of varnames = 32
          fmtlen 49, namelen 32, vlabellen 81, dlabellen 0
          timestamp: '22 Jan 2014 10:25'
          variable 1: float type
          variable 2: float type
          variable 3: float type
          variable 4: float type
          variable 5: float type
          varname 1: read length 33, 'year'
          variable 1: name = 'year'
          varname 2: read length 33, 'ahe'
          variable 2: name = 'ahe'
          varname 3: read length 33, 'bachelor'
          variable 3: name = 'bachelor'
          varname 4: read length 33, 'female'
          variable 4: name = 'female'
          varname 5: read length 33, 'age'
          variable 5: name = 'age'
          dtab->vfmt_pos = 547
          dtab->vallblnam_pos = 821
          dtab->varlabel_pos = 1023
          dtab->data_pos = 1487
          dtab->vallabel_pos = 150323, lvars = 0x0
          read_dta_117_data: returning 0
          Listing 6 variables:
          0) const 1) year 2) ahe 3) bachelor 4) female 5) age

           

          Last edit: Allin Cottrell 2022-07-18
  • Sven Schreiber

    Sven Schreiber - 2022-07-19
    • status: open --> closed
     
  • Sven Schreiber

    Sven Schreiber - 2022-07-19

    This is fixed and tested, so closing it.

     

Log in to post a comment.

MongoDB Logo MongoDB