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

Calling push on PV with incorrect type aborts execution #14

Open
NickeZ opened this issue Jun 28, 2017 · 0 comments
Open

Calling push on PV with incorrect type aborts execution #14

NickeZ opened this issue Jun 28, 2017 · 0 comments

Comments

@NickeZ
Copy link
Contributor

NickeZ commented Jun 28, 2017

I'm calling myPV.push(time, value) but I mistakenly had the wrong type of value (double instead of int32_t). My error was a bit difficult to find.

Maybe there is a way to indicate the error better.

Last output:

terminate called without an active exception

Program received signal SIGABRT, Aborted.

Backtrace:

#0  0xb7d65dbc in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1  0xb7d6add8 in __GI_abort () at abort.c:89
#2  0x0fb52310 in __gnu_cxx::__verbose_terminate_handler () at /home/niklasclaesson/build/ess-5.6-2016-02-05-e88faba-ifc1210/tmp/work-shared/gcc-4.8.2-r0/gcc-4.8.2/libstdc++-v3/libsupc++/vterminate.cc:95
#3  0x0fb4f808 in __cxxabiv1::__terminate (handler=<optimized out>)
    at /home/niklasclaesson/build/ess-5.6-2016-02-05-e88faba-ifc1210/tmp/work-shared/gcc-4.8.2-r0/gcc-4.8.2/libstdc++-v3/libsupc++/eh_terminate.cc:38
#4  0x0fb4f844 in std::terminate () at /home/niklasclaesson/build/ess-5.6-2016-02-05-e88faba-ifc1210/tmp/work-shared/gcc-4.8.2-r0/gcc-4.8.2/libstdc++-v3/libsupc++/eh_terminate.cc:48
#5  0x0fb4fc5c in __cxxabiv1::__cxa_rethrow () at /home/niklasclaesson/build/ess-5.6-2016-02-05-e88faba-ifc1210/tmp/work-shared/gcc-4.8.2-r0/gcc-4.8.2/libstdc++-v3/libsupc++/eh_throw.cc:122
#6  0x0fa4a6e8 in nds::PVBaseInImpl::read(timespec*, double*) const () from /opt/epics/modules/nds3/niklasclaesson/3.14.12.5/lib/eldk56-e500v2/libnds3.so
#7  0x0fa493dc in void nds::PVBaseIn::read<double>(timespec*, double*) const () from /opt/epics/modules/nds3/niklasclaesson/3.14.12.5/lib/eldk56-e500v2/libnds3.so
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant