Opened on 07/09/10 at 03:44:56
Closed on 07/15/10 at 11:00:02
#1609 closed defect (duplicate)
Segmentation fault on closing a socket
Reported by: | Vinu Rajashekhar | Owned by: | Eric Norum |
---|---|---|---|
Priority: | normal | Milestone: | 4.11 |
Component: | network/legacy | Version: | 4.11 |
Severity: | normal | Keywords: | |
Cc: | jennifer.averett@…, vinutheraj@… | Blocked By: | |
Blocking: |
Description
On trying to do rtems_bsdnet_initialize_network in RTEMS, the program was dying with - "fatal: Trying to execute code outside RAM or ROM at 0xff0720ff". Upon investigation it was seen that the error was caused inside rtems_filesystem_freenode, which is called from close.
The problem is caused when a socket is closed. This is because of the line rtems_filesystem_freenode( &iop->pathinfo ); in cpukit/libcsupport/src/close.c where the pathinfo struct is 0 for a socket and it is passed to rtems_filesystem_freenode, which tries to use pathinfo, not checking whether it is 0.
A patch is attached.
I am CCing Jennifer Averett because I saw her name as the last person who edited both close.c and freenode.c recently.
Attachments (2)
Change History (6)
Changed on 07/09/10 at 03:44:56 by Vinu Rajashekhar
Attachment: | close.patch added |
---|
comment:1 Changed on 07/10/10 at 17:29:36 by Vinu Rajashekhar
Cc: | Vinu Rajashekhar added |
---|
Changed on 07/15/10 at 10:56:39 by Vinu Rajashekhar
Attachment: | close_v1.patch added |
---|
patch for close.c
comment:2 Changed on 07/15/10 at 10:56:39 by Vinu Rajashekhar
attachments.isobsolete: | 0 → 1 |
---|
comment:3 Changed on 07/15/10 at 11:00:02 by Vinu Rajashekhar
Resolution: | → duplicate |
---|---|
Status: | new → closed |
This is a duplicate of bug 1612
comment:4 Changed on 11/24/14 at 18:58:28 by Gedare Bloom
Version: | HEAD → 4.11 |
---|
Replace Version=HEAD with Version=4.11 for the tickets with Milestone >= 4.11
patch for close.c