From noway@nohow.demon.co.uk  Mon Dec 18 06:04:11 2000
Return-Path: <noway@nohow.demon.co.uk>
Received: from nohow.demon.co.uk (puajm2.nottingham.ac.uk [128.243.210.228])
	by hub.freebsd.org (Postfix) with ESMTP id A7AB837B400
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 18 Dec 2000 06:04:09 -0800 (PST)
Received: (from noway@localhost)
	by nohow.demon.co.uk (8.11.1/8.11.1) id eBIE41950099;
	Mon, 18 Dec 2000 14:04:02 GMT
	(envelope-from noway)
Message-Id: <200012181404.eBIE41950099@nohow.demon.co.uk>
Date: Mon, 18 Dec 2000 14:04:02 GMT
From: Jose Marques <noway@nohow.demon.co.uk>
Reply-To: noway@nohow.demon.co.uk
To: FreeBSD-gnats-submit@freebsd.org
Subject: palm/pose coredumps
X-Send-Pr-Version: 3.2

>Number:         23611
>Category:       ports
>Synopsis:       palm/pose coredumps
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 18 06:10:00 PST 2000
>Closed-Date:    Mon Feb 19 19:07:23 PST 2001
>Last-Modified:  Mon Feb 19 19:07:59 PST 2001
>Originator:     Jose Marques
>Release:        FreeBSD 4.2-STABLE i386
>Organization:
>Environment:

	

>Description:

The palm/pose port now coredumps when I try to start emulation.

>How-To-Repeat:

Start Pose.  Right click and then click on "File"->"New".  Choose device:
"Palm Vx", skin: generic, RAM Size: 8192K and set the ROM file.  When you
click on OK the program will core dump.

I noticed this problem when installing pose on a new FreeBSD 4.2 system.
On another 4.2-STABLE system a previous instance of the same port that was
installed in April works fine.  If I re-build the port on that same system
the newly built port coredumps in the same way.  I usually build the port
from source, however, I get the same problem if I use the pre-built package
version.

>Fix:




>Release-Note:
>Audit-Trail:

From: Jose Marques <noway@nohow.demon.co.uk>
To: FreeBSD-gnats-submit@freebsd.org
Cc: GNATS Management <gnats-admin@FreeBSD.org>
Subject: Re: ports/23611: palm/pose coredumps
Date: Tue, 19 Dec 2000 18:20:33 +0000 (GMT)

 On Mon, 18 Dec 2000, Jose Marques wrote:
 
 > >Description:
 > 
 > The palm/pose port now coredumps when I try to start emulation.
 [Snip]
 
 I've re-built pose with debugging enabled and obtained the following stack
 trace:
 
 0x807a122 in CPU::StopThread (this=0x830bc00, wasStopped=@0xbfbff430,
     isStopped=@0xbfbff4bc, how=2) at ./../SrcShared/CPU_MT.cpp:339
 
 It looks like the problem is threads related, the problem also seems to be
 recent.  Using the package version of pose that comes with FreeBSD
 4.1.1-RELEASE no coredumps occur.  Using the package that comes with
 FreeBSD 4.2-RELEASE results in coredumps.
 
 -- 
 Jose Marques
 
 
 
 
Responsible-Changed-From-To: freebsd-ports->dirk 
Responsible-Changed-By: okazaki 
Responsible-Changed-When: Fri Dec 22 00:51:12 PST 2000 
Responsible-Changed-Why:  
Over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=23611 

From: Vivek Khera <vivek@khera.org>
To: freebsd-gnats-submit@FreeBSD.org, noway@nohow.demon.co.uk
Cc:  
Subject: Re: ports/23611: palm/pose coredumps
Date: Fri, 22 Dec 2000 11:21:23 -0500

 This is a multi-part message in MIME format.
 --------------359033F46B808CFF7BC5D28E
 Content-Type: text/plain; charset=us-ascii
 Content-Transfer-Encoding: 7bit
 
 I have the same problem with a pose 3.0a7 that I build with a world
 built on November 30.  The binary I built on November 10 with a prior
 world runs without error.  Both binaries link to the same set of shared
 libraries.
 --------------359033F46B808CFF7BC5D28E
 Content-Type: text/x-vcard; charset=us-ascii;
  name="vivek.vcf"
 Content-Transfer-Encoding: 7bit
 Content-Description: Card for Vivek Khera
 Content-Disposition: attachment;
  filename="vivek.vcf"
 
 begin:vcard 
 n:Khera;Vivek
 tel;fax:301-545-6899
 tel;work:301-545-6996
 x-mozilla-html:TRUE
 url:http://www.khera.org/~vivek/
 org:Khera Communications, Inc.
 version:2.1
 email;internet:vivek@khera.org
 adr;quoted-printable:;;1445 Research Blvd=0D=0A5th Floor;Rockville;MD;20850;USA
 x-mozilla-cpt:;0
 fn:Vivek Khera
 end:vcard
 
 --------------359033F46B808CFF7BC5D28E--
 
 

From: "Valeriy E. Ushakov" <uwe@ptc.spbu.ru>
To: freebsd-gnats-submit@FreeBSD.org
Cc: noway@nohow.demon.co.uk
Subject: Re: ports/23611: palm/pose coredumps
Date: Tue, 9 Jan 2001 05:04:57 +0300

 3.0a6 built from ports crashes on me at exactly the same place.
 
 This is how it crashes for 3.0a8.  If you examine a crash 3.0a6 from
 ports, the assembler sequence is more or less the same.
 
 (gdb) run
 Starting program:
 /usr/ports/palm/pose/work/Emulator_Src_3.0a8/BuildUnix/pose 
 
 Program received signal SIGSEGV, Segmentation fault.
 0x80c7a1f in EmSession::SuspendThread (this=0x8401a00, how=kStopNow)
     at ./../SrcShared/EmSession.cpp:850
 850             return result;
 (gdb) disassemble 0x80c7a15 0x80c7a26 
 Dump of assembler code from 0x80c7a15 to 0x80c7a26:
 0x80c7a15 <SuspendThread__9EmSession12EmStopMethod+1121>:
     lea    0x4(%esi),%edx
 0x80c7a18 <SuspendThread__9EmSession12EmStopMethod+1124>:
     mov    (%edx),%eax
 0x80c7a1a <SuspendThread__9EmSession12EmStopMethod+1126>:
     add    $0x4,%eax
 0x80c7a1d <SuspendThread__9EmSession12EmStopMethod+1129>:
     mov    (%eax),%edx
 0x80c7a1f <SuspendThread__9EmSession12EmStopMethod+1131>:
     mov    (%edx),%ecx
 0x80c7a21 <SuspendThread__9EmSession12EmStopMethod+1133>:
     mov    %ecx,(%eax)
 0x80c7a23 <SuspendThread__9EmSession12EmStopMethod+1135>:
     add    $0xfffffff8,%esp
 End of assembler dump.
 (gdb) i r esi
 esi            0x284edf04       676257540
 (gdb) x/x 0x284edf04+4		# lea 0x4(%esi), %edx
 0x284edf08 <_vt$19__pointer_type_info+3256>:    0xbfafef04
 (gdb) x/x 0xbfafef04+4		# %edx before dereferencing
 0xbfafef08:     0x00000000
 
 And the mov (%edx), %edx segfaults.
 
 I downloaded prebuilt package from freebsd.org and it crashes in
 exactly the same way.  So the problem seems to the the RTTI, as this
 __pointer_type_info virtual table looks like deep into C++ internals.
 

From: "Valeriy E. Ushakov" <uwe@ptc.spbu.ru>
To: freebsd-gnats-submit@FreeBSD.org
Cc: dirk@FreeBSD.org, noway@nohow.demon.co.uk
Subject: Re: ports/23611: palm/pose coredumps
Date: Wed, 10 Jan 2001 02:37:36 +0300

 Now that PR 23252 is fixed in -stable the crash went away.
 Guess you can close this one.
 

From: Vivek Khera <khera@kciLink.com>
To: freebsd-gnats-submit@FreeBSD.org, noway@nohow.demon.co.uk
Cc:  
Subject: Re: ports/23611: palm/pose coredumps
Date: Mon, 15 Jan 2001 15:46:03 -0500

 I just tested it with a new world as of today, and a build of pose
 3.0a7 works fine with the fixed compilers.  Thanks!
 
 
Responsible-Changed-From-To: dirk->freebsd-ports 
Responsible-Changed-By: dirk 
Responsible-Changed-When: Fri Jan 26 04:32:36 PST 2001 
Responsible-Changed-Why:  
Dropped maintainership. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=23611 
State-Changed-From-To: open->closed 
State-Changed-By: jeh 
State-Changed-When: Mon Feb 19 19:07:23 PST 2001 
State-Changed-Why:  
Problems solved elsewhere.  Closed at originators request. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=23611 
>Unformatted:
