Bug 3308 - Internal error in smbd when running smbtorture trans2scan test
Internal error in smbd when running smbtorture trans2scan test
Status: NEW
Product: Samba 3.0
Classification: Unclassified
Component: File Services
3.0.20a
x86 Linux
: P3 normal
: none
Assigned To: Samba Bugzilla Account
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-12-07 07:37 UTC by David
Modified: 2005-12-07 07:37 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David 2005-12-07 07:37:56 UTC
When running smbtorture trans2scan test on samba 3.0.20a server, i got panic in the samba log file:

[2005/12/05 16:11:22, 3] smbd/trans2.c:call_trans2qfsinfo(2128)
  call_trans2qfsinfo: level = 1006
[2005/12/05 16:11:22, 0] lib/fault.c:fault_report(36)
  ===============================================================
[2005/12/05 16:11:22, 0] lib/fault.c:fault_report(37)
  INTERNAL ERROR: Signal 11 in pid 12494 (3.0.20a)

The error is in the file: smbd/trans2.c line: 2350.

2345:			ZERO_STRUCT(fsp);
2346:			ZERO_STRUCT(quotas);
			
2348:			fsp.conn = conn;
2349:			fsp.fnum = -1;
3250:			fsp.fh->fd = -1;

The error is the assignment to fsp.fh->fd while fsp.fh is NULL.

How to reproduce the bug:
Run smbtorture trans2scan test on a samba 3.0.20a server.

Setting:
Server: x86, Linux SLES9 SP2, samba 3.0.20a
Client: Linux Fedora Core 3.