AW: AW: Cursorline
Andrew Hood
ajhood at fl.net.au
Wed Jan 31 12:57:19 CET 2007
Ludger.Papenkort at dlr.de wrote:
> Hi Bert,
>
> i have done it with the debugger. It shows a problem in file util/prefFile.c
>
> here is the debugger output:
>
>>run
>
> Starting process 1703: "source/nedit"
> Wait...loading shared-library map tables. Done.
>
> bus error (no ignore) at 0x000f9708
> prefFile.c: stringToPref: 329 +0x0000000c: *(int *)rsrcDescrip->valueAddr = True;
So it is trying to set some boolean preference to true, but the
rsrcDescrip pointer is bad.
Can you run it under the debugger again? If you can find how to set
breakpoints in the debugger, you could set one at prefFile.c:329 (the
gdb syntax would be "br prefFile.c:329" ) and you can list all the
boolean preferences as it sets them. If not just run it and wait for the
crash. Display these values:
p *rsrcDescrip
Example output from gdb:
(gdb) p *rsrcDescrip
$3 = {name = 0x812d959 "autoSave", class = 0x812d950 "AutoSave",
dataType = 1, defaultString = 0x812cb11 "True", valueAddr = 0x8178334,
arg = 0x0, save = 1}
>>bt
>
> Overall breakpoints state: ACTIVE
> Added:
> 1: count: 1 Active stringToPref: 309: switch
(rsrcDescrip->dataType) {
> {Q;t 2;c}
> Overall breakpoints state: ACTIVE
> Added:
> 2: count: 1 Active stringToPref: 369: }
> {Q;p $ret0\d;c}
> Tracing "stringToPref"
So HPUX's debugger isn't as helpful as gdb. Example output from gdb.
(gdb) bt
#0 stringToPref (string=0x828b0a4 "True", rsrcDescrip=0x815f234) at
prefFile.c:329
#1 0x080d4a76 in readPrefs (prefDB=0x82601f0, appDB=0x82633c8,
appName=0x81311fc "nedit", appClass=0x8131202 "NEdit",
rsrcDescrip=0x815f0ac,
nRsrc=103, overlay=0) at prefFile.c:237
#2 0x080d48bf in RestorePreferences (prefDB=0x82601f0, appDB=0x82633c8,
appName=0x81311fc "nedit", appClass=0x8131202 "NEdit",
rsrcDescrip=0x815f0ac, nRsrc=103) at prefFile.c:190
#3 0x0807352d in RestoreNEditPrefs (prefDB=0x82601f0, appDB=0x82633c8)
at preferences.c:1293
#4 0x0804f533 in main (argc=1, argv=0xbffff054) at nedit.c:507
#5 0x4033117d in __libc_start_main () from /lib/libc.so.6
> Does this help You to help me ?
Maybe. I have an HPUX 10.something box with the HP compiler but without
having an exact copy of your source tree and preference files it
wouldn't be possible to replicate the problem.
--
There's no point in being grown up if you can't be childish sometimes.
-- Dr. Who
More information about the Discuss
mailing list