Re: [Conkeror] Segmentation fault

2012-08-23 Thread John J. Foerch
On Thu, Aug 23, 2012 at 12:41:06PM -0700, Silvio Levy wrote:
> 
> > Changing profiles is a very general
> > diagnostic step, not specific to segfaults, and to my knowledge, we have
> > seen no cases where changing profiles solved a segfault.
> 
> OK, so it was just a lucky hunch that made you suggest that I should
> change profiles. Still, why not put it out there? You now have seen
> one case where it helps. (Before I deleted the profile, conkeror
> wouldn't even get started, whereas now I know the problem is outside
> conkeror, since it fails in exactly the same way as firefox.)
> 

Ok, so it definitely did do something.  I'll make some kind of
troubleshooting guide.

-- 
John Foerch
___
Conkeror mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/conkeror


Re: [Conkeror] Segmentation fault

2012-08-23 Thread Silvio Levy

> Changing profiles is a very general
> diagnostic step, not specific to segfaults, and to my knowledge, we have
> seen no cases where changing profiles solved a segfault.

OK, so it was just a lucky hunch that made you suggest that I should
change profiles. Still, why not put it out there? You now have seen
one case where it helps. (Before I deleted the profile, conkeror
wouldn't even get started, whereas now I know the problem is outside
conkeror, since it fails in exactly the same way as firefox.)

> It sounds like something is corrupted somewhere. Reinstall
> everything, try different versions of xulrunner (or firefox).

That's what I did all day yesterday (see my original message, 
copied below).   Today I also reinstalled firefox.  Not sure what 
else would be covered under "everything".  

Thanks in any case.  I'll post again if I figure it out. 

Silvio


To: [email protected]
Subject: Segmentation fault
cc: [email protected]
From: Silvio Levy 
Date: Thu, 23 Aug 2012 01:59:47 -0700
Sender: [email protected]

So last night I inadvertently left my laptop unplugged and it shut
down when the battery ran low.

This morning I rebooted it and conkeror wouldn't run.  More precisely,

xulrunner /usr/local/src/conkeror/application.ini 

causes a Segmentation fault without any other messages.

I've tried a lot of things during the course of the day, but no matter
what I do, I still get the Segmentation fault. Here's what I tried: 

1) Upgrading Conkeror, via  
cd /usr/local/src/conkeror; git fetch; git merge origin

2) upgrading Ubuntu (from 10.04 to 11.04 in two steps, via 
sudo do-release-upgrade)

3) Upgrading xulrunner, via 
  sudo add-apt-repository ppa:ubuntu-mozilla-daily/ppa
  sudo apt-get update
  sudo apt-get install xulrunner-2.0 xulrunner-2.0-dev 
xulrunner-2.0-gnome-support xulrunner-dev
(The installed version is now Mozilla XULRunner 2.0 - 20110402003021 )

4) Replacing Conkeror altogether, via
rm -f -r  /usr/local/src/conkeror; git clone git://repo.or.cz/conkeror.git  

5) According to http://conkeror.org/InstallationDebian, 
"The easiest way to use Conkeror [under Ubuntu 11:04] is to add the
  PPA at https://launchpad.net/~xtaran/+archive/conkeror:
sudo apt-add-repository ppa:xtaran/conkeror"
The page doesn't say what to next -- I assumed it would be
"sudo apt-get install conkeror" but this replies with 
E: Unable to locate package conkeror


Any ideas, either for identifying the cause of the Segmentation fault
or for installing a fresh conkeror?

Thanks,

Silvio


___
Conkeror mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/conkeror


Re: [Conkeror] Segmentation fault

2012-08-23 Thread John J. Foerch
On Thu, Aug 23, 2012 at 11:11:43AM -0700, Silvio Levy wrote:
> 
> > Translation: this problem would be a lot easier to solve if someone else
> > had it before me and documented the solution.
> 
> Not sure why this deserves sarcasm.
> 
> Is this really the first case of "Segmentation fault" that has come to
> the developers' attention?
> 
> I can document the solution, if you'd like. (BTW you wrote "Maybe
> your profile got corrupted. Try a new profile." It's not obvious how
> you do this if you can't even get conkeror started. In the event I
> found /home/levy/.conkeror.mozdev.org/conkeror/profiles.ini and
> changed StartWithLastProfile=1 to 0.  Not sure if that's the best way.)
> 
> > I don't know what caused that segfault, but the error before it is
> > probably because you forgot to:
> > 
> >   require("content-policy");
> > 
> > before using content_policy_hook in your rc.
> 
> No - it's there (line 1 of my content-policy.js)
> 
> Silvio
> 
> 

Sorry if that came off too harsh.  Changing profiles is a very general
diagnostic step, not specific to segfaults, and to my knowledge, we have
seen no cases where changing profiles solved a segfault.

I'm out of ideas for your problem.  It sounds like something is corrupted
somewhere.  Reinstall everything, try different versions of xulrunner (or
firefox).  Fresh profile.  Maybe corruption in some other library that
xulrunner/firefox depends on?

-- 
John Foerch
___
Conkeror mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/conkeror


Re: [Conkeror] Segmentation fault

2012-08-23 Thread Silvio Levy

> Translation: this problem would be a lot easier to solve if someone else
> had it before me and documented the solution.

Not sure why this deserves sarcasm.

Is this really the first case of "Segmentation fault" that has come to
the developers' attention?

I can document the solution, if you'd like. (BTW you wrote "Maybe
your profile got corrupted. Try a new profile." It's not obvious how
you do this if you can't even get conkeror started. In the event I
found /home/levy/.conkeror.mozdev.org/conkeror/profiles.ini and
changed StartWithLastProfile=1 to 0.  Not sure if that's the best way.)

> I don't know what caused that segfault, but the error before it is
> probably because you forgot to:
> 
>   require("content-policy");
> 
> before using content_policy_hook in your rc.

No - it's there (line 1 of my content-policy.js)

Silvio


___
Conkeror mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/conkeror


Re: [Conkeror] Segmentation fault

2012-08-23 Thread John J. Foerch
On Thu, Aug 23, 2012 at 10:32:35AM -0700, Silvio Levy wrote:
> 
> Hi John
> 
> > Maybe your profile got corrupted.  Try a new profile.
> 
> That helps. It now crashes a bit later - see below. But first:
> 
> /* SUGGESTION: Yesterday I tried numerous google searches. Most
> helpful would have been a page under conkeror.org with the words
> "Segmentation fault" and the hint about profiles. (The search box on
> top returns noting under "Segmentation fault" and clicking "Text".)

Translation: this problem would be a lot easier to solve if someone else
had it before me and documented the solution.  Yes.  

> 
> I did try yesterday to move my Conkeror directory out the way, but the
> profile stuff is in another directory and I didn't think of it. */
> 
> 
> Now back to the PROBLEM:
> 
> While I can now view some pages with conkeror, most pages
> (anything that's not pure HTML, it looks like) cause this: 
> 
> Segmentation fault (core dumped)
> 
> No core file seems to be created, and the are no error messages. (See
> below for a transcript of a conkeror run -- all the messages, apart
> from the Seg fault, occur at startup time.)
> 
> This is the same behavior I noticed with firefox yesterday, so the
> problem is not conkeror per se. Still I'm hoping that you might have
> some ideas about how to troubleshoot.
> 
> Silvio
> 
> 
> gar:; xulrunner /usr/local/src/conkeror/application.ini -P levy
> 
> TypeError: ar is undefined
> chrome://conkeror/content/array.js:50
> array_find_index((void 0),(function (x) x.name == 
> func.name))@chrome://conkeror/content/array.js:50
> replace_hook("content_policy_hook",block_by_host)@file:///usr/local/src/conkeror/components/application.js
>  -> file:///u/levy/.c/content-policy.js:9
> @file:///usr/local/src/conkeror/components/application.js -> 
> file:///u/levy/.c/content-policy.js:46
> Segmentation fault (core dumped)

I don't know what caused that segfault, but the error before it is
probably because you forgot to:

  require("content-policy");

before using content_policy_hook in your rc.

-- 
John Foerch
___
Conkeror mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/conkeror


Re: [Conkeror] Segmentation fault

2012-08-23 Thread Silvio Levy

Hi John

> Maybe your profile got corrupted.  Try a new profile.

That helps. It now crashes a bit later - see below. But first:

/* SUGGESTION: Yesterday I tried numerous google searches. Most
helpful would have been a page under conkeror.org with the words
"Segmentation fault" and the hint about profiles. (The search box on
top returns noting under "Segmentation fault" and clicking "Text".)

I did try yesterday to move my Conkeror directory out the way, but the
profile stuff is in another directory and I didn't think of it. */


Now back to the PROBLEM:

While I can now view some pages with conkeror, most pages
(anything that's not pure HTML, it looks like) cause this: 

Segmentation fault (core dumped)

No core file seems to be created, and the are no error messages. (See
below for a transcript of a conkeror run -- all the messages, apart
from the Seg fault, occur at startup time.)

This is the same behavior I noticed with firefox yesterday, so the
problem is not conkeror per se. Still I'm hoping that you might have
some ideas about how to troubleshoot.

Silvio


gar:; xulrunner /usr/local/src/conkeror/application.ini -P levy

TypeError: ar is undefined
chrome://conkeror/content/array.js:50
array_find_index((void 0),(function (x) x.name == 
func.name))@chrome://conkeror/content/array.js:50
replace_hook("content_policy_hook",block_by_host)@file:///usr/local/src/conkeror/components/application.js
 -> file:///u/levy/.c/content-policy.js:9
@file:///usr/local/src/conkeror/components/application.js -> 
file:///u/levy/.c/content-policy.js:46
Segmentation fault (core dumped)




___
Conkeror mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/conkeror


Re: [Conkeror] Segmentation fault

2012-08-23 Thread John J. Foerch
On Thu, Aug 23, 2012 at 01:59:47AM -0700, Silvio Levy wrote:
> 
> So last night I inadvertently left my laptop unplugged and it shut
> down when the battery ran low.
> 
> This morning I rebooted it and conkeror wouldn't run.  More precisely,
> 
> xulrunner /usr/local/src/conkeror/application.ini 
> 
> causes a Segmentation fault without any other messages.
> 

Maybe your profile got corrupted.  Try a new profile.

-- 
John Foerch
___
Conkeror mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/conkeror


Re: [Conkeror] Segmentation fault

2012-08-23 Thread Silvio Levy

Dear Axel,

Thank your the wonderfully quick reply!

> Well, it's very likely not Conkeror which segfaults as Conkeror is
> written just in interpreted JavaScript and it needs compiled programs

Granted.  But I figured this would be the best place to ask anyway.

Once upon a time I programmed in C and could glean some information
from a core dump. But I don't see a core dump at all. There's only the
Segmentation fault message.

> the upgrades, you may be able to check with "debsums -c" if there are

Installed debsums and ran with -c.  This gives a long litany of 
lines of the form "debsums: no md5sums for libxrender1".  What should
I look for?   (The output is below in case it helps)

> I'm though not sure if that works if the debsums package wasn't
> installed before the relevant packages have been installed.

I could uninstall and reinstall xulrunner if that would help.

> Thanks for that hint. Will try to make it more verbose. I suspect
> there's just an "sudo apt-get update" missing

Very good point.  Now "sudo apt-get install conkeror" works fine and
places an executable in /usr/bin/conkeror -- which naturally calls
xulrunner and... Segmentation fault.

> What Firefox version is installed? 

Mozilla Firefox 14.0.1

> Try to run "firefox -app /usr/local/src/conkeror/application.ini"
> instead of using xulrunner.

Same problem - Segmentation fault. But I now see that firefox without
-app is sort of broken too. It starts up, unlike conkeror, but it
crashes when I try to visit almost page (anything that's not pure
HTML, it looks like). Even pages it can open don't last long. For
instance, I can view http://conkeror.org/XULRunner but after 30
seconds it crashes.

Google-chrome and opera seem to work fine.
But they don't hold a candle to conkeror...

Silvio

 Output of debsums -c 

debsums: no md5sums for binutils
debsums: no md5sums for bogofilter
debsums: no md5sums for dhcp3-client
debsums: no md5sums for dhcp3-common
debsums: no md5sums for e2fslibs
debsums: no md5sums for emacsen-common
debsums: no md5sums for g++
debsums: no md5sums for gcc-4.4-base
debsums: no md5sums for gcc-4.5-base
debsums: can't open gdm file 
/var/lib/gdm/.gconf.defaults/%gconf-tree.xml.ubuntu (Permission denied)
debsums: can't open gdm file /var/lib/gdm/.gconf.mandatory/%gconf-tree.xml 
(Permission denied)
debsums: can't open gdm file /var/lib/gdm/.gconf.path (Permission denied)
debsums: can't open gdm file 
/var/lib/gdm/.local/share/applications/mime-dummy-handler.desktop (Permission 
denied)
debsums: can't open gdm file 
/var/lib/gdm/.local/share/applications/mimeapps.list (Permission denied)
debsums: no md5sums for git-core
debsums: no md5sums for google-chrome-stable
debsums: no md5sums for libacl1
debsums: no md5sums for libatk1.0-0
debsums: no md5sums for libattr1
debsums: no md5sums for libaudio2
debsums: no md5sums for libavahi-client3
debsums: no md5sums for libavahi-common-data
debsums: no md5sums for libavahi-common3
debsums: no md5sums for libavahi-core7
debsums: no md5sums for libavahi-glib1
debsums: no md5sums for libavahi-gobject0
debsums: no md5sums for libavahi-ui0
debsums: no md5sums for libbamf0
debsums: no md5sums for libblkid1
debsums: missing file /usr/lib/locale/C.UTF-8/LC_ADDRESS (from libc-bin package)
debsums: missing file /usr/lib/locale/C.UTF-8/LC_COLLATE (from libc-bin package)
debsums: missing file /usr/lib/locale/C.UTF-8/LC_CTYPE (from libc-bin package)
debsums: missing file /usr/lib/locale/C.UTF-8/LC_IDENTIFICATION (from libc-bin 
package)
debsums: missing file /usr/lib/locale/C.UTF-8/LC_MEASUREMENT (from libc-bin 
package)
debsums: missing file /usr/lib/locale/C.UTF-8/LC_MESSAGES/SYS_LC_MESSAGES (from 
libc-bin package)
debsums: missing file /usr/lib/locale/C.UTF-8/LC_MONETARY (from libc-bin 
package)
debsums: missing file /usr/lib/locale/C.UTF-8/LC_NAME (from libc-bin package)
debsums: missing file /usr/lib/locale/C.UTF-8/LC_NUMERIC (from libc-bin package)
debsums: missing file /usr/lib/locale/C.UTF-8/LC_PAPER (from libc-bin package)
debsums: missing file /usr/lib/locale/C.UTF-8/LC_TELEPHONE (from libc-bin 
package)
debsums: missing file /usr/lib/locale/C.UTF-8/LC_TIME (from libc-bin package)
debsums: no md5sums for libc6
debsums: no md5sums for libcomerr2
debsums: no md5sums for libdb4.8
debsums: no md5sums for libdbus-1-3
debsums: no md5sums for libdrm-intel1
debsums: no md5sums for libdrm-nouveau1a
debsums: no md5sums for libdrm-radeon1
debsums: no md5sums for libdrm2
debsums: no md5sums for libexpat1
debsums: no md5sums for libfontconfig1
debsums: no md5sums for libfreetype6
debsums: no md5sums for libgcc1
debsums: no md5sums for libgcrypt11
debsums: no md5sums for libgdbm3
debsums: no md5sums for libglib2.0-0
debsums: no md5sums for libgnutls26
debsums: no md5sums for libgomp1
debsums: no md5sums for libgpg-error0
debsums: no md5sums for libgssapi-krb5-2
debsums: no md5sums for libgudev-1.0-0
debsums: no md5sums for libice6
debsums: no md5sums for libjasper1
debsum

Re: [Conkeror] Segmentation fault

2012-08-23 Thread Axel Beckert
Hi Silvio,

On Thu, Aug 23, 2012 at 01:59:47AM -0700, Silvio Levy wrote:
> So last night I inadvertently left my laptop unplugged and it shut
> down when the battery ran low.
> 
> This morning I rebooted it and conkeror wouldn't run.  More precisely,
> 
> xulrunner /usr/local/src/conkeror/application.ini 
> 
> causes a Segmentation fault without any other messages.

Ouch.

Well, it's very likely not Conkeror which segfaults as Conkeror is
written just in interpreted JavaScript and it needs compiled programs
to segfault, so it's likely the interpreter (xulrunner or in the worst
case /bin/sh from the shell script wrapper of xulrunner) which segaults.

> 2) upgrading Ubuntu (from 10.04 to 11.04 in two steps, via 
> sudo do-release-upgrade)
> 
> 3) Upgrading xulrunner, via 
>   sudo add-apt-repository ppa:ubuntu-mozilla-daily/ppa
>   sudo apt-get update
>   sudo apt-get install xulrunner-2.0 xulrunner-2.0-dev 
> xulrunner-2.0-gnome-support xulrunner-dev
> (The installed version is now Mozilla XULRunner 2.0 - 20110402003021 )

Hrm. That should have written nearly all relevant files of xulrunner
and its dependencies to disk.

At an unclean shutdown, I'd expect that possibly some files may have
been corrupted and many programs behave strangely if some of their
libraries or config files are corrupted (i.e. suddenly contain just
garbage or so).

But upgrading is as good as reinstalling these packages.

In case one of xulrunner's dependencies haven't been touched during
the upgrades, you may be able to check with "debsums -c" if there are
files on disk with different checksums than those they're expected to
have. I'm though not sure if that works if the debsums package wasn't
installed before the relevant packages have been installed.

> 5) According to http://conkeror.org/InstallationDebian, 
> "The easiest way to use Conkeror [under Ubuntu 11:04] is to add the
>   PPA at https://launchpad.net/~xtaran/+archive/conkeror:
> sudo apt-add-repository ppa:xtaran/conkeror"
> The page doesn't say what to next -- I assumed it would be
> "sudo apt-get install conkeror" but this replies with 
> E: Unable to locate package conkeror

Thanks for that hint. Will try to make it more verbose. I suspect
there's just an "sudo apt-get update" missing as you used it above in
"3)". (Would be nice if you could confirm that.)

> Any ideas, either for identifying the cause of the Segmentation fault
> or for installing a fresh conkeror?

What Firefox version is installed? Our nattys have Firefox 14.0. Try
to run "firefox -app /usr/local/src/conkeror/application.ini" instead
of using xulrunner.

Hope this helps!

Kind regards, Axel
-- 
/~\  Plain Text Ribbon Campaign   | Axel Beckert
\ /  Say No to HTML in E-Mail and News| [email protected]  (Mail)
 X   See http://www.asciiribbon.org/  | [email protected] (Mail+Jabber)
/ \  I love long mails: http://email.is-not-s.ms/ | http://noone.org/abe/ (Web)
___
Conkeror mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/conkeror