>Synopsis: xterm segfaults when selecting missing font >Category: system >Environment: System : OpenBSD 7.2 Details : OpenBSD 7.2-current (GENERIC.MP) #992: Thu Jan 26 10:04:35 MST 2023 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
Architecture: OpenBSD.amd64 Machine : amd64 >Description: When the primary selection buffer contains an invalid font name, selecting that font from the xterm VT Fonts menu causes a segfault. >How-To-Repeat: 0. Not required, but useful to ensure that the issue is not due to a faulty configuration. Clear loaded resources: xrdb -merge /dev/null 1. Load a bogus font name into the PRIMARY selection buffer. For example, echo "bogusfont" | /usr/local/bin/xsel -p 2. Start xterm with a missing font: xterm -font bogus (Alternatively, skip step 0 and have a typo in the font name for the corresponding resource.) 3. Holding Ctrl, right click on the terminal and pick "Selection" from the "VT Fonts" menu. backtrace: $ gdb xterm GNU gdb 6.3 Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "amd64-unknown-openbsd7.2"...(no debugging symbols found) (gdb) run -font bogus Starting program: /usr/X11R6/bin/xterm -font bogus (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) Error while reading shared library symbols: Dwarf Error: wrong version in compilation unit header (is 4, should be 2) [in module /usr/libexec/ld.so] Error while reading shared library symbols: Dwarf Error: wrong version in compilation unit header (is 4, should be 2) [in module /usr/libexec/ld.so] Error while reading shared library symbols: Dwarf Error: wrong version in compilation unit header (is 4, should be 2) [in module /usr/libexec/ld.so] Error while reading shared library symbols: Dwarf Error: wrong version in compilation unit header (is 4, should be 2) [in module /usr/libexec/ld.so] Error while reading shared library symbols: Dwarf Error: wrong version in compilation unit header (is 4, should be 2) [in module /usr/libexec/ld.so] xterm: cannot load font "bogus" [New process 84509] Warning: Cannot convert string "bogus" to type FontStruct Warning: Missing charsets in String to FontSet conversion Warning: Unable to load any usable fontset xterm: cannot load font "bogusfont" Program received signal SIGSEGV, Segmentation fault. 0x0000039d22cb5c10 in XFindOnExtensionList () from /usr/X11R6/lib/libX11.so.18.0 (gdb) backtrace full #0 0x0000039d22cb5c10 in XFindOnExtensionList () from /usr/X11R6/lib/libX11.so.18.0 No symbol table info available. #1 0x0000039d22cab67b in XFreeFont () from /usr/X11R6/lib/libX11.so.18.0 No symbol table info available. #2 0x0000039ac1a1fb6d in ?? () from /usr/X11R6/bin/xterm No symbol table info available. #3 0x0000039ac1a21a7c in ?? () from /usr/X11R6/bin/xterm No symbol table info available. #4 0x0000039ac1a04938 in ?? () from /usr/X11R6/bin/xterm No symbol table info available. #5 0x0000039d04c25a8c in HandleNormal () from /usr/X11R6/lib/libXt.so.11.0 No symbol table info available. #6 0x0000039d04c2585d in HandleSelectionReplies () from /usr/X11R6/lib/libXt.so.11.0 No symbol table info available. #7 0x0000039d04c0ca0e in XtDispatchEventToWidget () from /usr/X11R6/lib/libXt.so.11.0 No symbol table info available. #8 0x0000039d04c0d34b in _XtDefaultDispatcher () from /usr/X11R6/lib/libXt.so.11.0 No symbol table info available. #9 0x0000039d04c0ce9e in XtDispatchEvent () from /usr/X11R6/lib/libXt.so.11.0 No symbol table info available. #10 0x0000039ac1a3ae98 in ?? () from /usr/X11R6/bin/xterm No symbol table info available. #11 0x0000039ac1a024ab in ?? () from /usr/X11R6/bin/xterm No symbol table info available. #12 0x0000039ac1a01ba8 in ?? () from /usr/X11R6/bin/xterm No symbol table info available. #13 0x0000039ac1a2ef18 in ?? () from /usr/X11R6/bin/xterm No symbol table info available. #14 0x0000039ac19e2a12 in ?? () from /usr/X11R6/bin/xterm No symbol table info available. #15 0x0000000000000000 in ?? () No symbol table info available. dmesg: OpenBSD 7.2-current (GENERIC.MP) #992: Thu Jan 26 10:04:35 MST 2023 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 17021865984 (16233MB) avail mem = 16486596608 (15722MB) random: good seed from bootblocks mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xed750 (90 entries) bios0: vendor Dell Inc. version "A24" date 04/11/2020 bios0: Dell Inc. Latitude E7450 efi0 at bios0: UEFI 2.3.1 efi0: American Megatrends rev 0x50009 acpi0 at bios0: ACPI 5.0 acpi0: sleep states S0 S3 S4 S5 acpi0: tables DSDT FACP APIC FPDT FIDT MCFG HPET SSDT UEFI SSDT ASF! SSDT SSDT SSDT SSDT PCCT SSDT SSDT SSDT SLIC MSDM DMAR BGRT acpi0: wakeup devices PEG0(S4) PEGP(S4) PEG1(S4) PEGP(S4) PEG2(S4) PEGP(S4) RP01(S4) PXSX(S4) RP02(S4) PXSX(S4) RP03(S4) PXSX(S4) RP04(S4) PXSX(S4) RP05(S4) PXSX(S4) [...] acpitimer0 at acpi0: 3579545 Hz, 24 bits acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: Intel(R) Core(TM) i7-5600U CPU @ 2.60GHz, 3092.95 MHz, 06-3d-04 cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,RDSEED,ADX,SMAP,PT,SRBDS_CTRL,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN cpu0: 32KB 64b/line 8-way D-cache, 32KB 64b/line 8-way I-cache, 256KB 64b/line 8-way L2 cache, 4MB 64b/line 16-way L3 cache cpu0: smt 0, core 0, package 0 mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges cpu0: apic clock running at 99MHz cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1.1.1, IBE cpu1 at mainbus0: apid 2 (application processor) cpu1: Intel(R) Core(TM) i7-5600U CPU @ 2.60GHz, 3092.94 MHz, 06-3d-04 cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,RDSEED,ADX,SMAP,PT,SRBDS_CTRL,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN cpu1: 32KB 64b/line 8-way D-cache, 32KB 64b/line 8-way I-cache, 256KB 64b/line 8-way L2 cache, 4MB 64b/line 16-way L3 cache cpu1: smt 0, core 1, package 0 cpu2 at mainbus0: apid 1 (application processor) cpu2: Intel(R) Core(TM) i7-5600U CPU @ 2.60GHz, 3093.03 MHz, 06-3d-04 cpu2: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,RDSEED,ADX,SMAP,PT,SRBDS_CTRL,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN cpu2: 32KB 64b/line 8-way D-cache, 32KB 64b/line 8-way I-cache, 256KB 64b/line 8-way L2 cache, 4MB 64b/line 16-way L3 cache cpu2: smt 1, core 0, package 0 cpu3 at mainbus0: apid 3 (application processor) cpu3: Intel(R) Core(TM) i7-5600U CPU @ 2.60GHz, 3093.08 MHz, 06-3d-04 cpu3: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,RDSEED,ADX,SMAP,PT,SRBDS_CTRL,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN cpu3: 32KB 64b/line 8-way D-cache, 32KB 64b/line 8-way I-cache, 256KB 64b/line 8-way L2 cache, 4MB 64b/line 16-way L3 cache cpu3: smt 1, core 1, package 0 ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 40 pins acpimadt0: bogus nmi for apid 0 acpimadt0: bogus nmi for apid 2 acpimadt0: bogus nmi for apid 1 acpimadt0: bogus nmi for apid 3 acpimcfg0 at acpi0 acpimcfg0: addr 0xf8000000, bus 0-63 acpihpet0 at acpi0: 14318179 Hz acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus -1 (PEG0) acpiprt2 at acpi0: bus -1 (PEG1) acpiprt3 at acpi0: bus -1 (PEG2) acpiprt4 at acpi0: bus 1 (RP01) acpiprt5 at acpi0: bus -1 (RP02) acpiprt6 at acpi0: bus -1 (RP03) acpiprt7 at acpi0: bus 2 (RP04) acpiprt8 at acpi0: bus 3 (RP05) acpiprt9 at acpi0: bus -1 (RP06) acpiprt10 at acpi0: bus -1 (RP07) acpiprt11 at acpi0: bus -1 (RP08) acpiec0 at acpi0 acpipci0 at acpi0 PCI0: 0x00000000 0x00000011 0x00000001 acpicmos0 at acpi0 "INT3403" at acpi0 not configured "INT3403" at acpi0 not configured "SMO8810" at acpi0 not configured "INT3402" at acpi0 not configured "PNP0C14" at acpi0 not configured acpibtn0 at acpi0: LID0 acpibtn1 at acpi0: PBTN acpibtn2 at acpi0: SBTN acpiac0 at acpi0: AC unit online acpibat0 at acpi0: BAT0 model "DELL G95J556" serial 32621 type LiP oem "LGC-LGC3.6" "DELLABCE" at acpi0 not configured "INT340F" at acpi0 not configured "INT3400" at acpi0 not configured "PNP0C0B" at acpi0 not configured "PNP0C0B" at acpi0 not configured "PNP0C0B" at acpi0 not configured "PNP0C0B" at acpi0 not configured "PNP0C0B" at acpi0 not configured acpicpu0 at acpi0: C3(200@506 mwait.1@0x60), C2(200@148 mwait.1@0x33), C1(1000@1 mwait.1), PSS acpicpu1 at acpi0: C3(200@506 mwait.1@0x60), C2(200@148 mwait.1@0x33), C1(1000@1 mwait.1), PSS acpicpu2 at acpi0: C3(200@506 mwait.1@0x60), C2(200@148 mwait.1@0x33), C1(1000@1 mwait.1), PSS acpicpu3 at acpi0: C3(200@506 mwait.1@0x60), C2(200@148 mwait.1@0x33), C1(1000@1 mwait.1), PSS acpipwrres0 at acpi0: PG00, resource for PEG0 acpipwrres1 at acpi0: PG01, resource for PEG1 acpipwrres2 at acpi0: PG02, resource for PEG2 acpitz0 at acpi0: critical temperature is 107 degC acpipwrres3 at acpi0: FN00, resource for FAN0 acpipwrres4 at acpi0: FN01, resource for FAN1 acpipwrres5 at acpi0: FN02, resource for FAN2 acpipwrres6 at acpi0: FN03, resource for FAN3 acpipwrres7 at acpi0: FN04, resource for FAN4 acpitz1 at acpi0: critical temperature is 105 degC acpitz2 at acpi0: critical temperature is 105 degC acpivideo0 at acpi0: GFX0 acpivout0 at acpivideo0: LCD_ cpu0: using VERW MDS workaround (except on vmm entry) cpu0: Enhanced SpeedStep 3092 MHz: speeds: 2601, 2600, 2500, 2300, 2100, 2000, 1800, 1700, 1500, 1400, 1200, 1100, 900, 800, 600, 500 MHz pci0 at mainbus0 bus 0 pchb0 at pci0 dev 0 function 0 "Intel Core 5G Host" rev 0x09 inteldrm0 at pci0 dev 2 function 0 "Intel HD Graphics 5500" rev 0x09 drm0 at inteldrm0 inteldrm0: msi, BROADWELL, gen 8 azalia0 at pci0 dev 3 function 0 "Intel Core 5G HD Audio" rev 0x09: msi azalia0: No codecs found "Intel Core 5G Thermal" rev 0x09 at pci0 dev 4 function 0 not configured "Intel 9 Series MEI" rev 0x03 at pci0 dev 22 function 0 not configured em0 at pci0 dev 25 function 0 "Intel I218-LM" rev 0x03: msi, address 20:47:47:ae:78:79 azalia1 at pci0 dev 27 function 0 "Intel 9 Series HD Audio" rev 0x03: msi azalia1: codecs: Realtek ALC3235 audio0 at azalia1 ppb0 at pci0 dev 28 function 0 "Intel 9 Series PCIE" rev 0xe3: msi pci1 at ppb0 bus 1 sdhc0 at pci1 dev 0 function 0 vendor "O2 Micro", unknown product 0x8520 rev 0x01: apic 2 int 16 sdhc0: SDHC 4.0, 50 MHz base clock sdmmc0 at sdhc0: 8-bit, sd high-speed, mmc high-speed, ddr52, dma ppb1 at pci0 dev 28 function 3 "Intel 9 Series PCIE" rev 0xe3: msi pci2 at ppb1 bus 2 iwm0 at pci2 dev 0 function 0 "Intel AC 7265" rev 0x59, msi ppb2 at pci0 dev 28 function 4 "Intel 9 Series PCIE" rev 0xe3: msi pci3 at ppb2 bus 3 ehci0 at pci0 dev 29 function 0 "Intel 9 Series USB" rev 0x03: apic 2 int 21 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 addr 1 pcib0 at pci0 dev 31 function 0 "Intel 9 Series LPC" rev 0x03 ahci0 at pci0 dev 31 function 2 "Intel 9 Series AHCI" rev 0x03: msi, AHCI 1.3 ahci0: port 1: 6.0Gb/s scsibus1 at ahci0: 32 targets sd0 at scsibus1 targ 1 lun 0: <ATA, SK hynix SC210 m, 2000> t10.ATA_SK_hynix_SC210_mSATA_256GB_EJ56N555810806E1F_ sd0: 244198MB, 512 bytes/sector, 500118192 sectors, thin ichiic0 at pci0 dev 31 function 3 "Intel 9 Series SMBus" rev 0x03: apic 2 int 18 iic0 at ichiic0 sdtemp0 at iic0 addr 0x1a: mcp98243 iic0: addr 0x29 07=ff 0f=33 10=9d 11=15 12=98 13=51 14=b1 15=33 16=23 17=25 18=25 19=98 1a=50 1b=64 1c=c0 1e=20 20=7f 22=40 27=ff 29=02 2b=fe 2d=3b 2f=20 30=95 31=25 32=0e 33=16 87=ff 8f=33 90=9d 91=15 92=98 93=51 94=b1 95=33 96=23 97=25 98=25 99=98 9a=50 9b=64 9c=c0 9e=20 a0=7f a2=40 a7=df a9=08 ab=fd ad=46 af=20 b0=95 b1=25 b2=0e b3=16 words 00=0000 01=0000 02=0000 03=0000 04=0000 05=0000 06=0000 07=ffff spdmem0 at iic0 addr 0x50: 8GB DDR3 SDRAM PC3-12800 SO-DIMM spdmem1 at iic0 addr 0x52: 8GB DDR3 SDRAM PC3-12800 SO-DIMM with thermal sensor isa0 at pcib0 isadma0 at isa0 pckbc0 at isa0 port 0x60/5 irq 1 irq 12 pckbd0 at pckbc0 (kbd slot) wskbd0 at pckbd0: console keyboard pms0 at pckbc0 (aux slot) wsmouse0 at pms0 mux 0 pcppi0 at isa0 port 0x61 spkr0 at pcppi0 vmm0 at mainbus0: VMX/EPT efifb at mainbus0 not configured uhub1 at uhub0 port 1 configuration 1 interface 0 "Intel Rate Matching Hub" rev 2.00/0.03 addr 2 ulpt0 at uhub1 port 1 configuration 1 interface 1 "Hewlett-Packard HP LaserJet M1536dnf MFP" rev 2.00/1.00 addr 3 ulpt0: using bi-directional mode ugen0 at uhub1 port 1 configuration 1 "Hewlett-Packard HP LaserJet M1536dnf MFP" rev 2.00/1.00 addr 3 uhub2 at uhub1 port 2 configuration 1 interface 0 "PI Engineering Kinesis Keyboard Hub" rev 1.10/3.20 addr 4 uhidev0 at uhub2 port 2 configuration 1 interface 0 "P.I. Engineering product 0x0007" rev 1.10/3.20 addr 5 uhidev0: iclass 3/1 ukbd0 at uhidev0: 8 variable keys, 6 key codes, country code 33 wskbd1 at ukbd0 mux 1 uhidev1 at uhub2 port 2 configuration 1 interface 1 "P.I. Engineering product 0x0007" rev 1.10/3.20 addr 5 uhidev1: iclass 3/0, 3 report ids uhid0 at uhidev1 reportid 2: input=1, output=0, feature=0 ucc0 at uhidev1 reportid 3: 12 usages, 9 keys, enum wskbd2 at ucc0 mux 1 uhidev2 at uhub2 port 4 configuration 1 interface 0 "MOSART Semi. 2.4G Keyboard Mouse" rev 1.10/2.03 addr 6 uhidev2: iclass 3/1 ukbd1 at uhidev2: 8 variable keys, 6 key codes wskbd3 at ukbd1 mux 1 uhidev3 at uhub2 port 4 configuration 1 interface 1 "MOSART Semi. 2.4G Keyboard Mouse" rev 1.10/2.03 addr 6 uhidev3: iclass 3/1, 5 report ids ucc1 at uhidev3 reportid 1: 897 usages, 20 keys, array wskbd4 at ucc1 mux 1 uhid1 at uhidev3 reportid 2: input=1, output=0, feature=0 ums0 at uhidev3 reportid 3: 5 buttons, Z and W dir wsmouse1 at ums0 mux 0 uhid2 at uhidev3 reportid 5: input=5, output=6, feature=0 ugen1 at uhub1 port 3 "Intel Bluetooth" rev 2.01/0.01 addr 7 uvideo0 at uhub1 port 6 configuration 1 interface 0 "CN0FHKK77248755NCP2YA00 Integrated_Webcam_HD" rev 2.00/47.02 addr 8 video0 at uvideo0 vscsi0 at root scsibus2 at vscsi0: 256 targets softraid0 at root scsibus3 at softraid0: 256 targets sd1 at scsibus3 targ 1 lun 0: <OPENBSD, SR CRYPTO, 006> sd1: 244197MB, 512 bytes/sector, 500116607 sectors root on sd1a (093a80cbbb307177.a) swap on sd1b dump on sd1b inteldrm0: 1920x1080, 32bpp wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation), using wskbd0 wskbd1: connecting to wsdisplay0 wskbd2: connecting to wsdisplay0 wskbd3: connecting to wsdisplay0 wskbd4: connecting to wsdisplay0 wsdisplay0: screen 1-5 added (std, vt100 emulation) iwm0: hw rev 0x210, fw ver 17.3216344376.0, address 5c:e0:c5:7d:53:2f