MayamaTakeshi / sip-lab

A node module that helps to write SIP functional tests
3 stars 2 forks source link

Segfault on Debian 11 #29

Closed MayamaTakeshi closed 1 year ago

MayamaTakeshi commented 1 year ago

All samples fail like this:

$ node node_modules/sip-lab/samples/delayed_media.js ^C
... ABRIDGED ...

status=-397952776

17:04:52.759                        !: Success
17:04:52.768  wait (delayed_media.js:26) started. Waiting for expected_events:
17:04:52.778  [
  partial_match({
    event: 'incoming_call',
    call_id: collect['call_id']()
  }),
  partial_match({
    event: 'response',
    call_id: 0,
    method: 'INVITE',
    msg: sip_msg({
      $rs: '100',
      $rr: 'Trying',
      $(hdrcnt(via)): 1,
      $hdr(call-id): collect['sip_call_id'](),
      $fU: 'alice',
      $fd: 'test.com',
      $tU: 'bob',
      $hdr(l): '0'
    })
  })
]
Segmentation fault

OS:

$ cat /etc/issue
Debian GNU/Linux 11 \n \l
MayamaTakeshi commented 1 year ago

Env 2.132 (Debian 11) shows the issue (installed locally). Env 225.131 shows it is OK with Debian 10 (it was installed globally).

MayamaTakeshi commented 1 year ago

Solved. I used printf() instead of vprintf(). This somehow didn't cause issues with old OSs. But it crashed the tests on Debian 11.