Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: edit history



On Sat June 19 2010 09:52:13 Christos Zoulas wrote:
> In article <20100619154303.GG2304%quitz.inf.phy.cam.ac.uk@localhost>,
> 
> Patrick Welche  <prlw1%cam.ac.uk@localhost> wrote:
> >I just compiled CVS-head postgresql (9.0beta2) with CVS-head NetBSD/i386.
> >I configured postgresql with --with-libedit-preferred (prefer BSD Libedit
> >over GNU Readline).
> >
> >.psql_history contains all the lines I typed into psql, but when I arrow
> >up, only the first character of the previous line appears.
> >
> >Do any of you see this? Thoughts on psql trouble vs libedit trouble?
> 
> Could be a bug in the wide char code.

Another data point:

By chance, I was just now looking at a problem where my mysql 51 client core-
dumps on exit but only if I have LC_CTYPE=en_US.UTF-8 in my environment.

The back trace is:

Core was generated by `mysql'.
Program terminated with signal 11, Segmentation fault.
#0  0x00007f7ffb28cb3d in svis () from /usr/lib/libc.so.12
(gdb) bt
#0  0x00007f7ffb28cb3d in svis () from /usr/lib/libc.so.12
#1  0x00007f7ffb28c7a1 in strsvis () from /usr/lib/libc.so.12
#2  0x00007f7ffb28c8aa in strvis () from /usr/lib/libc.so.12
#3  0x00007f7ffd20c848 in history_w () from /usr/lib/libedit.so.3
#4  0x00007f7ffd20a7bd in write_history () from /usr/lib/libedit.so.3
#5  0x000000000040663c in mysql_end ()
#6  0x000000000040aff7 in handle_sigint ()
#7  0x0000000000403b52 in ?? ()
#8  0x0000000000000002 in ?? ()
#9  0x00007f7ffffff7c8 in ?? ()
#10 0x00007f7ffffff7ce in ?? ()
#11 0x0000000000000000 in ?? ()

This is on a recent current amd64 and the issue has been present for a while.

Sverre


Home | Main Index | Thread Index | Old Index