Questions tagged [general-protection-fault]
16 questions
9
votes
3 answers
objc_setAssociatedObject function error in 64bit mode not in 32bit
I am using a neat table view controller called SKSTableView in my project which allows each table row to have a number of sub rows. This code works perfectly in 32bit mode but when I run it on my iPhone 5S or in the Simulator in 4-inch 64bit mode,…

tony.stack
- 780
- 8
- 21
8
votes
1 answer
Why is the segfault address NULL when accessing memory that has any of the 16 most significant bits set?
Consider the following assembly program:
bits 64
global _start
_start:
mov rax, 0x0000111111111111
add byte [rax*1+0x0], al
jmp _start
When you compile this with nasm and ld (on Ubuntu, kernel 5.4.0-48-generic, Ryzen 3900X), you get a…

cmpxchg8b
- 661
- 5
- 16
3
votes
0 answers
Ubuntu General Protection Faults - CPU Related?
Ubuntu running kernel 3.2.0-60.
Yesterday early in the morning, the load average of the machine started going on a constant uphill line. CPU usage very low with about 85% idle. Memory usage low as well with only about 2 MB of swap showed as…

Brian Spraker
- 55
- 1
- 8
2
votes
0 answers
JVM emits general protection fault whilst executing code in DozerBeanMapper
Bit of a curious one here, we're running Dozer (5.3.2) in one of our apps (in an IBM 64bit JVM). Last Friday one of our production boxes suddenly came to a halt as the JVM emitted a general protection fault. Unfortunately we don't have any useful…

Edd Grant
- 774
- 2
- 10
- 22
1
vote
0 answers
General protection fault after enabling interrupts. OSDEV
I am trying to develop my own operating system. I had written some code for 32 bit and came until paging when I suddendly decided I want to go 64 bit. I enabled long mode, set up basic paging, fire up the kernel, kernel sets better paging (first 4…

Özgür Güzeldereli
- 1,630
- 7
- 23
1
vote
0 answers
OS Dev: General Protection fault problem after setting up idt
I am trying to write a OS from scratch without any library and stuff. So I was setting up my IDT and stuff and i finally finished it. So when I tried it it just kept restarting. I only had written the int 0x0 so i wrote the first 16 to handle…

Programmer
- 23
- 1
- 5
1
vote
2 answers
general protection fault when running os on iso
I have the following bootloader code which seems to run perfectly fine on a hard disk:
[bits 16]
[org 0x7c00]
bootld_start:
KERNEL_OFFSET equ 0x2000
xor ax, ax ; Explicitly set ES = DS = 0
mov ds, ax
mov es, ax
mov bx,…
user5501885
1
vote
0 answers
Exception 13 general protection fault....error code=0240
exception 13: general protection fault at 08C7:210E error code 0240
ax=0B0A, bx=0B0A,cx=0BZA,dx=0F97,di=0000,si=001E
ds=05CF limit=FFFF segment# 004D C:\TURBOC3\BIN\TC.EXE
es=0F97 limit=1007 segment#
…

Tanmay Darmorha
- 11
- 1
- 3
1
vote
0 answers
dmesg shows segfault, general protection error, "blocked for more than 120 seconds", but program is still running
i'm running some code and whilst it hasn't at any point exited or given my a visible error message, it seems to be stalling for large periods of time, and then picks up again, and then stalls, so i ran dmesg and got the following:
mount: server…

LindleyLentati
- 161
- 3
- 12
0
votes
0 answers
Grey pixels in R Studio
this is a very uncommon question I guess, But eventually, there is a grey pixel in my r Studio script editor, that disappears when I click on it. What could that be?
I clicked on it, and it disappeared but it returned after a couple of minutes. When…

Niclas Kammler
- 11
- 2
0
votes
1 answer
How to get core dump from traps: program[pid] general protection event
I am trying to troubleshoot a locally compiled daemon program on Linux, the program crashes with signal 11, and I need to trace back the stack and values of variables to fix the bug.
However for some reason the Linux kernel does not save a core…

jb_dk
- 117
- 6
0
votes
0 answers
General protection error, when i convert QString to Char
I try to convert QString to const *char, it generate General Protection fault.
I could't understand about that.
dmesg
code that generate General Protection fault
When I checked with gdb, segment fault is generated in "vfprintf".
gdb result
What…

ming
- 1
0
votes
0 answers
how to handle general protection fault in linux kernel
I have a piece of kernel module as the following, which tries to read msr register, no doubt it would crash as the msr 0x2 is not exist, a geneal protection fault will happens.
My question is how could I bypass this fault, like define my GP handler?…

michael
- 33
- 2
- 8
0
votes
0 answers
Does a soft reset in x86 "32-bit" clear RAM after reset?
I am using an Intel Quark SoC and am trying to read some data from RAM after a triple fault occurs. I am saving some data before the reset occur and want to read it after my program restarts. Is this possible or the RAM is cleared?

Keith Ape
- 1,103
- 1
- 12
- 28
0
votes
0 answers
GP faults in x86 recovery
I would like to automate some test cases running on IA-32 x86 architecture based target, Some of these test cases generates a general protection Fault ( expected result as a part of the validation process). I would like to know if there is a way to…

Keith Ape
- 1,103
- 1
- 12
- 28