Content-Type: multipart/mixed; boundary="===============6264197403224131560==" MIME-Version: 1.0 From: Marcel Holtmann Subject: Re: Issue with PPP auth and empty username/password Date: Fri, 26 Mar 2010 19:24:46 -0700 Message-ID: <1269656686.11714.188.camel@localhost.localdomain> In-Reply-To: <1269475225.11714.151.camel@localhost.localdomain> List-Id: To: ofono@ofono.org --===============6264197403224131560== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Kristen, > I started tested the PPP code and run into a simple crash when not > providing username and password. This should be possible. > = > Program terminated with signal 11, Segmentation fault. > #0 0x0000003457e7f2f2 in __strlen_sse2 () from /lib64/libc.so.6 > (gdb) bt > #0 0x0000003457e7f2f2 in __strlen_sse2 () from /lib64/libc.so.6 > #1 0x000000000040ca9b in chap_process_challenge (priv=3D0x15a6bf0, new_p= acket=3D0x15a5164 "\001\001") > at gatchat/ppp_auth.c:86 > #2 chap_process_packet (priv=3D0x15a6bf0, new_packet=3D0x15a5164 "\001\0= 01") at gatchat/ppp_auth.c:143 > #3 0x000000000040a66f in ppp_recv (channel=3D, cond= =3D, data=3D0x15a6d50) > at gatchat/ppp.c:205 > #4 ppp_feed (channel=3D, cond=3D, data=3D0x15a6d50) at gatchat/ppp.c:286 > #5 ppp_cb (channel=3D, cond=3D= , data=3D0x15a6d50) at gatchat/ppp.c:340 > #6 0x0000003598a3923e in g_main_context_dispatch () from /lib64/libglib-= 2.0.so.0 > #7 0x0000003598a3cc28 in ?? () from /lib64/libglib-2.0.so.0 > #8 0x0000003598a3d075 in g_main_loop_run () from /lib64/libglib-2.0.so.0 > #9 0x0000000000403918 in main (argc=3D1, argv=3D0x7fff7b97eb28) at gatch= at/gsmdial.c:624 your patches haven't fixed this yet. Core was generated by `./gatchat/gsmdial -n /dev/ttyUSB0 -c 1 -a internet.c= om -l -P'. Program terminated with signal 11, Segmentation fault. #0 __strlen_sse2 () at ../sysdeps/x86_64/strlen.S:31 31 pcmpeqb (%rdi), %xmm2 (gdb) bt #0 __strlen_sse2 () at ../sysdeps/x86_64/strlen.S:31 #1 0x000000000040d13b in chap_process_challenge (priv=3D0x211aba0, new_pac= ket=3D0x2119b7c "\001\001") at gatchat/ppp_auth.c:86 #2 chap_process_packet (priv=3D0x211aba0, new_packet=3D0x2119b7c "\001\001= ") at gatchat/ppp_auth.c:143 #3 0x000000000040a94e in ppp_recv (channel=3D, cond= =3D, data=3D0x211bab0) at gatchat/ppp.c:210 #4 ppp_feed (channel=3D, cond=3D= , data=3D0x211bab0) at gatchat/ppp.c:295 #5 ppp_cb (channel=3D, cond=3D, = data=3D0x211bab0) at gatchat/ppp.c:347 #6 0x0000003598a3923e in g_main_dispatch (context=3D0x2118160) at gmain.c:= 1960 #7 IA__g_main_context_dispatch (context=3D0x2118160) at gmain.c:2513 #8 0x0000003598a3cc28 in g_main_context_iterate (context=3D0x2118160, bloc= k=3D, = dispatch=3D, self=3D) at gmai= n.c:2591 #9 0x0000003598a3d075 in IA__g_main_loop_run (loop=3D0x21183b0) at gmain.c= :2799 #10 0x0000000000403a25 in main (argc=3D1, argv=3D0x7fffa4947bf8) at gatchat= /gsmdial.c:679 Regards Marcel --===============6264197403224131560==--