[Pkg-samba-maint] Bug#445566: Status of bug
Martin Michlmayr
tbm at cyrius.com
Fri Dec 28 17:49:56 UTC 2007
* Martin Michlmayr <tbm at cyrius.com> [2007-12-28 17:24]:
> > It's a compiler bug on arm which can be worked around by rebuilding
> > with -O0. Unfortunately I haven't had a chance to pin down the
> > precise source file that's the problem, so I haven't deployed this
> > workaround in the Debian packages or submitted a test case to the
> > gcc maintainers.
> rpc_parse/parse_prs.o is the problem; can you compile it with -O0 for
> now?
Also, compiling rpc_parse/parse_prs.o with gcc-4.1 and -O2 works,
which explains why this problem showed up only recently.
4.3.0 20071028 shows the same problem as gcc-4.2 with -O1 and with -O2
bin/smbclient segfaults:
(gdb) run -L //localhost/ -U tbm%tbm
Starting program: /home/tbm/src/samba-3.0.28/source/bin/smbclient -L //localhost/ -U tbm%tbm
[Thread debugging using libthread_db enabled]
[New Thread 0x15578090 (LWP 2136)]
Domain=[FOOBAR] OS=[Unix] Server=[Samba 3.0.28]
Sharename Type Comment
--------- ---- -------
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x15578090 (LWP 2136)]
0x00085508 in dbg_rw_punival (charmode=1, name=0x10e3a8 "buffer ", depth=2, ps=0x3e976d68,
in_buf=0x3e976cdc "\f", out_buf=0x10e3a8 "buffer ", len=12) at rpc_parse/parse_prs.c:938
938 SSVAL(in_buf, 2*i, SVAL(out_buf,2*i));
(gdb) where
#0 0x00085508 in dbg_rw_punival (charmode=1, name=0x10e3a8 "buffer ", depth=2, ps=0x3e976d68,
in_buf=0x3e976cdc "\f", out_buf=0x10e3a8 "buffer ", len=12) at rpc_parse/parse_prs.c:938
#1 0x00088240 in prs_unistr2 (charmode=1, name=0x10e3a8 "buffer ", ps=0x3e976d68, depth=2,
str=0x3e976cdc) at rpc_parse/parse_prs.c:1156
#2 0x0008a48c in smb_io_unistr2 (desc=<value optimized out>, uni2=0x3e976cdc,
buffer=<value optimized out>, ps=0x3e976d68, depth=2) at rpc_parse/parse_misc.c:1079
#3 0x00054fb4 in srv_io_q_net_share_enum (desc=<value optimized out>, q_n=0x3e976cd8,
ps=0x3e976d68, depth=1) at rpc_parse/parse_srv.c:1069
#4 0x00043484 in rpccli_srvsvc_net_share_enum (cli=0x1c0d38, mem_ctx=0x1c0d00, info_level=1,
ctr=0x3e978b08, preferred_len=1304, hnd=0x0) at rpc_client/cli_srvsvc.c:85
#5 0x00030728 in main (argc=<value optimized out>, argv=0x0) at client/client.c:3017
(gdb)
Steve, is that information helpful?
--
Martin Michlmayr
http://www.cyrius.com/
More information about the Pkg-samba-maint
mailing list