DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 8th November 2014
mlesniewskister mlesniewskister is offline
Port Guard
 
Join Date: Sep 2014
Posts: 13
Default SIGILL with xombrero

Hi all,
First post here and I am having some issues with getting xombrero working.

Some background information. This is on a -current snapshot as of today although packages are from 4th Nov as that is the most current, dmesg snippet below.
Code:
OpenBSD 5.6-current (GENERIC) #492: Fri Nov  7 10:21:36 MST 2014
    deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Geode(TM) Integrated Processor by AMD PCS ("AuthenticAMD" 586-class) 500 MHz
cpu0: FPU,DE,PSE,TSC,MSR,CX8,SEP,PGE,CMOV,CFLUSH,MMX,MMXX,3DNOW2,3DNOW
real mem  = 230076416 (219MB)
avail mem = 214040576 (204MB)
I have followed some of the steps at [0] to attempt to delve a little deeper and retrieved some output from gdb. I assume (although you know what people say about doing that) that I may need to actually recompile xombrero to get more detailed information to diagnose the issue.

I am ok with doing that, however due to the speed of this machine as seen in the dmesg and the fact that I know webkit is quite a large application in the case of compiling, can anyone point me in the direction of what exactly I would need to recompile with debug symbols so I can leave the machine chugging along?

By the way I am new to the recompiling for debug aspect so apologies in advance for any dumb followup queries. I have been using OpenBSD since 5.4 but it has been so rock-solid I have never had to do this yet

[0]: http://www.packetmischief.ca/2013/09/09/plumbing-openbsd-software-with-gdb1/

gdb output follows:
Code:
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-openbsd5.6"...(no debugging symbols found)

(gdb) attach xombrero:/usr/local/lib/libestdc++.so.16.0: /usr/lib/libstdc++.so.57.0 : WARNING: symbol(_Z
10928
Attaching to program: /usr/local/bin/xombrero, process 10928
Reading symbols from /usr/lib/libpthread.so.18.1...done.
Loaded symbols for /usr/lib/libpthread.so.18.1
Loaded symbols for /usr/local/bin/xombrero
Reading symbols from /usr/local/lib/libwebkitgtk-3.0.so.7.0...done.
Loaded symbols for /usr/local/lib/libwebkitgtk-3.0.so.7.0
Reading symbols from /usr/local/lib/libgtk-3.so.1400.0...done.
Loaded symbols for /usr/local/lib/libgtk-3.so.1400.0
Reading symbols from /usr/local/lib/libgdk-3.so.1400.0...done.
Loaded symbols for /usr/local/lib/libgdk-3.so.1400.0
Reading symbols from /usr/local/lib/libpangocairo-1.0.so.3600.0...done.
Loaded symbols for /usr/local/lib/libpangocairo-1.0.so.3600.0
Reading symbols from /usr/local/lib/libpangoft2-1.0.so.3600.0...done.
Loaded symbols for /usr/local/lib/libpangoft2-1.0.so.3600.0
Reading symbols from /usr/local/lib/libpango-1.0.so.3600.0...done.
Loaded symbols for /usr/local/lib/libpango-1.0.so.3600.0
Reading symbols from /usr/lib/libm.so.9.0...done.
Loaded symbols for /usr/lib/libm.so.9.0
Reading symbols from /usr/X11R6/lib/libfontconfig.so.9.1...done.
Loaded symbols for /usr/X11R6/lib/libfontconfig.so.9.1
Reading symbols from /usr/X11R6/lib/libfreetype.so.22.0...done.
Loaded symbols for /usr/X11R6/lib/libfreetype.so.22.0
Reading symbols from /usr/lib/libz.so.5.0...done.
Loaded symbols for /usr/lib/libz.so.5.0
Reading symbols from /usr/local/lib/libatk-1.0.so.21409.1...done.
Loaded symbols for /usr/local/lib/libatk-1.0.so.21409.1
Reading symbols from /usr/local/lib/libcairo-gobject.so.1.1...done.
Loaded symbols for /usr/local/lib/libcairo-gobject.so.1.1
Reading symbols from /usr/local/lib/libcairo.so.12.2...done.
Loaded symbols for /usr/local/lib/libcairo.so.12.2
Reading symbols from /usr/local/lib/libgdk_pixbuf-2.0.so.3000.0...done.
Loaded symbols for /usr/local/lib/libgdk_pixbuf-2.0.so.3000.0
Reading symbols from /usr/local/lib/libjavascriptcoregtk-3.0.so.5.0...done.
Loaded symbols for /usr/local/lib/libjavascriptcoregtk-3.0.so.5.0
Reading symbols from /usr/local/lib/libsoup-2.4.so.8.1...done.
Loaded symbols for /usr/local/lib/libsoup-2.4.so.8.1
Reading symbols from /usr/local/lib/libgio-2.0.so.4200.0...done.
Loaded symbols for /usr/local/lib/libgio-2.0.so.4200.0
Reading symbols from /usr/local/lib/libgobject-2.0.so.4200.0...done.
Loaded symbols for /usr/local/lib/libgobject-2.0.so.4200.0
Reading symbols from /usr/local/lib/libglib-2.0.so.4200.0...done.
Loaded symbols for /usr/local/lib/libglib-2.0.so.4200.0
Reading symbols from /usr/local/lib/libintl.so.6.0...done.
Loaded symbols for /usr/local/lib/libintl.so.6.0
Reading symbols from /usr/local/lib/libgnutls.so.41.4...done.
Loaded symbols for /usr/local/lib/libgnutls.so.41.4
Reading symbols from /usr/lib/libutil.so.12.1...done.
Loaded symbols for /usr/lib/libutil.so.12.1
Reading symbols from /usr/lib/libc.so.77.2...done.
Loaded symbols for /usr/lib/libc.so.77.2
Symbols already loaded for /usr/lib/libpthread.so.18.1
Reading symbols from /usr/X11R6/lib/libX11.so.16.0...done.
Loaded symbols for /usr/X11R6/lib/libX11.so.16.0
Reading symbols from /usr/X11R6/lib/libxcb.so.3.1...done.
Loaded symbols for /usr/X11R6/lib/libxcb.so.3.1
Reading symbols from /usr/local/lib/libgmodule-2.0.so.4200.0...done.
Loaded symbols for /usr/local/lib/libgmodule-2.0.so.4200.0
Reading symbols from /usr/local/lib/libiconv.so.6.0...done.
Loaded symbols for /usr/local/lib/libiconv.so.6.0
Reading symbols from /usr/local/lib/libpcre.so.3.0...done.
Loaded symbols for /usr/local/lib/libpcre.so.3.0
Reading symbols from /usr/local/lib/libgthread-2.0.so.4200.0...done.
Loaded symbols for /usr/local/lib/libgthread-2.0.so.4200.0
Reading symbols from /usr/local/lib/libffi.so.1.0...done.
Loaded symbols for /usr/local/lib/libffi.so.1.0
Reading symbols from /usr/local/lib/libicui18n.so.8.0...done.
Loaded symbols for /usr/local/lib/libicui18n.so.8.0
Reading symbols from /usr/local/lib/libicuuc.so.8.0...done.
Loaded symbols for /usr/local/lib/libicuuc.so.8.0
Reading symbols from /usr/local/lib/libicudata.so.8.0...done.
Loaded symbols for /usr/local/lib/libicudata.so.8.0
Reading symbols from /usr/X11R6/lib/libpixman-1.so.32.6...done.
Loaded symbols for /usr/X11R6/lib/libpixman-1.so.32.6
Reading symbols from /usr/X11R6/lib/libpthread-stubs.so.2.0...done.
Loaded symbols for /usr/X11R6/lib/libpthread-stubs.so.2.0
Reading symbols from /usr/lib/libexpat.so.11.0...done.
Loaded symbols for /usr/lib/libexpat.so.11.0
Reading symbols from /usr/local/lib/libpng.so.17.2...done.
Loaded symbols for /usr/local/lib/libpng.so.17.2
Reading symbols from /usr/X11R6/lib/libxcb-shm.so.1.1...done.
Loaded symbols for /usr/X11R6/lib/libxcb-shm.so.1.1
Reading symbols from /usr/X11R6/lib/libxcb-render.so.1.0...done.
Loaded symbols for /usr/X11R6/lib/libxcb-render.so.1.0
Reading symbols from /usr/X11R6/lib/libXrender.so.6.0...done.
Loaded symbols for /usr/X11R6/lib/libXrender.so.6.0
Reading symbols from /usr/X11R6/lib/libXext.so.13.0...done.
Loaded symbols for /usr/X11R6/lib/libXext.so.13.0
Reading symbols from /usr/local/lib/libenchant.so.6.1...done.
Loaded symbols for /usr/local/lib/libenchant.so.6.1
Reading symbols from /usr/lib/libstdc++.so.57.0...done.
Loaded symbols for /usr/lib/libstdc++.so.57.0
Reading symbols from /usr/local/lib/libharfbuzz.so.5.0...done.
Loaded symbols for /usr/local/lib/libharfbuzz.so.5.0
Reading symbols from /usr/local/lib/libgraphite2.so.0.0...done.
Loaded symbols for /usr/local/lib/libgraphite2.so.0.0
Reading symbols from /usr/local/lib/libharfbuzz-icu.so.0.2...done.
Loaded symbols for /usr/local/lib/libharfbuzz-icu.so.0.2
Reading symbols from /usr/local/lib/libgstapp-1.0.so.1.0...done.
Loaded symbols for /usr/local/lib/libgstapp-1.0.so.1.0
Reading symbols from /usr/local/lib/libgstbase-1.0.so.1.1...done.
Loaded symbols for /usr/local/lib/libgstbase-1.0.so.1.1
Reading symbols from /usr/local/lib/libgstreamer-1.0.so.1.1...done.
Loaded symbols for /usr/local/lib/libgstreamer-1.0.so.1.1
Reading symbols from /usr/local/lib/libgstaudio-1.0.so.1.0...done.
Loaded symbols for /usr/local/lib/libgstaudio-1.0.so.1.0
Reading symbols from /usr/local/lib/libgsttag-1.0.so.1.0...done.
Loaded symbols for /usr/local/lib/libgsttag-1.0.so.1.0
Reading symbols from /usr/local/lib/liborc-0.4.so.5.0...done.
Loaded symbols for /usr/local/lib/liborc-0.4.so.5.0
Reading symbols from /usr/local/lib/libgstfft-1.0.so.1.0...done.
Loaded symbols for /usr/local/lib/libgstfft-1.0.so.1.0
Reading symbols from /usr/local/lib/libgstpbutils-1.0.so.1.0...done.
Loaded symbols for /usr/local/lib/libgstpbutils-1.0.so.1.0
Reading symbols from /usr/local/lib/libgstvideo-1.0.so.1.0...done.
Loaded symbols for /usr/local/lib/libgstvideo-1.0.so.1.0
Reading symbols from /usr/X11R6/lib/libXinerama.so.6.0...done.
Loaded symbols for /usr/X11R6/lib/libXinerama.so.6.0
Reading symbols from /usr/X11R6/lib/libXi.so.12.1...done.
Loaded symbols for /usr/X11R6/lib/libXi.so.12.1
Reading symbols from /usr/X11R6/lib/libXrandr.so.7.0...done.
Loaded symbols for /usr/X11R6/lib/libXrandr.so.7.0
Reading symbols from /usr/X11R6/lib/libXcursor.so.5.0...done.
Loaded symbols for /usr/X11R6/lib/libXcursor.so.5.0
Reading symbols from /usr/X11R6/lib/libXfixes.so.6.0...done.
Loaded symbols for /usr/X11R6/lib/libXfixes.so.6.0
Reading symbols from /usr/X11R6/lib/libXcomposite.so.4.0...done.
Loaded symbols for /usr/X11R6/lib/libXcomposite.so.4.0
Reading symbols from /usr/X11R6/lib/libXdamage.so.4.0...done.
Loaded symbols for /usr/X11R6/lib/libXdamage.so.4.0
Reading symbols from /usr/local/lib/libatk-bridge-2.0.so.0.0...done.
Loaded symbols for /usr/local/lib/libatk-bridge-2.0.so.0.0
Reading symbols from /usr/local/lib/libdbus-1.so.11.0...done.
Loaded symbols for /usr/local/lib/libdbus-1.so.11.0
Reading symbols from /usr/local/lib/libatspi.so.0.1...done.
Loaded symbols for /usr/local/lib/libatspi.so.0.1
Reading symbols from /usr/X11R6/lib/libSM.so.9.0...done.
Loaded symbols for /usr/X11R6/lib/libSM.so.9.0
Reading symbols from /usr/X11R6/lib/libICE.so.10.0...done.
Loaded symbols for /usr/X11R6/lib/libICE.so.10.0
Reading symbols from /usr/local/lib/libjpeg.so.67.0...done.
Loaded symbols for /usr/local/lib/libjpeg.so.67.0
Reading symbols from /usr/local/lib/libsecret-1.so.1.0...done.
Loaded symbols for /usr/local/lib/libsecret-1.so.1.0
Reading symbols from /usr/local/lib/libgcrypt.so.19.2...done.
Loaded symbols for /usr/local/lib/libgcrypt.so.19.2
Reading symbols from /usr/local/lib/libgpg-error.so.3.5...done.
Loaded symbols for /usr/local/lib/libgpg-error.so.3.5
Reading symbols from /usr/local/lib/libxml2.so.15.1...done.
Loaded symbols for /usr/local/lib/libxml2.so.15.1
Reading symbols from /usr/local/lib/liblzma.so.1.0...done.
Loaded symbols for /usr/local/lib/liblzma.so.1.0
Reading symbols from /usr/lib/libsqlite3.so.28.0...done.
Loaded symbols for /usr/lib/libsqlite3.so.28.0
Reading symbols from /usr/local/lib/libxslt.so.3.8...done.
Loaded symbols for /usr/local/lib/libxslt.so.3.8
Reading symbols from /usr/X11R6/lib/libGL.so.15.0...done.
Loaded symbols for /usr/X11R6/lib/libGL.so.15.0
Reading symbols from /usr/X11R6/lib/libXxf86vm.so.6.0...done.
Loaded symbols for /usr/X11R6/lib/libXxf86vm.so.6.0
Reading symbols from /usr/X11R6/lib/libXau.so.10.0...done.
Loaded symbols for /usr/X11R6/lib/libXau.so.10.0
Reading symbols from /usr/X11R6/lib/libXdmcp.so.11.0...done.
Loaded symbols for /usr/X11R6/lib/libXdmcp.so.11.0
Reading symbols from /usr/X11R6/lib/libX11-xcb.so.2.0...done.
Loaded symbols for /usr/X11R6/lib/libX11-xcb.so.2.0
Reading symbols from /usr/X11R6/lib/libxcb-dri2.so.1.1...done.
Loaded symbols for /usr/X11R6/lib/libxcb-dri2.so.1.1
Reading symbols from /usr/X11R6/lib/libxcb-glx.so.1.0...done.
Loaded symbols for /usr/X11R6/lib/libxcb-glx.so.1.0
Reading symbols from /usr/X11R6/lib/libdrm.so.5.0...done.
Loaded symbols for /usr/X11R6/lib/libdrm.so.5.0
Reading symbols from /usr/X11R6/lib/libglapi.so.0.0...done.
Loaded symbols for /usr/X11R6/lib/libglapi.so.0.0
Reading symbols from /usr/X11R6/lib/libEGL.so.0.0...done.
Loaded symbols for /usr/X11R6/lib/libEGL.so.0.0
Reading symbols from /usr/X11R6/lib/libxcb-xfixes.so.1.1...done.
Loaded symbols for /usr/X11R6/lib/libxcb-xfixes.so.1.1
Reading symbols from /usr/X11R6/lib/libxcb-shape.so.1.0...done.
Loaded symbols for /usr/X11R6/lib/libxcb-shape.so.1.0
Reading symbols from /usr/X11R6/lib/libgbm.so.0.0...done.
Loaded symbols for /usr/X11R6/lib/libgbm.so.0.0
Reading symbols from /usr/local/lib/libwebp.so.2.0...done.
Loaded symbols for /usr/local/lib/libwebp.so.2.0
Reading symbols from /usr/X11R6/lib/libXt.so.11.0...done.
Loaded symbols for /usr/X11R6/lib/libXt.so.11.0
Reading symbols from /usr/local/lib/libestdc++.so.16.0...Error while reading shared library symbols:
Dwarf Error: Could not find abbrev number 13811 [in module /usr/local/lib/libestdc++.so.16.0]
Reading symbols from /usr/local/lib/libp11-kit.so.1.2...done.
Loaded symbols for /usr/local/lib/libp11-kit.so.1.2
Reading symbols from /usr/local/lib/libtasn1.so.3.3...done.
Loaded symbols for /usr/local/lib/libtasn1.so.3.3
Reading symbols from /usr/local/lib/libnettle.so.1.2...done.
Loaded symbols for /usr/local/lib/libnettle.so.1.2
Reading symbols from /usr/local/lib/libhogweed.so.1.1...done.
Loaded symbols for /usr/local/lib/libhogweed.so.1.1
Reading symbols from /usr/local/lib/libgmp.so.9.0...done.
Loaded symbols for /usr/local/lib/libgmp.so.9.0
Reading symbols from /usr/libexec/ld.so...done.
Loaded symbols for /usr/libexec/ld.so
[Switching to thread 1010928]
0x015287e9 in poll () at <stdin>:2
2       <stdin>: No such file or directory.
        in <stdin>
Current language:  auto; currently asm
(gdb) continue
Continuing.
[New process 10928]

Program received signal SIGSTOP, Stopped (signal).
[Switching to thread 1024981]
_dofork (is_vfork=0) at /usr/src/lib/librthread/rthread_fork.c:111
111     /usr/src/lib/librthread/rthread_fork.c: No such file or directory.
        in /usr/src/lib/librthread/rthread_fork.c
Current language:  auto; currently c
(gdb) continue
Continuing.

Program received signal SIGSTOP, Stopped (signal).
0x09db3025 in g_hash_table_lookup () from /usr/local/lib/libglib-2.0.so.4200.0
(gdb) continue
Continuing.

Program received signal SIGSTOP, Stopped (signal).
0x09db3025 in g_hash_table_lookup () from /usr/local/lib/libglib-2.0.so.4200.0
(gdb) continue
Continuing.
xombrero: config_parse: cannot open /home/mike/.xombrero.conf: No such file or directory

Program received signal SIGILL, Illegal instruction.
[Switching to thread 1010928]
0x05061635 in ?? ()
(gdb) continue
Continuing.

Program terminated with signal SIGILL, Illegal instruction.
The program no longer exists.
(gdb)
Reply With Quote
  #2   (View Single Post)  
Old 8th November 2014
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 8,079
Default

Hello and welcome.

I just installed xombrero-1.6.3.v1 on -current/i386 and am using it to respond to your post.

I note that it requres dbus as a dependency. Is dbus_daemon in your pkg_scripts list in /etc/rc.conf.local ?

If it is, and you are still having trouble, look to your ulimits. Your user may need a staff or daemon login class to successfully run a browser.

I have a couple of 500Mhz AMD Geodes with 256MB of RAM. Alix boxes, being used as firewalls. One of them does some light web serving, and one runs a single small X client app. They don't have video hardware, though.
Reply With Quote
  #3   (View Single Post)  
Old 8th November 2014
mlesniewskister mlesniewskister is offline
Port Guard
 
Join Date: Sep 2014
Posts: 13
Default

Hi,
Thanks for the test.

Yep, ulimits and rc.conf.local are setup correctly:
Code:
$ ulimit -a
time(cpu-seconds)    unlimited
file(blocks)         unlimited
coredump(blocks)     unlimited
data(kbytes)         524288
stack(kbytes)        8192
lockedmem(kbytes)    69330
memory(kbytes)       206540
nofiles(descriptors) 512
processes            128
$ cat /etc/rc.conf.local
httpd_flags=
ntpd_flags=
pkg_scripts=dbus_daemon
However I did stupidly forget some (I think) important information which I apologise for, not sure how I missed including it in the last post.

When xombrero loads it automatically opens cypherite.com which is fine, this page will load and there aren't any crashes or untoward issues.

The issue manifests itself when opening some sites. I haven't tested many, but the list is as follows:
google.ca fails with SIGILL
arstechnica.com fails with SIGILL
lowendtalk.com works
daemonforums.org works
local instance of the output of phpinfo status page works
duckduckgo.com works until you search for something, then fails with SIGILL.

This box is based around the same geode platform as the Alix's, if you want some info:
http://en.wikipedia.org/wiki/Fit-PC#Obsolete_models
Reply With Quote
  #4   (View Single Post)  
Old 8th November 2014
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 8,079
Default

I reinstalled xombrero and just tried it with arstechnica, since it failed for you there. I can't duplicate your problem on my i386 system.

One large difference (other than 4X the RAM on this 1G Atom N270 notebook) is that I use daemon class for my browsing userids. On i386, they have 4X the data space, nearly 5X the lockedmem, and nearly 5X the memory of the user you are using.

Try daemon class, and see if it helps. Browsers consume everything they can. And even if xombrero is light, it is only -relatively- light. Its a webkit browser.

Since you haven't mentioned it, and you obviously need swap space....do you have enough swap capacity defined? If you run out, you can have odd application failures. To confirm that's not the problem, monitor capacity with top(1) or some other tool while running your browser.

Edited to add daemon limits on i386:
Code:
time(cpu-seconds)    unlimited
file(blocks)         unlimited
coredump(blocks)     unlimited
data(kbytes)         2097152
stack(kbytes)        8192
lockedmem(kbytes)    336492
memory(kbytes)       999788
nofiles(descriptors) 128
processes            1310
Reply With Quote
  #5   (View Single Post)  
Old 8th November 2014
mlesniewskister mlesniewskister is offline
Port Guard
 
Join Date: Sep 2014
Posts: 13
Default

Hi,

As this is just a test box to play around with I am just increasing the limits for the default class until I can manage to narrow down exactly what causes the issue.

I did copy all of the values of daemon that were set higher than default, have you edited your /etc/login.conf as mine has these values for daemon:
Code:
# Settings used by /etc/rc and root
# This must be set properly for daemons started as root by inetd as well.
# Be sure reset these values back to system defaults in the default class!
#
daemon:\
        :ignorenologin:\
        :datasize=infinity:\
        :maxproc=infinity:\
        :openfiles-cur=128:\
        :stacksize-cur=8M:\
        :localcipher=blowfish,9:\
        :tc=default:
Also on that same point, I have adjusted by datasize-cur to 2048M but I don't see what the name would be to adjust the lockedmem or memory values. I know that man ksh mentions how to do it via ulimit commands themselves but I don't see a way via the .conf file?

There is quite a bit of swap space on the box and I don't ever get close to reaching it, the highest I have seen was ~100M with the browser and generally if applications run out of swap & memory, they segfault and not SIGILL as I have only seen segfaults when running low on a Soekris 4501.
Code:
Memory: Real: 49M/169M act/tot Free: 36M Cache: 41M Swap: 0K/439M
I will test the other ulimit values you mention when I get home as I only have SSH access at the moment and no X forwarding.
Reply With Quote
  #6   (View Single Post)  
Old 9th November 2014
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 8,079
Default

Quote:
Originally Posted by mlesniewskister View Post
I don't see what the name would be to adjust the lockedmem or memory values.
They're described in login.conf(5). The fields are memorylocked and memoryuse.

I don't modify /etc/login.conf; it's easier for me administratively to manage by login class assignment. What I posted above was the output of a bourne shell ulimit, it's the same data (with some change in nomenclature) with a C shell limit -h:
Code:
cputime      unlimited
filesize     unlimited
datasize     2097152 kbytes
stacksize    32768 kbytes
coredumpsize unlimited
memoryuse    1009476 kbytes
descriptors  1024 
memorylocked 1009476 kbytes
maxproc      1310

Last edited by jggimi; 9th November 2014 at 12:21 AM. Reason: ye olde typo
Reply With Quote
  #7   (View Single Post)  
Old 9th November 2014
mlesniewskister mlesniewskister is offline
Port Guard
 
Join Date: Sep 2014
Posts: 13
Default

Duh, of course. How could I forget the man pages for *.conf files Thanks for the cluestick.

Alright, now that I am home I have boosted the ulimits way up to ensure there weren't messing with anything:

Code:
time(cpu-seconds)    unlimited
file(blocks)         unlimited
coredump(blocks)     unlimited
data(kbytes)         2097152
stack(kbytes)        8192
lockedmem(kbytes)    524288
memory(kbytes)       2097152
nofiles(descriptors) 512
processes            128
I also did some looking on google if there was any other information I could find related to this.
I found [0] & [1] which are 2, fixed, two year old bugs in webkit itself relating to instructions that aren't supported in the Geode processor itself and then a newer report [2] (on OpenSUSE) that seems similar but hasn't had a fix.
So I am a little unsure how to proceed now, I'm not too knowledgeable with programming to verify if this is even the same issue as described or if there are other things to try.

[0]: https://bugs.webkit.org/show_bug.cgi?id=82496
[1]: https://bugs.webkit.org/show_bug.cgi?id=96286
[2]: https://bugzilla.novell.com/show_bug.cgi?id=862267

Last edited by mlesniewskister; 9th November 2014 at 03:54 AM. Reason: It helps to not post before you finish writing a response
Reply With Quote
  #8   (View Single Post)  
Old 9th November 2014
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 8,079
Default

The explanation that the problem is SSE2 instructions being executed (and failing) on a Geode would explain the problem ... and indicates that virtual memory limitations are not the issue.

From what I can see in your gdb session in your first post, glib2 may also be involved, but it's not clear from that session what code is failing.

Have you tried Firefox? While it may consume more resources, it doesn't use webkit...but it does require glib2.
Reply With Quote
  #9   (View Single Post)  
Old 10th November 2014
mlesniewskister mlesniewskister is offline
Port Guard
 
Join Date: Sep 2014
Posts: 13
Default

Well I am glad the issue has been narrowed down a little, would you happen to know how to get xombrero + relevant associated libs recompiled so that a more thorough gdb trace can be provided to get the offending instructions #ifdef'd away?

Yep, firefox works beautifully, the reason that I wanted to move away from it is due to huge resource demands it places on that box, while I just use it as a secondary display for monitoring/testing I would rather not have to wait a minute to get the web browser paged back into memory all of the time.
Xombrero also has some interesting security features according to its site and I like the keybindings that are built-in without having to get an add-on as with FF.
Reply With Quote
Old 10th November 2014
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 8,079
Default

Since there is uncertainty where the failure is occurring, a gdb backtrace ought to point to the failing module. Further diagnostics may require a build of the failing component with symbols.
These are big, complex applications. There are 84 runtime dependency packages that must be installed along with xombrero.You can see the list if you have the ports tree installed. From /usr/ports/www/xombrero, issue make(1) with either print-run-depends or full-run-depends as the target.
Once the failing module has been isolated, steps to further determine a root cause can then be determined.

Last edited by jggimi; 10th November 2014 at 01:17 AM. Reason: clarity, typos.
Reply With Quote
Old 25th November 2014
mlesniewskister mlesniewskister is offline
Port Guard
 
Join Date: Sep 2014
Posts: 13
Default

Ok, so apologies for the delayed (and long) reply. There has been some news, but none of it good but I thought it would be good to keep all updated and to help others incase they run across the same issues.

First I tried compiling the necessary ports on the Geode machine, however my internet cut out so I had to wait for that to be back up to continue.
Then things went along smoothly for a while, until I ran out of space on the default /usr partition (2G).
So a new disk arrangement later, I hit some memory issues (I had the 256MB RAM and the default ~450MB swap partition). I restarted the compile after making another 512MB swap file, alas there were still out of memory issues.
I was now tired of waiting for this box to finish so I acquired an older laptop (P4-M 2.0Ghz) to build the ports on and I would then transfer the resulting built packages.

It was configured with a single partition and had 768MB of RAM, I also added a swapfile of another 768MB. Still no luck, it had built everything else except webkit. All of the following is relating to building webkit only as that was the last remaining piece.

So I thought, lets just rule out any swap issues and ulimit settings. I set ulimit to unlimited for all memory related values and created a 1536MB swap file. However things were still unsuccessful and I got kind of annoyed. (Side note, during the compile there was something like 15GB of space used in /usr for the temporary compiled files, since when did programs grow so large?)

There were still memory issues at this point so I watched another run closely and could see the out of memory was hit when only ~1200MB of swap was used, hmm that's strange I still had a bit more left in the swapfile, odd it would be dieing at this stage.

After running another ulimit -a I could see that the limit was set as 2GB, but I set this to unlimited, why it is maxing out at 2GB?

After looking around, I found [0] which you (jggimi) mentions that on the i386 arch under OpenBSD the max userspace memory is 2GB. Ok, fine, but I knew this package could be built under i386 as the main OpenBSD package tree has webkit available and they say they don't cross compile.
So maybe it is the debug options that increase the memory usage above the limit?

I then tried a compile with no debug options which worked perfectly.
So basically it seems that there would only be two options going forward which are unfortunately out of my depth but I thought it would be a good idea to note them for reference or incase someone has attempted them.

1. Increase the allowable userspace memory in OpenBSD to a higher level like 3GB. I would assume this would involve quite a bit of kernel hacking and would also be unsupported incase of any issues.
2. During the above issues, I noticed that the out of memory errors would occur in the linker (ld) phase of the compile, looking around a bit I found [1] which mentions changing the linker used in compiling webkit to one named "Gold" which apparently has better memory performance.

[0]: http://daemonforums.org/showpost.php...01&postcount=6
[1]: https://trac.webkit.org/wiki/WebKitG...edUpBuild#gold

Last edited by ocicat; 25th November 2014 at 02:03 AM. Reason: Please use [url] & [/url] tags when posting URL links.
Reply With Quote
Old 25th November 2014
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 8,079
Default

I had a problem with Firefox over the weekend and when I tried building it with debug options on, I too ran out of process address space and had to abandon the attempt.

The i386 architecture has limits which these apps certainly stress.

(My bug was apparently a dependent library PLIST issue. It is now resolved, and unrelated to your issue.)
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
xombrero segfaults on OpenBSD -current macppc daemonfowl OpenBSD Packages and Ports 12 30th October 2013 10:19 PM
building xombrero for NetBSD 6.1.2 pawaan NetBSD Package System (pkgsrc) 0 15th October 2013 06:45 PM


All times are GMT. The time now is 10:36 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick