Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: DsTrendCurve graph SIGSEV error

DsTrendCurve graph SIGSEV error 9 years 5 months ago #6934

  • abella
  • abella's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 42
  • Karma: 0
Hi,

I've been usign DsTrendCurve graph in V5.1 and Ubuntu 12.04 with no problems at all, but if I try to open a DsTrendCurve graph in V5.2 and Ubuntu 14.04 I get a SIGSEV error as show in the trace below:
Program received signal SIGSEGV, Segmentation fault.
__memcpy_ssse3 () at ../sysdeps/i386/i686/multiarch/memcpy-ssse3.S:142
142	../sysdeps/i386/i686/multiarch/memcpy-ssse3.S: No such file or directory.
(gdb) bt
#0  __memcpy_ssse3 () at ../sysdeps/i386/i686/multiarch/memcpy-ssse3.S:142
#1  0x08355cfe in cbuf_GetCircBuffInfo (info=0x877cea0, infosize=1)
    at ../../rt_cbuf.c:256
#2  0x080e7aeb in XttTrend::XttTrend (this=0x877ad50, parent_ctx=0xb4533008, 
    name=0xbfff98b0 "VolO4:O17-O20", trend_list=0xbfff7a68, plotgroup=0x0, 
    x_options=0, sts=0xbfff7100) at ../../xtt_trend.cpp:346
#3  0x08088e93 in XttTrendGtk::XttTrendGtk (this=0x877ad50, 
    parent_ctx=0xb4533008, parent_wid=0x0, name=0xbfff98b0 "VolO4:O17-O20", 
    w=0xbfff6efc, trend_list=0xbfff7a68, plotgroup=0x0, width=0, height=0, 
    x_options=0, sts=0xbfff7100) at ../../xtt_trend_gtk.cpp:74
#4  0x0805d6f8 in XNavGtk::xtttrend_new (this=0xb4533008, 
    name=0xbfff98b0 "VolO4:O17-O20", objar=0xbfff7a68, plotgroup=0x0, width=0, 
    height=0, options=0, sts=0xbfff7100) at ../../xtt_xnav_gtk.cpp:278
#5  0x08125b99 in xnav_open_func (client_data=0xb4533008, client_flag=0x0)
    at ../../xtt_xnav_command.cpp:3987
#6  0x083c365d in dcli_cli (command_table=0x84ae000 <xnav_command_table>, 
    string=0xbfffd294 "open trend /name=VolO4:O17-O20 /title=\"VolO4:O17-O20\"", userdata1=0xb4533008, userdata2=0x0) at ../../co_dcli.c:439
#7  0x08130dbc in XNav::command (this=0xb4533008, 
    input_str=0xbfffd87c "open trend /name=VolO4:O17-O20 /title=\"VolO4:O17-O20\"") at ../../xtt_xnav_command.cpp:7342
#8  0x08152269 in OpenTrend (ip=0x8731eb8) at ../../xtt_c_object.cpp:339

I'm studing to start working in Debian, so just to test, i give it a try in Debian 7. The grpah opens ok, but when I use the SnapShot function I get another SIGSEV error:
Program received signal SIGSEGV, Segmentation fault.
0x0810456f in XttTCurve::load_data (this=0x8852410, sts=0xbfffa2d0, aref=0x885253c) at ../../xtt_tcurve.cpp:905
905	in ../../xtt_tcurve.cpp
(gdb) bt
#0  0x0810456f in XttTCurve::load_data (this=0x8852410, sts=0xbfffa2d0, aref=0x885253c) at ../../xtt_tcurve.cpp:905
#1  0x08102566 in XttTCurve::get_data (this=0x8852410, sts=0xbfffa2d0, from=..., to=...) at ../../xtt_tcurve.cpp:120
#2  0x0810241b in XttTCurve::XttTCurve (this=0x8852410, parent_ctx=0xb5707008, name=0xbfff2d60 "plant-Trndcurve", xn_arefv=0xbfff2920, sts=0xbfffa2d0)
    at ../../xtt_tcurve.cpp:95
#3  0x080981d2 in XttTCurveGtk::XttTCurveGtk (this=0x8852410, parent_ctx=0xb5707008, parent_wid=0x0, name=0xbfff2d60 "plant-Trndcurve", w=0xbfff275c, xn_arefv=0xbfff2920, 
    xn_width=0, xn_height=0, xn_options=0, sts=0xbfffa2d0) at ../../xtt_tcurve_gtk.cpp:74
#4  0x08072127 in XNavGtk::xtttcurve_new (this=0xb5707008, name=0xbfff2d60 "plant-Trndcurve", arefv=0xbfff2920, width=0, height=0, options=0, sts=0xbfffa2d0)
    at ../../xtt_xnav_gtk.cpp:297
#5  0x0812f9fe in xnav_open_func (client_data=0xb5707008, client_flag=0x0) at ../../xtt_xnav_command.cpp:4166
#6  0x083b363a in dcli_cli (command_table=0x84a4140, string=0xbfffd7e0 "open tcurve plant-Trndcurve/title=plant-Trndcurve", userdata1=0xb5707008, userdata2=0x0)
    at ../../co_dcli.c:439
#7  0x081393ad in XNav::command (this=0xb5707008, input_str=0xbfffdc2c "open tcurve plant-Trndcurve/title=plant-Trndcurve") at ../../xtt_xnav_command.cpp:7342
#8  0x08133a74 in xnav_trend_command_cb (ctx=0xb5707008, cmd=0xbfffdc2c "open tcurve plant-Trndcurve/title=plant-Trndcurve") at ../../xtt_xnav_command.cpp:5381
#9  0x080f71f1 in XttTrend::trend_snapshot_cb (ctx=0x87a2348) at ../../xtt_trend.cpp:527
#10 0x081623c7 in GeCurve::activate_snapshot (this=0x87b6908) at ../../ge_curve.cpp:105
#11 0x080a3e2d in GeCurveGtk::activate_snapshot (w=0x87bae00, data=0x87b6908) at ../../ge_curve_gtk.cpp:347


The projects to test are dummy projects just to reproduce the errors I get in bigger and real projects.


I've been looking for the errors in the code, but this time I think I can't help with the code, gtk is not my best friend...


Thanks in advance.
The administrator has disabled public write access.

DsTrendCurve graph SIGSEV error 9 years 5 months ago #6943

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3180
  • Thank you received: 502
  • Karma: 133
Hi Alfonso,

The first segfault was caused by an index in the circular buffer that wasn't initialized. I couldn't reproduce the snapshot segfault though. I've updated the pwr52 and pwrrt packages with the bugfix.

/Claes
The administrator has disabled public write access.
The following user(s) said Thank You: abella

DsTrendCurve graph SIGSEV error 9 years 5 months ago #6959

  • abella
  • abella's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 42
  • Karma: 0
Both problems solved! :woohoo:

Thank you
The administrator has disabled public write access.

DsTrendCurve graph SIGSEV error 9 years 5 months ago #6960

  • abella
  • abella's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 42
  • Karma: 0
Well... sorry, but I think I've detected another bug :unsure:

Exporting an snapshot in a DsTrendCurve generates an assert error in t2 in time_Acomp(), file co_time.c:296.
pwr assertion (t2->tv_nsec >= 0 && t2->tv_nsec < 1000000000) failed,
    in file ../../co_time.c, at line 296

time_Acomp() t2 is variable 'from' in XttTCurve::tcurve_export_cb() in file xtt_tcurve.cpp, called from GeCurveGtk::activate_export_ok() in file ge_curve_gtk.cpp, where 'from' seems to be initialized (the same for 'to' and 'rows').

Sadly, I've hit a wall in ge_curve_gtk.cpp:442. I can't understand the if and gdb doesn't show anything usefull for me. As the if is always false, variables 'from', 'to' and 'rows' are not initialized, but are used as parameters some rows below, generating the error.


In the gdb_assert.txt file there is a bit more info.

I can make any test to get more info if needed.

Thanks,

Alfonso Abella
Attachments:
Last Edit: 9 years 5 months ago by abella.
The administrator has disabled public write access.

DsTrendCurve graph SIGSEV error 9 years 5 months ago #6964

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3180
  • Thank you received: 502
  • Karma: 133
Initializing those variables does the trick. If you tell me which platform you are running I can build a patch for you.

/Claes
The administrator has disabled public write access.
  • Page:
  • 1
Time to create page: 8.209 seconds