LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-17-2008, 03:55 PM   #1
Vassos
Member
 
Registered: Jul 2007
Posts: 52

Rep: Reputation: 15
Segfault on several software


I have a question
i had a problem as soon as i installed my Debian lenny but its expanding

When i try to open epiphany or iceweasel i get this kind of error
Code:
Sep 17 22:46:06 noname kernel: [ 4008.290751] epiphany-gecko[3657]: segfault at d693f9ec ip b7fe1f6b sp bfcecd94 error 7 in ld-2.7.so[b7fd7000+1a000]
and they never open.

This only happend with this two programs but now , i also have it on programs that used to work like Tilda

Code:
Sep 17 22:03:58 noname kernel: [ 1239.337762] tilda[3331]: segfault at 0 ip 0805012b sp bfc0e3f0 error 4 in tilda[8048000+13000]
I have a guess that its a hard disk error but i am not shure if anyone knows please enlighten me.
 
Old 09-17-2008, 04:34 PM   #2
AuroraCA
Member
 
Registered: Jul 2008
Location: Northern CA USA
Distribution: Ubuntu, Slackware, Gentoo, Fedora, Red Hat, Puppy Linux
Posts: 370

Rep: Reputation: 35
Seg faults or segmentation faults are RAM memory errors.

http://web.mit.edu/10.001/Web/Tips/t...mentation.html

http://en.wikipedia.org/wiki/Segmentation_fault
 
Old 09-19-2008, 04:36 PM   #3
Vassos
Member
 
Registered: Jul 2007
Posts: 52

Original Poster
Rep: Reputation: 15
So according to the links , there is an inside problem on the C++ code of he software i listed.
Isn it weird that one of them used to work but now it doesnt?? And i certainly didnt messed up with their core files.

And what about solutions anything suggested??
 
Old 09-19-2008, 05:08 PM   #4
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 404Reputation: 404Reputation: 404Reputation: 404Reputation: 404
Segmentation faults can be caused by faulty ram, however that's not the only possible cause.

Technically, a segfault happens when a program tries to use ram which is out if his scope, or when it tries to use it in a way that's not supposed to. For example: trying to write on a read-only segment or something like that. So, any program that can do a buffer overflow is capable of segfaulting as well. Modern compiler, however, limit the amount of possible causes, because with each version they become better at predicting run-time errors (there are some cases where it's impossible to make a prediction, though).

working with pointers it's easy to create faulty code: referencing null or uninitialized pointers are possible causes, that includes lots of variants, like trying to operate on a file pointer without cheking if it's been successfully open or if it's value is correct and not garbage pointing elsewhere. But I am sure you don't really care about this.

Faulty ram can cause this because contents stored on (or retrieved from) a faulty memory cell can't be guaranteed to be trustable. If that cell held a pointer containing the offset for another variable, and it's a faulty cell, when you read it then odd things can happen, and the read value can point elsewhere, probably into an illegal region. That, of course, causes a segfault.

A borked compiled or toolchain can also produce that, as can crazy cflags and experimental packages. But if you don't compile your own binaries, then I suppose that's not your problem.

So, where to start? Pick a livecd that has memtest86+ as on its boot menu, and use it.
 
Old 09-20-2008, 07:59 AM   #5
Vassos
Member
 
Registered: Jul 2007
Posts: 52

Original Poster
Rep: Reputation: 15
Thanks for the reply!

i have downloaded memtest86 but how do i tell it to start on boot-up so i can see if there are any errors??


Also i get this erors while booting and i want to know if they are connected to the RAM problem


Sep 20 01:35:05 noname kernel: [ 0.292307] system 00:01: ioport range 0x4d0-0x4d1 has been reserved
Sep 20 01:35:05 noname kernel: [ 0.292312] system 00:01: ioport range 0x290-0x29f has been reserved
Sep 20 01:35:05 noname kernel: [ 0.292316] system 00:01: ioport range 0x800-0x87f has been reserved
Sep 20 01:35:05 noname kernel: [ 0.292320] system 00:01: ioport range 0x290-0x294 has been reserved
Sep 20 01:35:05 noname kernel: [ 0.292324] system 00:01: ioport range 0x880-0x88f has been reserved
Sep 20 01:35:05 noname kernel: [ 0.292341] system 00:0a: ioport range 0x400-0x4bf could not be reserved
Sep 20 01:35:05 noname kernel: [ 0.292351] system 00:0b: iomem range 0xf0000000-0xf3ffffff could not be reserved
Sep 20 01:35:05 noname kernel: [ 0.292361] system 00:0c: iomem range 0xf0000-0xf3fff could not be reserved
Sep 20 01:35:05 noname kernel: [ 0.292365] system 00:0c: iomem range 0xf4000-0xf7fff could not be reserved
Sep 20 01:35:05 noname kernel: [ 0.292370] system 00:0c: iomem range 0xf8000-0xfbfff could not be reserved
Sep 20 01:35:05 noname kernel: [ 0.292374] system 00:0c: iomem range 0xfc000-0xfffff could not be reserved
.......
......and so on
 
Old 09-20-2008, 08:16 AM   #6
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 404Reputation: 404Reputation: 404Reputation: 404Reputation: 404
memtest86 and memtest86+ are different programs. memtest86+ comes as an option in the boot menu of many livecds (and install cds as well), that's what I advice you to use, because it works outside the OS.

Last edited by i92guboj; 09-20-2008 at 08:20 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Tracking down a segfault PatrickNew Programming 1 07-22-2007 09:47 PM
Gate 88 segfault t3gah Linux - Games 1 03-21-2005 05:07 AM
segfault prob in C zaichik Programming 5 01-25-2005 08:00 AM
segfault in mallopt() spuzzzzzzz Programming 6 07-08-2004 07:03 PM
Evolution SegFault granitepoint Linux - Software 0 01-12-2003 12:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration