Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Demo crashes on Ubuntu 12.04 #23

Closed
ghost opened this issue Nov 18, 2013 · 19 comments
Closed

Demo crashes on Ubuntu 12.04 #23

ghost opened this issue Nov 18, 2013 · 19 comments

Comments

@ghost
Copy link

ghost commented Nov 18, 2013

Followed build instructions. Demo crashes. Unfortunately there's no backtrace. How do I tell the build script to do a debug build?

gdb ./bin/App_Bullet3_OpenCL_Demos_clew_gmake_x64_release 
runGNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2.1) 7.4-2012.04
Copyright (C) 2012 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://bugs.launchpad.net/gdb-linaro/>...
Reading symbols from /home/scrawl/Dev/bullet3/bin/App_Bullet3_OpenCL_Demos_clew_gmake_x64_release...
(no debugging symbols found)...done.
(gdb) run
Starting program: /home/scrawl/Dev/bullet3/bin/App_Bullet3_OpenCL_Demos_clew_gmake_x64_release 
Traceback (most recent call last):
  File "/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.18-gdb.py", line 59, in <module>
    from libstdcxx.v6.printers import register_libstdcxx_printers
ImportError: No module named libstdcxx.v6.printers
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
main start
    visual 0x27 selected
GL_VENDOR=NVIDIA Corporation
GL_RENDERER=GeForce GTX 560 Ti/PCIe/SSE2
GL_VERSION=4.3.0 NVIDIA 319.32
GL_SHADING_LANGUAGE_VERSION=4.30 NVIDIA via Cg compiler
-----------------------------------------------------
started GwenUserInterfaceinit fontsclewInit succesfull using libOpenCL.so.1
numDevices=1
[New Thread 0x7fffe5d96700 (LWP 15563)]
[New Thread 0x7fffe488f700 (LWP 15564)]
[New Thread 0x7fffe408e700 (LWP 15565)]
[New Thread 0x7fffe388d700 (LWP 15566)]
[New Thread 0x7fffe308c700 (LWP 15567)]
[New Thread 0x7fffe288b700 (LWP 15568)]
compiling kernel copyTransformsToVBOKernel ready. 
clBuildProgram successfully compiled cached binary: cache/sat.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel findSeparatingAxisKernel ready. 
compiling kernel findConcaveSeparatingAxisKernel ready. 
compiling kernel findCompoundPairsKernel ready. 
compiling kernel processCompoundPairsKernel ready. 
clBuildProgram successfully compiled cached binary: cache/satClipHullContacts.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel clipHullHullKernel ready. 
compiling kernel clipCompoundsHullHullKernel ready. 
compiling kernel findClippingFacesKernel ready. 
compiling kernel clipFacesAndContactReductionKernel ready. 
compiling kernel clipHullHullConcaveConvexKernel ready. 
compiling kernel extractManifoldAndAddContactKernel ready. 
compiling kernel newContactReductionKernel ready. 
clBuildProgram successfully compiled cached binary: cache/bvhTraversal.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel bvhTraversalKernel ready. 
clBuildProgram successfully compiled cached binary: cache/primitiveContacts.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel primitiveContactsKernel ready. 
compiling kernel findConcaveSphereContactsKernel ready. 
compiling kernel processCompoundPairsPrimitivesKernel ready. 
clBuildProgram successfully compiled cached binary: cache/sap.cl.GeForce GTX 560 Ti.319.32.bin
clBuildProgram successfully compiled cached binary: cache/sapFast.cl.GeForce GTX 560 Ti.319.32.bin
clBuildProgram successfully compiled cached binary: cache/PrefixScanFloat4Kernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel LocalScanKernel ready. 
compiling kernel TopLevelScanKernel ready. 
compiling kernel AddOffsetKernel ready. 
compiling kernel computePairsKernelTwoArrays ready. 
compiling kernel prepareSumVarianceKernel ready. 
compiling kernel computePairsIncremental3dSapKernel ready. 
compiling kernel computePairsKernel ready. 
compiling kernel flipFloatKernel ready. 
compiling kernel copyAabbsKernel ready. 
compiling kernel scatterKernel ready. 
clBuildProgram successfully compiled cached binary: cache/PrefixScanKernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel LocalScanKernel ready. 
compiling kernel TopLevelScanKernel ready. 
compiling kernel AddOffsetKernel ready. 
clBuildProgram successfully compiled cached binary: cache/FillKernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel FillIntKernel ready. 
compiling kernel FillUnsignedIntKernel ready. 
compiling kernel FillFloatKernel ready. 
compiling kernel FillInt2Kernel ready. 
clBuildProgram successfully compiled cached binary: cache/RadixSort32Kernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel StreamCountSortDataKernel ready. 
compiling kernel StreamCountKernel ready. 
compiling kernel SortAndScatterSortDataKernel ready. 
compiling kernel SortAndScatterKernel ready. 
compiling kernel PrefixScanKernel ready. 
clBuildProgram successfully compiled cached binary: cache/PrefixScanKernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel LocalScanKernel ready. 
compiling kernel TopLevelScanKernel ready. 
compiling kernel AddOffsetKernel ready. 
clBuildProgram successfully compiled cached binary: cache/jointSolver.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel solveJointConstraintRows ready. 
compiling kernel initSolverBodies ready. 
compiling kernel getInfo1Kernel ready. 
compiling kernel initBatchConstraintsKernel ready. 
compiling kernel getInfo2Kernel ready. 
compiling kernel writeBackVelocitiesKernel ready. 
compiling kernel breakViolatedConstraintsKernel ready. 
clBuildProgram successfully compiled cached binary: cache/PrefixScanKernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel LocalScanKernel ready. 
compiling kernel TopLevelScanKernel ready. 
compiling kernel AddOffsetKernel ready. 
clBuildProgram successfully compiled cached binary: cache/FillKernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel FillIntKernel ready. 
compiling kernel FillUnsignedIntKernel ready. 
compiling kernel FillFloatKernel ready. 
compiling kernel FillInt2Kernel ready. 
clBuildProgram successfully compiled cached binary: cache/solverUtils.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel CountBodiesKernel ready. 
compiling kernel ContactToConstraintSplitKernel ready. 
compiling kernel ClearVelocitiesKernel ready. 
compiling kernel AverageVelocitiesKernel ready. 
compiling kernel UpdateBodyVelocitiesKernel ready. 
compiling kernel SolveContactJacobiKernel ready. 
compiling kernel SolveFrictionJacobiKernel ready. 
clBuildProgram successfully compiled cached binary: cache/PrefixScanKernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel LocalScanKernel ready. 
compiling kernel TopLevelScanKernel ready. 
compiling kernel AddOffsetKernel ready. 
clBuildProgram successfully compiled cached binary: cache/FillKernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel FillIntKernel ready. 
compiling kernel FillUnsignedIntKernel ready. 
compiling kernel FillFloatKernel ready. 
compiling kernel FillInt2Kernel ready. 
clBuildProgram successfully compiled cached binary: cache/RadixSort32Kernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel StreamCountSortDataKernel ready. 
compiling kernel StreamCountKernel ready. 
compiling kernel SortAndScatterSortDataKernel ready. 
compiling kernel SortAndScatterKernel ready. 
compiling kernel PrefixScanKernel ready. 
clBuildProgram successfully compiled cached binary: cache/PrefixScanKernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel LocalScanKernel ready. 
compiling kernel TopLevelScanKernel ready. 
compiling kernel AddOffsetKernel ready. 
clBuildProgram successfully compiled cached binary: cache/BoundSearchKernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel SearchSortDataLowerKernel ready. 
compiling kernel SearchSortDataUpperKernel ready. 
compiling kernel SubtractKernel ready. 
clBuildProgram successfully compiled cached binary: cache/FillKernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel FillIntKernel ready. 
compiling kernel FillUnsignedIntKernel ready. 
compiling kernel FillFloatKernel ready. 
compiling kernel FillInt2Kernel ready. 
clBuildProgram successfully compiled cached binary: cache/solveContact.cl.GeForce GTX 560 Ti.319.32.bin
clBuildProgram successfully compiled cached binary: cache/solveFriction.cl.GeForce GTX 560 Ti.319.32.bin
clBuildProgram successfully compiled cached binary: cache/solverSetup2.cl.GeForce GTX 560 Ti.319.32.bin
clBuildProgram successfully compiled cached binary: cache/solverSetup.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel BatchSolveKernelFriction ready. 
compiling kernel BatchSolveKernelContact ready. 
compiling kernel ContactToConstraintKernel ready. 
compiling kernel SetSortDataKernel ready. 
compiling kernel ReorderContactKernel ready. 
compiling kernel CopyConstraintKernel ready. 
clBuildProgram successfully compiled cached binary: cache/batchingKernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel CreateBatches ready. 
clBuildProgram successfully compiled cached binary: cache/batchingKernelsNew.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel CreateBatchesNew ready. 
clBuildProgram successfully compiled cached binary: cache/PrefixScanKernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel LocalScanKernel ready. 
compiling kernel TopLevelScanKernel ready. 
compiling kernel AddOffsetKernel ready. 
clBuildProgram successfully compiled cached binary: cache/FillKernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel FillIntKernel ready. 
compiling kernel FillUnsignedIntKernel ready. 
compiling kernel FillFloatKernel ready. 
compiling kernel FillInt2Kernel ready. 
clBuildProgram successfully compiled cached binary: cache/RadixSort32Kernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel StreamCountSortDataKernel ready. 
compiling kernel StreamCountKernel ready. 
compiling kernel SortAndScatterSortDataKernel ready. 
compiling kernel SortAndScatterKernel ready. 
compiling kernel PrefixScanKernel ready. 
clBuildProgram successfully compiled cached binary: cache/PrefixScanKernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel LocalScanKernel ready. 
compiling kernel TopLevelScanKernel ready. 
compiling kernel AddOffsetKernel ready. 
clBuildProgram successfully compiled cached binary: cache/BoundSearchKernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel SearchSortDataLowerKernel ready. 
compiling kernel SearchSortDataUpperKernel ready. 
compiling kernel SubtractKernel ready. 
clBuildProgram successfully compiled cached binary: cache/FillKernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel FillIntKernel ready. 
compiling kernel FillUnsignedIntKernel ready. 
compiling kernel FillFloatKernel ready. 
compiling kernel FillInt2Kernel ready. 
clBuildProgram successfully compiled cached binary: cache/solveContact.cl.GeForce GTX 560 Ti.319.32.bin
clBuildProgram successfully compiled cached binary: cache/solveFriction.cl.GeForce GTX 560 Ti.319.32.bin
clBuildProgram successfully compiled cached binary: cache/solverSetup2.cl.GeForce GTX 560 Ti.319.32.bin
clBuildProgram successfully compiled cached binary: cache/solverSetup.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel BatchSolveKernelFriction ready. 
compiling kernel BatchSolveKernelContact ready. 
compiling kernel ContactToConstraintKernel ready. 
compiling kernel SetSortDataKernel ready. 
compiling kernel SetDeterminismSortDataBodyA ready. 
compiling kernel SetDeterminismSortDataBodyB ready. 
compiling kernel SetDeterminismSortDataChildShapeA ready. 
compiling kernel SetDeterminismSortDataChildShapeB ready. 
compiling kernel ReorderContactKernel ready. 
compiling kernel CopyConstraintKernel ready. 
clBuildProgram successfully compiled cached binary: cache/batchingKernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel CreateBatches ready. 
clBuildProgram successfully compiled cached binary: cache/batchingKernelsNew.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel CreateBatchesNew ready. 
clBuildProgram successfully compiled cached binary: cache/rayCastKernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel rayCastKernel ready. 
clBuildProgram successfully compiled cached binary: cache/integrateKernel.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel integrateTransformsKernel ready. 
clBuildProgram successfully compiled cached binary: cache/updateAabbsKernel.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel initializeGpuAabbsFull ready. 
-----------------------------------------------------
Demo settings:
  SelectedDemo=0, demoname = BoxTrimesh
  x_dim=30, y_dim=30, z_dim=30
  x_gap=16.299999, y_gap=6.300000, z_gap=16.299999

OpenCL settings:
  Preferred cl_device index -1
  Preferred cl_platform index-1

Platform info:
  CL_PLATFORM_VENDOR:           NVIDIA Corporation
  CL_PLATFORM_NAME:             NVIDIA CUDA
  CL_PLATFORM_VERSION:          OpenCL 1.1 CUDA 4.2.1

Device Info:
  CL_DEVICE_NAME:           GeForce GTX 560 Ti
  CL_DEVICE_VENDOR:             NVIDIA Corporation
  CL_DRIVER_VERSION:            319.32
  CL_DEVICE_TYPE:           CL_DEVICE_TYPE_GPU
  CL_DEVICE_MAX_COMPUTE_UNITS:      8
  CL_DEVICE_MAX_WORK_ITEM_DIMENSIONS:   3
  CL_DEVICE_MAX_WORK_ITEM_SIZES:    1024 / 1024 / 64 
  CL_DEVICE_MAX_WORK_GROUP_SIZE:    1024
  CL_DEVICE_MAX_CLOCK_FREQUENCY:    1800 MHz
  CL_DEVICE_ADDRESS_BITS:       32
  CL_DEVICE_MAX_MEM_ALLOC_SIZE:     255 MByte
  CL_DEVICE_GLOBAL_MEM_SIZE:        1023 MByte
  CL_DEVICE_ERROR_CORRECTION_SUPPORT:   no
  CL_DEVICE_LOCAL_MEM_TYPE:     local
  CL_DEVICE_LOCAL_MEM_SIZE:     48 KByte
  CL_DEVICE_MAX_CONSTANT_BUFFER_SIZE:   64 KByte
  CL_DEVICE_QUEUE_PROPERTIES:       CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE
  CL_DEVICE_QUEUE_PROPERTIES:       CL_QUEUE_PROFILING_ENABLE
  CL_DEVICE_IMAGE_SUPPORT:      1
  CL_DEVICE_MAX_READ_IMAGE_ARGS:    128
  CL_DEVICE_MAX_WRITE_IMAGE_ARGS:   8

  CL_DEVICE_IMAGE <dim>         2D_MAX_WIDTH     32768
                    2D_MAX_HEIGHT    32768
                    3D_MAX_WIDTH     2048
                    3D_MAX_HEIGHT    2048
                    3D_MAX_DEPTH     2048

  CL_DEVICE_EXTENSIONS:cl_khr_byte_addressable_store cl_khr_icd cl_khr_gl_sharing cl_nv_compiler_options cl_nv_device_attribute_query cl_nv_pragma_unroll  cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_fp64 
  CL_DEVICE_PREFERRED_VECTOR_WIDTH_<t>  CHAR 1, SHORT 1, INT 1,LONG 1, FLOAT 1, DOUBLE 1




Program received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()
(gdb) bt
#0  0x0000000000000000 in ?? ()
#1  0x00000000004369fd in ?? ()
#2  0x0000000000435029 in ?? ()
#3  0x000000000043507a in ?? ()
#4  0x00000000004061d0 in ?? ()
#5  0x00007ffff697e76d in __libc_start_main (main=0x405620, argc=1, ubp_av=0x7fffffffe638, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe628)
    at libc-start.c:226
#6  0x00000000004089d9 in ?? ()
#7  0x00007fffffffe628 in ?? ()
#8  0x000000000000001c in ?? ()
#9  0x0000000000000001 in ?? ()
#10 0x00007fffffffe90c in ?? ()
#11 0x0000000000000000 in ?? ()
@steveneliuk
Copy link

Look in the makefile in gmake folder... specify debug32, etc...

@ghost
Copy link
Author

ghost commented Nov 19, 2013

Right, now I did config=debug64 make.
Still not showing symbols.

Here's what 'thread apply all bt' shows, just in case.

Thread 7 (Thread 0x7fffe288b700 (LWP 16219)):
#0 sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:86
#1 0x00007fffe68d3dde in ?? () from /usr/lib/nvidia-319-updates/libnvidia-opencl.so.1
#2 0x00007fffe6446e5d in ?? () from /usr/lib/nvidia-319-updates/libnvidia-opencl.so.1
#3 0x00007fffe68d5729 in ?? () from /usr/lib/nvidia-319-updates/libnvidia-opencl.so.1
#4 0x00007ffff6747e9a in start_thread (arg=0x7fffe288b700) at pthread_create.c:308
#5 0x00007ffff6a513fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6 0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7fffe308c700 (LWP 16218)):
#0 sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:86
#1 0x00007fffe68d3dde in ?? () from /usr/lib/nvidia-319-updates/libnvidia-opencl.so.1
#2 0x00007fffe6446e5d in ?? () from /usr/lib/nvidia-319-updates/libnvidia-opencl.so.1
#3 0x00007fffe68d5729 in ?? () from /usr/lib/nvidia-319-updates/libnvidia-opencl.so.1
#4 0x00007ffff6747e9a in start_thread (arg=0x7fffe308c700) at pthread_create.c:308
#5 0x00007ffff6a513fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6 0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7fffe388d700 (LWP 16217)):
#0 sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:86
#1 0x00007fffe68d3dde in ?? () from /usr/lib/nvidia-319-updates/libnvidia-opencl.so.1
#2 0x00007fffe6446e5d in ?? () from /usr/lib/nvidia-319-updates/libnvidia-opencl.so.1
#3 0x00007fffe68d5729 in ?? () from /usr/lib/nvidia-319-updates/libnvidia-opencl.so.1
#4 0x00007ffff6747e9a in start_thread (arg=0x7fffe388d700) at pthread_create.c:308
#5 0x00007ffff6a513fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6 0x0000000000000000 in ?? ()

---Type to continue, or q to quit---
Thread 4 (Thread 0x7fffe408e700 (LWP 16216)):
#0 sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:86
#1 0x00007fffe68d3dde in ?? () from /usr/lib/nvidia-319-updates/libnvidia-opencl.so.1
#2 0x00007fffe6446e5d in ?? () from /usr/lib/nvidia-319-updates/libnvidia-opencl.so.1
#3 0x00007fffe68d5729 in ?? () from /usr/lib/nvidia-319-updates/libnvidia-opencl.so.1
#4 0x00007ffff6747e9a in start_thread (arg=0x7fffe408e700) at pthread_create.c:308
#5 0x00007ffff6a513fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7fffe488f700 (LWP 16215)):
#0 sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:86
#1 0x00007fffe68d3dde in ?? () from /usr/lib/nvidia-319-updates/libnvidia-opencl.so.1
#2 0x00007fffe6446e5d in ?? () from /usr/lib/nvidia-319-updates/libnvidia-opencl.so.1
#3 0x00007fffe68d5729 in ?? () from /usr/lib/nvidia-319-updates/libnvidia-opencl.so.1
#4 0x00007ffff6747e9a in start_thread (arg=0x7fffe488f700) at pthread_create.c:308
#5 0x00007ffff6a513fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fffe5d96700 (LWP 16214)):
#0 0x00007ffff6a4a763 in select () at ../sysdeps/unix/syscall-template.S:82
#1 0x00007fffe68d437b in ?? () from /usr/lib/nvidia-319-updates/libnvidia-opencl.so.1
#2 0x00007fffe63b10db in ?? () from /usr/lib/nvidia-319-updates/libnvidia-opencl.so.1
#3 0x00007fffe68d5729 in ?? () from /usr/lib/nvidia-319-updates/libnvidia-opencl.so.1
#4 0x00007ffff6747e9a in start_thread (arg=0x7fffe5d96700) at pthread_create.c:308
#5 0x00007ffff6a513fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7ffff7fca740 (LWP 16211)):
---Type to continue, or q to quit---
#0 0x0000000000000000 in ?? ()
#1 0x00000000004369fd in ?? ()
#2 0x0000000000435029 in ?? ()
#3 0x000000000043507a in ?? ()
#4 0x00000000004061d0 in ?? ()
#5 0x00007ffff697e76d in __libc_start_main (main=0x405620, argc=1, ubp_av=0x7fffffffe638, init=, fini=, rtld_fini=, stack_end=0x7fffffffe628)
at libc-start.c:226
#6 0x00000000004089d9 in ?? ()
#7 0x00007fffffffe628 in ?? ()
#8 0x000000000000001c in ?? ()
#9 0x0000000000000001 in ?? ()
#10 0x00007fffffffe90b in ?? ()
#11 0x0000000000000000 in ?? ()

@erwincoumans
Copy link
Member

Please use the latest revision and use the --debug_kernel_launch command-line option, and provide full output (including the launch line)

Thanks!

@erwincoumans
Copy link
Member

I think you need to use the following line for debug:
make config=debug64

@ghost
Copy link
Author

ghost commented Nov 19, 2013

Here you go (symbols worked this time)

gdb ./bin/App_Bullet3_OpenCL_Demos_clew_gmake_x64_debug
GNU gdb (GDB) 7.6.1
Copyright (C) 2013 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-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/scrawl/Dev/bullet3/bin/App_Bullet3_OpenCL_Demos_clew_gmake_x64_debug...rdone.
(gdb) run --debug_kernel_launch
Starting program: /home/scrawl/Dev/bullet3/./bin/App_Bullet3_OpenCL_Demos_clew_gmake_x64_debug --debug_kernel_launch
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
main start
    visual 0x27 selected
GL_VENDOR=NVIDIA Corporation
GL_RENDERER=GeForce GTX 560 Ti/PCIe/SSE2
GL_VERSION=4.3.0 NVIDIA 319.32
GL_SHADING_LANGUAGE_VERSION=4.30 NVIDIA via Cg compiler
-----------------------------------------------------
started GwenUserInterfaceinit fontsclewInit succesfull using libOpenCL.so.1
numDevices=1
[New Thread 0x7fffe5d96700 (LWP 28104)]
[New Thread 0x7fffe488f700 (LWP 28105)]
[New Thread 0x7fffe408e700 (LWP 28106)]
[New Thread 0x7fffe388d700 (LWP 28107)]
[New Thread 0x7fffe308c700 (LWP 28108)]
[New Thread 0x7fffe288b700 (LWP 28109)]
compiling kernel copyTransformsToVBOKernel ready. 
clBuildProgram successfully compiled cached binary: cache/sat.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel findSeparatingAxisKernel ready. 
compiling kernel findConcaveSeparatingAxisKernel ready. 
compiling kernel findCompoundPairsKernel ready. 
compiling kernel processCompoundPairsKernel ready. 
clBuildProgram successfully compiled cached binary: cache/satClipHullContacts.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel clipHullHullKernel ready. 
compiling kernel clipCompoundsHullHullKernel ready. 
compiling kernel findClippingFacesKernel ready. 
compiling kernel clipFacesAndContactReductionKernel ready. 
compiling kernel clipHullHullConcaveConvexKernel ready. 
compiling kernel extractManifoldAndAddContactKernel ready. 
compiling kernel newContactReductionKernel ready. 
clBuildProgram successfully compiled cached binary: cache/bvhTraversal.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel bvhTraversalKernel ready. 
clBuildProgram successfully compiled cached binary: cache/primitiveContacts.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel primitiveContactsKernel ready. 
compiling kernel findConcaveSphereContactsKernel ready. 
compiling kernel processCompoundPairsPrimitivesKernel ready. 
clBuildProgram successfully compiled cached binary: cache/sap.cl.GeForce GTX 560 Ti.319.32.bin
clBuildProgram successfully compiled cached binary: cache/sapFast.cl.GeForce GTX 560 Ti.319.32.bin
clBuildProgram successfully compiled cached binary: cache/PrefixScanFloat4Kernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel LocalScanKernel ready. 
compiling kernel TopLevelScanKernel ready. 
compiling kernel AddOffsetKernel ready. 
compiling kernel computePairsKernelTwoArrays ready. 
compiling kernel prepareSumVarianceKernel ready. 
compiling kernel computePairsIncremental3dSapKernel ready. 
compiling kernel computePairsKernel ready. 
compiling kernel flipFloatKernel ready. 
compiling kernel copyAabbsKernel ready. 
compiling kernel scatterKernel ready. 
clBuildProgram successfully compiled cached binary: cache/PrefixScanKernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel LocalScanKernel ready. 
compiling kernel TopLevelScanKernel ready. 
compiling kernel AddOffsetKernel ready. 
clBuildProgram successfully compiled cached binary: cache/FillKernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel FillIntKernel ready. 
compiling kernel FillUnsignedIntKernel ready. 
compiling kernel FillFloatKernel ready. 
compiling kernel FillInt2Kernel ready. 
clBuildProgram successfully compiled cached binary: cache/RadixSort32Kernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel StreamCountSortDataKernel ready. 
compiling kernel StreamCountKernel ready. 
compiling kernel SortAndScatterSortDataKernel ready. 
compiling kernel SortAndScatterKernel ready. 
compiling kernel PrefixScanKernel ready. 
clBuildProgram successfully compiled cached binary: cache/PrefixScanKernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel LocalScanKernel ready. 
compiling kernel TopLevelScanKernel ready. 
compiling kernel AddOffsetKernel ready. 
clBuildProgram successfully compiled cached binary: cache/jointSolver.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel solveJointConstraintRows ready. 
compiling kernel initSolverBodies ready. 
compiling kernel getInfo1Kernel ready. 
compiling kernel initBatchConstraintsKernel ready. 
compiling kernel getInfo2Kernel ready. 
compiling kernel writeBackVelocitiesKernel ready. 
compiling kernel breakViolatedConstraintsKernel ready. 
clBuildProgram successfully compiled cached binary: cache/PrefixScanKernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel LocalScanKernel ready. 
compiling kernel TopLevelScanKernel ready. 
compiling kernel AddOffsetKernel ready. 
clBuildProgram successfully compiled cached binary: cache/FillKernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel FillIntKernel ready. 
compiling kernel FillUnsignedIntKernel ready. 
compiling kernel FillFloatKernel ready. 
compiling kernel FillInt2Kernel ready. 
clBuildProgram successfully compiled cached binary: cache/solverUtils.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel CountBodiesKernel ready. 
compiling kernel ContactToConstraintSplitKernel ready. 
compiling kernel ClearVelocitiesKernel ready. 
compiling kernel AverageVelocitiesKernel ready. 
compiling kernel UpdateBodyVelocitiesKernel ready. 
compiling kernel SolveContactJacobiKernel ready. 
compiling kernel SolveFrictionJacobiKernel ready. 
clBuildProgram successfully compiled cached binary: cache/PrefixScanKernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel LocalScanKernel ready. 
compiling kernel TopLevelScanKernel ready. 
compiling kernel AddOffsetKernel ready. 
clBuildProgram successfully compiled cached binary: cache/FillKernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel FillIntKernel ready. 
compiling kernel FillUnsignedIntKernel ready. 
compiling kernel FillFloatKernel ready. 
compiling kernel FillInt2Kernel ready. 
clBuildProgram successfully compiled cached binary: cache/RadixSort32Kernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel StreamCountSortDataKernel ready. 
compiling kernel StreamCountKernel ready. 
compiling kernel SortAndScatterSortDataKernel ready. 
compiling kernel SortAndScatterKernel ready. 
compiling kernel PrefixScanKernel ready. 
clBuildProgram successfully compiled cached binary: cache/PrefixScanKernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel LocalScanKernel ready. 
compiling kernel TopLevelScanKernel ready. 
compiling kernel AddOffsetKernel ready. 
clBuildProgram successfully compiled cached binary: cache/BoundSearchKernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel SearchSortDataLowerKernel ready. 
compiling kernel SearchSortDataUpperKernel ready. 
compiling kernel SubtractKernel ready. 
clBuildProgram successfully compiled cached binary: cache/FillKernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel FillIntKernel ready. 
compiling kernel FillUnsignedIntKernel ready. 
compiling kernel FillFloatKernel ready. 
compiling kernel FillInt2Kernel ready. 
clBuildProgram successfully compiled cached binary: cache/solveContact.cl.GeForce GTX 560 Ti.319.32.bin
clBuildProgram successfully compiled cached binary: cache/solveFriction.cl.GeForce GTX 560 Ti.319.32.bin
clBuildProgram successfully compiled cached binary: cache/solverSetup2.cl.GeForce GTX 560 Ti.319.32.bin
clBuildProgram successfully compiled cached binary: cache/solverSetup.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel BatchSolveKernelFriction ready. 
compiling kernel BatchSolveKernelContact ready. 
compiling kernel ContactToConstraintKernel ready. 
compiling kernel SetSortDataKernel ready. 
compiling kernel ReorderContactKernel ready. 
compiling kernel CopyConstraintKernel ready. 
clBuildProgram successfully compiled cached binary: cache/batchingKernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel CreateBatches ready. 
clBuildProgram successfully compiled cached binary: cache/batchingKernelsNew.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel CreateBatchesNew ready. 
clBuildProgram successfully compiled cached binary: cache/PrefixScanKernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel LocalScanKernel ready. 
compiling kernel TopLevelScanKernel ready. 
compiling kernel AddOffsetKernel ready. 
clBuildProgram successfully compiled cached binary: cache/FillKernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel FillIntKernel ready. 
compiling kernel FillUnsignedIntKernel ready. 
compiling kernel FillFloatKernel ready. 
compiling kernel FillInt2Kernel ready. 
clBuildProgram successfully compiled cached binary: cache/RadixSort32Kernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel StreamCountSortDataKernel ready. 
compiling kernel StreamCountKernel ready. 
compiling kernel SortAndScatterSortDataKernel ready. 
compiling kernel SortAndScatterKernel ready. 
compiling kernel PrefixScanKernel ready. 
clBuildProgram successfully compiled cached binary: cache/PrefixScanKernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel LocalScanKernel ready. 
compiling kernel TopLevelScanKernel ready. 
compiling kernel AddOffsetKernel ready. 
clBuildProgram successfully compiled cached binary: cache/BoundSearchKernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel SearchSortDataLowerKernel ready. 
compiling kernel SearchSortDataUpperKernel ready. 
compiling kernel SubtractKernel ready. 
clBuildProgram successfully compiled cached binary: cache/FillKernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel FillIntKernel ready. 
compiling kernel FillUnsignedIntKernel ready. 
compiling kernel FillFloatKernel ready. 
compiling kernel FillInt2Kernel ready. 
clBuildProgram successfully compiled cached binary: cache/solveContact.cl.GeForce GTX 560 Ti.319.32.bin
clBuildProgram successfully compiled cached binary: cache/solveFriction.cl.GeForce GTX 560 Ti.319.32.bin
clBuildProgram successfully compiled cached binary: cache/solverSetup2.cl.GeForce GTX 560 Ti.319.32.bin
clBuildProgram successfully compiled cached binary: cache/solverSetup.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel BatchSolveKernelFriction ready. 
compiling kernel BatchSolveKernelContact ready. 
compiling kernel ContactToConstraintKernel ready. 
compiling kernel SetSortDataKernel ready. 
compiling kernel SetDeterminismSortDataBodyA ready. 
compiling kernel SetDeterminismSortDataBodyB ready. 
compiling kernel SetDeterminismSortDataChildShapeA ready. 
compiling kernel SetDeterminismSortDataChildShapeB ready. 
compiling kernel ReorderContactKernel ready. 
compiling kernel CopyConstraintKernel ready. 
clBuildProgram successfully compiled cached binary: cache/batchingKernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel CreateBatches ready. 
clBuildProgram successfully compiled cached binary: cache/batchingKernelsNew.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel CreateBatchesNew ready. 
clBuildProgram successfully compiled cached binary: cache/rayCastKernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel rayCastKernel ready. 
clBuildProgram successfully compiled cached binary: cache/integrateKernel.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel integrateTransformsKernel ready. 
clBuildProgram successfully compiled cached binary: cache/updateAabbsKernel.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel initializeGpuAabbsFull ready. 
-----------------------------------------------------
Demo settings:
  SelectedDemo=0, demoname = BoxTrimesh
  x_dim=30, y_dim=30, z_dim=30
  x_gap=16.299999, y_gap=6.300000, z_gap=16.299999

OpenCL settings:
  Preferred cl_device index -1
  Preferred cl_platform index-1

Platform info:
  CL_PLATFORM_VENDOR:           NVIDIA Corporation
  CL_PLATFORM_NAME:             NVIDIA CUDA
  CL_PLATFORM_VERSION:          OpenCL 1.1 CUDA 4.2.1

Device Info:
  CL_DEVICE_NAME:           GeForce GTX 560 Ti
  CL_DEVICE_VENDOR:             NVIDIA Corporation
  CL_DRIVER_VERSION:            319.32
  CL_DEVICE_TYPE:           CL_DEVICE_TYPE_GPU
  CL_DEVICE_MAX_COMPUTE_UNITS:      8
  CL_DEVICE_MAX_WORK_ITEM_DIMENSIONS:   3
  CL_DEVICE_MAX_WORK_ITEM_SIZES:    1024 / 1024 / 64 
  CL_DEVICE_MAX_WORK_GROUP_SIZE:    1024
  CL_DEVICE_MAX_CLOCK_FREQUENCY:    1800 MHz
  CL_DEVICE_ADDRESS_BITS:       32
  CL_DEVICE_MAX_MEM_ALLOC_SIZE:     255 MByte
  CL_DEVICE_GLOBAL_MEM_SIZE:        1023 MByte
  CL_DEVICE_ERROR_CORRECTION_SUPPORT:   no
  CL_DEVICE_LOCAL_MEM_TYPE:     local
  CL_DEVICE_LOCAL_MEM_SIZE:     48 KByte
  CL_DEVICE_MAX_CONSTANT_BUFFER_SIZE:   64 KByte
  CL_DEVICE_QUEUE_PROPERTIES:       CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE
  CL_DEVICE_QUEUE_PROPERTIES:       CL_QUEUE_PROFILING_ENABLE
  CL_DEVICE_IMAGE_SUPPORT:      1
  CL_DEVICE_MAX_READ_IMAGE_ARGS:    128
  CL_DEVICE_MAX_WRITE_IMAGE_ARGS:   8

  CL_DEVICE_IMAGE <dim>         2D_MAX_WIDTH     32768
                    2D_MAX_HEIGHT    32768
                    3D_MAX_WIDTH     2048
                    3D_MAX_HEIGHT    2048
                    3D_MAX_DEPTH     2048

  CL_DEVICE_EXTENSIONS:cl_khr_byte_addressable_store cl_khr_icd cl_khr_gl_sharing cl_nv_compiler_options cl_nv_device_attribute_query cl_nv_pragma_unroll  cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_fp64 
  CL_DEVICE_PREFERRED_VECTOR_WIDTH_<t>  CHAR 1, SHORT 1, INT 1,LONG 1, FLOAT 1, DOUBLE 1




Program received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()
(gdb) bt
#0  0x0000000000000000 in ?? ()
#1  0x0000000000448a0a in GLRenderToTexture::init (this=0x1ded1b0, width=8192, height=8192, textureId=6, renderTextureType=2) at ../../btgui/OpenGLWindow/GLRenderToTexture.cpp:36
#2  0x0000000000443d2e in GLInstancingRenderer::renderSceneInternal (this=0xbe3a10, renderMode=2) at ../../btgui/OpenGLWindow/GLInstancingRenderer.cpp:1536
#3  0x0000000000443002 in GLInstancingRenderer::renderScene (this=0xbe3a10) at ../../btgui/OpenGLWindow/GLInstancingRenderer.cpp:1289
#4  0x0000000000424a9e in GpuRigidBodyDemo::renderScene (this=0xb6a040) at ../../Demos3/GpuDemos/rigidbody/GpuRigidBodyDemo.cpp:177
#5  0x0000000000411399 in main (argc=2, argv=0x7fffffffe618) at ../../Demos3/GpuDemos/main_opengl3core.cpp:971
(gdb) 

@ghost ghost closed this as completed Nov 19, 2013
@ghost ghost reopened this Nov 19, 2013
@erwincoumans
Copy link
Member

It might be that the shadow map is too large. Can you try to play with some of the following options:
--disable_shadowmap
--shadowmap_size=1024
thanks for testing

@ghost
Copy link
Author

ghost commented Nov 19, 2013

Both options didn't change anything. (also I'm certain I have 4k render textures)

@erwincoumans
Copy link
Member

Can you please provide the full output, when using --disable_shadowmap --shadowmap_size=1024

@ghost
Copy link
Author

ghost commented Nov 19, 2013

scrawl-desktop:~/Dev/bullet3[master]$ gdb ./bin/App_Bullet3_OpenCL_Demos_clew_gmake_x64_debug
GNU gdb (GDB) 7.6.1
Copyright (C) 2013 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-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/scrawl/Dev/bullet3/bin/App_Bullet3_OpenCL_Demos_clew_gmake_x64_debug...done.
(gdb) run --disable_shadowmap --shadowmap_size=1024
Starting program: /home/scrawl/Dev/bullet3/./bin/App_Bullet3_OpenCL_Demos_clew_gmake_x64_debug --disable_shadowmap --shadowmap_size=1024
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
main start
    visual 0x27 selected
GL_VENDOR=NVIDIA Corporation
GL_RENDERER=GeForce GTX 560 Ti/PCIe/SSE2
GL_VERSION=4.3.0 NVIDIA 319.32
GL_SHADING_LANGUAGE_VERSION=4.30 NVIDIA via Cg compiler
-----------------------------------------------------
started GwenUserInterfaceinit fontsclewInit succesfull using libOpenCL.so.1
numDevices=1
[New Thread 0x7fffe5d96700 (LWP 30365)]
[New Thread 0x7fffe488f700 (LWP 30366)]
[New Thread 0x7fffe408e700 (LWP 30367)]
[New Thread 0x7fffe388d700 (LWP 30368)]
[New Thread 0x7fffe308c700 (LWP 30369)]
[New Thread 0x7fffe288b700 (LWP 30370)]
compiling kernel copyTransformsToVBOKernel ready. 
clBuildProgram successfully compiled cached binary: cache/sat.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel findSeparatingAxisKernel ready. 
compiling kernel findConcaveSeparatingAxisKernel ready. 
compiling kernel findCompoundPairsKernel ready. 
compiling kernel processCompoundPairsKernel ready. 
clBuildProgram successfully compiled cached binary: cache/satClipHullContacts.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel clipHullHullKernel ready. 
compiling kernel clipCompoundsHullHullKernel ready. 
compiling kernel findClippingFacesKernel ready. 
compiling kernel clipFacesAndContactReductionKernel ready. 
compiling kernel clipHullHullConcaveConvexKernel ready. 
compiling kernel extractManifoldAndAddContactKernel ready. 
compiling kernel newContactReductionKernel ready. 
clBuildProgram successfully compiled cached binary: cache/bvhTraversal.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel bvhTraversalKernel ready. 
clBuildProgram successfully compiled cached binary: cache/primitiveContacts.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel primitiveContactsKernel ready. 
compiling kernel findConcaveSphereContactsKernel ready. 
compiling kernel processCompoundPairsPrimitivesKernel ready. 
clBuildProgram successfully compiled cached binary: cache/sap.cl.GeForce GTX 560 Ti.319.32.bin
clBuildProgram successfully compiled cached binary: cache/sapFast.cl.GeForce GTX 560 Ti.319.32.bin
clBuildProgram successfully compiled cached binary: cache/PrefixScanFloat4Kernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel LocalScanKernel ready. 
compiling kernel TopLevelScanKernel ready. 
compiling kernel AddOffsetKernel ready. 
compiling kernel computePairsKernelTwoArrays ready. 
compiling kernel prepareSumVarianceKernel ready. 
compiling kernel computePairsIncremental3dSapKernel ready. 
compiling kernel computePairsKernel ready. 
compiling kernel flipFloatKernel ready. 
compiling kernel copyAabbsKernel ready. 
compiling kernel scatterKernel ready. 
clBuildProgram successfully compiled cached binary: cache/PrefixScanKernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel LocalScanKernel ready. 
compiling kernel TopLevelScanKernel ready. 
compiling kernel AddOffsetKernel ready. 
clBuildProgram successfully compiled cached binary: cache/FillKernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel FillIntKernel ready. 
compiling kernel FillUnsignedIntKernel ready. 
compiling kernel FillFloatKernel ready. 
compiling kernel FillInt2Kernel ready. 
clBuildProgram successfully compiled cached binary: cache/RadixSort32Kernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel StreamCountSortDataKernel ready. 
compiling kernel StreamCountKernel ready. 
compiling kernel SortAndScatterSortDataKernel ready. 
compiling kernel SortAndScatterKernel ready. 
compiling kernel PrefixScanKernel ready. 
clBuildProgram successfully compiled cached binary: cache/PrefixScanKernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel LocalScanKernel ready. 
compiling kernel TopLevelScanKernel ready. 
compiling kernel AddOffsetKernel ready. 
clBuildProgram successfully compiled cached binary: cache/jointSolver.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel solveJointConstraintRows ready. 
compiling kernel initSolverBodies ready. 
compiling kernel getInfo1Kernel ready. 
compiling kernel initBatchConstraintsKernel ready. 
compiling kernel getInfo2Kernel ready. 
compiling kernel writeBackVelocitiesKernel ready. 
compiling kernel breakViolatedConstraintsKernel ready. 
clBuildProgram successfully compiled cached binary: cache/PrefixScanKernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel LocalScanKernel ready. 
compiling kernel TopLevelScanKernel ready. 
compiling kernel AddOffsetKernel ready. 
clBuildProgram successfully compiled cached binary: cache/FillKernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel FillIntKernel ready. 
compiling kernel FillUnsignedIntKernel ready. 
compiling kernel FillFloatKernel ready. 
compiling kernel FillInt2Kernel ready. 
clBuildProgram successfully compiled cached binary: cache/solverUtils.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel CountBodiesKernel ready. 
compiling kernel ContactToConstraintSplitKernel ready. 
compiling kernel ClearVelocitiesKernel ready. 
compiling kernel AverageVelocitiesKernel ready. 
compiling kernel UpdateBodyVelocitiesKernel ready. 
compiling kernel SolveContactJacobiKernel ready. 
compiling kernel SolveFrictionJacobiKernel ready. 
clBuildProgram successfully compiled cached binary: cache/PrefixScanKernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel LocalScanKernel ready. 
compiling kernel TopLevelScanKernel ready. 
compiling kernel AddOffsetKernel ready. 
clBuildProgram successfully compiled cached binary: cache/FillKernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel FillIntKernel ready. 
compiling kernel FillUnsignedIntKernel ready. 
compiling kernel FillFloatKernel ready. 
compiling kernel FillInt2Kernel ready. 
clBuildProgram successfully compiled cached binary: cache/RadixSort32Kernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel StreamCountSortDataKernel ready. 
compiling kernel StreamCountKernel ready. 
compiling kernel SortAndScatterSortDataKernel ready. 
compiling kernel SortAndScatterKernel ready. 
compiling kernel PrefixScanKernel ready. 
clBuildProgram successfully compiled cached binary: cache/PrefixScanKernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel LocalScanKernel ready. 
compiling kernel TopLevelScanKernel ready. 
compiling kernel AddOffsetKernel ready. 
clBuildProgram successfully compiled cached binary: cache/BoundSearchKernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel SearchSortDataLowerKernel ready. 
compiling kernel SearchSortDataUpperKernel ready. 
compiling kernel SubtractKernel ready. 
clBuildProgram successfully compiled cached binary: cache/FillKernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel FillIntKernel ready. 
compiling kernel FillUnsignedIntKernel ready. 
compiling kernel FillFloatKernel ready. 
compiling kernel FillInt2Kernel ready. 
clBuildProgram successfully compiled cached binary: cache/solveContact.cl.GeForce GTX 560 Ti.319.32.bin
clBuildProgram successfully compiled cached binary: cache/solveFriction.cl.GeForce GTX 560 Ti.319.32.bin
clBuildProgram successfully compiled cached binary: cache/solverSetup2.cl.GeForce GTX 560 Ti.319.32.bin
clBuildProgram successfully compiled cached binary: cache/solverSetup.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel BatchSolveKernelFriction ready. 
compiling kernel BatchSolveKernelContact ready. 
compiling kernel ContactToConstraintKernel ready. 
compiling kernel SetSortDataKernel ready. 
compiling kernel ReorderContactKernel ready. 
compiling kernel CopyConstraintKernel ready. 
clBuildProgram successfully compiled cached binary: cache/batchingKernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel CreateBatches ready. 
clBuildProgram successfully compiled cached binary: cache/batchingKernelsNew.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel CreateBatchesNew ready. 
clBuildProgram successfully compiled cached binary: cache/PrefixScanKernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel LocalScanKernel ready. 
compiling kernel TopLevelScanKernel ready. 
compiling kernel AddOffsetKernel ready. 
clBuildProgram successfully compiled cached binary: cache/FillKernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel FillIntKernel ready. 
compiling kernel FillUnsignedIntKernel ready. 
compiling kernel FillFloatKernel ready. 
compiling kernel FillInt2Kernel ready. 
clBuildProgram successfully compiled cached binary: cache/RadixSort32Kernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel StreamCountSortDataKernel ready. 
compiling kernel StreamCountKernel ready. 
compiling kernel SortAndScatterSortDataKernel ready. 
compiling kernel SortAndScatterKernel ready. 
compiling kernel PrefixScanKernel ready. 
clBuildProgram successfully compiled cached binary: cache/PrefixScanKernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel LocalScanKernel ready. 
compiling kernel TopLevelScanKernel ready. 
compiling kernel AddOffsetKernel ready. 
clBuildProgram successfully compiled cached binary: cache/BoundSearchKernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel SearchSortDataLowerKernel ready. 
compiling kernel SearchSortDataUpperKernel ready. 
compiling kernel SubtractKernel ready. 
clBuildProgram successfully compiled cached binary: cache/FillKernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel FillIntKernel ready. 
compiling kernel FillUnsignedIntKernel ready. 
compiling kernel FillFloatKernel ready. 
compiling kernel FillInt2Kernel ready. 
clBuildProgram successfully compiled cached binary: cache/solveContact.cl.GeForce GTX 560 Ti.319.32.bin
clBuildProgram successfully compiled cached binary: cache/solveFriction.cl.GeForce GTX 560 Ti.319.32.bin
clBuildProgram successfully compiled cached binary: cache/solverSetup2.cl.GeForce GTX 560 Ti.319.32.bin
clBuildProgram successfully compiled cached binary: cache/solverSetup.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel BatchSolveKernelFriction ready. 
compiling kernel BatchSolveKernelContact ready. 
compiling kernel ContactToConstraintKernel ready. 
compiling kernel SetSortDataKernel ready. 
compiling kernel SetDeterminismSortDataBodyA ready. 
compiling kernel SetDeterminismSortDataBodyB ready. 
compiling kernel SetDeterminismSortDataChildShapeA ready. 
compiling kernel SetDeterminismSortDataChildShapeB ready. 
compiling kernel ReorderContactKernel ready. 
compiling kernel CopyConstraintKernel ready. 
clBuildProgram successfully compiled cached binary: cache/batchingKernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel CreateBatches ready. 
clBuildProgram successfully compiled cached binary: cache/batchingKernelsNew.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel CreateBatchesNew ready. 
clBuildProgram successfully compiled cached binary: cache/rayCastKernels.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel rayCastKernel ready. 
clBuildProgram successfully compiled cached binary: cache/integrateKernel.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel integrateTransformsKernel ready. 
clBuildProgram successfully compiled cached binary: cache/updateAabbsKernel.cl.GeForce GTX 560 Ti.319.32.bin
compiling kernel initializeGpuAabbsFull ready. 
-----------------------------------------------------
Demo settings:
  SelectedDemo=0, demoname = BoxTrimesh
  x_dim=30, y_dim=30, z_dim=30
  x_gap=16.299999, y_gap=6.300000, z_gap=16.299999

OpenCL settings:
  Preferred cl_device index -1
  Preferred cl_platform index-1

Platform info:
  CL_PLATFORM_VENDOR:           NVIDIA Corporation
  CL_PLATFORM_NAME:             NVIDIA CUDA
  CL_PLATFORM_VERSION:          OpenCL 1.1 CUDA 4.2.1

Device Info:
  CL_DEVICE_NAME:           GeForce GTX 560 Ti
  CL_DEVICE_VENDOR:             NVIDIA Corporation
  CL_DRIVER_VERSION:            319.32
  CL_DEVICE_TYPE:           CL_DEVICE_TYPE_GPU
  CL_DEVICE_MAX_COMPUTE_UNITS:      8
  CL_DEVICE_MAX_WORK_ITEM_DIMENSIONS:   3
  CL_DEVICE_MAX_WORK_ITEM_SIZES:    1024 / 1024 / 64 
  CL_DEVICE_MAX_WORK_GROUP_SIZE:    1024
  CL_DEVICE_MAX_CLOCK_FREQUENCY:    1800 MHz
  CL_DEVICE_ADDRESS_BITS:       32
  CL_DEVICE_MAX_MEM_ALLOC_SIZE:     255 MByte
  CL_DEVICE_GLOBAL_MEM_SIZE:        1023 MByte
  CL_DEVICE_ERROR_CORRECTION_SUPPORT:   no
  CL_DEVICE_LOCAL_MEM_TYPE:     local
  CL_DEVICE_LOCAL_MEM_SIZE:     48 KByte
  CL_DEVICE_MAX_CONSTANT_BUFFER_SIZE:   64 KByte
  CL_DEVICE_QUEUE_PROPERTIES:       CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE
  CL_DEVICE_QUEUE_PROPERTIES:       CL_QUEUE_PROFILING_ENABLE
  CL_DEVICE_IMAGE_SUPPORT:      1
  CL_DEVICE_MAX_READ_IMAGE_ARGS:    128
  CL_DEVICE_MAX_WRITE_IMAGE_ARGS:   8

  CL_DEVICE_IMAGE <dim>         2D_MAX_WIDTH     32768
                    2D_MAX_HEIGHT    32768
                    3D_MAX_WIDTH     2048
                    3D_MAX_HEIGHT    2048
                    3D_MAX_DEPTH     2048

  CL_DEVICE_EXTENSIONS:cl_khr_byte_addressable_store cl_khr_icd cl_khr_gl_sharing cl_nv_compiler_options cl_nv_device_attribute_query cl_nv_pragma_unroll  cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_fp64 
  CL_DEVICE_PREFERRED_VECTOR_WIDTH_<t>  CHAR 1, SHORT 1, INT 1,LONG 1, FLOAT 1, DOUBLE 1




Program received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()
(gdb) bt
#0  0x0000000000000000 in ?? ()
#1  0x000000000044484c in GLInstancingRenderer::renderSceneInternal (this=0xbe3af0, renderMode=1) at ../../btgui/OpenGLWindow/GLInstancingRenderer.cpp:1724
#2  0x0000000000443030 in GLInstancingRenderer::renderScene (this=0xbe3af0) at ../../btgui/OpenGLWindow/GLInstancingRenderer.cpp:1295
#3  0x0000000000424a9e in GpuRigidBodyDemo::renderScene (this=0xb6a120) at ../../Demos3/GpuDemos/rigidbody/GpuRigidBodyDemo.cpp:177
#4  0x0000000000411399 in main (argc=3, argv=0x7fffffffe608) at ../../Demos3/GpuDemos/main_opengl3core.cpp:971

@erwincoumans
Copy link
Member

Something went wrong, because SelectedDemo=0 but an unmodified github clone should have SelectedDemo=1
Can you double check that you have no changes (git diff=0)?

@ghost
Copy link
Author

ghost commented Nov 19, 2013

scrawl-desktop:/Dev/bullet3[master]$ git diff
scrawl-desktop:
/Dev/bullet3[master]$

@erwincoumans
Copy link
Member

Please figure out why SelectedDemo=0, while it should be 1, around line 103
in main_opengl3core.cpp.
Also, remove bin (make clean, rm -rf bin) and rm -rf cache (if cache exists)

On 19 November 2013 14:13, scrawl notifications@github.com wrote:

scrawl-desktop:/Dev/bullet3[master]$ git diff
scrawl-desktop:
/Dev/bullet3[master]$


Reply to this email directly or view it on GitHubhttps://github.com/erwincoumans/bullet3/issues/23#issuecomment-28841450
.

@erwincoumans
Copy link
Member

Who the hell added a Close button next to the Comment button? Insane user interface designer at github.

@ghost
Copy link
Author

ghost commented Nov 19, 2013

Haha I also clicked on it accidentally a few comments earlier.

@ghost
Copy link
Author

ghost commented Nov 19, 2013

On line 103 I do have the line:
int selectedDemo = 1;

@erwincoumans
Copy link
Member

then why is it printing that selectedDemo=0 at your log?

@ghost
Copy link
Author

ghost commented Nov 19, 2013

Just noticed there were some build errors in my log with debug64.
Unlike usual makefiles, it went on compiling, so I didn't notice that.

make config=debug64 -j4
==== Building gwen (debug64) ====
==== Building Bullet2FileLoader (debug64) ====
==== Building Bullet3OpenCL_clew (debug64) ====
==== Building Bullet3Dynamics (debug64) ====
==== Building Bullet3Collision (debug64) ====
==== Building Bullet3Geometry (debug64) ====
==== Building Bullet3Common (debug64) ====
==== Building App_ImplicitCloth (debug64) ====
==== Building App_SimpleOpenGL3 (debug64) ====
Linking App_ImplicitCloth
==== Building Test_clew (debug64) ====
==== Building Test_OpenCL_intialize_clew (debug64) ====
==== Building Test_OpenCL_kernel_launch_clew (debug64) ====
==== Building Test_OpenCL_Primitives_clew (debug64) ====
==== Building Test_OpenCL_RadixSortBenchmark_clew (debug64) ====
==== Building Test_BitonicSort_clew (debug64) ====
Creating obj/x64/Debug/Test_OpenCL_Primitives_clew
Creating obj/x64/Debug/Test_BitonicSort_clew
Creating obj/x64/Debug/Test_OpenCL_RadixSortBenchmark_clew
clew.c
clew.c
clew.c
main.cpp
main.cpp
main.cpp
obj/x64/Debug/App_ImplicitCloth/Cloth.o: In function ClothDrawSprings(Cloth*)': /home/scrawl/Dev/bullet4/build3/gmake/../../Demos3/ImplicitCloth/stan/Cloth.cpp:78: undefined reference toLine(vec3 const&, vec3 const&, vec3 const&)'
collect2: error: ld returned 1 exit status
make[1]: *** [../../bin/App_ImplicitCloth_gmake_x64_debug] Error 1
make: *** [App_ImplicitCloth] Error 2
make: *** Waiting for unfinished jobs....
b3OpenCLUtils.cpp
b3BitonicSort.cpp
b3AlignedAllocator.cpp
b3OpenCLUtils.cpp
b3Logging.cpp
b3FillCL.cpp
b3Clock.cpp
Linking Test_BitonicSort_clew
b3OpenCLUtils.cpp
b3BoundSearchCL.cpp
b3FillCL.cpp
b3PrefixScanCL.cpp
b3PrefixScanCL.cpp
b3RadixSort32CL.cpp
b3RadixSort32CL.cpp
b3LauncherCL.cpp
b3LauncherCL.cpp
b3AlignedAllocator.cpp
b3AlignedAllocator.cpp
b3Logging.cpp
b3Logging.cpp
b3Quickprof.cpp
b3Clock.cpp
Linking Test_OpenCL_Primitives_clew
Linking Test_OpenCL_RadixSortBenchmark_clew

@erwincoumans
Copy link
Member

The source code compile and runs without issue on my Ubuntu 13.04 machine, with a recent Radeon GPU (7970 etc). Unfortunately I don't have the time to fix other peoples configurations at the moment, perhaps next year.

@erwincoumans
Copy link
Member

cannot reproduce it, close for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants