Subject: Re: Core-dump during startup on AIX-4.3.2
From: Peter Mcaveney (firstname.lastname@example.org)
Date: Thu Mar 02 2000 - 10:31:28 CST
When free() crashes it's usually because it has been fed a bad pointer - a
memory location which has not been malloced or has already been freed.
You said in your bug report that you replaced the occurrences of UT_strdup()
with a malloc() and a strcpy(). Exactly what did you do with line 338:
fontfile = UT_strdup(fontfile);
sam th <email@example.com> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
On Thu, 2 Mar 2000 Ciaran.Deignan@bull.net wrote:
> Hi All,
> I sucessfully built AbiWord on AIX-4.3.2 using the GCC-2.95.2 compiler,
> however it core-dumps just after startup. I rebuilt in debug mode and it
> gives me the following status messages:
> # DISPLAY=:1 AbiWord
> DEBUG: Build ID:
> DEBUG: Version: unnumbered
> DEBUG: Build Options: LicensedTrademarks:Off Debug:On Gnome:Off
> DEBUG: Build Target:
> DEBUG: Compile Date: Mar 1 2000
> DEBUG: Compile Time: 14:06:31
> DEBUG: Preferences::setCurrentScheme [_builtin_].
> DEBUG: could not open preferences file [/.AbiSuite/AbiWord.Profile].
> DEBUG: Prefs: Using LOCALE info from environment [EnUS]
> DEBUG: Clipboard: initializing
> DEBUG: Clipboard: property [CLIPBOARD atom 126]
> DEBUG: Clipboard: property [PRIMARY atom 1]
> DEBUG: Clipboard: target [TARGETS atom 135]
> DEBUG: Clipboard: target [TIMESTAMP atom 137]
> DEBUG: Clipboard: target [text/rtf atom 184]
> DEBUG: Clipboard: target [TEXT atom 136]
> DEBUG: Clipboard: target [STRING atom 31]
> DEBUG: Using FontPath from preferences [/usr/local/AbiSuite/fonts].
> DEBUG: File says 64 fonts should follow...
> /usr/local/bin/AbiWord: 21834 Segmentation fault(coredump)
> I used various AIX tools to verify that it is reading the file
> and is forking the command
> xset fp+ /usr/local/AbiSuite/fonts
> All the filenames indicated in the fonts.dir file do seem to exist,
> but I'm not sure if AIX has any special oddities about these things.
> Does anyone have any ideas? I used bugzilla to note a defect, #775
I've read your reports to bugzilla, and you have presented a model for
reporting problems. Just a couple questions -
1- Are you running the script (/usr/local/AbiSuite/bin/AbiWord) or the
executable itself (/usr/local/AbiSuite/bin/AbiWord_[d,s]) If you are
running the bare executable, then that's your problem. Running the script
2- However, if that's not the problem, then it would be very helpful if
you could provide the stack trace from gdb (or whatever debugger you use)
when your copy segfaults.
3- Finally, you do have unixfonts as a peer to your source directory when
you compile, right?
More platforms, here we come.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1 (GNU/Linux)
Comment: For info see http://www.gnupg.org
-----END PGP SIGNATURE-----
Get free email and a permanent address at http://www.netaddress.com/?N=1
This archive was generated by hypermail 2b25 : Thu Mar 02 2000 - 10:31:32 CST