From: | Bradley Baetz <bbaetz(at)acm(dot)org> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | CVS psql segfault |
Date: | 2003-05-03 06:47:25 |
Message-ID: | 20030503064725.GA4822@mango.home |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
I'm getting a crash if I run 'psql' with no arguments:
Program received signal SIGSEGV, Segmentation fault.
0x4207a991 in strncpy () from /lib/tls/libc.so.6
(gdb) bt
#0 0x4207a991 in strncpy () from /lib/tls/libc.so.6
#1 0x08050f54 in get_prompt (status=PROMPT_READY) at prompt.c:111
#2 0x0804ec68 in MainLoop (source=0x4212fcc0) at mainloop.c:178
#3 0x0805061a in main (argc=1, argv=0xbffff7a4) at startup.c:301
#4 0x420156a4 in __libc_start_main () from /lib/tls/libc.so.6
(gdb) up
#1 0x08050f54 in get_prompt (status=PROMPT_READY) at prompt.c:111
111 strncpy(buf,
PQdb(pset.db), MAX_PROMPT_SIZE);
(gdb) print PQdb(pset.db)
$1 = 0x0
If I give a database name on the command line, then it works fine; its
just the default which fails.
Bradley
From | Date | Subject | |
---|---|---|---|
Next Message | Hiroshi Inoue | 2003-05-03 14:17:18 | Re: Should we SetQuerySnapshot() between actions of a rule? |
Previous Message | Jenny - | 2003-05-02 21:48:35 | forking a server process in backend/main/main.c |