[Lcdproc] HD44780 segmentation fault
Hans De Boo
hdeboo@de-boo.net
Tue Oct 9 18:22:01 2007
This is a multi-part message in MIME format.
------_=_NextPart_001_01C80AA1.1F201DB0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hello all,
=20
I'm receiving a segmentation fault when running LCDd with the hd44780 =
driver:
Ubuntu 2.6.15-26-amd64-server
=20
I started with the standard package. LCDd works fine when using the =
console as output device (LCDd 0.4.5)
When using the hd44780 it reports a segmentation error.
=20
Freshly downloaded and freshly compiled ;-) same error.
=20
Anyone who can help me out?=20
=20
tnx.
Hans
=20
LCDd version 0.5.2 starting
Built on Oct 9 2007, protocol version 0.3, API version 0.5
clear_settings()
process_command_line(argc=3D2, argv=3D...)
process_configfile()
Using Configuration File: /usr/local/etc/LCDd.conf
set_default_settings()
Set report level to 5, output to stderr
LCDd 0.5.2, LCDproc Protocol 0.3
Part of the LCDproc suite
Copyright (C) 1998-2007 William Ferrell, Scott Scriven
and many other contributors
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Server running in foreground
install_signal_handlers(allow_reload=3D0)
sock_init(bind_addr=3D"127.0.0.1", port=3D13666)
sock_create_inet_socket(addr=3D"127.0.0.1", port=3D13666)
Listening for queries on 127.0.0.1:13666
screenlist_init()
init_drivers()
drivers_load_driver(name=3D"hd44780")
driver_load(name=3D"hd44780", =
filename=3D"/usr/local/include/LCDd/server/drivers/hd44780.so")
driver_bind_module(driver=3D[hd44780])
... (cut some debug output)
driver_load: Calling driver [hd44780] init function
driver_store_private_ptr(driver=3D[hd44780], ptr=3D0x5338c0)
hd44780: Using hd44780_default charmap
Segmentation fault
=20
=20
LCDd.conf (after cutting unused/untuched lines):
# LCDd.conf -- configuration file for the LCDproc server daemon LCDd
#
# This file contains the configuration for the LCDd server.
#=20
[server]
Driver=3Dhd44780
Bind=3D127.0.0.1
Port=3D13666
ReportLevel=3D5
#ReportToSyslog=3Dyes
WaitTime=3D5
User=3Dnobody
#ServerScreen=3Dno
#Foreground=3Dno
DriverPath=3D/usr/local/include/LCDd/server/drivers/
# GoodBye message: each entry represents a display line; default: =
builtin
#GoodBye=3D"Thanks for using"
#GoodBye=3D" LCDproc!"
# The "...Key=3D" lines define what the server does with keypresses that
# don't go to any client.
# These are the defaults:
ToggleRotateKey=3DEnter
PrevScreenKey=3DLeft
NextScreenKey=3DRight
#ScrollUpKey=3DUp
#ScrollDownKey=3DDown
# If you have only 4 keys, you can choose to use this:
#ToggleRotateKey=3DEnter
#PrevScreenKey=3DUp
#NextScreenKey=3DDown
# If you have only 3 keys, you can choose to use this:
#ToggleRotateKey=3DEnter
#PrevScreenKey=3DUp
=20
## The menu section. The menu is an internal LCDproc client. ##
[menu]
# You can configure what keys the menu should use. Note that the MenuKey
# will be reserved exclusively, the others work in shared mode.
# The following works excellent with 4 keys or more.
MenuKey=3DEscape
EnterKey=3DEnter
UpKey=3DUp
DownKey=3DDown
# If you have 6 keys you may define these as well
#LeftKey=3DLeft
#RightKey=3DRight
# If you have only 3 keys, you could use something like this:
#MenuKey=3DEscape
#EnterKey=3DEnter
#DownKey=3DDown
=20
### Driver sections are below this line, in alphabetical order ###
## Hitachi HD44780 driver ##
[hd44780]
ConnectionType=3D4bit
Port=3D0x378
Device=3D/dev/ttyS0
Speed=3D0
Keypad=3Dno
Contrast=3D0
Backlight=3Dno
OutputPort=3Dno
#Lastline=3Dtrue
Size=3D20x4
#vspan=3D2,2
#ExtendedMode=3Dyes
Charmap=3Dhd44780_default
#DelayMult=3D2
#KeepAliveDisplay=3D0
#RefreshDisplay=3D5
DelayBus=3Dtrue
KeyMatrix_4_1=3DEnter
KeyMatrix_4_2=3DUp
KeyMatrix_4_3=3DDown
KeyMatrix_4_4=3DEscape
=20
------_=_NextPart_001_01C80AA1.1F201DB0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">=0A=
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML =
DIR=3Dltr><HEAD></HEAD><BODY><DIV><FONT face=3D'Arial' color=3D#000000 =
size=3D2>Hello all,</FONT></DIV>=0A=
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>=0A=
<DIV><FONT face=3DArial size=3D2>I'm receiving a segmentation fault when =
running =0A=
LCDd with the hd44780 driver:</FONT></DIV>=0A=
<DIV><FONT face=3DArial size=3D2>Ubuntu =
2.6.15-26-amd64-server</FONT></DIV>=0A=
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>=0A=
<DIV><FONT face=3DArial size=3D2>I started with the standard package. =
LCDd works =0A=
fine when using the console as output device (LCDd 0.4.5)</FONT></DIV>=0A=
<DIV><FONT face=3DArial size=3D2>When using =0A=
the hd44780 it reports a segmentation error.</FONT></DIV>=0A=
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>=0A=
<DIV><FONT face=3DArial size=3D2>Freshly =0A=
downloaded and freshly compiled ;-) same =0A=
error.</FONT></DIV>=0A=
<DIV> </DIV>=0A=
<DIV><FONT face=3DArial size=3D2>Anyone who can help me =
out?</FONT> </DIV>=0A=
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>=0A=
<DIV><FONT face=3DArial size=3D2>tnx.</FONT></DIV>=0A=
<DIV><FONT face=3DArial size=3D2>Hans</FONT></DIV>=0A=
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>=0A=
<DIV>LCDd version 0.5.2 starting<BR>Built on Oct 9 2007, protocol =
version =0A=
0.3, API version =
0.5<BR>clear_settings()<BR>process_command_line(argc=3D2, =0A=
argv=3D...)<BR>process_configfile()<BR>Using Configuration File: =0A=
/usr/local/etc/LCDd.conf<BR>set_default_settings()<BR>Set report level =
to 5, =0A=
output to stderr<BR>LCDd 0.5.2, LCDproc Protocol 0.3<BR>Part of the =
LCDproc =0A=
suite<BR>Copyright (C) 1998-2007 William Ferrell, Scott =0A=
Scriven<BR> &n=
bsp; &nb=
sp; =0A=
and many other contributors</DIV>=0A=
<DIV>This program is free software; you can redistribute it =
and/or<BR>modify it =0A=
under the terms of the GNU General Public License<BR>as published by the =
Free =0A=
Software Foundation; either version 2<BR>of the License, or (at your =
option) any =0A=
later version.</DIV>=0A=
<DIV>This program is distributed in the hope that it will be =
useful,<BR>but =0A=
WITHOUT ANY WARRANTY; without even the implied warranty =
of<BR>MERCHANTABILITY or =0A=
FITNESS FOR A PARTICULAR PURPOSE. See the<BR>GNU General Public =
License =0A=
for more details.</DIV>=0A=
<DIV>You should have received a copy of the GNU General Public =
License<BR>along =0A=
with this program; if not, write to the Free Software =
Foundation,<BR>Inc., 51 =0A=
Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.</DIV>=0A=
<DIV>Server running in =0A=
foreground<BR>install_signal_handlers(allow_reload=3D0)<BR>sock_init(bind=
_addr=3D"127.0.0.1", =0A=
port=3D13666)<BR>sock_create_inet_socket(addr=3D"127.0.0.1", =0A=
port=3D13666)<BR>Listening for queries on =0A=
127.0.0.1:13666<BR>screenlist_init()<BR>init_drivers()<BR>drivers_load_dr=
iver(name=3D"hd44780")<BR>driver_load(name=3D"hd44780", =0A=
filename=3D"/usr/local/include/LCDd/server/drivers/hd44780.so")<BR>driver=
_bind_module(driver=3D[hd44780])<BR> ... =0A=
(cut some debug output)</DIV>=0A=
<DIV>driver_load: Calling driver [hd44780] init =0A=
function<BR>driver_store_private_ptr(driver=3D[hd44780], =
ptr=3D0x5338c0)<BR>hd44780: =0A=
Using hd44780_default charmap<BR>Segmentation fault</DIV>=0A=
<DIV> </DIV>=0A=
<DIV> </DIV>=0A=
<DIV>LCDd.conf (after cutting unused/untuched lines):</DIV>=0A=
<DIV># LCDd.conf -- configuration file for the LCDproc server daemon =0A=
LCDd<BR>#<BR># This file contains the configuration for the LCDd =
server.<BR># =0A=
<BR>[server]</DIV>=0A=
<DIV>Driver=3Dhd44780<BR>Bind=3D127.0.0.1<BR>Port=3D13666<BR>ReportLevel=3D=
5<BR>#ReportToSyslog=3Dyes<BR>WaitTime=3D5</DIV>=0A=
<DIV>User=3Dnobody</DIV>=0A=
<DIV>#ServerScreen=3Dno<BR>#Foreground=3Dno</DIV>=0A=
<DIV>DriverPath=3D/usr/local/include/LCDd/server/drivers/</DIV>=0A=
<DIV># GoodBye message: each entry represents a display line; default: =0A=
builtin<BR>#GoodBye=3D"Thanks for using"<BR>#GoodBye=3D" =
LCDproc!"</DIV>=0A=
<DIV># The "...Key=3D" lines define what the server does with keypresses =
that<BR># =0A=
don't go to any client.<BR># These are the =0A=
defaults:<BR>ToggleRotateKey=3DEnter<BR>PrevScreenKey=3DLeft<BR>NextScree=
nKey=3DRight<BR>#ScrollUpKey=3DUp<BR>#ScrollDownKey=3DDown</DIV>=0A=
<DIV># If you have only 4 keys, you can choose to use =0A=
this:<BR>#ToggleRotateKey=3DEnter<BR>#PrevScreenKey=3DUp<BR>#NextScreenKe=
y=3DDown</DIV>=0A=
<DIV># If you have only 3 keys, you can choose to use =0A=
this:<BR>#ToggleRotateKey=3DEnter<BR>#PrevScreenKey=3DUp</DIV>=0A=
<DIV> </DIV>=0A=
<DIV>## The menu section. The menu is an internal LCDproc client. =0A=
##<BR>[menu]<BR># You can configure what keys the menu should use. Note =
that the =0A=
MenuKey<BR># will be reserved exclusively, the others work in shared =
mode.</DIV>=0A=
<DIV># The following works excellent with 4 keys or =0A=
more.<BR>MenuKey=3DEscape<BR>EnterKey=3DEnter<BR>UpKey=3DUp<BR>DownKey=3D=
Down<BR># If =0A=
you have 6 keys you may define these as =0A=
well<BR>#LeftKey=3DLeft<BR>#RightKey=3DRight</DIV>=0A=
<DIV># If you have only 3 keys, you could use something like =0A=
this:<BR>#MenuKey=3DEscape<BR>#EnterKey=3DEnter<BR>#DownKey=3DDown</DIV>=0A=
<DIV> </DIV>=0A=
<DIV>### Driver sections are below this line, in alphabetical =
order =0A=
###</DIV>=0A=
<DIV>## Hitachi HD44780 driver ##<BR>[hd44780]</DIV>=0A=
<DIV>ConnectionType=3D4bit<BR>Port=3D0x378<BR>Device=3D/dev/ttyS0<BR>Spee=
d=3D0<BR>Keypad=3Dno<BR>Contrast=3D0<BR>Backlight=3Dno<BR>OutputPort=3Dno=
<BR>#Lastline=3Dtrue<BR>Size=3D20x4<BR>#vspan=3D2,2<BR>#ExtendedMode=3Dye=
s<BR>Charmap=3Dhd44780_default<BR>#DelayMult=3D2<BR>#KeepAliveDisplay=3D0=
<BR>#RefreshDisplay=3D5<BR>DelayBus=3Dtrue<BR>KeyMatrix_4_1=3DEnter<BR>Ke=
yMatrix_4_2=3DUp<BR>KeyMatrix_4_3=3DDown<BR>KeyMatrix_4_4=3DEscape</DIV>=0A=
<DIV> </DIV></BODY></HTML>
------_=_NextPart_001_01C80AA1.1F201DB0--