dbx crashes when (incorrectly) using .. syntax on vectors

Given code:

[code]#include <vector>

int main() {

std::vector<int> a(2);

return 0;

}[/code]

Compile and run with dbx:

[code]% CC -g t.cc

% dbx -q a.out

(dbx) stop at 3

(2) stop at "t.cc":3

(dbx) run

Running: a.out

(process id 25017)

stopped in main at line 3 in file "t.cc"

3std::vector<int> a(2);

(dbx) p a[0..1]

dbx: internal error: signal SIGSEGV (no mapping at the fault address)

dbx's coredump will appear in /tmp

Abort (core dumped)[/code]

Understand that .. syntax is not supported on c++ vectors, but would appreciate another

errormessage.

version of "/opt/SUNWspro/bin/dbx": Sun Dbx Debugger 7.5 Patch 121023-01 2006/02/09

[789 byte] By [willoch] at [2007-11-26 8:20:38]
# 1

Actually command "p a[0..1] is considered legal syntactically

after we added array slice support in dbx. Problem here is

that this command involves a target function call and dbx

failed to validate the type of the array_slice before converting

and passing it to method operator "[]".

I will enter this problem to our bug database. Thanks for the

report.

wpan at 2007-7-6 21:26:03 > top of Java-index,Development Tools,Solaris and Linux Development Tools...