Segmentation Fault
HI
I am facing Segmentation Fault while installing google chrome pl some help me out |
Need:
- your operating system - which Linux, what version, etc. - how did you install G. Chrome on the system? Downloaded from your distribution's repos? Or other method? - start your Google Chrome from a Terminal and COPY/PASTE the output errors here for us. These items would be helpful to us while trying to troubleshoot your issue. Standing by... |
Quote:
Mike. ;) |
Quote:
Either you're installing it via an installer and NOT from software packages, and therefore it's installer program is segfaulting, or you already have installed it and Google Chrome itself is segfaulting. Either way, it would indicate a problem in the code of either it's installer program (if you were NOT installing it from software packages), or and probably more likely, the code of Google Chrome itself. Either way, unless you know about programming, then it's unlikely there's anything you can do. And it's equally unlikely that anybody here is going to be able to find out exactly where the problem is in the relevant code, and then create a patch for you. You should also lookup what a "Segmentation Fault" is, as you'll find it means that a program has attempted to access a part of memory that's not a part of that program's own address space. In other words, memory assigned to another program, and NOT to Google Chrome or it's installer program in this case. The code below is guaranteed to segfault, as the for loop's termination criteria says, "if i is more than or equal to zero, keep running the loop". But the array it's looping through is only 5 elements in size, so once it gets far enough past that, the program below WILL violate it's address space, and therefore cause a segfault. Of course, as useless as this program would be by itself, and with only the code below, the fix is easy. Just change the loop's condition so it only executes as long as "i" is no more than "5". Code:
#include <stdio.h> Code:
... |
Quote:
I'd say a slight addition to the queries in Post #2 would be to, "COPY/PASTE all output errors here for us", regardless of whatever actions you've taken. Based on your problem description, with no updates as yet, you've encountered this while installing google chrome. It would be helpful for you to confirm what you were doing, explain the method you were using to perform it, and for you to show the output you're seeing. Not just the final error report, but the details leading up to it will be helpful. |
@prakashkjaya
Copied code from jsbjsb001 and compiled the same at Linux system here: Quote:
array[0] => first element array[1] => second element array[2] => third element array[3] => fourth element array[4] => fifth and last element Using for loop you have written: for( int i = 0; i >= 0; ++i) This loop being executed from 0 till maximum number of integer. Quote:
When that memory being accessed used by some other program, current program receive the signal segmentation fault (SIGSEGV) Quote:
Replace: Quote:
Quote:
sizeof(int) => 4 bytes (at Linux, HP-UX, SunOS, AIX. In turboc DOS sizeof int being 2 bytes) Number of elements => 20/4 => 5 (0 to 4) Quote:
Hence if you are obtaining core file execute file command: Quote:
|
@murugesan,
You are presuming that the OP received a core file. Perhaps they did, but they've only ever made their one post. I'm not sure you receive a core file unless you have your system or terminal set to allow this, such as using "ulimit -c unlimited" It's also quite possible they've solved this, or moved on to another browser and therefore have decided that their question is no longer of any purpose for them. If they choose to update, we'll find out more. |
All times are GMT -5. The time now is 03:05 AM. |