>Synopsis:      perl v5.24.1 failures
>Category:      system
>Environment:
        System      : OpenBSD 6.0
        Details     : OpenBSD 6.0-current (GENERIC.MP) #162: Sat Feb  4 
19:08:50 MST 2017
                         
[email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP

        Architecture: OpenBSD.amd64
        Machine     : amd64
>Description:
        Trying to run some local perl scripts results in failure after 
upgrading to this snap
        and following the 2017/02/05 - upgrade to perl 5.24.1 instructions.
>How-To-Repeat:
NB: In the following transcript I collected a ktrace which is 1.4M at
    <http://arp.thrush.com/obsd/perl-lazy-load/ktrace.out>

obsd64:build/packages 501>perl -MFile::Find -de 1;

Loading DB routines from perl5db.pl version 1.49_05
Editor support available.

Enter h or 'h h' for help, or 'man perldebug' for more help.

main::(-e:1):   1
perl:/usr/local/libdata/perl5/site_perl/amd64-openbsd/auto/Term/ReadLine/Gnu/Gnu.so:
 undefined symbol 'Perl_xs_apiversion_bootcheck'
ld.so: perl: lazy binding failed!
Killed
obsd64:build/packages 502>mount
/dev/sd0a on / type ffs (local)
/dev/sd0g on /home type ffs (local, nodev, nosuid)
/dev/sd0f on /usr type ffs (local, nodev, read-only)
/dev/sd0l on /usr/local type ffs (local, nodev, wxallowed, read-only)
/dev/sd1o on /usr/obj type ffs (asynchronous, local, nodev, nosuid)
/dev/sd0e on /var type ffs (local, nodev, nosuid)
nas3:/work on /nas3/work type nfs (nodev, nosuid, v3, udp, intr, timeo=100, 
retrans=101)
nas3:/pub on /nas3/pub type nfs (nodev, nosuid, read-only, v3, udp, intr, 
timeo=100, retrans=101)
nas3:/OpenBSD on /nas3/OpenBSD type nfs (nodev, nosuid, v3, udp, intr, 
timeo=100, retrans=101)
nas5:/volume1/homes/rd on /nas5/homes/rd type nfs (nodev, nosuid, read-only, 
v3, udp, intr, timeo=100, retrans=101)
nas5:/volume1/dev on /nas5/dev type nfs (nodev, nosuid, v3, udp, intr, 
timeo=100, retrans=101)
obsd64:build/packages 503>ldd $(which perl)
/usr/bin/perl:
        Start            End              Type Open Ref GrpRef Name
        000008815ae00000 000008815b003000 exe  1    0   0      /usr/bin/perl
        0000088443b1d000 0000088443eed000 rlib 0    1   0      
/usr/lib/libperl.so.18.0
        0000088423b64000 0000088423d8b000 rlib 0    1   0      
/usr/lib/libm.so.10.0
        00000883b6830000 00000883b6afa000 rlib 0    1   0      
/usr/lib/libc.so.89.2
        0000088413900000 0000088413900000 rtld 0    1   0      
/usr/libexec/ld.so
obsd64:build/packages 504>ktrace -di perl -MFile::Find -de 1;

Loading DB routines from perl5db.pl version 1.49_05
Editor support available.

Enter h or 'h h' for help, or 'man perldebug' for more help.

main::(-e:1):   1
perl:/usr/local/libdata/perl5/site_perl/amd64-openbsd/auto/Term/ReadLine/Gnu/Gnu.so:
 undefined symbol 'Perl_xs_apiversion_bootcheck'
ld.so: perl: lazy binding failed!
Killed
obsd64:build/packages 505>gdb $(which perl)

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-openbsd6.0"...(no debugging symbols 
found)

(gdb) b exit
Function "exit" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (exit) pending.
(gdb) run -MFile::Find -de 1;
Starting program: /usr/bin/perl -MFile::Find -de 1;
(no debugging symbols found)
Breakpoint 2 at 0x788a66a7770: file /usr/src/lib/libc/stdlib/exit.c, line 52.
Pending breakpoint "exit" resolved

Loading DB routines from perl5db.pl version 1.49_05
Editor support available.

Enter h or 'h h' for help, or 'man perldebug' for more help.

main::(-e:1):   1
perl:/usr/local/libdata/perl5/site_perl/amd64-openbsd/auto/Term/ReadLine/Gnu/Gnu.so:
 undefined symbol 'Perl_xs_apiversion_bootcheck'
ld.so: perl: lazy binding failed!

Program received signal SIGKILL, Killed.
0x00000788f1e0048a in _dl_thrkill () at /usr/src/libexec/ld.so/amd64/ldasm.S:104
104     
Current language:  auto; currently asm
(gdb) bt
#0  0x00000788f1e0048a in _dl_thrkill () at 
/usr/src/libexec/ld.so/amd64/ldasm.S:104
#1  0x00000788f1e049ba in _dl_die (fmt=Variable "fmt" is not available.
) at /usr/src/libexec/ld.so/dl_printf.c:257
#2  0x00000788f1e04ae5 in _dl_bind (object=0x788394d7c00, index=Variable 
"index" is not available.
) at /usr/src/libexec/ld.so/amd64/rtld_machine.c:360
#3  0x00000788f1e004b1 in _dl_bind_start () at 
/usr/src/libexec/ld.so/amd64/ldasm.S:151
#4  0x0000078859903f8a in boot_Term__ReadLine__Gnu ()
   from 
/usr/local/libdata/perl5/site_perl/amd64-openbsd/auto/Term/ReadLine/Gnu/Gnu.so
#5  0x00000788fe3792db in Perl_pp_entersub () at 
/usr/src/gnu/usr.bin/perl/pp_hot.c:3987
#6  0x00000788fe354df3 in Perl_runops_standard () at 
/usr/src/gnu/usr.bin/perl/run.c:41
#7  0x00000788fe441f44 in Perl_call_sv (sv=0x7884c0b0d30, flags=13) at 
perl.c:2809
#8  0x00000788fe442423 in Perl_call_list (oldscope=3, paramList=0x788dd611c70) 
at perl.c:4978
#9  0x00000788fe31bc2b in S_process_special_blocks (floor=Variable "floor" is 
not available.
) at op.c:8766
#10 0x00000788fe32e3cb in Perl_newATTRSUB_x (floor=164, o=0x788b106c3e8, 
proto=0x0, attrs=0x0, block=0x78853ca7640, 
    o_is_gv=Variable "o_is_gv" is not available.
) at op.c:8695
#11 0x00000788fe32d46b in Perl_utilize (aver=1, floor=164, 
version=0x788c511b1c8, idop=0x788c511bbc8, arg=0x0)
    at op.c:6074
#12 0x00000788fe36cb44 in Perl_yyparse (gramtype=Variable "gramtype" is not 
available.
) at perly.y:351
#13 0x00000788fe41ed90 in S_doeval_compile (gimme=2 '\002', outside=Variable 
"outside" is not available.
) at /usr/src/gnu/usr.bin/perl/pp_ctl.c:3383
#14 0x00000788fe41f6e7 in Perl_pp_entereval () at 
/usr/src/gnu/usr.bin/perl/pp_ctl.c:4181
#15 0x00000788fe354df3 in Perl_runops_standard () at 
/usr/src/gnu/usr.bin/perl/run.c:41
#16 0x00000788fe442bc8 in perl_run (my_perl=Variable "my_perl" is not available.
) at perl.c:2485
#17 0x000007861b800723 in main () from /usr/bin/perl
(gdb) quit
The program is running.  Exit anyway? (y or n) y

        
>Fix:
        Dunno

SENDBUG: Run sendbug as root if this is an ACPI report!
SENDBUG: dmesg and usbdevs are attached.
SENDBUG: Feel free to delete or use the -D flag if they contain sensitive 
information.

dmesg:
OpenBSD 6.0-current (GENERIC.MP) #162: Sat Feb  4 19:08:50 MST 2017
    [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 2130575360 (2031MB)
avail mem = 2061402112 (1965MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xf0cd0 (9 entries)
bios0: vendor SeaBIOS version 
"rel-1.7.5.1-0-g8936dbb-20141113_115728-nilsson.home.kraxel.org" date 04/01/2014
bios0: QEMU Standard PC (i440FX + PIIX, 1996)
acpi0 at bios0: rev 0
acpi0: sleep states S3 S4 S5
acpi0: tables DSDT FACP SSDT APIC HPET
acpi0: wakeup devices
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Common KVM processor, 3400.48 MHz
cpu0: 
FPU,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,x2APIC,HV,NXE,LONG,LAHF
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line 
16-way L2 cache
cpu0: ITLB 255 4KB entries direct-mapped, 255 4MB entries direct-mapped
cpu0: DTLB 255 4KB entries direct-mapped, 255 4MB entries direct-mapped
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 999MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Common KVM processor, 3400.13 MHz
cpu1: 
FPU,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,x2APIC,HV,NXE,LONG,LAHF
cpu1: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line 
16-way L2 cache
cpu1: ITLB 255 4KB entries direct-mapped, 255 4MB entries direct-mapped
cpu1: DTLB 255 4KB entries direct-mapped, 255 4MB entries direct-mapped
cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 0 pa 0xfec00000, version 11, 24 pins
acpihpet0 at acpi0: 100000000 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0: C1(@1 halt!)
acpicpu1 at acpi0: C1(@1 halt!)
"ACPI0006" at acpi0 not configured
"PNP0303" at acpi0 not configured
"PNP0F13" at acpi0 not configured
"PNP0700" at acpi0 not configured
"PNP0501" at acpi0 not configured
"PNP0A06" at acpi0 not configured
"ACPI0007" at acpi0 not configured
"ACPI0007" at acpi0 not configured
pvbus0 at mainbus0: KVM
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel 82441FX" rev 0x02
pcib0 at pci0 dev 1 function 0 "Intel 82371SB ISA" rev 0x00
pciide0 at pci0 dev 1 function 1 "Intel 82371SB IDE" rev 0x00: DMA, channel 0 
wired to compatibility, channel 1 wired to compatibility
pciide0: channel 0 disabled (no drives)
atapiscsi0 at pciide0 channel 1 drive 0
scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0: <QEMU, QEMU DVD-ROM, 2.2.> ATAPI 5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2
uhci0 at pci0 dev 1 function 2 "Intel 82371SB USB" rev 0x01: apic 0 int 11
piixpm0 at pci0 dev 1 function 3 "Intel 82371AB Power" rev 0x03: apic 0 int 9
iic0 at piixpm0
vga1 at pci0 dev 2 function 0 "Cirrus Logic CL-GD5446" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
virtio0 at pci0 dev 3 function 0 "Qumranet Virtio Memory" rev 0x00
viomb0 at virtio0
virtio0: apic 0 int 11

vioblk0 at virtio1
scsibus2 at vioblk0: 2 targets
sd0 at scsibus2 targ 0 lun 0: <VirtIO, Block Device, > SCSI3 0/direct fixed
sd0: 32768MB, 512 bytes/sector, 67108864 sectors
virtio1: msix shared
virtio2 at pci0 dev 11 function 0 "Qumranet Virtio Storage" rev 0x00
vioblk1 at virtio2
scsibus3 at vioblk1: 2 targets
sd1 at scsibus3 targ 0 lun 0: <VirtIO, Block Device, > SCSI3 0/direct fixed
sd1: 51200MB, 512 bytes/sector, 104857600 sectors
virtio2: msix shared
virtio3 at pci0 dev 18 function 0 "Qumranet Virtio Network" rev 0x00
vio0 at virtio3: address 8a:2e:d1:64:f7:6b
virtio3: msix shared
isa0 at pcib0
isadma0 at isa0
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 1: density unknown
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: console
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
usb0 at uhci0: USB revision 1.0
uhub0 at usb0 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 
addr 1
vmm at mainbus0 not configured
uhidev0 at uhub0 port 1 configuration 1 interface 0 "QEMU QEMU USB Tablet" rev 
2.00/0.00 addr 2
uhidev0: iclass 3/0
ums0 at uhidev0: 3 buttons, Z dir
wsmouse1 at ums0 mux 0
vscsi0 at root
scsibus4 at vscsi0: 256 targets
softraid0 at root
scsibus5 at softraid0: 256 targets
root on sd0a (8f3e304cddb66a7a.a) swap on sd0b dump on sd0b

usbdevs:
Controller /dev/usb0:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), 
Intel(0x8086), rev 1.00
 port 1 addr 2: full speed, power 100 mA, config 1, QEMU USB Tablet(0x0001), 
QEMU(0x0627), rev 0.00, iSerialNumber 42
 port 2 powered

Reply via email to