differences between the bootsector and its backup
Lỗi này do xài chung Windows với Linux.
Giải quyết
Chú ý umount ổ đĩa cần fsck trước
sudo dosfsck -ar /dev/hdx,y
sudo fsck -V -r /dev/hdx,y
- Copy original to backup
- Copy backup to original
- No action
Làm theo bài post đó mình chọn 2 rồi ngồi cầu trời xem chuyện gì xảy ra.
13-1-2008
Segmentation fault [core dumped]
[gecko:16688]: Pango-WARNING **: failed to create cairo scaled font, expect ugly output. the offending font is ‘Arial 12’ Lỗi này xảy ra khi sử dụng User Non Admin [tức là user thường để sử dụng Firefox]. Lỗi này xảy ra do vào cái website cần font Tahoma. Cách giải quyết là copy font tahoma vào thư mục fonts:///
Lỗi này cũng có thể do 1 file font nào đó được cài vào nhưng user thường không có quyền để chạy nó.
Còn cách nữa là sử dụng lệnh
export MOZ_DISABLE_PANGO=1
Vì những lỗi như vầy mình khuyên các bạn đừng cài mscorefonts vào làm gì cho nặng máy.
A segmentation fault [aka segfault] is a common condition that causes programs to crash; they are often associated with a file named core
. Segfaults are caused by a program trying to read or write an illegal memory location.
Program memory is divided into different segments: a text segment for program instructions, a data segment for variables and arrays defined at compile time, a stack segment for temporary [or automatic] variables defined in subroutines and functions, and a heap segment for variables allocated during runtime by functions, such as malloc
[in C] and allocate
[in Fortran].
A segfault occurs when a reference to a variable falls outside the segment where that variable resides, or when a write is attempted to a location that is in a read-only segment. In practice, segfaults are almost always due to trying to read or write a non-existent array element, not properly defining a pointer before using it, or [in C programs] accidentally using a variable's value as an address [].
Examples of common segfaults
- For example, calling
memset[]
as shown below would cause a program to segfault:memset[[char *]0x0, 1, 100];
- The following three cases illustrate the most common types of array-related segfaults:
- Case A:
/ "Array out of bounds" error valid indices for array foo are 0, 1, ... 999 / int foo[1000]; for [int i = 0; i
- Case A:
/ "Array out of bounds" error valid indices for array foo are 0, 1, ... 999 / int foo[1000]; for [int i = 0; i