gdamm1.3.4: segfault on data_model->get_n_rows();
- From: Daniel Holbach <dh mailempfang de>
- To: gnomemm-list gnome org
- Subject: gdamm1.3.4: segfault on data_model->get_n_rows();
- Date: Wed, 17 Nov 2004 12:02:26 +0100
Hello everyone,
I hope I got the right list.
I'm using gdamm1.3.4 with gda1.1.99 and followed basically the examples
in the tarball. I use a PostgreSQL server (on another box) and use a
simple query, which works perfectly well in pgaccess .
This ( int rows = data_model->get_n_rows(); ) crashes my project. For a
full context see
http://cvs.berlios.de/cgi-bin/viewcvs.cgi/protosquared/protosquared/src/DBUtils.cc?rev=1.3&content-type=text/vnd.viewcvs-markup
Here the last lines of an ordinary strace -run. Hope someone can help.
fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x407cc000
write(1, "SELECT id, name, lent_to FROM bo"..., 52SELECT id, name,
lent_to FROM books WHERE lent_to=1
) = 52
rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_DFL}, 8) = 0
send(5, "Q\0\0\0008SELECT id, name, lent_to FR"..., 57, 0) = 57
rt_sigaction(SIGPIPE, {SIG_DFL}, {SIG_IGN}, 8) = 0
poll([{fd=5, events=POLLIN|POLLERR, revents=POLLIN}], 1, -1) = 1
recv(5, "T\0\0\0L\0\3id\0\0\0b\370\0\1\0\0\0\27\0\4\377\377\377"...,
16384, 0) = 200
rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_DFL}, 8) = 0
send(5, "Q\0\0\1RSELECT c.relname FROM pg_ca"..., 339, 0) = 339
rt_sigaction(SIGPIPE, {SIG_DFL}, {SIG_IGN}, 8) = 0
poll([{fd=5, events=POLLIN|POLLERR, revents=POLLIN}], 1, -1) = 1
recv(5, "T\0\0\0 \0\1relname\0\0\0\4\353\0\1\0\0\0\23\0 \377\377"...,
16384, 0) = 67
rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_DFL}, 8) = 0
send(5, "Q\0\0\0\357SELECT 1 FROM pg_catalog.pg"..., 240, 0) = 240
rt_sigaction(SIGPIPE, {SIG_DFL}, {SIG_IGN}, 8) = 0
poll([{fd=5, events=POLLIN|POLLERR, revents=POLLIN}], 1, -1) = 1
recv(5, "T\0\0\0!\0\1?column?\0\0\0\0\0\0\0\0\0\0\27\0\4\377\377"...,
16384, 0) = 64
rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_DFL}, 8) = 0
send(5, "Q\0\0\0\357SELECT 1 FROM pg_catalog.pg"..., 240, 0) = 240
rt_sigaction(SIGPIPE, {SIG_DFL}, {SIG_IGN}, 8) = 0
poll([{fd=5, events=POLLIN|POLLERR, revents=POLLIN}], 1, -1) = 1
recv(5, "T\0\0\0!\0\1?column?\0\0\0\0\0\0\0\0\0\0\27\0\4\377\377"...,
16384, 0) = 52
rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_DFL}, 8) = 0
send(5, "Q\0\0\0\361SELECT 1 FROM pg_catalog.pg"..., 242, 0) = 242
rt_sigaction(SIGPIPE, {SIG_DFL}, {SIG_IGN}, 8) = 0
poll([{fd=5, events=POLLIN|POLLERR, revents=POLLIN}], 1, -1) = 1
recv(5, "T\0\0\0!\0\1?column?\0\0\0\0\0\0\0\0\0\0\27\0\4\377\377"...,
16384, 0) = 52
rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_DFL}, 8) = 0
send(5, "Q\0\0\0\361SELECT 1 FROM pg_catalog.pg"..., 242, 0) = 242
rt_sigaction(SIGPIPE, {SIG_DFL}, {SIG_IGN}, 8) = 0
poll([{fd=5, events=POLLIN|POLLERR, revents=POLLIN}], 1, -1) = 1
recv(5, "T\0\0\0!\0\1?column?\0\0\0\0\0\0\0\0\0\0\27\0\4\377\377"...,
16384, 0) = 52
rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_DFL}, 8) = 0
send(5, "Q\0\0\0\364SELECT 1 FROM pg_catalog.pg"..., 245, 0) = 245
rt_sigaction(SIGPIPE, {SIG_DFL}, {SIG_IGN}, 8) = 0
poll([{fd=5, events=POLLIN|POLLERR, revents=POLLIN}], 1, -1) = 1
recv(5, "T\0\0\0!\0\1?column?\0\0\0\0\0\0\0\0\0\0\27\0\4\377\377"...,
16384, 0) = 52
rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_DFL}, 8) = 0
send(5, "Q\0\0\0\364SELECT 1 FROM pg_catalog.pg"..., 245, 0) = 245
rt_sigaction(SIGPIPE, {SIG_DFL}, {SIG_IGN}, 8) = 0
poll([{fd=5, events=POLLIN|POLLERR, revents=POLLIN}], 1, -1) = 1
recv(5, "T\0\0\0!\0\1?column?\0\0\0\0\0\0\0\0\0\0\27\0\4\377\377"...,
16384, 0) = 52
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Have a good time,
Daniel
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]