question

Upvotes
Accepted
791 9 7 14

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 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvote
Accepted
322 5 12 16

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 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea