Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

urlview 0.9 segfaults on x86_64

34 views
Skip to first unread message

Dario Niedermann

unread,
May 13, 2011, 10:06:30 AM5/13/11
to
Can anybody confirm that urlview 0.9 crashes with a segmentation fault
on Linux/x86_64? If I find out that it's not just my system, I might
take a look at the code.

TIA

--
> head -n1 /etc/*-{version,release} && uname -moprs
Slackware 13.37.0
Linux 2.6.37.6 x86_64 AMD Turion(tm) 64 Mobile Technology MK-36 GNU/Linux

Dario Niedermann

unread,
May 14, 2011, 11:06:33 AM5/14/11
to
Dario Niedermann <dn...@tiscali.it> wrote:

> Can anybody confirm that urlview 0.9 crashes with a segmentation fault
> on Linux/x86_64? If I find out that it's not just my system, I might
> take a look at the code.

No one? Can anybody report if urlview 0.9 is *working* for them on an
x86_64 Linux system instead?

Indi

unread,
May 14, 2011, 11:10:35 AM5/14/11
to

I *think* I had it running on x86_64 before...
Silly question perhaps, but have you checked the contents of
url_handler.sh? I really don't know why that file isn't in /etc
or in ~/.urlview; it needs to be edited unless you're using the
ca. 1998 defaults it contains. :)

--
caveat utilitor
♫ ❤ ♫ ❤ ♫ ❤ ♫

Dario Niedermann

unread,
May 14, 2011, 11:24:08 AM5/14/11
to
Indi <in...@127.0.0.1> wrote:

> I *think* I had it running on x86_64 before...
> Silly question perhaps, but have you checked the contents of
> url_handler.sh? I really don't know why that file isn't in /etc
> or in ~/.urlview; it needs to be edited unless you're using the
> ca. 1998 defaults it contains. :)

Yeah, you have a point there.

I actually edited url_handler.sh, but urlview crashes even before
reading that file, as I found out by inserting debugging messages at
different points in the source code.

Reports of how urlview 0.9 behaves on x86_64 would still be welcome.

Thank you.

Jorgen Grahn

unread,
May 15, 2011, 7:00:37 AM5/15/11
to
On Sat, 2011-05-14, Dario Niedermann wrote:
> Indi <in...@127.0.0.1> wrote:
>
>> I *think* I had it running on x86_64 before...
>> Silly question perhaps, but have you checked the contents of
>> url_handler.sh? I really don't know why that file isn't in /etc
>> or in ~/.urlview; it needs to be edited unless you're using the
>> ca. 1998 defaults it contains. :)
>
> Yeah, you have a point there.
>
> I actually edited url_handler.sh, but urlview crashes even before
> reading that file, as I found out by inserting debugging messages at
> different points in the source code.

You know that you can make the segfault create a core dump, right?
Which you then can look at using gdb?

> Reports of how urlview 0.9 behaves on x86_64 would still be welcome.

Sadly I've never heard of it.

/Jorgen

--
// Jorgen Grahn <grahn@ Oo o. . .
\X/ snipabacken.se> O o .

Steve Jones

unread,
May 15, 2011, 10:43:47 AM5/15/11
to
On 2011-05-13, Dario Niedermann <dn...@tiscali.it> wrote:
> Can anybody confirm that urlview 0.9 crashes with a segmentation fault
> on Linux/x86_64? If I find out that it's not just my system, I might
> take a look at the code.
>
> TIA
>

It was last year when I built it but I do remember the crash on x86_64.
The debian patches fixed it for me.

--
Steve Jones
sj...@slohj.org

Dario Niedermann

unread,
May 16, 2011, 6:50:04 AM5/16/11
to
I wrote:

> Can anybody confirm that urlview 0.9 crashes with a segmentation fault
> on Linux/x86_64? If I find out that it's not just my system, I might
> take a look at the code.

While looking for a patch, I found the following:

http://bugs.gentoo.org/show_bug.cgi?id=70254#c1

which fixed the problem. I'm attaching the patch for archival.

Thanks to all respondents.


=====BEGIN DIFF=====
--- urlview.c.orig 2005-02-06 17:10:54.000000000 +0100
+++ urlview.c 2005-02-06 17:57:06.998290062 +0100
@@ -40,6 +40,8 @@
#include <fcntl.h>
#include <sys/stat.h>

+#include "quote.h"
+
#ifdef HAVE_REGEX_H
#include <regex.h>
#else

=====END DIFF=====

RS Wood

unread,
May 19, 2011, 5:39:01 PM5/19/11
to
On 2011-05-13 14:06:30 +0000, Dario Niedermann said:

> Can anybody confirm that urlview 0.9 crashes with a segmentation fault
> on Linux/x86_64? If I find out that it's not just my system, I might
> take a look at the code.
>
> TIA

Seems to work fine for me: openSUSE 10.3, x86_64.


--
www.therandymon.com

0 new messages