unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* readline works fine on alpha after all (when present!)
@ 2002-10-11 23:46 Greg Troxel
  0 siblings, 0 replies; only message in thread
From: Greg Troxel @ 2002-10-11 23:46 UTC (permalink / raw)


I earlier reported that guile was losing due to an unaligned access on
NetBSD/alpha when trying to dynlink libguilereadline.  It turns out
that once I installed readline, things work fine.  So, sorry for the
false alarm.

Both 1.6.0 and 1.4.1.91 happily compiled and installed versions of
libguilereadline that get an unaligned access exception.  Both were
run with ./configure having only --prefix.  I rebuilt 1.6.0 after
installing readline, and it worked, but 1.4.1.91 was still not ok -
presumably I'd have to rebuild that too, as libreadline was not listed
in dependency_libs in libguilereadline.la.  In the 1.6.0 version
_after_ rebuilding from scratch, libguilereadline-v-12.la had
/usr/pkg/lib/libreadline.la (and I'm sure 1.4.1.91 would too if I
rebuilt that).

So, it seems that the code in the case of no readline present does
something odd, or dlopen does something odd.  The assembly is pretty
simple:

0x0 <scm_init_guilereadline>:   subq    sp,0x10,sp
(gdb) 
0x4 <scm_init_guilereadline+4>: stq     ra,0(sp)
(gdb) 
0x8 <scm_init_guilereadline+8>: stq     fp,8(sp)
(gdb) 
0xc <scm_init_guilereadline+12>:        mov     sp,fp
(gdb) 
0x10 <scm_init_guilereadline+16>:       mov     fp,sp
(gdb) 
0x14 <scm_init_guilereadline+20>:       ldq     ra,0(sp)
(gdb) 
0x18 <scm_init_guilereadline+24>:       ldq     fp,8(sp)
(gdb) 
0x1c <scm_init_guilereadline+28>:       addq    sp,0x10,sp
(gdb) 
0x20 <scm_init_guilereadline+32>:       ret     zero,(ra),0x1
(gdb) 
0x24 <scm_init_guilereadline+36>:       halt

and I think this is just saving/restoring the stack and returning
zero, but I'm fuzzy on alpha assembly.

Given that readline works when it is actually present, I'm
inclined to stop worrying about this.

        Greg Troxel <gdt@ir.bbn.com>


_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-10-11 23:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-11 23:46 readline works fine on alpha after all (when present!) Greg Troxel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).