Re: /mail/trojita Segmentation fault on i386

2017-09-16 Thread Caspar Schutijser

Hi ports@,

On Wednesday, 6 September 2017 18:41:01 CEST, Eda Sky wrote:

On the last snapshots /mail/trojita Segmentation fault on i386


Trojita is not the only program that suffers from this problem on i386
(I see no such problems on amd64). The following ports that depend on
x11/qt5/qtwebkit (which I think is the culprit here) segfault on
startup with a similar backtrace:

audio/mscore (musescore)
devel/zeal
mail/trojita
www/otter-browser
x11/smtube

There may be others.

I don't use i386 on a daily basis myself so I don't know since when this
is broken. Possibly since the Qt update (5.6 to 5.9).

To investigate this problem I tried to build a -debug FLAVORed package
of x11/qt5/qtwebkit on i386 but the linker is running out of memory.
After that attempt I didn't have time to investigate further. Since I
doubt I'll have much time to look into this further any time soon, I
am posting my findings here.

Below is a backtrace with otter-browser, below that the dmesg from my
i386 VM that I created to look into this problem.

Best regards,
Caspar Schutijser

--

$ egdb /usr/local/bin/otter-browser 
 
GNU gdb (GDB) 7.12.1

Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
<http://gnu.org/licenses/gpl.html>

This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i386-unknown-openbsd6.2".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/local/bin/otter-browser...done.
(gdb) r
Starting program: /usr/local/bin/otter-browser 
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to 
'/tmp/runtime-caspar'

Qt: XKEYBOARD extension not present on the X server.
[New process 96183]
[New thread 209282]
[New thread 524899]
[New thread 261064]
[New thread 405789]
[New thread 373783]
[New thread 429553]

Thread 1 received signal SIGSEGV, Segmentation fault.
0x037510c6 in 
WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction(void 
(WebCore::PolicyChecker::*)(WebCore::PolicyAction), 
WebCore::NavigationAction const&, WebCore::ResourceRequest const&, 
WTF::PassRefPtr) () from 
/usr/local/lib/qt5/./libQt5WebKit.so.2.1

(gdb) bt full
#0  0x037510c6 in 
WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction(void 
(WebCore::PolicyChecker::*)(WebCore::PolicyAction), 
WebCore::NavigationAction const&, WebCore::ResourceRequest const&, 
WTF::PassRefPtr) () from 
/usr/local/lib/qt5/./libQt5WebKit.so.2.1

No symbol table info available.
#1  0x0375152e in non-virtual thunk to 
WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction(void 
(WebCore::PolicyChecker::*)(WebCore::PolicyAction), 
WebCore::NavigationAction const&, WebCore::ResourceRequest const&, 
WTF::PassRefPtr) () from 
/usr/local/lib/qt5/./libQt5WebKit.so.2.1

No symbol table info available.
#2  0x03a80e2a in 
WebCore::PolicyChecker::checkNavigationPolicy(WebCore::ResourceRequest 
const&, WebCore::DocumentLoader*, WTF::PassRefPtr, void 
(*)(void*, WebCore::ResourceRequest const&, 
WTF::PassRefPtr, bool), void*) () from 
/usr/local/lib/qt5/./libQt5WebKit.so.2.1

No symbol table info available.
#3  0x03a6bf13 in 
WebCore::FrameLoader::loadWithDocumentLoader(WebCore::DocumentLoader*, 
WebCore::FrameLoadType, WTF::PassRefPtr) ()

  from /usr/local/lib/qt5/./libQt5WebKit.so.2.1
No symbol table info available.
#4  0x03a695dc in WebCore::FrameLoader::load(WebCore::DocumentLoader*) () 
from /usr/local/lib/qt5/./libQt5WebKit.so.2.1

No symbol table info available.
#5  0x03a6bb85 in WebCore::FrameLoader::load(WebCore::FrameLoadRequest 
const&) () from /usr/local/lib/qt5/./libQt5WebKit.so.2.1

No symbol table info available.
#6  0x03764260 in QWebFrameAdapter::load(QNetworkRequest const&, 
QNetworkAccessManager::Operation, QByteArray const&) () from 
/usr/local/lib/qt5/./libQt5WebKit.so.2.1

No symbol table info available.
#7  0x0e5043fd in QWebFrame::load(QUrl const&) () from 
/usr/local/lib/qt5/./libQt5WebKitWidgets.so.2.1

No symbol table info available.
#8  0x0e5119db in QWebView::load(QUrl const&) () from 
/usr/local/lib/qt5/./libQt5WebKitWidgets.so.2.1

No symbol table info available.
#9  0x1c0be6f2 in Otter::QtWebKitWebWidget::setUrl(QUrl const&, bool) ()
No symbol table info available.
#10 0x1bf8ca17 in Otter::WebWidget::setRequestedUrl(QUrl const&, bool, 
bool) ()

No symbol table info available.
#11 0x1c08a331 in Otter::WebContentsWid

Re: /mail/trojita Segmentation fault on i386

2017-09-06 Thread Stuart Henderson
On 2017/09/06 16:41, Eda Sky wrote:
> Hi
> 
> On the last snapshots /mail/trojita Segmentation fault on i386
> 
> some ideas please?

Lots of things will fail on a libc.so.90.0-based snapshot until you've
updated your packages.

amd64 packages are already on (at least some) mirrors.

i386 packages just finished building and I'm copying them out now,
so try running pkg_add -u sometime tomorrow (the full set is 33GB so it
will take a little time to feed out).



/mail/trojita Segmentation fault on i386

2017-09-06 Thread Eda Sky
Hi

On the last snapshots /mail/trojita Segmentation fault on i386

some ideas please?


$ gdb trojita
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 "i386-unknown-openbsd6.2"...

(gdb) run
Starting program: /usr/local/bin/trojita
warning: Lowest section in /usr/local/lib/libicudata.so.13.0 is .hash at
2000
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-edasky'
[New process 5587]
trojita:/usr/lib/libc++.so.1.0: undefined symbol 'iswalpha_l'
trojita:/usr/lib/libc++.so.1.0: undefined symbol 'iswprint_l'
trojita:/usr/lib/libc++.so.1.0: undefined symbol 'iswlower_l'
trojita:/usr/lib/libc++.so.1.0: undefined symbol 'towlower_l'
trojita:/usr/lib/libc++.so.1.0: undefined symbol 'isupper_l'
trojita:/usr/lib/libc++.so.1.0: undefined symbol 'tolower_l'
trojita:/usr/lib/libc++.so.1.0: undefined symbol 'iswxdigit_l'
trojita:/usr/lib/libc++.so.1.0: undefined symbol 'strxfrm_l'
trojita:/usr/lib/libc++.so.1.0: undefined symbol 'strftime_l'
trojita:/usr/lib/libc++.so.1.0: undefined symbol 'toupper_l'
trojita:/usr/lib/libc++.so.1.0: undefined symbol 'isxdigit_l'
trojita:/usr/lib/libc++.so.1.0: undefined symbol 'wcsxfrm_l'
trojita:/usr/lib/libc++.so.1.0: undefined symbol 'islower_l'
trojita:/usr/lib/libc++.so.1.0: undefined symbol 'newlocale'
trojita:/usr/lib/libc++.so.1.0: undefined symbol 'iswdigit_l'
trojita:/usr/lib/libc++.so.1.0: undefined symbol 'iswblank_l'
trojita:/usr/lib/libc++.so.1.0: undefined symbol 'uselocale'
trojita:/usr/lib/libc++.so.1.0: undefined symbol 'iswcntrl_l'
trojita:/usr/lib/libc++.so.1.0: undefined symbol 'strcoll_l'
trojita:/usr/lib/libc++.so.1.0: undefined symbol 'iswpunct_l'
trojita:/usr/lib/libc++.so.1.0: undefined symbol 'iswspace_l'
trojita:/usr/lib/libc++.so.1.0: undefined symbol 'towupper_l'
trojita:/usr/lib/libc++.so.1.0: undefined symbol 'iswupper_l'
trojita:/usr/lib/libc++.so.1.0: undefined symbol 'freelocale'
trojita:/usr/lib/libc++.so.1.0: undefined symbol 'isdigit_l'
trojita:/usr/lib/libc++.so.1.0: undefined symbol 'wcscoll_l'

Program received signal SIGSEGV, Segmentation fault.
0x025a80c6 in
WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction ()
   from /usr/local/lib/libQt5WebKit.so.2.1
Current language:  auto; currently minimal
(gdb)




OpenBSD 6.2-beta (GENERIC.MP) #110: Tue Sep  5 12:46:23 MDT 2017
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Genuine Intel(R) CPU U2500 @ 1.20GHz ("GenuineIntel" 686-class) 1.20
GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,MWAIT
,VMX,EST,TM2,xTPR,PDCM,PERF,SENSOR
real mem  = 2138390528 (2039MB)
avail mem = 2083315712 (1986MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: date 07/02/08, BIOS32 rev. 0 @ 0xf, SMBIOS rev. 2.4
@ 0xf4170 (21 entries)
bios0: vendor Hewlett-Packard version "68YOP Ver. F.0E" date 07/02/2008
bios0: Hewlett-Packard HP Compaq nc2400(#AKB)
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SLIC HPET APIC MCFG TCPA SSDT SSDT SSDT SSDT SSDT
acpi0: wakeup devices C094(S5) C1DE(S0) C0EF(S3) C0F6(S3) C0F7(S3)
C0F8(S3) C0F9(S3) C100(S5) C1EA(S5)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 132MHz
cpu0: mwait min=64, max=64, C-substates=0.2.2.2.2, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Genuine Intel(R) CPU U2500 @ 1.20GHz ("GenuineIntel" 686-class) 1.20
GHz
cpu1:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,MWAIT
,VMX,EST,TM2,xTPR,PDCM,PERF,SENSOR
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
, remapped to apid 1
acpimcfg0 at acpi0 addr 0xf800, bus 0-63
acpiprt0 at acpi0: bus 2 (C094)
acpiprt1 at acpi0: bus 8 (C100)
acpiprt2 at acpi0: bus 0 (C002)
acpiec0 at acpi0
acpicpu0 at acpi0: !C2(500@1 io@0x1014), C1(1000@1 halt), PSS
acpicpu1 at acpi0: !C2(500@1 io@0x1014), C1(1000@1 halt), PSS
acpipwrres0 at acpi0: C1D6, resource for C1D4
acpipwrres1 at acpi0: C2C9, resource for C2CD
acpipwrres2 at acpi0: C2CA, resource for C2CE
acpipwrres3 at acpi0: C2CB, resource for C2CF
acpipwrres4 at acpi0: C2CC, resource for C2D0
acpitz0 at acpi0: critical temperature is 105 degC
acpitz1 at acpi0: critical temperature is 105 degC
acpitz2 at acpi0: critical temperature is 105 degC
acpitz3 at acpi0: critical temperature is 105 degC
acpitz4 a