* [gentoo-user] Samba crashes after upgrading system
@ 2005-07-15 22:24 Robert Cernansky
2005-07-16 18:03 ` Zac Medico
0 siblings, 1 reply; 14+ messages in thread
From: Robert Cernansky @ 2005-07-15 22:24 UTC (permalink / raw
To: gentoo-user
Hello,
I just upgraded my system (emerge -u world) and after restart samba do not
start. (Samba was not upgraded.) In the /var/log/messages I see:
Jul 15 23:59:25 amit smbd[7829]: [2005/07/15 23:59:25, 0] lib/fault.c:fault_report(36)
Jul 15 23:59:25 amit smbd[7829]: ===============================================================
Jul 15 23:59:25 amit smbd[7829]: [2005/07/15 23:59:25, 0] lib/fault.c:fault_report(37)
Jul 15 23:59:25 amit smbd[7829]: INTERNAL ERROR: Signal 11 in pid 7829 (3.0.10)
Jul 15 23:59:25 amit smbd[7829]: Please read the appendix Bugs of the Samba HOWTO collection
Jul 15 23:59:25 amit smbd[7829]: [2005/07/15 23:59:25, 0] lib/fault.c:fault_report(39)
Jul 15 23:59:25 amit smbd[7829]: ===============================================================
Jul 15 23:59:25 amit smbd[7829]: [2005/07/15 23:59:25, 0] lib/util.c:smb_panic2(1482)
Jul 15 23:59:25 amit smbd[7829]: PANIC: internal error
Jul 15 23:59:25 amit smbd[7829]: [2005/07/15 23:59:25, 0] lib/util.c:smb_panic2(1490)
Jul 15 23:59:25 amit smbd[7829]: BACKTRACE: 22 stack frames:
Jul 15 23:59:25 amit smbd[7829]: #0 /usr/sbin/smbd(smb_panic2+0x64) [0x575794]
[snip]
Jul 15 23:59:25 amit smbd[7829]:
Jul 15 23:59:26 amit nmbd[7831]: [2005/07/15 23:59:26, 0] lib/fault.c:fault_report(36)
Jul 15 23:59:26 amit nmbd[7831]: ===============================================================
Jul 15 23:59:26 amit nmbd[7831]: [2005/07/15 23:59:26, 0] lib/fault.c:fault_report(37)
Jul 15 23:59:26 amit nmbd[7831]: INTERNAL ERROR: Signal 11 in pid 7831 (3.0.10)
Jul 15 23:59:26 amit nmbd[7831]: Please read the appendix Bugs of the Samba HOWTO collection
Jul 15 23:59:26 amit nmbd[7831]: [2005/07/15 23:59:26, 0] lib/fault.c:fault_report(39)
Jul 15 23:59:26 amit nmbd[7831]: ===============================================================
Jul 15 23:59:26 amit nmbd[7831]: [2005/07/15 23:59:26, 0] lib/util.c:smb_panic2(1482)
Jul 15 23:59:26 amit nmbd[7831]: PANIC: internal error
Jul 15 23:59:26 amit nmbd[7831]: [2005/07/15 23:59:26, 0] lib/util.c:smb_panic2(1490)
Jul 15 23:59:26 amit nmbd[7831]: BACKTRACE: 22 stack frames:
Jul 15 23:59:26 amit nmbd[7831]: #0 /usr/sbin/nmbd(smb_panic2+0x64) [0x481844]
[snip]
Mounting network filesystems (smb shares) and various samba comands
(smbtree, smbstatus) also crashes. I've tried re-emerge samba but it did
not help. Any idea where could be the problem? I have amd64 system. The
important packages that was upgraded are:
[ebuild U ] sys-libs/zlib-1.2.2-r1 [1.2.2] -build 0 kB
[ebuild U ] sys-devel/gcc-config-1.3.11-r4 [1.3.11-r3] 0 kB
[ebuild U ] sys-kernel/linux-headers-2.6.11-r2 [2.6.8.1-r4] 0 kB
[ebuild U ] sys-libs/glibc-2.3.5 [2.3.4.20041102-r1] -build -debug -erandom -hardened (-multilib) +nls -nptl -nptlonly -pic (-selinux) +userlocales 0 kB
[ebuild U ] sys-devel/libtool-1.5.18-r1 [1.5.16] 0 kB
[snip]
[ebuild NS ] sys-libs/db-4.2.52_p2 -bootstrap -doc -java -nocxx +tcltk 0 kB
[ebuild U ] sys-libs/pam-0.78-r2 [0.77-r6] +berkdb -nis -pam_chroot -pam_console -pam_timestamp -pwdb (-selinux) 0 kB
[ebuild U ] sys-apps/shadow-4.0.7-r3 [4.0.5-r3] +nls +pam (-selinux) -skey 0 kB
[ebuild U ] sys-apps/pam-login-3.17 [3.14] -livecd +nls (-selinux) 0 kB
[snip]
[ebuild U ] sys-fs/udev-058 [056] (-selinux) -static 0 kB
Thanks
Robert
--
Robert Cernansky
E-mail: hslists2@zoznam.sk
Jabber: HS@jabber.sk
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Samba crashes after upgrading system
2005-07-15 22:24 [gentoo-user] Samba crashes after upgrading system Robert Cernansky
@ 2005-07-16 18:03 ` Zac Medico
2005-07-16 19:33 ` Re[2]: " Robert Cernansky
0 siblings, 1 reply; 14+ messages in thread
From: Zac Medico @ 2005-07-16 18:03 UTC (permalink / raw
To: gentoo-user
Robert Cernansky wrote:
> Hello,
>
> I just upgraded my system (emerge -u world) and after restart samba do not
> start. (Samba was not upgraded.) In the /var/log/messages I see:
>
[snip]
> [snip]
>
> Mounting network filesystems (smb shares) and various samba comands
> (smbtree, smbstatus) also crashes. I've tried re-emerge samba but it did
> not help. Any idea where could be the problem? I have amd64 system. The
> important packages that was upgraded are:
>
> [ebuild U ] sys-libs/zlib-1.2.2-r1 [1.2.2] -build 0 kB
> [ebuild U ] sys-devel/gcc-config-1.3.11-r4 [1.3.11-r3] 0 kB
> [ebuild U ] sys-kernel/linux-headers-2.6.11-r2 [2.6.8.1-r4] 0 kB
> [ebuild U ] sys-libs/glibc-2.3.5 [2.3.4.20041102-r1] -build -debug -erandom -hardened (-multilib) +nls -nptl -nptlonly -pic (-selinux) +userlocales 0 kB
> [ebuild U ] sys-devel/libtool-1.5.18-r1 [1.5.16] 0 kB
> [snip]
> [ebuild NS ] sys-libs/db-4.2.52_p2 -bootstrap -doc -java -nocxx +tcltk 0 kB
> [ebuild U ] sys-libs/pam-0.78-r2 [0.77-r6] +berkdb -nis -pam_chroot -pam_console -pam_timestamp -pwdb (-selinux) 0 kB
> [ebuild U ] sys-apps/shadow-4.0.7-r3 [4.0.5-r3] +nls +pam (-selinux) -skey 0 kB
> [ebuild U ] sys-apps/pam-login-3.17 [3.14] -livecd +nls (-selinux) 0 kB
> [snip]
> [ebuild U ] sys-fs/udev-058 [056] (-selinux) -static 0 kB
>
> Thanks
>
> Robert
>
>
Did you run revdep-rebuild after the update? That's always a good idea when libraries are updated.
Zac
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re[2]: [gentoo-user] Samba crashes after upgrading system
2005-07-16 18:03 ` Zac Medico
@ 2005-07-16 19:33 ` Robert Cernansky
2005-07-16 19:49 ` Richard Fish
2005-07-16 19:58 ` Zac Medico
0 siblings, 2 replies; 14+ messages in thread
From: Robert Cernansky @ 2005-07-16 19:33 UTC (permalink / raw
To: gentoo-user
On Sat, 16 Jul 2005 11:03:02 -0700 Zac Medico <zmedico@gmail.com> wrote:
ZM> Robert Cernansky wrote:
ZM> > Hello,
ZM> >
ZM> > I just upgraded my system (emerge -u world) and after restart samba do not
ZM> > start. (Samba was not upgraded.) In the /var/log/messages I see:
ZM> > [snip]
ZM> >
ZM> > Mounting network filesystems (smb shares) and various samba comands
ZM> > (smbtree, smbstatus) also crashes. I've tried re-emerge samba but it did
ZM> > not help. Any idea where could be the problem? I have amd64 system. The
ZM> > important packages that was upgraded are:
[snip]
ZM> Did you run revdep-rebuild after the update? That's always a good idea when libraries are updated.
Yes, I did. Only openoffice-bin and opera were listed. I've also tried
emerge latest unstable version of samba (3.0.14a-r1) but it did not help.
I posted bugreport about this
(http://bugs.gentoo.org/show_bug.cgi?id=99184). Anyway, any
sugestions/workarounds are welcome.
Robert
--
Robert Cernansky
E-mail: hslists2@zoznam.sk
Jabber: HS@jabber.sk
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Samba crashes after upgrading system
2005-07-16 19:33 ` Re[2]: " Robert Cernansky
@ 2005-07-16 19:49 ` Richard Fish
2005-07-16 20:48 ` Re[2]: " Robert Cernansky
2005-07-16 19:58 ` Zac Medico
1 sibling, 1 reply; 14+ messages in thread
From: Richard Fish @ 2005-07-16 19:49 UTC (permalink / raw
To: gentoo-user
Robert Cernansky wrote:
>On Sat, 16 Jul 2005 11:03:02 -0700 Zac Medico <zmedico@gmail.com> wrote:
>
>ZM> Robert Cernansky wrote:
>ZM> > Hello,
>ZM> >
>ZM> > I just upgraded my system (emerge -u world) and after restart samba do not
>ZM> > start. (Samba was not upgraded.) In the /var/log/messages I see:
>ZM> > [snip]
>ZM> >
>ZM> > Mounting network filesystems (smb shares) and various samba comands
>ZM> > (smbtree, smbstatus) also crashes. I've tried re-emerge samba but it did
>ZM> > not help. Any idea where could be the problem? I have amd64 system. The
>ZM> > important packages that was upgraded are:
>[snip]
>ZM> Did you run revdep-rebuild after the update? That's always a good idea when libraries are updated.
>
>Yes, I did. Only openoffice-bin and opera were listed. I've also tried
>emerge latest unstable version of samba (3.0.14a-r1) but it did not help.
>
>I posted bugreport about this
>(http://bugs.gentoo.org/show_bug.cgi?id=99184). Anyway, any
>sugestions/workarounds are welcome.
>
>Robert
>
>
>
>
I will quote from "info gcc"
The following options control optimizations that may improve
performance, but are not enabled by any `-O' options. This section
includes experimental options that may produce broken code.
<snip>
`-ftracer'
Perform tail duplication to enlarge superblock size. This
transformation simplifies the control flow of the function
allowing other optimizations to do better job.
Rebuild without experimental optimization options if you want real
support! ;->
-Richard
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Samba crashes after upgrading system
2005-07-16 19:33 ` Re[2]: " Robert Cernansky
2005-07-16 19:49 ` Richard Fish
@ 2005-07-16 19:58 ` Zac Medico
2005-07-16 20:57 ` Re[2]: " Robert Cernansky
1 sibling, 1 reply; 14+ messages in thread
From: Zac Medico @ 2005-07-16 19:58 UTC (permalink / raw
To: gentoo-user
Robert Cernansky wrote:
> On Sat, 16 Jul 2005 11:03:02 -0700 Zac Medico <zmedico@gmail.com> wrote:
>
> ZM> Robert Cernansky wrote:
> ZM> > Hello,
> ZM> >
> ZM> > I just upgraded my system (emerge -u world) and after restart samba do not
> ZM> > start. (Samba was not upgraded.) In the /var/log/messages I see:
> ZM> > [snip]
> ZM> >
> ZM> > Mounting network filesystems (smb shares) and various samba comands
> ZM> > (smbtree, smbstatus) also crashes. I've tried re-emerge samba but it did
> ZM> > not help. Any idea where could be the problem? I have amd64 system. The
> ZM> > important packages that was upgraded are:
> [snip]
> ZM> Did you run revdep-rebuild after the update? That's always a good idea when libraries are updated.
>
> Yes, I did. Only openoffice-bin and opera were listed. I've also tried
> emerge latest unstable version of samba (3.0.14a-r1) but it did not help.
>
> I posted bugreport about this
> (http://bugs.gentoo.org/show_bug.cgi?id=99184). Anyway, any
> sugestions/workarounds are welcome.
>
> Robert
>
>
Pam and glibc are direct dependancies of samba that you upgraded. I would roll those back one by one to see if that helps. Do you have binary packages of the old versions (from quickpkg or FEATURES=buildpkg)?
Oh, and like Richard said, try some normal CFLAGS before you file bugs :-p.
Zac
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re[2]: [gentoo-user] Samba crashes after upgrading system
2005-07-16 19:49 ` Richard Fish
@ 2005-07-16 20:48 ` Robert Cernansky
2005-07-16 20:59 ` Zac Medico
0 siblings, 1 reply; 14+ messages in thread
From: Robert Cernansky @ 2005-07-16 20:48 UTC (permalink / raw
To: gentoo-user
On Sat, 16 Jul 2005 21:49:44 +0200 Richard Fish <bigfish@asmallpond.org> wrote:
RF> Robert Cernansky wrote:
RF>
RF> >On Sat, 16 Jul 2005 11:03:02 -0700 Zac Medico <zmedico@gmail.com> wrote:
RF> >
RF> >ZM> Robert Cernansky wrote:
RF> >ZM> > I just upgraded my system (emerge -u world) and after restart samba do not
RF> >ZM> > start. (Samba was not upgraded.) In the /var/log/messages I see:
RF> >ZM> > [snip]
RF> >ZM> >
RF> >ZM> > Mounting network filesystems (smb shares) and various samba comands
RF> >ZM> > (smbtree, smbstatus) also crashes. I've tried re-emerge samba but it did
RF> >ZM> > not help. Any idea where could be the problem? I have amd64 system. The
RF> >ZM> > important packages that was upgraded are:
RF> >[snip]
RF> >ZM> Did you run revdep-rebuild after the update? That's always a good idea when libraries are updated.
RF> >
RF> >Yes, I did. Only openoffice-bin and opera were listed. I've also tried
RF> >emerge latest unstable version of samba (3.0.14a-r1) but it did not help.
RF> >
RF> Rebuild without experimental optimization options if you want real
RF> support! ;->
Ouch. Should I recompile whole system (please no ;-)) or samba only? Or,
maybe samba and glibc and pam as Zac wrote that these are direct
dependancies.
--
Robert Cernansky
E-mail: hslists2@zoznam.sk
Jabber: HS@jabber.sk
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re[2]: [gentoo-user] Samba crashes after upgrading system
2005-07-16 19:58 ` Zac Medico
@ 2005-07-16 20:57 ` Robert Cernansky
2005-07-16 21:08 ` Zac Medico
0 siblings, 1 reply; 14+ messages in thread
From: Robert Cernansky @ 2005-07-16 20:57 UTC (permalink / raw
To: gentoo-user
On Sat, 16 Jul 2005 12:58:32 -0700 Zac Medico <zmedico@gmail.com> wrote:
ZM> Robert Cernansky wrote:
ZM> > On Sat, 16 Jul 2005 11:03:02 -0700 Zac Medico <zmedico@gmail.com> wrote:
ZM> >
ZM> > ZM> Robert Cernansky wrote:
ZM> > ZM> > I just upgraded my system (emerge -u world) and after restart samba do not
ZM> > ZM> > start. (Samba was not upgraded.) In the /var/log/messages I see:
ZM> > ZM> > [snip]
ZM> > ZM> >
ZM> > ZM> > Mounting network filesystems (smb shares) and various samba comands
ZM> > ZM> > (smbtree, smbstatus) also crashes. I've tried re-emerge samba but it did
ZM> > ZM> > not help. Any idea where could be the problem? I have amd64 system. The
ZM> > ZM> > important packages that was upgraded are:
ZM> > [snip]
ZM> > ZM> Did you run revdep-rebuild after the update? That's always a good idea when libraries are updated.
ZM> >
ZM> > Yes, I did. Only openoffice-bin and opera were listed. I've also tried
ZM> > emerge latest unstable version of samba (3.0.14a-r1) but it did not help.
ZM> >
ZM> Pam and glibc are direct dependancies of samba that you upgraded. I
ZM> would roll those back one by one to see if that helps. Do you have binary
ZM> packages of the old versions (from quickpkg or FEATURES=buildpkg)?
I read in some forums that downgrading glibc is not good idea. It is true?
I have not old binary packages but they are still in portage so I still can
install them. But at first I'll rebuild current versions without -ftracer.
Thanks.
Robert
--
Robert Cernansky
E-mail: hslists2@zoznam.sk
Jabber: HS@jabber.sk
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Samba crashes after upgrading system
2005-07-16 20:48 ` Re[2]: " Robert Cernansky
@ 2005-07-16 20:59 ` Zac Medico
0 siblings, 0 replies; 14+ messages in thread
From: Zac Medico @ 2005-07-16 20:59 UTC (permalink / raw
To: gentoo-user
Robert Cernansky wrote:
>
> Ouch. Should I recompile whole system (please no ;-)) or samba only? Or,
> maybe samba and glibc and pam as Zac wrote that these are direct
> dependancies.
>
Unless you're just experimenting, it's really a bad idea to use fringe CFLAGS that most other people aren't using. If you have have binary packages of your old versions that weren't *noticeably* broken then that's a good place to start. In the long run, you want to have most of your packages, expecially the core libraries, built with known safe CFLAGS.
Zac
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Samba crashes after upgrading system
2005-07-16 20:57 ` Re[2]: " Robert Cernansky
@ 2005-07-16 21:08 ` Zac Medico
2005-07-16 21:42 ` Richard Fish
0 siblings, 1 reply; 14+ messages in thread
From: Zac Medico @ 2005-07-16 21:08 UTC (permalink / raw
To: gentoo-user
Robert Cernansky wrote:
>
> I read in some forums that downgrading glibc is not good idea. It is true?
> I have not old binary packages but they are still in portage so I still can
> install them. But at first I'll rebuild current versions without -ftracer.
>
In that case I would just rebuild the current version without -ftracer. In the future use quickpkg or FEATURES=buildpkg to give yourself a roll back plan. AFAICT downgrading glibc should not be much of an issue in itself because the API is still the same and it would just take you back where you were before.
Zac
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Samba crashes after upgrading system
2005-07-16 21:08 ` Zac Medico
@ 2005-07-16 21:42 ` Richard Fish
2005-07-17 15:59 ` Re[2]: " Robert Cernansky
0 siblings, 1 reply; 14+ messages in thread
From: Richard Fish @ 2005-07-16 21:42 UTC (permalink / raw
To: gentoo-user
Zac Medico wrote:
> Robert Cernansky wrote:
>
>>
>> I read in some forums that downgrading glibc is not good idea. It is
>> true?
>> I have not old binary packages but they are still in portage so I
>> still can
>> install them. But at first I'll rebuild current versions without
>> -ftracer.
>>
>
> In that case I would just rebuild the current version without
> -ftracer. In the future use quickpkg or FEATURES=buildpkg to give
> yourself a roll back plan. AFAICT downgrading glibc should not be
> much of an issue in itself because the API is still the same and it
> would just take you back where you were before.
>
> Zac
For a complete list of packages that should be rebuilt, you can run:
equery belongs `ldd /usr/sbin/smbd | grep ' /' | awk '{print $3}'` |
sort | uniq
This will print the name of every package that contains a library that
smbd depends upon.
I would not rebuild the entire system at this point, but if -ftracer
does turn out to be the source of your problem, then a rebuild should
scheduled soon!
-Richard
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re[2]: [gentoo-user] Samba crashes after upgrading system
2005-07-16 21:42 ` Richard Fish
@ 2005-07-17 15:59 ` Robert Cernansky
2005-07-17 17:45 ` Zac Medico
0 siblings, 1 reply; 14+ messages in thread
From: Robert Cernansky @ 2005-07-17 15:59 UTC (permalink / raw
To: gentoo-user
On Sat, 16 Jul 2005 23:42:02 +0200 Richard Fish <bigfish@asmallpond.org> wrote:
RF> Zac Medico wrote:
RF> >
RF> > In that case I would just rebuild the current version without
RF> > -ftracer. In the future use quickpkg or FEATURES=buildpkg to give
RF> > yourself a roll back plan. AFAICT downgrading glibc should not be
RF> > much of an issue in itself because the API is still the same and it
RF> > would just take you back where you were before.
RF>
RF> For a complete list of packages that should be rebuilt, you can run:
RF>
RF> equery belongs `ldd /usr/sbin/smbd | grep ' /' | awk '{print $3}'` |
RF> sort | uniq
RF>
RF> This will print the name of every package that contains a library that
RF> smbd depends upon.
RF>
RF> I would not rebuild the entire system at this point, but if -ftracer
RF> does turn out to be the source of your problem, then a rebuild should
RF> scheduled soon!
Well, ldd shows that smbtree depends on popt and glibc. According to gdb,
the problem seems to be in glibc (/usr/lib64/gconv/IBM852.so belongs to
glibc):
$ gdb smbtree
[snip]
(gdb) r
Starting program: /usr/bin/smbtree
(no debugging symbols found)
(no debugging symbols found)
[snip]
Program received signal SIGSEGV, Segmentation fault.
0x00002aaaab4459bc in gconv () from /usr/lib64/gconv/IBM852.so
(gdb) bt
#0 0x00002aaaab4459bc in gconv () from /usr/lib64/gconv/IBM852.so
#1 0x00002aaaab23efa2 in gconv () from /usr/lib64/gconv/UTF-16.so
#2 0x00002aaaab034f78 in iconv_close () from /lib/libc.so.6
#3 0x00002aaaab03456b in iconv () from /lib/libc.so.6
#4 0x00000000004416b0 in smb_register_charset ()
#5 0x00000000004417db in smb_iconv ()
#6 0x00000000004222fa in lazy_initialize_conv ()
#7 0x000000000042283b in convert_string ()
#8 0x0000000000432308 in init_doschar_table ()
#9 0x00000000004221c4 in init_iconv ()
#10 0x000000000041c9e4 in lp_file_list_changed ()
#11 0x000000000041dfc5 in lp_do_parameter ()
#12 0x000000000042085a in set_store_dos_attributes ()
#13 0x0000000000420b98 in pm_process ()
#14 0x000000000041f83b in lp_load ()
#15 0x0000000000418c68 in main ()
So I decide to downgrade glibc first, but it did not help. Then I downgrade
linux-headers and re-emerge (downgraded) glibc and samba (for sure). Again
without success. :-( I removed -ftracer at first of course.
I'm stuck now. I don't believe that rebuild of whole system (without
-ftracer) fixes the problem because /usr/lib64/gconv/IBM852.so depends only
on libraries from glibc.
$ ldd /usr/lib64/gconv/IBM852.so
libc.so.6 => /lib/libc.so.6 (0x00002aaaaabce000)
/lib64/ld-linux-x86-64.so.2 (0x0000555555554000)
$ ldd /lib/libc.so.6
/lib64/ld-linux-x86-64.so.2 (0x00002aaaaaaab000)
$ ldd /lib64/ld-linux-x86-64.so.2
statically linked
What do you think?
Robert
--
Robert Cernansky
E-mail: hslists2@zoznam.sk
Jabber: HS@jabber.sk
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Samba crashes after upgrading system
2005-07-17 15:59 ` Re[2]: " Robert Cernansky
@ 2005-07-17 17:45 ` Zac Medico
2005-07-17 18:50 ` Re[2]: " Robert Cernansky
0 siblings, 1 reply; 14+ messages in thread
From: Zac Medico @ 2005-07-17 17:45 UTC (permalink / raw
To: gentoo-user
Robert Cernansky wrote:
> RF>
> RF> For a complete list of packages that should be rebuilt, you can run:
> RF>
> RF> equery belongs `ldd /usr/sbin/smbd | grep ' /' | awk '{print $3}'` |
> RF> sort | uniq
> RF>
> RF> This will print the name of every package that contains a library that
> RF> smbd depends upon.
> RF>
> RF> I would not rebuild the entire system at this point, but if -ftracer
> RF> does turn out to be the source of your problem, then a rebuild should
> RF> scheduled soon!
>
> Well, ldd shows that smbtree depends on popt and glibc. According to gdb,
> the problem seems to be in glibc (/usr/lib64/gconv/IBM852.so belongs to
> glibc):
>
> $ gdb smbtree
> [snip]
> (gdb) r
> Starting program: /usr/bin/smbtree
> (no debugging symbols found)
> (no debugging symbols found)
> [snip]
> Program received signal SIGSEGV, Segmentation fault.
> 0x00002aaaab4459bc in gconv () from /usr/lib64/gconv/IBM852.so
> (gdb) bt
> #0 0x00002aaaab4459bc in gconv () from /usr/lib64/gconv/IBM852.so
> #1 0x00002aaaab23efa2 in gconv () from /usr/lib64/gconv/UTF-16.so
> #2 0x00002aaaab034f78 in iconv_close () from /lib/libc.so.6
> #3 0x00002aaaab03456b in iconv () from /lib/libc.so.6
> #4 0x00000000004416b0 in smb_register_charset ()
> #5 0x00000000004417db in smb_iconv ()
> #6 0x00000000004222fa in lazy_initialize_conv ()
> #7 0x000000000042283b in convert_string ()
> #8 0x0000000000432308 in init_doschar_table ()
> #9 0x00000000004221c4 in init_iconv ()
> #10 0x000000000041c9e4 in lp_file_list_changed ()
> #11 0x000000000041dfc5 in lp_do_parameter ()
> #12 0x000000000042085a in set_store_dos_attributes ()
> #13 0x0000000000420b98 in pm_process ()
> #14 0x000000000041f83b in lp_load ()
> #15 0x0000000000418c68 in main ()
>
> So I decide to downgrade glibc first, but it did not help. Then I downgrade
> linux-headers and re-emerge (downgraded) glibc and samba (for sure). Again
> without success. :-( I removed -ftracer at first of course.
>
> I'm stuck now. I don't believe that rebuild of whole system (without
> -ftracer) fixes the problem because /usr/lib64/gconv/IBM852.so depends only
> on libraries from glibc.
>
> $ ldd /usr/lib64/gconv/IBM852.so
> libc.so.6 => /lib/libc.so.6 (0x00002aaaaabce000)
> /lib64/ld-linux-x86-64.so.2 (0x0000555555554000)
> $ ldd /lib/libc.so.6
> /lib64/ld-linux-x86-64.so.2 (0x00002aaaaaaab000)
> $ ldd /lib64/ld-linux-x86-64.so.2
> statically linked
>
> What do you think?
>
> Robert
>
>
Maybe something in your toolchain is broken. If you don't have a trusted toolchain then you can borrow the toolchain from a livecd to rebuild gcc, binutils, and libtool.
Zac
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re[2]: [gentoo-user] Samba crashes after upgrading system
2005-07-17 17:45 ` Zac Medico
@ 2005-07-17 18:50 ` Robert Cernansky
2005-07-17 19:02 ` Zac Medico
0 siblings, 1 reply; 14+ messages in thread
From: Robert Cernansky @ 2005-07-17 18:50 UTC (permalink / raw
To: gentoo-user
On Sun, 17 Jul 2005 10:45:00 -0700 Zac Medico <zmedico@gmail.com> wrote:
ZM> Robert Cernansky wrote:
ZM> > So I decide to downgrade glibc first, but it did not help. Then I downgrade
ZM> > linux-headers and re-emerge (downgraded) glibc and samba (for sure). Again
ZM> > without success. :-( I removed -ftracer at first of course.
ZM> >
ZM> > I'm stuck now. I don't believe that rebuild of whole system (without
ZM> > -ftracer) fixes the problem because /usr/lib64/gconv/IBM852.so depends only
ZM> > on libraries from glibc.
ZM>
ZM> Maybe something in your toolchain is broken. If you don't have a
ZM> trusted toolchain then you can borrow the toolchain from a livecd to
ZM> rebuild gcc, binutils, and libtool.
Great idea with this livecd. I just replaced /usr/lib64/gconv/IBM852.so
with that one from livecd and it works! When I'll have more time I'll try
to rebuild toolchain as you suggested. Thank You.
Robert.
--
Robert Cernansky
E-mail: hslists2@zoznam.sk
Jabber: HS@jabber.sk
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Samba crashes after upgrading system
2005-07-17 18:50 ` Re[2]: " Robert Cernansky
@ 2005-07-17 19:02 ` Zac Medico
0 siblings, 0 replies; 14+ messages in thread
From: Zac Medico @ 2005-07-17 19:02 UTC (permalink / raw
To: gentoo-user
Robert Cernansky wrote:
>
> Great idea with this livecd. I just replaced /usr/lib64/gconv/IBM852.so
> with that one from livecd and it works! When I'll have more time I'll try
> to rebuild toolchain as you suggested. Thank You.
>
> Robert.
>
>
Great! Actually, I meant to say stage3 instead of livecd. You can chroot into a stage3 and use quickpkg to make binary packages out of anything you need (glibc, gcc, etc..). Then install those binary packages on your broken system.
Zac
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2005-07-17 19:07 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-15 22:24 [gentoo-user] Samba crashes after upgrading system Robert Cernansky
2005-07-16 18:03 ` Zac Medico
2005-07-16 19:33 ` Re[2]: " Robert Cernansky
2005-07-16 19:49 ` Richard Fish
2005-07-16 20:48 ` Re[2]: " Robert Cernansky
2005-07-16 20:59 ` Zac Medico
2005-07-16 19:58 ` Zac Medico
2005-07-16 20:57 ` Re[2]: " Robert Cernansky
2005-07-16 21:08 ` Zac Medico
2005-07-16 21:42 ` Richard Fish
2005-07-17 15:59 ` Re[2]: " Robert Cernansky
2005-07-17 17:45 ` Zac Medico
2005-07-17 18:50 ` Re[2]: " Robert Cernansky
2005-07-17 19:02 ` Zac Medico
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox