# segmentation fault on nvcc

**URL:** <https://forums.developer.nvidia.com/t/segmentation-fault-on-nvcc/5999>\
**Category:** CUDA Programming and Performance\
**Created:** [October 20, 2008, 10:55pm UTC](https://forums.developer.nvidia.com/t/segmentation-fault-on-nvcc/5999 "2008-10-20T22:55:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sbernste](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@sbernste](https://forums.developer.nvidia.com/u/sbernste)\
**Post date:** [October 20, 2008, 10:55pm UTC](https://forums.developer.nvidia.com/t/segmentation-fault-on-nvcc/5999/1 "2008-10-20T22:55:43Z")

</div>

Gentlemen,

I am getting a segmentation fault trying to compile code using nvcc version V0.2.1221. The code compiles and runs correctly in emulator mode. By removing sections of my code, I managed to coax an actual error message from nvcc. Here it is.

/usr/local/cuda/bin/nvcc --compiler-options -fno-strict-aliasing -DDEBUG -I. -I/usr/local/cuda/include -I/home/sbernste/NVIDIA\_CUDA\_SDK/projects/…/common/inc -DUNIX -O3 --compiler-options -W --compiler-options -Wall --compiler-options -Wimplicit --compiler-options -Wswitch --compiler-options -Wformat --compiler-options -Wchar-subscripts --compiler-options -Wparentheses --compiler-options -Wmultichar --compiler-options -Wtrigraphs --compiler-options -Wpointer-arith --compiler-options -Wcast-align --compiler-options -Wreturn-type --compiler-options -Wno-unused-function --compiler-options -fno-strict-aliasing -o obj/release/worker.cu\_o -c worker.cu  
ptxas /tmp/tmpxft\_00005512\_00000000-2\_worker.ptx, line 145; error : Call has wrong number of parameters  
Segmentation fault  
make: \*\*\* [obj/release/worker.cu\_o] Error 255

I’m a newbie at nvidia coding, so I am probably doing something stupid. Any ideas?

– stuck

---

<div class="post-metadata">

**Author:** ![tmurray](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@tmurray](https://forums.developer.nvidia.com/u/tmurray)\
**Post date:** [October 20, 2008, 10:58pm UTC](https://forums.developer.nvidia.com/t/segmentation-fault-on-nvcc/5999/2 "2008-10-20T22:58:40Z")

</div>

can you post code?

also, you are using VS2005 SP1, right?

---

<div class="post-metadata">

**Author:** ![sbernste](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@sbernste](https://forums.developer.nvidia.com/u/sbernste)\
**Post date:** [October 21, 2008, 12:30am UTC](https://forums.developer.nvidia.com/t/segmentation-fault-on-nvcc/5999/3 "2008-10-21T00:30:55Z")

</div>

> [@](#):
>
> can you post code?
> 
> also, you are using VS2005 SP1, right?
> 
> [snapback]454452[/snapback]

My employer does not permit me to post the code, and it is way too long to post anyway. I am trying to whittle it down and “sanitize” it.

Please forgive my ignorance, but what is V2005 SP1? I am running under ubuntu.

---

<div class="post-metadata">

**Author:** ![tmurray](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@tmurray](https://forums.developer.nvidia.com/u/tmurray)\
**Post date:** [October 21, 2008, 12:45am UTC](https://forums.developer.nvidia.com/t/segmentation-fault-on-nvcc/5999/4 "2008-10-21T00:45:32Z")

</div>

sorry, for some reason I thought you were running on Windows. momentary lapse of reason, I guess.

and yeah, we can’t really do much unless we have a repro case. I’ve never seen that error, so I’m not sure what could be happening.

---

<div class="post-metadata">

**Author:** ![sbernste](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@sbernste](https://forums.developer.nvidia.com/u/sbernste)\
**Post date:** [October 21, 2008, 5:33pm UTC](https://forums.developer.nvidia.com/t/segmentation-fault-on-nvcc/5999/5 "2008-10-21T17:33:05Z")

</div>

> [@](#):
>
> sorry, for some reason I thought you were running on Windows. momentary lapse of reason, I guess.
> 
> and yeah, we can’t really do much unless we have a repro case. I’ve never seen that error, so I’m not sure what could be happening.
> 
> [snapback]454489[/snapback]

Is there any way I can submit a bug report?

---

<div class="post-metadata">

**Author:** ![netllama](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@netllama](https://forums.developer.nvidia.com/u/netllama)\
**Post date:** [October 27, 2008, 3:09pm UTC](https://forums.developer.nvidia.com/t/segmentation-fault-on-nvcc/5999/6 "2008-10-27T15:09:09Z")

</div>

A bug report requires you to provide a means of reproducing the failure. If you can’t post your code publicly, please send me or tmurray a PM with a test app that reproduces the failure.

---

<div class="post-metadata">

**Author:** ![sbernste](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@sbernste](https://forums.developer.nvidia.com/u/sbernste)\
**Post date:** [October 27, 2008, 4:54pm UTC](https://forums.developer.nvidia.com/t/segmentation-fault-on-nvcc/5999/7 "2008-10-27T16:54:48Z")

</div>

> [@](#):
>
> A bug report requires you to provide a means of reproducing the failure.&nbsp; If you can’t post your code publicly, please send me or tmurray a PM with a test app that reproduces the failure.
> 
> [snapback]457144[/snapback]

I sent Tim the code last Friday.
