[Lcdproc] Segfault on VIA EPIA CN10000EG Fanless with picolcd

Bas Rijniersce brijniersce@Seaspanltd.ca
Mon Jul 16 18:11:01 2007


Hi,

>=20>=20After=20starting=20the=20LCD=20daemon=20with=20detailed=20logging=20=
enabled=20(and=20in=20
>=20>=20the=20foreground)=20it=20quites=20with=20a=20"Floating=20Point=20E=
xception".
>=20>
>=20>=20I=20had=20problem=20running=20Asterisk=20(opensource=20PBX)=20on=20=
similar=20hardware=20
>=20>=20and=20needed=20to=20specify=20i386=20as=20the=20architecture=20to=20=
"correct"=20
>=20the=20auto=20
>=20>=20detection=20of=20i686.
>=20>
>=20>=20I=20ran=20configure=20with=20the=20following=20options:
>=20>=20./configure=20--enable-driver=3Dpicolcd=20--build=3Di386=20--host=3D=
i386
=20
>=20Please=20compile=20and=20run=20a=20debug=20version=20CVS=20version=20a=
gain=20like=20so:
>=20=20=20./configure=20--enable-debug=20--enable-driver=3Dpicolcd
>=20=20=20make
>=20=20=20gdb=20./server/LCDd
>=20=20=20>=20set=20args=20-c=20<path=20to=20config>=20-f
>=20=20=20>=20run
>=20=20=20(wait=20for=20segfault)
>=20=20=20>=20bt=20full

Unfortunately=20the=20latest=20CVS=20doesn't=20compile=20with=20--enable-d=
ebug.
Problem=20with=20a=20Crytal=20Fontz=20driver.=20I=20compiled=20without=20-=
-enable-debug
and=20get:

Program=20received=20signal=20SIGFPE,=20Arithmetic=20exception.
0x0065b8fc=20in=20do_lookup_x=20()=20from=20/lib/ld-linux.so.2
(gdb)=20bt=20full
#0=20=200x0065b8fc=20in=20do_lookup_x=20()=20from=20/lib/ld-linux.so.2
No=20symbol=20table=20info=20available.
#1=20=200x0065bca2=20in=20_dl_lookup_symbol_x=20()=20from=20/lib/ld-linux.=
so.2
No=20symbol=20table=20info=20available.
#2=20=200x0065d144=20in=20_dl_relocate_object=20()=20from=20/lib/ld-linux.=
so.2
No=20symbol=20table=20info=20available.
#3=20=200x0076a13a=20in=20dl_open_worker=20()=20from=20/lib/tls/libc.so.6
No=20symbol=20table=20info=20available.
#4=20=200x0065f4ee=20in=20_dl_catch_error=20()=20from=20/lib/ld-linux.so.2=

No=20symbol=20table=20info=20available.
#5=20=200x0076ab88=20in=20_dl_open=20()=20from=20/lib/tls/libc.so.6
No=20symbol=20table=20info=20available.
#6=20=200x007c0cb8=20in=20dlopen_doit=20()=20from=20/lib/libdl.so.2
No=20symbol=20table=20info=20available.
#7=20=200x0065f4ee=20in=20_dl_catch_error=20()=20from=20/lib/ld-linux.so.2=

No=20symbol=20table=20info=20available.
#8=20=200x007c12bb=20in=20_dlerror_run=20()=20from=20/lib/libdl.so.2
No=20symbol=20table=20info=20available.
#9=20=200x007c0d11=20in=20dlopen@@GLIBC_2.1=20()=20from=20/lib/libdl.so.2
No=20symbol=20table=20info=20available.
#10=200x08056075=20in=20driver_bind_module=20()
No=20symbol=20table=20info=20available.
#11=200x08056332=20in=20driver_load=20()
No=20symbol=20table=20info=20available.
#12=200x0805590f=20in=20drivers_load_driver=20()
No=20symbol=20table=20info=20available.
#13=200x0804e831=20in=20main=20()
No=20symbol=20table=20info=20available.
=20
I=20also=20compiled=20the=20current=20production=20release=20with=20--enab=
le-debug=20and
that=20provides=20this=20bit=20of=20additional=20info:

#10=200x0805669a=20in=20driver_bind_module=20(driver=3D0x9ef5a00)=20at=20d=
river.c:179
=20=20=20=20=20=20=20=20i=20=3D=2034
=20=20=20=20=20=20=20=20missing_symbols=20=3D=200
---Type=20<return>=20to=20continue,=20or=20q=20<return>=20to=20quit---
=20=20=20=20=20=20=20=20__FUNCTION__=20=3D=20"driver_bind_module"
#11=200x080564db=20in=20driver_load=20(name=3D0x9eed108=20"picolcd",
=20=20=20=20filename=3D0x9ef59d8=20"/usr/local/lib/lcdproc/picolcd.so")=20=
at
driver.c:110
=20=20=20=20=20=20=20=20driver=20=3D=20(Driver=20*)=200x9ef5a00
=20=20=20=20=20=20=20=20res=20=3D=20Variable=20"res"=20is=20not=20availabl=
e.

So=20it=20seems=20clear=20that=20the=20picolcd=20driver=20load=20causes=20=
the=20problem..=20To
verify=20I=20loaded=20the=20curses=20driver=20and=20that=20worked=20fine..=


Bas


>=20Regards,
>=20Robert

-=20--------------------
This=20email=20is=20confidential=20and=20may=20be=20privileged.=20If=20you=
=20have=20received=20this=20email=20in=20error=20please=20delete=20it=20an=
d=20inform=20the=20sender=20immediately.=20Unauthorized=20distribution=20o=
r=20use=20is=20strictly=20prohibited=20and=20may=20result=20in=20penalties=
=20and/or=20damages.