Re: Konqueror, Crypto and Https problems

2005-09-25 Thread Stephan Tesch
Am Sonntag, 25. September 2005 04:40 schrieben Sie:

Hi Chris,

 An error occurred while loading
 https://webauth.comcast.net/auth/login?url=http%253A%252F%252Fwww.comcast.n
et%252Fqry%252Fgoto%253Fapp%253Dmail%2526CM.src%253Dtop:

 The process for the https://webauth.comcast.net protocol died unexpectedly.

Nope, I cannot confirm this. Works for me.

 At first, I thought it was simply a konqueror icompatability with the
 specific website, but I soon found out this happened on all https
 sites.  After poking around, I went to settings:configure konqueror,
 then I clicked on Crypto.  When I did that, the konqueror configurator
 (or whatever you call the window that let's you configure konqueror)
 crashed out entirely -- no errors.

That works, too.

 Interestingly enough, when I run Konqueror as root, this does not
 happen.  Therefore, somehow, this must be a permissions error -- but
 since there is no error output, I have no idea where to look.

Yep, try to raise your ulimits. KDE is kind of resource hungry. I run it with 
an account that's in the staff login class. You might want to try that. It 
would also be nice, if you tell us, which version of OpenBSD and KDE you are 
using.

Stephan



Re: Konqueror, Crypto and Https problems

2005-09-25 Thread Chris
Hello Again,

I have tried adding my user to the staff group, but this did not help.

I looked at my ulimit, and it says it is unlimited.

I assure everyone, I have followed the docs to the letter.  The system
is pristine with the exception that I am following the stable branch.  I
have made no customizations to it what-so-ever, as I am not yet
comfortable with configuring OBSD (I don't want to move faster than the
docs, since I am still learning).

I have tried this on 3.6, and I am now running 3.7.  The problem
remains.  I am using kde 3.3.2 installed with pkg_add.

I have run KDE on linux systems for years (since kde 1.1) with no
troubles at all.  This is one of several bugs or default
misconfigurations that seem to occur by default on OBSD.  I have never
run into these problems before.  I am at a loss.  I'm sure the fix is
not too difficult, but I since there is no error output, I don't even
know where to look!  (I don't see an strace for OBSD, so I don't know
what to use).

Again, everything (except sound, but that is another thread) seems to
work fine as root, it is only as a normal user that I run into these
other problems, like this crypto issue here.

I apologize for not giving my dmessage.

Thank you for your help.

Chris

dmesg:
==
OpenBSD 3.7 (RAMDISK_CD) #573: Sun Mar 20 00:27:05 MST 2005
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/RAMDISK_CD
cpu0: Intel Celeron (GenuineIntel 686-class, 256KB L2 cache) 299 MHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR
real mem  = 267952128 (261672K)
avail mem = 238706688 (233112K)
using 3296 buffers containing 13500416 bytes (13184K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(7c) BIOS, date 11/17/99, BIOS32 rev. 0 @ 0xfd7a0
apm0 at bios0: Power Management spec V1.2
pcibios0 at bios0: rev 2.1 @ 0xfd7a0/0x860
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdf40/160 (8 entries)
pcibios0: PCI Interrupt Router at 000:02:0 (Intel 82371FB ISA rev 0x00)
pcibios0: PCI bus #3 is the last bus
bios0: ROM list: 0xc/0xc000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 Intel 82443BX AGP rev 0x03
ppb0 at pci0 dev 1 function 0 Intel 82443BX AGP rev 0x03
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 Neomagic Magicgraph NM2200 rev 0x20
wsdisplay0 at vga1: console (80x25, vt100 emulation)
pcib0 at pci0 dev 2 function 0 Intel 82371AB PIIX4 ISA rev 0x02
pciide0 at pci0 dev 2 function 1 Intel 82371AB IDE rev 0x01: DMA, channel 0 
wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: TOSHIBA MK3021GAS
wd0: 16-sector PIO, LBA, 28615MB, 58605120 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: LG, CD-ROM CRN-8241B, 1.16 SCSI0 5/cdrom 
removable
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2
uhci0 at pci0 dev 2 function 2 Intel 82371AB USB rev 0x01: irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
Intel 82371AB Power Mgmt rev 0x02 at pci0 dev 2 function 3 not configured
cbb0 at pci0 dev 3 function 0 Texas Instruments PCI1251 CardBus rev 0x01: irq 
11
cbb1 at pci0 dev 3 function 1 Texas Instruments PCI1251 CardBus rev 0x01: irq 
11
ATT/Lucent LTMODEM rev 0x01 at pci0 dev 6 function 0 not configured
ESS SOLO-1 AudioDrive rev 0x02 at pci0 dev 7 function 0 not configured
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0 (mux 1 ignored for console): console keyboard, using wsdisplay0
npx0 at isa0 port 0xf0/16: using exception 16
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 2 device 0 cacheline 0x0, lattimer 0x80
pcmcia0 at cardslot0
cardslot1 at cbb1 slot 1 flags 0
cardbus1 at cardslot1: bus 3 device 0 cacheline 0x0, lattimer 0x80
pcmcia1 at cardslot1
biomask fff5 netmask fff5 ttymask fff7
rd0: fixed, 3800 blocks
ep1 at pcmcia0 function 0 3Com, OfficeConnect 572B, B port 0xa000/32: address 
00:00:86:62:83:f5
tqphy0 at ep1 phy 0: 78Q2120 10/100 PHY, rev. 10
root on rd0a
rootdev=0x1100 rrootdev=0x2f00 rawdev=0x2f02
syncing disks... done
rebooting...
OpenBSD 3.7 (GENERIC) #50: Sun Mar 20 00:01:57 MST 2005
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Celeron (GenuineIntel 686-class, 256KB L2 cache) 299 MHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR
real mem  = 267952128 (261672K)
avail mem = 237731840 (232160K)
using 3296 buffers containing 13500416 bytes (13184K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(7c) BIOS, 

Re: Konqueror, Crypto and Https problems

2005-09-25 Thread Chris
Haha!

I got it.

I started poking around my libraries, and found libcrypto.so had perms
of 600!  Why it was that way, I do not know.  Like I said, this is a
pristine system  -- I definitely did not do this myself.  Also, why it
didn't have an error like could not access libcrypto.so:  permission
denied -- I have no idea.  Would have been helpful, but I'm sure that
is a KDE thing, not an OBSD thing.


Thanks everyone for their advice.

I learned a lot.  Hopefully it will help out some other newbie in the
future.

Chris




I changed it to 644, and voila!  It works!



Chris wrote:

Hello Again,

I have tried adding my user to the staff group, but this did not help.

I looked at my ulimit, and it says it is unlimited.

I assure everyone, I have followed the docs to the letter.  The system
is pristine with the exception that I am following the stable branch.  I
have made no customizations to it what-so-ever, as I am not yet
comfortable with configuring OBSD (I don't want to move faster than the
docs, since I am still learning).

I have tried this on 3.6, and I am now running 3.7.  The problem
remains.  I am using kde 3.3.2 installed with pkg_add.

I have run KDE on linux systems for years (since kde 1.1) with no
troubles at all.  This is one of several bugs or default
misconfigurations that seem to occur by default on OBSD.  I have never
run into these problems before.  I am at a loss.  I'm sure the fix is
not too difficult, but I since there is no error output, I don't even
know where to look!  (I don't see an strace for OBSD, so I don't know
what to use).

Again, everything (except sound, but that is another thread) seems to
work fine as root, it is only as a normal user that I run into these
other problems, like this crypto issue here.

I apologize for not giving my dmessage.

Thank you for your help.

Chris

dmesg:
==
OpenBSD 3.7 (RAMDISK_CD) #573: Sun Mar 20 00:27:05 MST 2005
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/RAMDISK_CD
cpu0: Intel Celeron (GenuineIntel 686-class, 256KB L2 cache) 299 MHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR
real mem  = 267952128 (261672K)
avail mem = 238706688 (233112K)
using 3296 buffers containing 13500416 bytes (13184K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(7c) BIOS, date 11/17/99, BIOS32 rev. 0 @ 0xfd7a0
apm0 at bios0: Power Management spec V1.2
pcibios0 at bios0: rev 2.1 @ 0xfd7a0/0x860
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdf40/160 (8 entries)
pcibios0: PCI Interrupt Router at 000:02:0 (Intel 82371FB ISA rev 0x00)
pcibios0: PCI bus #3 is the last bus
bios0: ROM list: 0xc/0xc000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 Intel 82443BX AGP rev 0x03
ppb0 at pci0 dev 1 function 0 Intel 82443BX AGP rev 0x03
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 Neomagic Magicgraph NM2200 rev 0x20
wsdisplay0 at vga1: console (80x25, vt100 emulation)
pcib0 at pci0 dev 2 function 0 Intel 82371AB PIIX4 ISA rev 0x02
pciide0 at pci0 dev 2 function 1 Intel 82371AB IDE rev 0x01: DMA, channel 0 
wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: TOSHIBA MK3021GAS
wd0: 16-sector PIO, LBA, 28615MB, 58605120 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: LG, CD-ROM CRN-8241B, 1.16 SCSI0 5/cdrom 
removable
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2
uhci0 at pci0 dev 2 function 2 Intel 82371AB USB rev 0x01: irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
Intel 82371AB Power Mgmt rev 0x02 at pci0 dev 2 function 3 not configured
cbb0 at pci0 dev 3 function 0 Texas Instruments PCI1251 CardBus rev 0x01: 
irq 11
cbb1 at pci0 dev 3 function 1 Texas Instruments PCI1251 CardBus rev 0x01: 
irq 11
ATT/Lucent LTMODEM rev 0x01 at pci0 dev 6 function 0 not configured
ESS SOLO-1 AudioDrive rev 0x02 at pci0 dev 7 function 0 not configured
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0 (mux 1 ignored for console): console keyboard, using 
wsdisplay0
npx0 at isa0 port 0xf0/16: using exception 16
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 2 device 0 cacheline 0x0, lattimer 0x80
pcmcia0 at cardslot0
cardslot1 at cbb1 slot 1 flags 0
cardbus1 at cardslot1: bus 3 device 0 cacheline 0x0, lattimer 0x80
pcmcia1 at cardslot1
biomask fff5 netmask fff5 ttymask fff7
rd0: fixed, 3800 blocks
ep1 at pcmcia0 function 0 3Com, OfficeConnect 572B, B port 0xa000/32: 
address 00:00:86:62:83:f5

Re: Konqueror, Crypto and Https problems

2005-09-25 Thread Marc Espie
On Sun, Sep 25, 2005 at 09:48:31AM -0400, Chris wrote:
 Haha!
 
 I got it.
 
 I started poking around my libraries, and found libcrypto.so had perms
 of 600!  Why it was that way, I do not know.  Like I said, this is a
 pristine system  -- I definitely did not do this myself.  Also, why it
 didn't have an error like could not access libcrypto.so:  permission
 denied -- I have no idea.  Would have been helpful, but I'm sure that
 is a KDE thing, not an OBSD thing.

What file are you talking about ? there is no libcrypto.so in an OpenBSD
system.

Are you perhaps referring to some /usr/lib/libcrypto.so.*, with the
correct version number inserted. This one should definitely not be mode
0600.

I don't know how you handle your `pristine systems'. Do you at least
have a non-root account ?



Re: Konqueror, Crypto and Https problems

2005-09-25 Thread Chris
Hi,

It was /usr/lib/libcrypto.so.11.0.  I wasn't sure if it was that or
/usr/lib/libcrypto.a, but I just recreated the problem, and it was
definitely /usr/lib/libcrypto.so.11.0.

To try it yourself, simply: chmod 400 /usr/lib/libcrypto.so.11.0.  The
owner and group were root:wheel -- again, this is just how I found it. 
I set it back, and I get the same error.

I set the perms back to 644, and boom, works fine.

ldd `which konqueror`
/usr/local/bin/konqueror:
StartEnd  Type Ref Name
  exe   1  /usr/local/bin/konqueror
0a244000 2a259000 rlib  1  /usr/local/lib/libkdeinit_konqueror.so
0b22f000 2b23a000 rlib  2  /usr/local/lib/libkonq.so.6.0
01dcb000 21dd5000 rlib  3  /usr/local/lib/libkparts.so.3.0
06018000 2605f000 rlib  4  /usr/local/lib/libkio.so.6.0
0cbe5000 2cc2c000 rlib  5  /usr/local/lib/libkdeui.so.6.0
0200d000 22011000 rlib  5  /usr/local/lib/libkdesu.so.6.0
06ad4000 26ad8000 rlib  5  /usr/local/lib/libkwalletclient.so.1.0
0f984000 2f9aa000 rlib  8  /usr/local/lib/libkdecore.so.6.0
0f959000 2f961000 rlib  9  /usr/local/lib/libDCOP.so.6.0
0e087000 2e08b000 rlib  9  /usr/lib/libutil.so.11.0
08817000 2881b000 rlib  9  /usr/local/lib/libart_lgpl_2.so.5.16
080f2000 280f9000 rlib  9  /usr/local/lib/libkdefx.so.6.0
03db9000 23ebd000 rlib  11  /usr/local/lib/libqt-mt.so.3.34
05105000 2510b000 rlib  12  /usr/local/lib/libjpeg.so.62.0
028f8000 228ff000 rlib  12  /usr/local/lib/libpng.so.4.1
04b71000 24b75000 rlib  20  /usr/X11R6/lib/libXext.so.8.0
044a 244eb000 rlib  22  /usr/X11R6/lib/libX11.so.8.1
01a75000 21a79000 rlib  14  /usr/X11R6/lib/libSM.so.8.0
0f0f9000 2f10 rlib  15  /usr/X11R6/lib/libICE.so.8.0
0ecbb000 2ecc4000 rlib  11  /usr/lib/libpthread.so.6.1
0ec09000 2ec0d000 rlib  14  /usr/X11R6/lib/libXrender.so.3.1
063ea000 263f2000 rlib  12  /usr/lib/libz.so.4.0
034de000 234e9000 rlib  1  /usr/lib/libstdc++.so.34.0
031c9000 231d rlib  13  /usr/lib/libm.so.2.0
0d7b2000 2d7e9000 rlib  1  /usr/lib/libc.so.34.2
08c62000 28c6a000 rlib  1  /usr/local/lib/libmng.so.2.0
0ea72000 2ea7d000 rlib  1  /usr/local/lib/liblcms.so.1.12
0242b000 2243e000 rlib  1  /usr/X11R6/lib/libGL.so.3.1
04977000 2497c000 rlib  1  /usr/X11R6/lib/libXmu.so.8.0
004b7000 204bb000 rlib  1  /usr/X11R6/lib/libXi.so.8.0
09fe1000 29fe4000 rlib  1  /usr/X11R6/lib/libXrandr.so.4.0
03bb3000 23bb7000 rlib  1  /usr/X11R6/lib/libXcursor.so.2.2
0f15d000 2f161000 rlib  1  /usr/X11R6/lib/libXinerama.so.3.0
055bb000 255bf000 rlib  1  /usr/X11R6/lib/libXft.so.5.0
05b77000 25b93000 rlib  3  /usr/X11R6/lib/libfreetype.so.13.0
0756 2756e000 rlib  2  /usr/X11R6/lib/libfontconfig.so.2.0
0f614000 2f62 rlib  1  /usr/X11R6/lib/libXt.so.8.0
099e3000 299ec000 rlib  2  /usr/X11R6/lib/libexpat.so.5.0
01f2b000 01f2b000 rtld  1  /usr/libexec/ld.so


Now that I know what ktrace is (I'm used to strace), here is: ktrace
konqueror https://webauth.comcast.net with the perms of 600 on
libcrypto.so.11.0

$ ktrace konqueror https://webauth.comcast.net
konqueror: ERROR: Error in BrowserExtension::actionSlotMap(), unknown
action : searchProvider
/usr/local/bin/kdeinit:/usr/lib/libssl.so.9.0: undefined symbol 'X509_free'
/usr/local/bin/kdeinit: /usr/lib/libssl.so.9.0: can't resolve reference
'X509_free'
/usr/local/bin/kdeinit:/usr/lib/libssl.so.9.0: undefined symbol
'i2d_DHparams'
/usr/local/bin/kdeinit: /usr/lib/libssl.so.9.0: can't resolve reference
'i2d_DHparams'
/usr/local/bin/kdeinit:/usr/lib/libssl.so.9.0: undefined symbol
'd2i_DHparams'
/usr/local/bin/kdeinit: /usr/lib/libssl.so.9.0: can't resolve reference
'd2i_DHparams'
/usr/local/bin/kdeinit:/usr/lib/libssl.so.9.0: undefined symbol
'X509_NAME_free'
/usr/local/bin/kdeinit: /usr/lib/libssl.so.9.0: can't resolve reference
'X509_NAME_free'
/usr/local/bin/kdeinit:/usr/lib/libssl.so.9.0: undefined symbol
'CRYPTO_lock'
lazy binding failed!
kioslave: ### CRASH ## protocol = https pid = 4493 signal = 11

I get the error I reported earlier in the browser window, the gui
configurator crashes out.



Here is the same command, but with the perms of 644 on libcrypto.so.11.0:

$ ktrace konqueror https://webauth.comcast.net
konqueror: ERROR: Error in BrowserExtension::actionSlotMap(), unknown
action : searchProvider
kdecore (KLibLoader): WARNING: KLibrary: Unable to resolve symbol
kdecore (KLibLoader): WARNING: KLibrary: Unable to resolve symbol
kdecore (KLibLoader): WARNING: KLibrary: Unable to resolve symbol
kdecore (KLibLoader): WARNING: KLibrary: Unable to resolve symbol
kdecore (KLibLoader): WARNING: KLibrary: Unable to resolve symbol
kdecore (KLibLoader): WARNING: KLibrary: Unable to resolve symbol
kdecore (KLibLoader): WARNING: KLibrary: Unable to