nvcc Assertion failure Compilation error using nvcc with -G flag

I am running into a problem when I am compiling a kernel

Environment Details:
I am running Ubuntu 9.10 64bit OS.
NVIDIA driver version 190
nvcc v2.3:
nvcc: NVIDIA ® Cuda compiler driver
Copyright © 2005-2009 NVIDIA Corporation
Built on Thu_Jul_30_09:24:36_PDT_2009
Cuda compilation tools, release 2.3, V0.2.1221

When I am compiling a kernel with -G option (for cuda-gdb), I am getting the following error:

Assertion failure at line 1996 of …/…/be/cg/cgemit.cxx:

Compiler Error in file /tmp/tmpxft_0000476c_00000000-4_.cpp3.i during Assembly phase:

enum for operand 1 is not in range

nvopencc INTERNAL ERROR: /usr/local/cuda/open64/lib//be returned non-zero status 1

I also see several warning messages of the form,
.cu(1025): Warning: Cannot tell what pointer points to, assuming global memory space

Not sure if these errors are related.

Anyone has seen this before and know of a fix or a work-around?

Thank you

First, you should try with the 3.0 beta.