Debian Bug report logs - #348273
prc-tools-arm: generated code crashes because function pointers are incorrect

version graph

Package: prc-tools-arm; Maintainer for prc-tools-arm is (unknown);

Reported by: Eric House <debian@eehouse.org>

Date: Mon, 16 Jan 2006 01:48:07 UTC

Severity: grave

Found in version prc-tools-arm/2.3-1

Fixed in version 2.3-1.1+rm

Done: kurt@roeckx.be (Kurt Roeckx)

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, debian@eehouse.org, Lucas Wall <lwall@debian.org>:
Bug#348273; Package prc-tools-arm. Full text and rfc822 format available.

Acknowledgement sent to Eric House <debian@eehouse.org>:
New Bug report received and forwarded. Copy sent to debian@eehouse.org, Lucas Wall <lwall@debian.org>. Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Eric House <debian@eehouse.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: prc-tools-arm: generated code crashes because function pointers are incorrect
Date: Sun, 15 Jan 2006 17:25:24 -0800
Package: prc-tools-arm
Version: 2.3-1
Severity: grave
Justification: causes non-serious data loss

The following code, compiled with package version 2.3-1, crashes inside
the call to the function ptr fp.  It does not crash when built with the
previous version of this package, which was based on an earlier version of
gcc.  Nor does it crash when built with a cross-compiler chain that is based
on a later version of gcc.

void func(void){}

int32 PilotMain() {
   void (*fp)(void) = func;
   func();                       // <- this will not crash
   (*fp)();                      // <- this will crash
}

I do not have access to a runtime debugger, but have used logging to
narrow down the problem.  What I see when printing data that fp points
to is code about 100 bytes away from func's first instruction.  Thus
fp is off by about 100 bytes.  The code is running as a "PNOLet", part
of a PalmOS application, and there is some load-time manipulation that
I must perform before calling it that (I think) impacts function
pointer values.  It's possible that I'm contributing to the problem.
However, since there are no problems with either the earlier version
of this package or a similar suite that I built based on a later
version of gcc than this package uses, it seems that the problem must
be in this package.

The problem can be duplicated using code from xwords.sourceforge.net.
I can provide instructions, further details, etc.  Please advise.

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages prc-tools-arm depends on:
ii  libc6                         2.3.5-8    GNU C Library: Shared libraries an
ii  prc-tools-utils               2.3-1      Development toolchain for PDAs usi

Versions of packages prc-tools-arm recommends:
ii  prc-tools-m68k                2.3-1      Development Toolchain for PDAs usi

-- no debconf information



Information forwarded to debian-bugs-dist@lists.debian.org, Antti-Juhani Kaijanaho <ajk@debian.org>:
Bug#348273; Package prc-tools-arm. Full text and rfc822 format available.

Acknowledgement sent to kurt@roeckx.be (Kurt Roeckx):
Extra info received and forwarded to list. Copy sent to Antti-Juhani Kaijanaho <ajk@debian.org>. Full text and rfc822 format available.

Message #10 received at 348273@bugs.debian.org (full text, mbox):

From: kurt@roeckx.be (Kurt Roeckx)
To: control@bugs.debian.org
Cc: 348273@bugs.debian.org
Subject: closing 348273
Date: Fri, 12 Sep 2008 19:37:50 +0200 (CEST)
# Automatically generated email from bts, devscripts version 2.10.35
# Package got removed: #444713
close 348273 2.3-1.1+rm




Bug marked as fixed in version 2.3-1.1+rm, send any further explanations to Eric House <debian@eehouse.org> Request was from kurt@roeckx.be (Kurt Roeckx) to control@bugs.debian.org. (Fri, 12 Sep 2008 17:39:05 GMT) Full text and rfc822 format available.

Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sat, 11 Oct 2008 07:29:29 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed Apr 23 11:37:52 2014; Machine Name: beach.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.