question

Upvotes
Accepted
791 11 16 19

Crash in rsslFlush function in debugger

Hello

I have seen a crash when using the UPA API in the rsslFlush function, full details are below. This happened in debug with the gdb debugger.

I was using the RMDSTestClient as the client program.

elektronelektron-sdkrrteta-apielektron-transport-apidebugging
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
Upvote
Accepted
322 11 15 21

I believe this is normal -- SIGPIPE is triggered when a write operation discovers that the connection is closed. RSSL disables this signal at initialization, but GDB will still stop and print it. You should be able to continue from this point (i.e. progress via the continue command), at which point the flush should report the disconnection.

If you wish to stop GDB from doing this, I believe you can disable it like so:

(gdb) handle SIGPIPE noprint

To see what GDB is doing with certain signals, call:

(gdb) info signals

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.