* [2011-02-05 04:52:24 +0000] Hugh Williams <[email protected]> écrit:

] If a core file was produced it would also be interesting to see a 
] stack trace from the core  if the Virtuoso binary symbols are not 
] stripped.

Was just debugging a problem with the latest snapshot with
PvK (no idea if it is the same problem) but thought I'd 
contribute some instructions for getting a stack trace from
FreeBSD.

Edit /usr/ports/databases/virtuoso/Makefile
To CONFIGURE_ARGS add --with-debug
To CONFIGURE_ENV prepend CC='cc -g'
Then do "make clean all deinstall reinstall"

The installed version will be stripped but you should have
an unstripped version in 
/usr/ports/databases/virtuoso/work/virtuoso-opensource-6.1.2/binsrc/virtuoso/virtuoso-t

To run gdb, you do,

gdb 
/usr/ports/databases/virtuoso/work/virtuoso-opensource-6.1.2/binsrc/virtuoso/virtuoso-t
 virtuoso-t.core

and at the prompt, type "bt" or "backtrace"

Additionally, if you want to install a snapshot using ports,
you need to download the snapshot to /usr/ports/distfiles and
then do

  md5 virtuoso-opensource-6-20110214.tar.gz >> 
/usr/ports/databases/virtuoso/distinfo
  sha256 virtuoso-opensource-6-20110214.tar.gz >> 
/usr/ports/databases/virtuoso/distinfo

and edit the Makefile and put

  PORTVERSION=    6.1.3rc5
  ...
  DISTNAME=       ${PORTNAME}-opensource-6-20110214

Hope this is useful.

Cheers,
-w
-- 
William Waites                <mailto:[email protected]>
http://river.styx.org/ww/        <sip:[email protected]>
F4B3 39BF E775 CF42 0BAB  3DF0 BE40 A6DF B06F FD45

Reply via email to