LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-08-2016, 12:02 AM   #1
alinghi
LQ Newbie
 
Registered: Jul 2014
Posts: 10

Rep: Reputation: Disabled
Question help fix "Segmentation Fault" vnstat on wheezy


Hello there,

i have a debian wheezy small box (Linux box 3.2.0-4-amd64 #1 SMP Debian 3.2.73-2+deb7u3 x86_64)

I'm newbie with linux, all i have done on this box was after a lot of hours reading, and fucking with vm's for months

So, its a small box, that i just run an ftp server and log bw usage with vnstat.

Everything been running smooth for an year and half until last weekend. I have a serious power outage, and psu died. Put a brand new on it, restarted and everything went fine, updated/upgraded, ftp was up and running, but ive noticed a problem with vnstat.

user@box:~$ vnstat
Database updated: Mon Mar 7 21:45:20 2016

Segmentation fault
user@box:~$


Ive did a lot of research on google, been on #debian official mirc channel ofr the last two days, but still can't figure it out.

After a lot of questions there, lemme explain what i did.

I've been running memtestx86 v4.20 for 10 hours on each memory slot, alone, not both slots ocuupied, and get no errors.

So, they told me to try an command called gdb. after a lot of time trying to run it properly, i managed to get the uotput they were requesting me about the vnstat alone.

here is the result with a backtrace included.

http://pastebin.com/XK6Q6Rgu

So, according to that log, seems it's an issue with "libc.so.6" or something like, i really don't understead.

I really need keep those logs from vnstat, if fix its a long way, its ok. Maybe we could just "uninstall" it and reinstall, than export logs back ?

If this is the best option, can anyone guide me how ? i have an second HD on that box (sdb) so i could backup vnstat data to there, do the process and later recover the logs.

Any help will be really apreciated.

Also, if i have to post any more info about the box or output from any command to help get more info to fix it, plz let me know.

thank you
 
Old 03-08-2016, 08:10 PM   #2
CTM
Member
 
Registered: Apr 2004
Distribution: Slackware
Posts: 308

Rep: Reputation: 287Reputation: 287Reputation: 287
Your vnstat databases ought to be in /var/lib/vnstat/ (they're just files, named after your interfaces). Try copying them to another machine and see if they can be read with vnstat there - if so, this is a problem with this machine, otherwise it's a problem with the databases themselves (which might have been corrupted when the machine lost power) and they'll need to be restored from backups.
 
Old 03-09-2016, 03:56 AM   #3
alinghi
LQ Newbie
 
Registered: Jul 2014
Posts: 10

Original Poster
Rep: Reputation: Disabled
CTM, first of all thank you for the answer.

Ok, i'll setup an debian vm on my windows desktop and try what you said, i'll be back with results.

thank you again
 
Old 03-09-2016, 05:08 AM   #4
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Do you have a clean wheezy sources.list?
Replacing libc.so.6 with a foreign or "updated" one can cause many problems, including segfaulting apps that call it expecting the "proper" version.

There are many clueless 'guides' about that suggest doing this, to get some package installed on (old/outdated/stable) Debian.
 
Old 03-14-2016, 02:15 AM   #5
alinghi
LQ Newbie
 
Registered: Jul 2014
Posts: 10

Original Poster
Rep: Reputation: Disabled
Hi again CTM and descendant_command,

sorry for the long time to answer, i had a very busy week.

well, in the end i tryied the copy the vnstat db to a vm to test it, and it was really corrupted, i couldn't recover any data, cause i didn't had an backup.

Anyway, ive properly uninstalled it and reinstalled, and its working fine again.


thank you both for the help
 
  


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
[Solved] vnstat -d,-w,-m all return "no data available" but vnstat works. mzsade Debian 5 01-13-2016 04:56 PM
[SOLVED] +++ Segmentation fault ! hooxs Programming 23 11-09-2012 02:34 PM
im getting segmentation fault how to fix it shamjs Linux - General 2 09-14-2011 07:49 AM
yast segmentation fault, system freezing - nvidia driver at fault? BaltikaTroika SUSE / openSUSE 2 12-02-2005 09:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:04 AM.

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