View Issue Details

IDProjectCategoryView StatusLast Update
0002229GNUnetfile-sharing servicepublic2012-06-02 17:15
ReporterLRN Assigned ToChristian Grothoff Due Date
PriorityhighSeveritycrashReproducibilityalways
Status closedResolutionfixed 
Product VersionGit master 
Target Version0.9.3Fixed in Version0.9.3 
Summary0002229: fip_signal_start() relies on metadata to detect directories
Descriptionfip_signal_start() calls GNUNET_FS_meta_data_test_for_directory() on the metadata to detect that it's dealing with a directory and recourse into it. However, GNUnet-FS-GTK allows the user to remove metadata - including the directory mime type, which prevents fip_signal_start() from working correctly, and leads to eventual segfault.
I propose to not to rely on GNUNET_FS_meta_data_test_for_directory() here, and use some other way to detect directories.
TagsNo tags attached.

Activities

Christian Grothoff

2012-03-20 08:36

manager   ~0005645

Well, we used to take the meta data only as "advice" and if it was absent would simply 'try' if the file was a directory anyway later. Also, for directories, the filename is 'supposed' to end with "/". Now, the real issue here clearly is the crash -- nothing can stop the publisher from not putting the "/" or putting the wrong mime type (and I think it is fine if the receiver then doesn't treat the file as a directory).

Can you provide a more detailed crash report?

Christian Grothoff

2012-04-26 11:36

manager   ~0005745

I could not reproduce the crash. However, I removed the call to test for directory-status to fs meta data in SVN 21167, so the underlying cause (if diagnosed correctly) should definitively be gone now.

Issue History

Date ModifiedUsernameFieldChange
2012-03-20 01:10LRNNew Issue
2012-03-20 08:36Christian GrothoffNote Added: 0005645
2012-03-20 08:37Christian GrothoffPrioritylow => high
2012-03-20 08:37Christian GrothoffSeveritytweak => crash
2012-03-20 08:37Christian GrothoffProduct Version => Git master
2012-03-20 08:37Christian GrothoffTarget Version => 0.9.3
2012-03-20 08:37Christian GrothoffStatusnew => feedback
2012-04-26 11:35Christian GrothoffAssigned To => Christian Grothoff
2012-04-26 11:35Christian GrothoffStatusfeedback => assigned
2012-04-26 11:36Christian GrothoffNote Added: 0005745
2012-04-26 11:36Christian GrothoffStatusassigned => resolved
2012-04-26 11:36Christian GrothoffFixed in Version => 0.9.3
2012-04-26 11:36Christian GrothoffResolutionopen => fixed
2012-06-02 17:15Christian GrothoffStatusresolved => closed