CentOS 5 :: Sometimes Programme Gives Segmentation Fault
Aug 20, 2011I am new at Centos. Sometimes my programme gives segmentation fault. This line is from it:./hlds_run: line 321: 5680 Segmentation fault $HL_CM
View 1 RepliesI am new at Centos. Sometimes my programme gives segmentation fault. This line is from it:./hlds_run: line 321: 5680 Segmentation fault $HL_CM
View 1 RepliesI did a Yum update last Friday. It was done before 5.6 was released so I still have 5.5 + various updates. Yum is now giving me a segmentation fault when I try to run it. I believe it has to do with an improperly synchronized version of sqlite which was updated and then Yum stopped working. I'm guessing that installing the latest Yum RPM will fix the dependency issues. Will this throw me out of sync with for instance updating to 5.6?
View 5 Replies View RelatedI have a centos server running nagios for monitoring. I restarted the machine, it is actually a console server anyway. After getting to the login screen, I typed in my user name but it never propt for my password. I can't even ssh into the system. So I tried to use the installation cd and enter into rescue mode where I typed chroot and was able to enter into the root environment. I was able to configure a network interface in the rescue mode and can ping the machine at this point, though can ssh still. In the root environment, I tried running couple commands. like try to restart the sshd. When I typed /etc/init.d/sshd restart, I got an error saying:
766 segmentation fault.
when I vi any thing I get error:
segmentation fault.
how can I solve this problem? What is causes this. Even in the event of restarting the machine, I see so many fails with segmentation fault.
When I start the SARG, its blow up with segmentation fault. Linux intra.local 2.6.18-53.1.13.el5 #1 SMP Tue Feb 12 13:02:30 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
I already tried to empty all squid cache log and recompile (yum remove and yum install again) the sarg rpm w/o sucess.
I have a problem while trying to get rpm fixed I removed it then it removed yum also. I was able to get rpm installed and tried to install yum there was a bunch of depency files i had to install. After that then every command results in Segmentation fault some commands work like pwd does but not ls, rpm, vi and most other ones ive tried. server is still up and running.
View 3 Replies View RelatedInkscape installed by yum. Next is The Xine player. I tried to install it by yum, but it reported depsolving problems with libavcodec52 and libtheora_enc and refused.
View 6 Replies View RelatedI have built a CentOS 5.6 kernel with the Preemption Model changed from Voluntary to Preemptible Kernel. Everything works fine except for gdb. When attempting to debug a binary using start or run there is a segmentation fault. If I attach to a running process everything works fine. I expect that I need to make an additional change to the kernel config file, but don't know what it might be. I'm using menuconfig to make the changes: Processor type and features --->Preemption Model ---> [x] Preemptible Kernel (Low-Latency Desktop).
gdb /bin/true
(gdb) run
Starting program: /bin/true
During startup program terminated with signal SIGSEGV, Segmentation Fault.
My centos linux mailserver has crushed and does not allow any login form any user including root. I have managed to start it in single user mode but using vi editor, df command gives segmentation fault. I suspect the /var/* is full but I can neither remove any file/folder/mail/logs nor copy these to make a backup.Attempt to do this as single user/root is met with readonly files yet I have given full permissions to the files and the folders.
View 5 Replies View RelatedI'm struggling to get up an wireless card (EDIMAX PCI adapter based on Ralink RT2561/RT61 802.11g chipset). So far, so good, I manage to install ralink drivers:
# lsmod | grep rt61
rt61 220296 0
# iwconfig
lo no wireless extensions.
wlan0 RT61 Wireless ESSID:"DiamondAccess" Nickname:"localhost.localdomain"
Mode:Managed Frequency:2.412 GHz Bit Rate=54 Mb/s
[Code]...
I'm running CentOS 5.4.In the last three days I've started to get various cron errors:
/bin/sh: line 1: 7066 Segmentation fault /usr/local/scripts/cron.email.sshd.access/cron.email.sshd.access.pl
/bin/sh: line 1: 4822 Floating point exceptionsudo -u mobile getmail --quiet
Can't load '/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/auto/RRDs/RRDs.so'
[code]...
Then yesterday I rebooted, and all the other errors seemed to have disappeared for now, but, I am now getting:
/bin/sh: line 1: 23600 Segmentation fault sudo -u mobile getmail --quiet
I have setup cron to call getmail once every 3 minutes, and I get this error about 4-6 times an hour.
On two Centos5 servers, yum gives a segmentation fault error when trying 'yum update' or 'yum check-update' after running 'yum clean' :
[Code]....
The error is the same for the other computer except while attempting to update the rpmforge repository. Nothing has really changed on the servers in some time and 'yum update' worked fine on each yesterday and I have no idea why they would both suddenly fail!
I using a linux kernel v2.6.26.something. Distribution: OpenSuse 10.3. While writing a c program on linux in KATE, i used character pointers to declare a string like, for ex: " char *temp " but compilation with gcc gives me the error," Segmentation Fault " what is segmentation Fault Why does it occur or what are the reasons behind it?
View 14 Replies View RelatedVLC was behaving weirdly recently and when I've tried to run it with primusrun command (since I have optimus card) it gave me a segmentation fault
Code: Select allVLC media player 2.2.1 Terry Pratchett (Weatherwax) (revision 2.2.1-0-ga425c42)
Segmentation fault
I've read on google that issue has been solved by a few people from updating the microcode, but I don't even understand what microcode is, I'm also not sure whether I should install amd64 or intel package for it?
Here is my lscpu
Code: Select all$ lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
[Code] ....
my KDE is making segmentation fault. KDE is not required to restart but this segmentation fault is making every time (after 2 min) when i login to kde/fedora. this is making me annoying.. my linux info is following:
uname -r # 2.6.31.9-174.fc12.x86_64
KDE: 4.3.4 (KDE 4.3.4)
problem:
[code]....
I updated kernel to 2.6.31.12-0.1-desktop yesterday and now i have problem with shutdown.
Everything goes as usual and system shutting down, but after all monitor keeps to work, and computer also doesn't halt.The last two lines i see on screen are:The system will be halted immediately Segmentation Fault Also i hear that some cooler or may be hard disk stops after this. But monitor and the rest of computer are still working With previous kernel i had no this problem.Reboot command works normal
Some time ago I had to reinstall all my packages under 64-bit OpenSuse 11.2. After that I can't get Skype working - Skype always gives me "segmentation fault" when trying to execute it (from command-line).
I've followed steps recommended in wiki, I've tried different versions (32-bit as well as 64-bit RPMs) downloaded from different repositories (including old 1.4.0.xx). Nothing changes anything.
I don't have any webcam and I've never had one, so I guess it cannot be related to that.
I just have installed Karmic Koala and have a problem running Firefox. I`ve seen that this is quite a common problem, but since I`m a newbie, I have no idea what to do. I have not found any solutions that would solve my problem yet. Every time I try to load a website including flash advertisings, Firefox just quits.
All the time I get this output.
Code:
I was in the process of installing something via apt-get. The laptop crashed halfway through, and now I cannot install anything new, do any updates/upgrades. I also cannot open Synaptic.When running apt-get in the terminal I get the following error:
Segmentation fault
I've been looking for an answer for this around all forums, but nothing works.So far, I've tried:
Editing "/etc/apt/apt.conf.d/70debconf" and adding
Code:
APT::Cache-Limit "33554432";
[code]....
I just made a pretty simple program in geany (GCC with default options)and I ended up with Segmentation fault. program is pretty simple and it performs binary search on an array.I know what segfault is but here I m clue less about why it is happening.and one thing more, the program runs fine in turbo C++ compiler.Same thing happened earlier too when I was making a program which included some simple string manipulation
View 1 Replies View RelatedI am programming an application with an ARM device with an embedded version of Linux. My application talks to a java application via socket. If there is any connection problems, it attempts the connection again. My problem is that after exactly 146 times, there is a Segmentation Fault. Apparently this happens in opening the socket, which is not successful after this amount of attempts.
Following, some code that I'm using:
The function for openning the socket and perform a connection:
Code:
What different between Segmentation fault and aborted
When I read about dbg I make different reason from the tutorial ....with the same code
Example in tutorial the gdb Display a message like this
Code:
And in my computer I have
Code:
I want to know what the different between them
I have a problem with a directory which contains my music collection. It can't be opened; all other directories work fine. I can cd into my ~/Music directory, but ls gives segfault and KDE programs hang when trying to open this directory. The problem probably has appeared after the rename of subdirectory under the Windows (don't remember particular ext3 driver; can check tomorrow).fsck says that the partition is fine. The whole disk is mounted on the single partition. Windows is located on another physical disk.Is there any way to recover my directory?
View 4 Replies View RelatedI wrote a small c-code, which is based on a pseudorandom-alogrithm from the internet[URL]If i compile the code with "gcc test.c -o test -O2" the output is: "4194449".That's ok.I can compile the code without optimizations and the outut is the same.But if i compile the code with "gcc test.c -o test -O3" it creates a segmentation fault. But why? why this happens?Here the code:
Code:
#include <stdio.h>
// Code based on http://www.dreamincode.net/code/snippet342.htm
[code]....
simple program to create a segmentation fault:my problem is if i include the same code char *s="hello world"; *s='H'; in my project, it is not giving any seg fault, instead it runs without any problem. what may be the issue.
View 13 Replies View RelatedI would just like to ask why my red hat cannot log a segmentation fault in any of the log files located in / var/ log. I purposely tried executing a C++ program that segfaults but nothing was logged.
View 3 Replies View RelatedWhen I compile my C program on SUSE, I receive a segmentation fault error. To my knowledge, this occurs when a program tries to recall memory but is not allowed to. So I'm using GDB for the first time to solve this problem. After a series of commands, I reach this point:
Code:
#0 0x00002b13e1bab127 in getdelim () from /lib64/libc.so.6
#1 0x000000000040167b in main () at dmsp_cusp.c:158
Here's the offending code in dmsp_cusp.c:
Code:
157 printf("enter the input file name:");
158 getline(in_fname);
159 fp3 = fopen(in_fname, "r");
160 if(fp3 == NULL) {
161 printf("can't open input file %s",in_fname);
162 exit(1); }
Why is this giving me a segmentation fault ?
Code:
#include<stdio.h>
#include<string.h>
#include<malloc.h>
int main ()
[code]....
i wrote a program to fill an array with 100 random numbers ranging from 1 - 200. i compiled the program using gcc. the program successfully compiled but when i try to run it i get a segmentation fault. here is the code. i put *** on the line that gdb indicated was the problem.
#include <stdio.h>
#include<stdlib.h>
#include<time.h>
[code]....
I have program like this:
Code:
with 'gcc -g' it runs well, but with 'gcc -g -O3' (with -O2 too) it crash.
output is something like this:
Code:
and gdb says
Code:
Why it try to compare something at address 0x209 when this address is not in the vector?