bugThe GNU Hurd - Bugs: bug #20906, libstore segfaults when failing to...


bug #20906: libstore segfaults when failing to open multiple stores

Submitter:  Carl Fredrik Hammar <hammy>
Submitted:  Sun 26 Aug 2007 03:59:55 PM UTC
Category:  Hurd Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Ready For Test Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Open Reproducibility:  Every Time
Size (loc):  None Planned Release:  None
Effort:  0.00
Wiki-like text discussion box: 

* Mandatory Fields

Add a New Comment Rich Markup

Sun 26 Aug 2007 03:59:55 PM UTC, original submission:  

When layering a store over multiple stores that fail to open, `libchannel' generates a segfault.

To test it just do `settrans -ac foo /hurd/storeio -T file one two', where `one' and `two' doesn't exist.  `foo' will crash after a `echo bar > foo'.

This is due to two `of by one' bugs in `store_parsed_open' and `store_open_children' functions of `libstore'.

I have attached a patch fixing them and as a bonus slightly restructures the affected code in `store_open_children' to match `store_parsed_open'.

Carl Fredrik Hammar <hammy>
Group Member


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #13805:  libstore-multiple-stores-cleanup.diff added by hammy (864B - application/octet-stream)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by hammy (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.


    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2007-08-26 hammy Attached File- Added libstore-multiple-stores-cleanup.diff, #13805

    Back to the top

    Powered by Savane 3.12.
    Corresponding source code