hi, as $subject says. i have bisected the problem to have been introduced in r12466 (r12465 is fine).
r12466 only says segmentation fault, leaving an empty hb_out.log; r14542 is a bit more verbose with: Application Internal Error - /home/ice/w/xhb/hbci/harbour-bisect/harbour/inst/linux/sunpro/c/bin/hbrun Terminated at: 2010.05.20 22:26:52 Unrecoverable error 6005: Exception SIGSEGV at address 0x1b800ad5268 Called from GET(73) Called from GETNEW(1978) Called from __GET(70) Called from HB_DOTPROMPT(162) in ../../../hbrun.prg Called from _APPMAIN(124) in ../../../hbrun.prg ------------------------------------------------------------------------ (backtraces for both cases are below). this only happens if hbrun is requested to run interactively (eg. using the dot console); if it is to run a program (at least a simple one), it's ok. i also have not been able to find anything similar with the other compilers i'm testing with. build environment is ubuntu 10.04/x64 and ubuntu 6.06/i386, with the following settings: unset ${!HB_*} export HB_BUILD_DEBUG=yes export HB_COMMERCE=yes export HB_BUILD_OPTIM=no export HB_CONTRIBLIBS=no export HB_WITH_PCRE=yes export HB_WITH_ZLIB=yes export HB_PLATFORM=linux export HB_COMPILER=sunpro export HB_BUILD_MODE=cpp export HB_INSTALL_PREFIX=$appdir/inst/$HB_PLATFORM/$HB_COMPILER/$HB_BUILD_MODE (HB_WITH_PCRE and HB_WITH_ZLIB are not present when building head) sunpro is cc: Sun C 5.10 Linux_i386 2009/06/03 (CC doesn't work for a while, barfing on some system headers). here's what gdb has to say about this (this particular one being ubuntu 10.04/x64; 6.06/i386 is essentially the same, save for the addresses): this is the backtrace for r12466, where the problem originally was introduced: pinky:~/w/xhb/hbci/harbour-bisect/harbour-r12466$ gdb ./inst/linux/sunpro/c/bin/hbrun GNU gdb (GDB) 7.1-ubuntu Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /home/ice/w/xhb/hbci/harbour-bisect/harbour-r12466/inst/linux/sunpro/c/bin/hbrun...done. (gdb) run Starting program: /home/ice/w/xhb/hbci/harbour-bisect/harbour-r12466/inst/linux/sunpro/c/bin/hbrun [Thread debugging using libthread_db enabled] Program received signal SIGSEGV, Segmentation fault. 0x0000000000429ae1 in hb_vmPushStatic (uiStatic=1) at ../../../hvm.c:6960 6960 pStatic = ( ( PHB_ITEM ) hb_stackGetStaticsBase() )->item.asArray.value->pItems + uiStatic - 1; (gdb) bt full #0 0x0000000000429ae1 in hb_vmPushStatic (uiStatic=1) at ../../../hvm.c:6960 pStatic = 0xb6f788 #1 0x00000000004304a2 in hb_xvmPushStatic (uiStatic=1) at ../../../hvm.c:9037 No locals. #2 0x00000000005cd8fc in HB_FUN_GET () at tget.c:408 fValue = 32767 #3 0x0000000000425c0c in hb_vmProc (uiParams=0) at ../../../hvm.c:5720 sStackState = {lBaseItem = 29, ulPrivateBase = 0, pStatics = 0xb93418, uiClass = 0, uiMethod = 0, uiLineNo = 73, fDebugging = 0} pSym = 0xaf1c60 #4 0x000000000042fb2d in hb_xvmFunction (uiParams=0) at ../../../hvm.c:8918 No locals. #5 0x00000000005f538e in HB_FUN_GETNEW () at tget.c:9369 No locals. #6 0x0000000000425c0c in hb_vmProc (uiParams=5) at ../../../hvm.c:5720 sStackState = {lBaseItem = 21, ulPrivateBase = 0, pStatics = 0xb93418, uiClass = 0, uiMethod = 0, uiLineNo = 1975, fDebugging = 0} pSym = 0xaf3e70 #7 0x000000000042fb2d in hb_xvmFunction (uiParams=5) at ../../../hvm.c:8918 No locals. #8 0x00000000005f6690 in HB_FUN___GET () at tgetint.c:124 fValue = 0 #9 0x0000000000425c0c in hb_vmProc (uiParams=5) at ../../../hvm.c:5720 sStackState = {lBaseItem = 6, ulPrivateBase = 0, pStatics = 0xb93418, uiClass = 0, uiMethod = 0, uiLineNo = 70, fDebugging = 0} pSym = 0xad49c8 #10 0x0000000000414fad in hb_vmExecute (pCode=0x80a31e "\f\005\024\002\060\034", pSymbols=0xad4688) at ../../../hvm.c:1629 bCanRecover = 0 bDynCode = 0 piKeyPolls = 0xb4a880 #11 0x0000000000412ac7 in HB_FUN_HB_DOTPROMPT () at hbrun.c:280 pcode = "\r\t\001tJ\000$\210\000\260\r\000\024\000\260\016\000yy\024\002$\211\000\260\017\000\\ j\004OFF\000\024\002$\212\000\004\000\000P\002$\213\000\260\020\000j\005quit\000]\000\001\f\002\004\001\000P\006$\214\000\\\002P\a$\216\000\260\021\000_\001\f\001\034,$\217\000\260\003\000_\006\260\020\000_\001]\000\001\f\002\024\002$\220\000\260\022\000_\001\024\001$\221\000\260\023\000_\001\024\001\031\n$\223\000j\001\000P\001$\230\000_\003d\b\034\017$\231\000\260\024\000]\000\001\f\001P\003$\234\000\260\022\000_\001\024\001$\236\000\260\025\000\f\000P\004$\237\000\260\026\000\f\000P\005$\240\000\260\027\000_\004y\024\002\260\030\000j\002.\000\024\001$\242\000\260\016\000_\004\260\031\000\f\000\024\002\260\003\000_\002\260\032\000Y\031\000\001"... #12 0x0000000000425c0c in hb_vmProc (uiParams=0) at ../../../hvm.c:5720 sStackState = {lBaseItem = 1, ulPrivateBase = 0, pStatics = 0xb93418, uiClass = 0, uiMethod = 0, uiLineNo = 162, fDebugging = 0} pSym = 0xad4748 #13 0x0000000000414e6a in hb_vmExecute (pCode=0x80a1f8 "\024", pSymbols=0xad4688) at ../../../hvm.c:1616 bCanRecover = 0 bDynCode = 0 piKeyPolls = 0xb4a880 #14 0x0000000000412a97 in HB_FUN__APPMAIN () at hbrun.c:212 pcode = "\225\002\001tJ\000$U\000\260\001\000j\017HB_INC_INSTALL\000\f\001P\002$V\000\260\002\000_\002\f\001\037\025$W\000\260\003\000g\003\000j\003-I\000_\002H\024\002$Z\000\260\003\000g\003\000j\027-I/usr/include/harbour\000\024\002$[\000\260\0---Type <return> to continue, or q <return> to quit--- 03\000g\003\000j\035-I/usr/local/include/harbour\000\024\002$^\000\260\004\000\f\000y\017\035\062\001$_\000\032\342\000$e\000\260\005\000\024\000$f\000\032&\001$i\000\260\006\000j\017? hb_version()\000\024\001$j\000\032\a\001$l\000\260\a"... #15 0x0000000000425c0c in hb_vmProc (uiParams=0) at ../../../hvm.c:5720 sStackState = {lBaseItem = 0, ulPrivateBase = 0, pStatics = 0x0, uiClass = 0, uiMethod = 0, uiLineNo = 124, fDebugging = 0} pSym = 0xad4688 #16 0x0000000000413729 in hb_vmInit (bStartMainProc=1) at ../../../hvm.c:1071 argc = 1 argv = 0x7fffffffe3b8 iArgCount = 0 i = 1 #17 0x0000000000489c29 in main (argc=1, argv=0x7fffffffe3b8) at ../../../mainstd.c:96 No locals. (gdb) quit A debugging session is active. Inferior 1 [process 576] will be killed. Quit anyway? (y or n) y this is the trace for r14542, for which a bit more verbose dump is given by hbrun: pinky:~/w/xhb/hbci/harbour-bisect/harbour$ gdb ./inst/linux/sunpro/c/bin/hbrun GNU gdb (GDB) 7.1-ubuntu Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /home/ice/w/xhb/hbci/harbour-bisect/harbour/inst/linux/sunpro/c/bin/hbrun...done. (gdb) run Starting program: /home/ice/w/xhb/hbci/harbour-bisect/harbour/inst/linux/sunpro/c/bin/hbrun [Thread debugging using libthread_db enabled] Program received signal SIGSEGV, Segmentation fault. 0x0000000000498a28 in hb_vmPushStatic (uiStatic=1) at ../../../hvm.c:7038 7038 pStatic = ( ( PHB_ITEM ) hb_stackGetStaticsBase() )->item.asArray.value->pItems + uiStatic - 1; (gdb) bt full #0 0x0000000000498a28 in hb_vmPushStatic (uiStatic=1) at ../../../hvm.c:7038 pStatic = 0xb155d8 #1 0x000000000049f0af in hb_xvmPushStatic (uiStatic=1) at ../../../hvm.c:9176 No locals. #2 0x000000000063ef59 in HB_FUN_GET () at tget.c:406 fValue = 32767 #3 0x0000000000494ef4 in hb_vmProc (uiParams=0) at ../../../hvm.c:5768 sStackState = {lBaseItem = 29, ulPrivateBase = 0, pStatics = 0xb3e1c8, uiClass = 0, uiMethod = 0, uiLineNo = 73, fDebugging = 0} pSym = 0xad5270 #4 0x000000000049e6b1 in hb_xvmFunction (uiParams=0) at ../../../hvm.c:9039 No locals. #5 0x00000000006657d4 in HB_FUN_GETNEW () at tget.c:9386 No locals. #6 0x0000000000494ef4 in hb_vmProc (uiParams=5) at ../../../hvm.c:5768 sStackState = {lBaseItem = 21, ulPrivateBase = 0, pStatics = 0xb3e1c8, uiClass = 0, uiMethod = 0, uiLineNo = 1978, fDebugging = 0} pSym = 0xad74a0 #7 0x000000000049e6b1 in hb_xvmFunction (uiParams=5) at ../../../hvm.c:9039 No locals. #8 0x0000000000666a21 in HB_FUN___GET () at tgetint.c:120 fValue = 0 #9 0x0000000000494ef4 in hb_vmProc (uiParams=5) at ../../../hvm.c:5768 sStackState = {lBaseItem = 6, ulPrivateBase = 0, pStatics = 0xb3e1c8, uiClass = 0, uiMethod = 0, uiLineNo = 70, fDebugging = 0} pSym = 0xa88dc8 #10 0x0000000000485539 in hb_vmExecute (pCode=0x7c8f0e "\f\005\024\002\060\034", pSymbols=0xa88a88) at ../../../hvm.c:1631 bCanRecover = 0 bDynCode = 0 piKeyPolls = 0xaf0648 #11 0x00000000004047ad in HB_FUN_HB_DOTPROMPT () at hbrun.c:276 pcode = "\r\t\001tJ\000$\210\000\260\r\000\024\000\260\016\000yy\024\002$\211\000\260\017\000\\ j\004OFF\000\024\002$\212\000\004\000\000P\002$\213\000\260\020\000j\005quit\000]\000\001\f\002\004\001\000P\006$\214\000\\\002P\a$\216\000\260\021\000_\001\f\001\034,$\217\000\260\003\000_\006\260\020\000_\001]\000\001\f\002\024\002$\220\000\260\022\000_\001\024\001$\221\000\260\023\000_\001\024\001\031\n$\223\000j\001\000P\001$\230\000_\003d\b\034\017$\231\000\260\024\000]\000\001\f\001P\003$\234\000\260\022\000_\001\024\001$\236\000\260\025\000\f\000P\004$\237\000\260\026\000\f\000P\005$\240\000\260\027\000_\004y\024\002\260\030\000j\002.\000\024\001$\242\000\260\016\000_\004\260\031\000\f\000\024\002\260\003\000_\002\260\032\000Y\031\000\001"... #12 0x0000000000494ef4 in hb_vmProc (uiParams=0) at ../../../hvm.c:5768 sStackState = {lBaseItem = 1, ulPrivateBase = 0, pStatics = 0xb3e1c8, uiClass = 0, uiMethod = 0, uiLineNo = 162, fDebugging = 0} pSym = 0xa88b48 #13 0x0000000000485416 in hb_vmExecute (pCode=0x7c8de8 "\024", pSymbols=0xa88a88) at ../../../hvm.c:1618 bCanRecover = 0 bDynCode = 0 piKeyPolls = 0xaf0648 #14 0x000000000040478d in HB_FUN__APPMAIN () at hbrun.c:208 pcode = "\225\002\001tJ\000$U\000\260\001\000j\017HB_INC_INSTALL\000\f\001P\002$V\000\260\002\000_\002\f\001\037\025$W\000\260\003\000g\003\000j\003-I\000_\002H\024\002$Z\000\260\003\000g\003\000j\027-I/usr/include/harbour\000\024\002$[\000\260\0---Type <return> to continue, or q <return> to quit--- 03\000g\003\000j\035-I/usr/local/include/harbour\000\024\002$^\000\260\004\000\f\000y\017\035\062\001$_\000\032\342\000$e\000\260\005\000\024\000$f\000\032&\001$i\000\260\006\000j\017? hb_version()\000\024\001$j\000\032\a\001$l\000\260\a"... #15 0x0000000000494ef4 in hb_vmProc (uiParams=0) at ../../../hvm.c:5768 sStackState = {lBaseItem = 0, ulPrivateBase = 0, pStatics = 0x0, uiClass = 0, uiMethod = 0, uiLineNo = 124, fDebugging = 0} pSym = 0xa88a88 #16 0x0000000000483ecb in hb_vmInit (bStartMainProc=1) at ../../../hvm.c:1075 argc = 1 argv = 0x7fffffffe3f8 iArgCount = 0 i = 1 #17 0x00000000004f8d16 in main (argc=1, argv=0x7fffffffe3f8) at ../../../mainstd.c:96 No locals. (gdb) quit A debugging session is active. Inferior 1 [process 7735] will be killed. Quit anyway? (y or n) yes -- [-] mkdir /nonexistent _______________________________________________ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour