Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Fortune segfaults (and random chars)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
pianosaurus
l33t
l33t


Joined: 19 Apr 2004
Posts: 944
Location: Bash$

PostPosted: Fri Aug 11, 2006 4:12 am    Post subject: [SOLVED] Fortune segfaults (and random chars) Reply with quote

My fortune segfaults a lot. It seems to be at the same messages, and the same spots in them. This isn't really a problem, I don't use fortune all that much. But it does lead to some strange results.

The simplest example:
Code:
oc@fantabus ~ $ fortune
Segmentation fault
I'm sure this is actually in some fortune file out there, but not in any of mine.

Another one:
Code:
oc@fantabus ~ $ fortune
There are three ways to get something done:
   (1) Do it yourself.
Segmentation fault
This one confirms the old saying; "If you want something done, do it yourself."

Also, the first characters of the last line are sometimes replaced by seemingly random characters, like so:
Code:
[snip]
Man got to tell himself he understand.
h      -- The Books of Bokonon
The "h" isn't supposed to be there, and there is a space missing. Sometimes there are more than one character like this.

Has anyone else seen this? I run utf8 and nls wherever possible, don't know if that has anything to do with it.
_________________
PKA Cuber
Please add [SOLVED] to the subject of your original post when you feel that your problem is resolved.
Adopt an unanswered post


Last edited by pianosaurus on Tue Aug 15, 2006 1:01 pm; edited 1 time in total
Back to top
View user's profile Send private message
Strowi
l33t
l33t


Joined: 19 Aug 2003
Posts: 656
Location: Bonn

PostPosted: Fri Aug 11, 2006 9:32 am    Post subject: Reply with quote

hi,

that looks pretty weird, but without more info noone can help you... post your output of "emerge info".

Have you tried re-emerging fortune? Do other apps segfault? Maybe reduce your CFLAGS. Perhaps it's a problem with the locales?
_________________
--
Linux & such ...
http://blog.hasnoname.de
Back to top
View user's profile Send private message
pianosaurus
l33t
l33t


Joined: 19 Apr 2004
Posts: 944
Location: Bash$

PostPosted: Fri Aug 11, 2006 8:30 pm    Post subject: Reply with quote

Thanks Strowi, but as I said, it's not really a big deal. No other segfaults, and I'm assuming it has something to do with NLS.

If anyone else gets the problem, they'll hopefully find this and we can put our minds together. Oh, and I'm running AMD64, by the way. So long.
_________________
PKA Cuber
Please add [SOLVED] to the subject of your original post when you feel that your problem is resolved.
Adopt an unanswered post
Back to top
View user's profile Send private message
Dralnu
Veteran
Veteran


Joined: 24 May 2006
Posts: 1919

PostPosted: Sat Aug 12, 2006 3:51 am    Post subject: Reply with quote

I get the random char problem quite often. I'm on x86 (i686 to be exact), with fairly standard CFLAGS.
_________________
The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
Back to top
View user's profile Send private message
pianosaurus
l33t
l33t


Joined: 19 Apr 2004
Posts: 944
Location: Bash$

PostPosted: Sat Aug 12, 2006 3:59 pm    Post subject: Reply with quote

Dralnu wrote:
I get the random char problem quite often. I'm on x86 (i686 to be exact), with fairly standard CFLAGS.


Ok, guess this is a bug somewhere then. I'll post a bug (severity trivial) about it. (Edit: Done)
_________________
PKA Cuber
Please add [SOLVED] to the subject of your original post when you feel that your problem is resolved.
Adopt an unanswered post
Back to top
View user's profile Send private message
pianosaurus
l33t
l33t


Joined: 19 Apr 2004
Posts: 944
Location: Bash$

PostPosted: Tue Aug 15, 2006 1:01 pm    Post subject: Reply with quote

Upgrading to app-text/recode-3.6-r2 (~amd64) and games-misc/fortune-mod-1.99.1-r2 fixed both the random chars and the segfaults.
_________________
PKA Cuber
Please add [SOLVED] to the subject of your original post when you feel that your problem is resolved.
Adopt an unanswered post
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum