Bug 96401

Summary: xquartz 2.7.9 does not work with xdvi
Product: XQuartz Reporter: Wansfell <plinnell>
Component: New BugsAssignee: Jeremy Huddleston Sequoia <jeremyhu>
Status: RESOLVED DUPLICATE QA Contact: Jeremy Huddleston Sequoia <jeremyhu>
Severity: normal    
Priority: medium    
Version: 2.7.9 (xserver-1.17.4)   
Hardware: Other   
OS: Mac OS X (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: diagnostic report

Description Wansfell 2016-06-06 14:07:15 UTC
When I use xquartz 2.7.9 with xdvi (version 22.87), I get

xdvi-xaw 22.87 (Xaw toolkit): ../../../texk/xdvik/events.c:4411:
Shouldn't happen: Segmentation fault - trying to clean up and
aborting ...

Things worked fine with xquartz 2.7.8.  I'm using Mac operating system
10.11.5 (El Capitan)
Comment 1 Jeremy Huddleston Sequoia 2016-06-06 15:45:01 UTC
Please install 2.7.10_beta2, reproduce, and then attach the relevant crash log.
Comment 2 Wansfell 2016-06-06 22:16:30 UTC
I installed 2.7.10_beta2.  xdvi still didn't work, I got

~ $ xdvi&
[1] 1026
~ $ ASAN:DEADLYSIGNAL
=================================================================
==1026==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x000100874530 bp 0x7fff5fbfdb80 sp 0x7fff5fbfdb50 T0)
==1026==atos returned an error: An admin user name and password is required to enter Developer Mode.
    #0 0x10087452f in _XtIsSubclassOf (/opt/X11/lib/libXt.7.dylib+0x3e52f)
    #1 0x1008924fb in GetNamesAndClasses (/opt/X11/lib/libXt.7.dylib+0x5c4fb)
    #2 0x100891f43 in _XtGetResources (/opt/X11/lib/libXt.7.dylib+0x5bf43)
    #3 0x10084f95b in xtCreate (/opt/X11/lib/libXt.7.dylib+0x1995b)
    #4 0x10084f2cb in _XtCreateWidget (/opt/X11/lib/libXt.7.dylib+0x192cb)
    #5 0x10085087e in XtCreateManagedWidget (/opt/X11/lib/libXt.7.dylib+0x1a87e)
    #6 0x100205897 in XawViewportInitialize (/usr/X11/lib/libXaw.7.dylib+0xc4897)
    #7 0x100319285 in CallInitialize (/usr/X11/lib/libXt.6.dylib+0x1c285)
    #8 0x100316d10 in xtCreate (/usr/X11/lib/libXt.6.dylib+0x19d10)
    #9 0x1003164ab in _XtCreateWidget (/usr/X11/lib/libXt.6.dylib+0x194ab)
    #10 0x1003ab8ea in _XtVaCreateWidget (/usr/X11/lib/libXt.6.dylib+0xae8ea)
    #11 0x1003abbbc in XtVaCreateManagedWidget (/usr/X11/lib/libXt.6.dylib+0xaebbc)
    #12 0x1000434b7  (/Library/TeX/texbin/xdvi-xaw+0x1000434b7)
    #13 0x100044369  (/Library/TeX/texbin/xdvi-xaw+0x100044369)
    #14 0x100002337  (/Library/TeX/texbin/xdvi-xaw+0x100002337)
    #15 0x100000f63  (/Library/TeX/texbin/xdvi-xaw+0x100000f63)
    #16 0x2  (/Library/TeX/texbin/xdvi-xaw+0x2)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/opt/X11/lib/libXt.7.dylib+0x3e52f) in _XtIsSubclassOf
==1026==ABORTING

[1]    Abort                         xdvi
Comment 3 Jeremy Huddleston Sequoia 2016-06-06 23:27:33 UTC
Thanks, but can you please attach the full crash log and not just the terminal output.  It should be located in ~/Library/Logs/DiagnosticReports.
Comment 4 Wansfell 2016-06-07 00:50:40 UTC
Created attachment 124381 [details]
diagnostic report

This is the report of what happens when I use xdvi
with xquartz 2.7.10_beta2
Comment 5 Jeremy Huddleston Sequoia 2016-06-07 00:59:47 UTC
Symbolicated to:

Application Specific Information:
=================================================================
==462==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x000100874530 bp 0x7fff5fbfdb80 sp 0x7fff5fbfdb50 T0)
==462==atos returned an error: An admin user name and password is required to enter Developer Mode.
#0 _XtIsSubclassOf (Intrinsic.c:137 in libXt.7.dylib)
#1 GetNamesAndClasses (Resources.c:254 in libXt.7.dylib)
#2 _XtGetResources (Resources.c:956 in libXt.7.dylib)
#3 xtCreate (Create.c:391 in libXt.7.dylib)
#4 _XtCreateWidget (Create.c:570 in libXt.7.dylib)
#5 XtCreateManagedWidget (Create.c:610)
#6 XawViewportInitialize (Viewport.c:313 in libXaw.7.dylib)
#7 CallInitialize (Create.c:226 in libXt.6.dylib)
#8 xtCreate (Create.c:416 in libXt.6.dylib)
#9 _XtCreateWidget (Create.c:570 in libXt.6.dylib)
#10 _XtVaCreateWidget (VarCreate.c:79 in libXt.6.dylib)
#11 XtVaCreateManagedWidget (VarCreate.c:134 in libXt.6.dylib)
…

The issue here is likely the mixing of libXt.6.dylib with libXaw.7.dylib which is using libXt.7.dylib.

Ugg.
Comment 6 Jeremy Huddleston Sequoia 2016-06-12 04:33:08 UTC

*** This bug has been marked as a duplicate of bug 96292 ***

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.