Bug 11274 - samba_tevent: EPOLL_CTL_DEL EBADF from smbc_stat
samba_tevent: EPOLL_CTL_DEL EBADF from smbc_stat
Status: NEW
Product: Samba 4.1 and newer
Classification: Unclassified
Component: libsmbclient
4.1.13
All All
: P5 normal
: ---
Assigned To: Samba QA Contact
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-05-13 21:42 UTC by Ross Lagerwall
Modified: 2015-05-24 19:42 UTC (History)
1 user (show)

See Also:


Attachments
log for a failed attempt (2.57 KB, text/plain)
2015-05-13 21:43 UTC, Ross Lagerwall
no flags Details
log for a successful attempt (15.31 KB, text/plain)
2015-05-13 21:43 UTC, Ross Lagerwall
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ross Lagerwall 2015-05-13 21:42:55 UTC
From gvfs bug https://bugzilla.gnome.org/show_bug.cgi?id=747718

Sometimes, randomly, mounting fails with "Invalid argument".

During a successful mount:
parse_nmb: packet id = 14196
nmb packet from 192.168.1.15(35072) header: id=14196 opcode=Query(0) response=Yes
    header: flags: bcast=No rec_avail=Yes rec_des=Yes trunc=No auth=Yes
    header: rcode=0 qdcount=0 ancount=1 nscount=0 arcount=0
    answers: nmb_name=PC<20> rr_type=32 rr_class=1 ttl=259200
    answers   0 char ......   hex 0000C0A8010F
Got a positive name query response from 192.168.1.15 ( 192.168.1.15 )
remove_duplicate_addrs2: looking for duplicate address/port pairs
namecache_store: storing 1 address for pc#20: 192.168.1.15
Adding cache entry with key=[NBT/PC#20] and timeout=[Thu May  7 05:43:56 AM 2015 CDT] (660 seconds ahead)
internal_resolve_name: returning 1 addresses: 192.168.1.15:0 
Connecting to 192.168.1.15 at port 445

During a failed mount:
samba_tevent: EPOLL_CTL_DEL EBADF for fde[0x7f97b000c6f0] mpx_fde[(nil)] fd[12] - disabling
map_errno_from_nt_status: 32 bit codes: code=c0000001
### SMB: do_mount - [smb://pc/share; 0] res = -1, cancelled = 0, errno = [22] 'Invalid argument' 
### SMB: do_mount - (errno != EPERM && errno != EACCES), cancelled = 0, breaking

Full logs to follow.

Thanks
Comment 1 Ross Lagerwall 2015-05-13 21:43:18 UTC
Created attachment 11054 [details]
log for a failed attempt
Comment 2 Ross Lagerwall 2015-05-13 21:43:31 UTC
Created attachment 11055 [details]
log for a successful attempt
Comment 3 Jeremy Allison 2015-05-13 23:09:25 UTC
Can you get a debug level 10 log when it fails ? What kernel version is this being run on ?
Comment 4 Ross Lagerwall 2015-05-14 06:16:38 UTC
See the attached "log for a failed attempt", that is debug level 10.

From the Ubuntu bug report (https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1442972) it is Linux 3.19.0-12-generic.