[Pkg-db-devel] Bug#294163: error while sourcing test.tcl on hppa [#11954]

Michael Cahill Michael Cahill <mjc@sleepycat.com>, 294163@bugs.debian.org
Mon, 21 Feb 2005 13:01:56 +1100


--Apple-Mail-4--352386225
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=US-ASCII;
	format=flowed

Begin forwarded message:

> From: Michael Cahill <mjc@sleepycat.com>
> Date: 11 February 2005 5:23:56 PM
> To: Daniel van Eeden <daniel_e@dds.nl>
> Cc: Carol Sandstrom <carol@sleepycat.com>, support@sleepycat.com
> Subject: Re: error while sourcing test.tcl on hppa [#11954]
>
> Hi Daniel,
>
> My name is Michael Cahill and I am with Sleepycat Software.
> Carol Sandstrom asked me to reply to your support request:
>
>> result is 0db0: __db_tas_mutex_init: mutex not appropriately aligned
>> db0: PANIC: Invalid argument
>> db0: PANIC: DB_RUNRECOVERY: Fatal error, run database recovery
>> db0: Database handles remain at environment close
>> db0: Database handles remain at environment close
>> DB_RUNRECOVERY: Fatal error, run database recovery
>
> Can you please try the attached patch to address the mutex alignment
> issue on PA-RISC in addition to the ones Carol sent you?
>
> Let us know if you have any more trouble with this.
>
> Regards,
> Michael.
>
>
> --
> Michael Cahill                          Sleepycat Software
> mailto:mjc@sleepycat.com                http://www.sleepycat.com


--Apple-Mail-4--352386225
Content-Transfer-Encoding: 7bit
Content-Type: application/octet-stream;
	x-unix-mode=0666;
	name="4.3.27-hppa-mutex.diff"
Content-Disposition: attachment;
	filename=4.3.27-hppa-mutex.diff

*** dbinc/mutex.h
--- dbinc/mutex.h
***************
*** 128,134 ****
  
  #ifndef	MUTEX_ALIGN
  #define	MUTEX_ALIGN	16
! #define	HPUX_MUTEX_PAD	 8
  #endif
  #endif
  
--- 128,138 ----
  
  #ifndef	MUTEX_ALIGN
  #define	MUTEX_ALIGN	16
! #ifdef __hpux__
! # define	HPUX_MUTEX_PAD	 8
! #else
! # define	HPUX_MUTEX_PAD	 4
! #endif
  #endif
  #endif
  
***************
*** 494,500 ****
  
  #ifndef	MUTEX_ALIGN
  #define	MUTEX_ALIGN	16
! #define	HPUX_MUTEX_PAD	 8
  #endif
  
  #ifdef LOAD_ACTUAL_MUTEX_CODE
--- 498,508 ----
  
  #ifndef	MUTEX_ALIGN
  #define	MUTEX_ALIGN	16
! #ifdef __hpux__
! # define	HPUX_MUTEX_PAD	 8
! #else
! # define	HPUX_MUTEX_PAD	 4
! #endif
  #endif
  
  #ifdef LOAD_ACTUAL_MUTEX_CODE
***************
*** 510,516 ****
  	__r & 1;							\
  })
  
! #define	MUTEX_UNSET(tsl)	(*(tsl) = -1)
  #define	MUTEX_INIT(tsl)		(MUTEX_UNSET(tsl), 0)
  #endif
  #endif
--- 518,524 ----
  	__r & 1;							\
  })
  
! #define	MUTEX_UNSET(tsl)        (*(volatile tsl_t *)(tsl) = -1)
  #define	MUTEX_INIT(tsl)		(MUTEX_UNSET(tsl), 0)
  #endif
  #endif

--Apple-Mail-4--352386225--