Discussion:
Segmentation fault on passwd
Voytek Eymont
2003-08-07 01:57:48 UTC
Permalink
I've created a new user, and, tried to assign him a password, but I get 'seg
fault'

tried both as root, and, as the user himself, same fault

Changing password for user ray.
New password:
(data fseek failed): Invalid argument
Segmentation fault
# su ray
$ passwd
Changing password for user ray.
Changing password for ray
(current) UNIX password:
New password:
(data fseek failed): Invalid argument
Segmentation fault

what should I do, delete the user and create again, or ?


Voytek Eymont
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug
Matthew Palmer
2003-08-06 22:42:26 UTC
Permalink
Post by Voytek Eymont
I've created a new user, and, tried to assign him a password, but I get 'seg
fault'
tried both as root, and, as the user himself, same fault
Changing password for user ray.
(data fseek failed): Invalid argument
Segmentation fault
# su ray
$ passwd
Changing password for user ray.
Changing password for ray
(data fseek failed): Invalid argument
Segmentation fault
what should I do, delete the user and create again, or ?
Run passwd as root under strace and ltrace, and see where it bombs. It
won't work as your ordinary user because it won't have suid.

- Matt
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug
Voytek Eymont
2003-08-07 23:31:40 UTC
Permalink
Post by Matthew Palmer
Run passwd as root under strace and ltrace, and see where it bombs. It
Matthew,

I hope it tells you more than it tells me...

read(5, "", 4096) = 0
getuid32() = 0
open("/etc/passwd", O_RDONLY) = 6
fcntl64(6, F_GETFD) = 0
fcntl64(6, F_SETFD, FD_CLOEXEC) = 0
fstat64(6, {st_mode=S_IFREG|0644, st_size=4317, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40
021000
read(6, "root:x:0:0:root:/root:/bin/bash\n"..., 4096) = 4096
close(6) = 0
munmap(0x40021000, 4096) = 0
_llseek(4, 20480, [20480], SEEK_SET) = 0
read(4, "g\6\0\36h\6\0gh\6\0\255h\6\0\3i\6\0Ji\6\0\226i\6\0\362"..., 4096) = 409
6
fstat64(3, {st_mode=S_IFREG|0600, st_size=828083, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40
021000
_llseek(3, 18446744072216379392, 0xbfff7d50, SEEK_SET) = -1 EINVAL (Invalid argu
ment)
write(2, "(data fseek failed): Invalid arg"..., 38(data fseek failed): Invalid a
rgument
) = 38
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++


[***@koala root]# ltrace passwd ray
__libc_start_main(0x08049940, 2, 0xbffff3e4, 0x08048d10, 0x0804a7b0 <unfinished
..>
__register_frame_info(0x0804c1f4, 0x0804c478, 0xbffff388, 0x080490ce, 0x08048d10
) = 0x0804c1f4
basename("passwd") = "passwd"
poptGetContext(0x0804b0dc, 2, 0xbffff3e4, 0xbffff150, 0) = 0x0804c4b8
poptSetOtherOptionHelp(0x0804c4b8, 0x0804a853, 0, 0, 0) = 0x0804c688
poptGetNextOpt(0x0804c4b8, 0x0804a853, 0, 0, 0) = -1
poptGetArgs(0x0804c4b8, 0x0804a853, 0, 0, 0) = 0x0804c650
getuid() = 0
strlen(0xbffffc4e, 0x0804c650, 0xbffff2d8, 0x080497ae, 0) = 3
getpwnam("ray") = 0x421321b0
printf("Changing password for user %s.\n", "ray"Changing password for user ray.
) = 32
pam_start(0x0804b0dc, 0xbffffc4e, 0x0804c1dc, 0xbffff30c, 0x4000b0a6) = 0
pam_fail_delay(0x0804cb58, 0x001e8480, 0x0804c1dc, 0xbffff30c, 0x4000b0a6) = 0
pam_chauthtok(0x0804cb58, 0, 0x0804c1dc, 0xbffff30c, 0x4000b0a6 <unfinished ...>
misc_conv(1, 0xbfff9048, 0xbfff904c, 0, 0xbfffb060New password:
) = 0
(data fseek failed): Invalid argument
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++
[***@koala root]#



Voytek Eymont
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug
m***@zip.com.au
2003-08-08 11:21:18 UTC
Permalink
On Wed, 6 Aug 2003 20:57:48
Post by Voytek Eymont
I've created a new user, and, tried to assign him a password, but I get 'seg
fault'
Is this the same machine that has a corrupt crt1.o?
Hope you have a good backup -- it sounds sick!

Matt
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug
Shaun Oliver
2003-08-08 13:25:16 UTC
Permalink
hi all, I have here an adsl router which was sent to me from the uk.
I want to know do our providers over here require that the modem support
the telstra heartbeat or whatever the damned thing is,
or am I confusing cable and adsl?
the router afaik has a conexant chipset.
any information would be greatly appreciated.
I'd supply the model number if I could but I ain't asked Sam to read it
off for me yet.
--
Shaun Oliver
"Becareful of the toes u step on today, they maybe connected to the ass you have to kiss tomorrow!"

EMAIL: ***@optusnet.com.au
ICQ: 76958435
YAHOO: blindman01_2000
MSN: ***@hotmail.com
AIM: captain nemo 200
IRC: irc.awesomechat.net:6666
IRCNICK: blindman
CHANNELS: #awesomeradio #mircpopup-magic #linux #help #ourworld #audiofile #mauisun
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug
d***@zip.com.au
2003-08-09 08:53:08 UTC
Permalink
Post by Shaun Oliver
hi all, I have here an adsl router which was sent to me from the uk.
I want to know do our providers over here require that the modem support
the telstra heartbeat or whatever the damned thing is,
or am I confusing cable and adsl?
the router afaik has a conexant chipset.
any information would be greatly appreciated.
I'd supply the model number if I could but I ain't asked Sam to read it
off for me yet.
If you connect it to the Telstra network and it's not approved, you're
risking

A) a huge fine
B) it not working

Buy an approved one from an Australian dealer.

DaZZa
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug
Voytek Eymont
2003-08-09 02:38:37 UTC
Permalink
Post by m***@zip.com.au
Is this the same machine that has a corrupt crt1.o?
Hope you have a good backup -- it sounds sick!
yes

after I reinstalled all the gss stuff, CourierIMAP, zlib, libpng, all compile fine

well, I haven't backed it up, I haven't yet finished installing it, let alone backing
it up.



Voytek Eymont
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug
Loading...