Ticket #559 (new defect)

Opened 3 years ago

Last modified 3 years ago

gmew crash when wsGetTraceBinL returned unknown error

Reported by: quintiliani Owned by: somebody
Priority: major Milestone: All Platforms
Component: gmew Version:
Keywords: Cc:

Description

Debug

20161111_UTC_15:09:37 prepTrace: <MOCO.HNE.IV.--> event signal (185.849) too small for pre-event threshold (300.855)
20161111_UTC_15:09:37 prepTrace: <MOCO.HHN.IV.--> event signal (1.62919e+06) too small for pre-event threshold (2.43719e+06)

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff755ddcc in _IO_vfprintf_internal (s=s@entry=0x7ffffffef720, format=<optimized out>, format@entry=0x436338 "getTraceFromWS: wsGetTraceBinL returned unknown error %s\n", ap=ap@entry=0x7ffffffef948) at vfprintf.c:1642
1642    vfprintf.c: No such file or directory.
(gdb)
(gdb) where
#0  0x00007ffff755ddcc in _IO_vfprintf_internal (s=s@entry=0x7ffffffef720, format=<optimized out>, format@entry=0x436338 "getTraceFromWS: wsGetTraceBinL returned unknown error %s\n", ap=ap@entry=0x7ffffffef948) at vfprintf.c:1642
#1  0x00007ffff7585409 in _IO_vsnprintf (string=0x697010 "getTraceFromWS: wsGetTraceBinL returned unknown error t signal (1.62919e+06) too small for pre-event threshold (2.43719e+06)\n", maxlen=<optimized out>,
    format=0x436338 "getTraceFromWS: wsGetTraceBinL returned unknown error %s\n", args=0x7ffffffef948) at vsnprintf.c:119
#2  0x000000000041a595 in logit_core (flag=0x435e3a "e", format=0x436338 "getTraceFromWS: wsGetTraceBinL returned unknown error %s\n", ap=0x7ffffffef948) at logit.c:337
#3  0x000000000041ac68 in logit (flag=0x435e3a "e", format=0x436338 "getTraceFromWS: wsGetTraceBinL returned unknown error %s\n") at logit.c:714
#4  0x00000000004076a3 in getTraceFromWS (req=0x7ffffffefb00, pTrace=0x65fac0 <gTrace>, wsTimeout=5000) at gm_ws.c:351
#5  0x000000000040702d in getGMFromWS (pEvt=0x643cc0 <event>, pgmParams=0x643a80 <gmParams.6254>, pTrace=0x65fac0 <gTrace>, pSMs=0x65fb80 <gSM>) at gm_ws.c:196
#6  0x0000000000403cb7 in getGMFromTrace (pEv=0x643cc0 <event>, pgmParams=0x643a80 <gmParams.6254>) at gm_util.c:116
#7  0x0000000000402da4 in main (argc=2, argv=0x7fffffffdb28) at gmew.c:148

Change History

comment:1 Changed 3 years ago by quintiliani

The problem is at gm_ws.c:351

    logit("e", "getTraceFromWS: wsGetTraceBinL returned unknown error %s\n",
           rc);

where rc is an int

Fix in r6869

comment:2 Changed 3 years ago by quintiliani

gmew need to handle error WS_ERR_PARSE.

Copy source from localmag e fix in r6871

Note: See TracTickets for help on using tickets.