Subject: Re: Strange segmentation fault trying to run postgresql on
To: =?ISO-8859-1?Q?R=E9mi_Zara?= <email@example.com>
From: Alex Pelts <firstname.lastname@example.org>
Date: 04/26/2007 14:12:00
It is not the mapping that is the problem but alignment. It is trying to=20
store word (32 bits) at the address that is aligned on 1 byte (cf).
I don't know much about how netbsd translates mips exceptions to signals=20
but I think from your register dump the problem is alignment.
R=E9mi Zara wrote:
> Still trying to figure why postgresql is crashing. (I've not yet tried=20
> pkgsrc or another version than "current" postgresql).
> I've rebuilt with CFLAGS=3D-O0, and it still crash early in main, but n=
> exactly at the same place (a little earlier).
> Here are some relevant info:
> Program received signal SIGSEGV, Segmentation fault.
> 0x006bb26c in main (argc=3D1, argv=3D0x7fffdccc) at main.c:61
> here is the instruction:
> 0x006bb26c <main+92>: sw v1,0(v0)
> (gdb) info registers
> zero at v0 v1 a0 a1 =20
> a2 a3
> R0 00000000 00000000 00af83cf 00b3f030 00b3f039 7fffddf5 00000000=20
> t0 t1 t2 t3 t4 t5 =20
> t6 t7
> R8 7fffddf4 00000000 00000008 00000000 8000001f ffffffe0 7fffdd30=20
> s0 s1 s2 s3 s4 s5 =20
> s6 s7
> R16 7fffdd78 7fffdcc8 00000001 7fffdccc 00af8358 7fffeff0 7dfb2f90=20
> t8 t9 k0 k1 gp sp =20
> s8 ra
> R24 0000083d 7d9d4528 00000000 00000000 00afb160 7fffdc68 7fffdc68=20
> sr lo hi bad cause pc
> 0000ff13 0009f79c 000000b4 006bb268 00000024 006bb26c
> fsr fir
> 007e92c0 00000000
> So if I understand correctly, it tries to store 00b3f030 at address=20
> So SIGSEGV would me that that address is not mapped or accessible ? but
> pmap gives:
> 00af8000-00af8fff 4k 00000000 rw-p- (rwx) 1/0/0 00:00 0 - =
> [ anon ]
> So this address seems to be mapped and writable ?
> What am I missing.
> What should I try to debug this ?
> R=E9mi Zara