Bug#982250: Forking on MMSD

2021-04-14 Thread Pavel Machek
Hi!

> In talking to the Debian Developer Mr. Federico Ceratto, since I have
> been unable to get a hold of the Ofono Maintainers, the best course of
> action for packaging mmsd into Debian is to simply fork the project and
> submit my version upstream for packaging in Debian. My repository is
> here: https://source.puri.sm/kop316/mmsd/

Ofono maintainers are normally pretty responsive, and yes, you seem to
be cc-ing the right list.

I don't think forking ofono is good idea.

Best regards,
Pavel
-- 
http://www.livejournal.com/~pavelmachek


signature.asc
Description: PGP signature


Bug#844788: 4.16-rc3 fails to resume on MacBookPro10,1 -

2018-03-11 Thread Pavel Machek
Hi!

> >> This is 4.15 kernel with KPTI disabled:
> >> % grep PAGE_TABLE .config
> >> # CONFIG_PAGE_TABLE_ISOLATION is not set
> >>
> >> As I expected it appears no more infomative to me.
> >>
> >> What I really need is some clue as to what is supposed to be happening
> >> at this point.
> >
> > You may want to add some printks to see where it hangs.
> >
> > But maybe before that, you may want to test CPU hotplug, and make sure
> > s2ram works, etc...
> >
> > Perhaps basic-pm-debugging.txt is good place to start?
> >
> > Best regards,
> > 
> > Pavel
> > --
> 
> Ok - all the test modes work but a full s2ram hangs (never comes back)
> and obviously the resume full save to disk fails.
> 
> I attach the following files:
> 
> echo reboot > /sys/power/disk
> echo disk > /sys/power/state
> Then saved dmesg to file  dmesg-reboot-disk-ok.txt

So with "reboot" mode, hibernation works as expected, you just have to
power down machine manually?

> I tried to add some debug to hibernation_restore() but saw nothing.
>  Not sure if I doing this correctly but I believe the last know dmesg
> entry is from swsusp_read() in kernel/power/swap.c
> but then I should see something in hibernation_restore() but as the
> console might not work or something I can't be sure
> 
> Further directions appreciated

You may want to try without thunderbolt support / talk to thunderbolt
people:

pciehp seems to have bad problems, too.

I'd suggest debugging with s2ram (as it is less tricky) and removing
all modules you don't really need.

Good luck,
Pavel

> [  340.781428] calling  :04:00.0+ @ 2273, parent: :00:1c.1
> [  340.781430] calling  :03:00.1+ @ 2292, parent: :00:1c.0
> [  340.781431] calling  :03:00.0+ @ 2217, parent: :00:1c.0
> [  340.781435] calling  :07:00.0+ @ 2207, parent: :06:00.0
> [  340.781439] calling  :06:06.0+ @ 2197, parent: :05:00.0
> [  340.781441] thunderbolt :07:00.0: suspending...
> [  340.781446] [ cut here ]
> [  340.781448] tb_cfg_write: -108
> [  340.781454] calling  PNP0C09:00+ @ 2337, parent: device:2c
> [  340.781456] call PNP0C09:00+ returned 0 after 0 usecs
> [  340.781486] WARNING: CPU: 3 PID: 2207 at drivers/thunderbolt/ctl.c:981 
> tb_cfg_write+0x6f/0xd0 [thunderbolt]
> [  340.781487] calling  :06:05.0+ @ 2202, parent: :05:00.0
> [  340.781488] calling  :06:04.0+ @ 2291, parent: :05:00.0
> [  340.781494] Modules linked in: ebtable_filter ebtables ip6table_filter 
> ip6_tables hidp xt_addrtype xt_conntrack ipt_MASQUERADE 
> nf_nat_masquerade_ipv4 iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 
> nf_nat_ipv4 nf_nat nf_conntrack bridge stp llc ppdev parport_pc parport 
> dm_thin_pool dm_persistent_data dm_bio_prison dm_bufio fuse 
> vmw_vsock_vmci_transport vsock dm_mod vmw_vmci iptable_filter cmac bnep 
> intel_rapl x86_pkg_temp_thermal intel_powerclamp snd_hda_codec_hdmi 
> binfmt_misc nls_ascii nls_cp437 coretemp arc4 b43 kvm_intel vfat fat kvm 
> irqbypass crct10dif_pclmul crc32_pclmul mac80211 ghash_clmulni_intel pcbc ssb 
> mmc_core aesni_intel rng_core aes_x86_64 crypto_simd pcmcia iTCO_wdt 
> glue_helper iTCO_vendor_support cryptd r8188eu(C) pcmcia_core uvcvideo btusb 
> btrtl btbcm btintel videobuf2_vmalloc snd_hda_codec_cirrus
> [  340.781541]  snd_hda_codec_generic bluetooth videobuf2_memops intel_cstate 
> videobuf2_v4l2 drbg videobuf2_core applesmc ansi_cprng snd_hda_intel videodev 
> cfg80211 ecdh_generic input_polldev intel_uncore joydev rfkill media 
> intel_rapl_perf snd_hda_codec sbs sg bcma snd_hda_core thunderbolt acpi_als 
> snd_hwdep sbshc kfifo_buf snd_pcm industrialio apple_gmux mei_me lpc_ich 
> snd_timer shpchp mei snd mfd_core evdev soundcore apple_bl pcspkr ac 
> efi_pstore nfsd auth_rpcgss nfs_acl lockd grace sunrpc efivars loop efivarfs 
> ip_tables x_tables autofs4 hid_apple ext4 crc16 mbcache jbd2 fscrypto btrfs 
> zstd_decompress zstd_compress xxhash raid10 raid456 async_raid6_recov 
> async_memcpy async_pq async_xor async_tx xor hid_generic usbhid hid raid6_pq 
> libcrc32c crc32c_generic raid1 raid0 multipath linear md_mod bcm5974
> [  340.781593]  ax88179_178a usbnet mii sd_mod nouveau ahci libahci mxm_wmi 
> xhci_pci i915 libata wmi crc32c_intel ehci_pci xhci_hcd ttm i2c_algo_bit 
> ehci_hcd scsi_mod i2c_i801 drm_kms_helper usbcore drm video button
> [  340.781610] CPU: 3 PID: 2207 Comm: kworker/u16:95 Tainted: GWC 
>   4.15.0+ #9
> [  340.781612] Hardware name: Apple Inc. MacBookPro10,1/Mac-C3EC7CD22292981F, 
> BIOS MBP101.88Z.00EE.B0A.1509111559 09/11/2015
> [  340.781618] Workqueue: events_unbound async_run_entry_fn
> [  340.781623] RIP: 0010:tb_cfg_write+0x6f/0xd0 [thunderbolt]
> [  340.781625] RSP: 0018:b8a383a43d00 EFLAGS: 00010286
> [  340.781627] RAX:  RBX: 964cd317da80 RCX: 
> 0006
> [  

Bug#844788: 4.16-rc3 fails to resume on MacBookPro10,1 -

2018-03-10 Thread Pavel Machek
Hi!

> > Ok, I've just tested linux-next, and it works ok for me on thinkpad
> > x60. (But that's probably rather different configuration from the
> > macbook).
> >
> > Unfortunately, I could not deduce anything useful from the
> > backtraces. Andrew, could you try v4.15 with KPTI disabled ?
> >
> > Thanks,
> > 
> > Pavel
> 
> This is 4.15 kernel with KPTI disabled:
> % grep PAGE_TABLE .config
> # CONFIG_PAGE_TABLE_ISOLATION is not set
> 
> As I expected it appears no more infomative to me.
> 
> What I really need is some clue as to what is supposed to be happening
> at this point.

You may want to add some printks to see where it hangs.

But maybe before that, you may want to test CPU hotplug, and make sure
s2ram works, etc...

Perhaps basic-pm-debugging.txt is good place to start?

Best regards,
Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) 
http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html


signature.asc
Description: Digital signature


Bug#844788: 4.16-rc3 fails to resume on MacBookPro10,1 -

2018-03-03 Thread Pavel Machek
On Sat 2018-03-03 11:00:28, Rafael J. Wysocki wrote:
> On Sat, Mar 3, 2018 at 10:24 AM, Pavel Machek <pa...@ucw.cz> wrote:
> > Hi!
> >
> > On Sat 2018-03-03 17:27:36, Andrew Worsley wrote:
> >> On 3 March 2018 at 16:41, Andrew Worsley <amwors...@gmail.com> wrote:
> >> > Basically hangs on resuming after decompressing. The last statement
> >> > displayed is "resume: Image successfully loaded"
> >> >  - I attach a photo as I can't get access to it
> >> 
> >> > Bug https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=844788
> >> >
> >> > I couldn't get anything from the function keys with this latest kernel.
> >> ...
> >>
> >> By plugging in a USB keyboard I can get sysrq stuff to work - but
> >> stupidly the kernel disables all the useful ones so I will have to
> >> compile a new kernel with it set to 1 so I can get some traces.
> >> Really annoyed by this default setting, presumably from debian?
> >> Wished there was a boot command line option to configure the allowed
> > options.
> >
> > So hibernation is broken on x86-64?
> >
> > Ideas for debugging:
> >
> > 1) get that sysrq to work, backtrace where it is hung would be very
> > useful.
> >
> > 2) try v4.15.
> 
> That one works for me FWIW.
> 
> > 3) try without KPTI enabled. Probably noone knows how it interacts
> > with that...
> >
> > (And 4), we should really start doing some periodic testing of hibernation).
> 
> I do that, but the period is not particularly short ...

Ok, I've just tested linux-next, and it works ok for me on thinkpad
x60. (But that's probably rather different configuration from the
macbook).

Unfortunately, I could not deduce anything useful from the
backtraces. Andrew, could you try v4.15 with KPTI disabled ?

Thanks,
Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) 
http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html


signature.asc
Description: Digital signature


Bug#844788: 4.16-rc3 fails to resume on MacBookPro10,1 -

2018-03-03 Thread Pavel Machek
On Sat 2018-03-03 11:00:28, Rafael J. Wysocki wrote:
> On Sat, Mar 3, 2018 at 10:24 AM, Pavel Machek <pa...@ucw.cz> wrote:
> > Hi!
> >
> > On Sat 2018-03-03 17:27:36, Andrew Worsley wrote:
> >> On 3 March 2018 at 16:41, Andrew Worsley <amwors...@gmail.com> wrote:
> >> > Basically hangs on resuming after decompressing. The last statement
> >> > displayed is "resume: Image successfully loaded"
> >> >  - I attach a photo as I can't get access to it
> >> 
> >> > Bug https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=844788
> >> >
> >> > I couldn't get anything from the function keys with this latest kernel.
> >> ...
> >>
> >> By plugging in a USB keyboard I can get sysrq stuff to work - but
> >> stupidly the kernel disables all the useful ones so I will have to
> >> compile a new kernel with it set to 1 so I can get some traces.
> >> Really annoyed by this default setting, presumably from debian?
> >> Wished there was a boot command line option to configure the allowed
> > options.
> >
> > So hibernation is broken on x86-64?
> >
> > Ideas for debugging:
> >
> > 1) get that sysrq to work, backtrace where it is hung would be very
> > useful.
> >
> > 2) try v4.15.
> 
> That one works for me FWIW.

Aha, good. I assume x86-64? Do you have kpti enabled?


> > 3) try without KPTI enabled. Probably noone knows how it interacts
> > with that...
> >
> > (And 4), we should really start doing some periodic testing of hibernation).
> 
> I do that, but the period is not particularly short ...

Well, testing -rc1 once in 3 months should be plenty enough...

Best regards,
Pavel

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) 
http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html


signature.asc
Description: Digital signature


Bug#844788: 4.16-rc3 fails to resume on MacBookPro10,1 -

2018-03-03 Thread Pavel Machek
Hi!

On Sat 2018-03-03 17:27:36, Andrew Worsley wrote:
> On 3 March 2018 at 16:41, Andrew Worsley  wrote:
> > Basically hangs on resuming after decompressing. The last statement
> > displayed is "resume: Image successfully loaded"
> >  - I attach a photo as I can't get access to it
> 
> > Bug https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=844788
> >
> > I couldn't get anything from the function keys with this latest kernel.
> ...
> 
> By plugging in a USB keyboard I can get sysrq stuff to work - but
> stupidly the kernel disables all the useful ones so I will have to
> compile a new kernel with it set to 1 so I can get some traces.
> Really annoyed by this default setting, presumably from debian?
> Wished there was a boot command line option to configure the allowed
options.

So hibernation is broken on x86-64?

Ideas for debugging:

1) get that sysrq to work, backtrace where it is hung would be very
useful.

2) try v4.15.

3) try without KPTI enabled. Probably noone knows how it interacts
with that...

(And 4), we should really start doing some periodic testing of hibernation).

Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) 
http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html


signature.asc
Description: Digital signature


Bug#767362: joystick: fftest loops when its stdin is closed

2014-10-30 Thread Pavel Machek
Source: joystick
Version: 1:1.4.3-1
Severity: normal

Dear Maintainer,

fftest enters loop when attempting to control it from pipe:

root@n900:~# echo 5 | fftest /dev/input/event2
Enter effect number, -1 to exit
Now Playing: Weak Rumble
Enter effect number, -1 to exit
Now Playing: Weak Rumble
Enter effect number, -1 to exit
Now Playing: Weak Rumble
...

Expected behaviour would probably be to exit when EOF is reached on
stdin.

-- System Information:
Architecture: arm


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#764384: man-db: man fails to run from deleted dicrectory

2014-10-07 Thread Pavel Machek
Package: man-db
Version: 2.7.0.2-1
Severity: normal

Dear Maintainer,

man fails to run from deleted directory.

pavel@amd:~$ man man
pavel@amd:~$ cd /tmp/
pavel@amd:/tmp$ mkdir delme
pavel@amd:/tmp$ cd delme/
pavel@amd:/tmp/delme$ rmdir /tmp/delme
pavel@amd:/tmp/delme$ man man
man: can't change directory to '': No such file or directory
man: command exited with status 255: (cd   LESS=-ix8RmPm Manual page
man(1) ?ltline %lt?L/%L.:byte %bB?s/%s..?e (END):?pB %pB\%.. (press h
for help or q to quit)$PM Manual page man(1) ?ltline %lt?L/%L.:byte
%bB?s/%s..?e (END):?pB %pB\%.. (press h for help or q to quit)$
MAN_PN=man(1) pager -s)
pavel@amd:/tmp/delme$ 

-- System Information:
Debian Release: jessie/sid
  APT prefers testing-updates
  APT policy: (500, 'testing-updates'), (500, 'testing')
Architecture: i386 (x86_64)

Kernel: Linux 3.17.0-rc4 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages man-db depends on:
ii  bsdmainutils   9.0.5
ii  debconf [debconf-2.0]  1.5.53
ii  dpkg   1.17.13
ii  groff-base 1.22.2-8
ii  libc6  2.19-11
ii  libgdbm3   1.8.3-13
ii  libpipeline1   1.3.1-1
ii  zlib1g 1:1.2.8.dfsg-2

man-db recommends no packages.

Versions of packages man-db suggests:
ii  chromium [www-browser]   37.0.2062.120-2
pn  groffnone
ii  iceweasel [www-browser]  31.1.0esr-1
ii  less 458-3
ii  lynx-cur [www-browser]   2.8.9dev1-2
ii  w3m [www-browser]0.5.3-17

-- debconf information:
  man-db/auto-update: true
* man-db/install-setuid: true

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) 
http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#695182: [RFC] Reproducible OOM with just a few sleeps

2013-02-01 Thread Pavel Machek
On Thu 2013-01-31 23:38:27, Phil Turmel wrote:
 On 01/31/2013 10:13 PM, paul.sz...@sydney.edu.au wrote:
  [trim /] Does not that prove that PAE is broken?
 
 Please, Paul, take *yes* for an answer.  It is broken.  You've received
 multiple dissertations on why it is going to stay that way.  Unless you
 fix it yourself, and everyone seems to be politely wishing you the best
 of luck with that.

It is not Paul's job to fix PAE. It is job of whoever broke it to do
so.

If it is broken with 2GB of RAM, it is clearly not the known lowmem
starvation issue, it is something else... and probably worth
debugging.

So, Paul, if you have time and interest... Try to find some old kernel
version where sleep test works with PAE. Hopefully there is one. Then
do bisection... author of the patch should then fix it. (And if not,
at least you have patch you can revert.)

rjw is worth cc-ing at that point.
Pavel 
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) 
http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#695182: [RFC] Reproducible OOM with just a few sleeps

2013-01-30 Thread Pavel Machek
Hi!

  I understand that more RAM leaves less lowmem. What is unacceptable is
  that PAE crashes or freezes with OOM: it should gracefully handle the
  issue. Noting that (for a machine with 4GB or under) PAE fails where the
  HIGHMEM4G kernel succeeds and survives.
 
 You have found a delta, but you're not really making apples-to-apples
 comparisons.  The page tables (a huge consumer of lowmem in your bug
 reports) have much more overhead on a PAE kernel.  A process with a
 single page faulted in with PAE will take at least 4 pagetable pages
 (it's 7 in practice for me with sleeps).  It's 2 pages minimum (and in
 practice with sleeps) on HIGHMEM4G.
 
 There's probably a bug here.  But, it's incredibly unlikely to be seen
 in practice on anything resembling a modern system.  The 'sleep' issue
 is easily worked around by upgrading to a 64-bit kernel, or using

Are you saying that HIGHMEM configuration with 4GB ram is not expected
to work?
Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) 
http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#691575: mpg123: repeatable segfault on specific mp3 file

2012-10-27 Thread Pavel Machek
Package: mpg123
Version: 1.14.2+svn20120622-1
Severity: important


mpg123 crashes on specific mp3 file. Crash seems to be reproducible.

pavel@amd:/data/picture/zoo7$ mpg123 /data/mp3/czech/mladek/1/02.O\
sněhurce.mp3 
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2 and 3.
Version 0.59o (1998/Feb/08). Written and copyrights by Michael Hipp.
Uses code from various people. See 'README' for more!
THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK!
Title  : O SNEHURCE  Artist: IVAN MLADEK   
Album  : POHADKY A JINE POVIDACKYYear: 1994, Genre: 28
Comment:

Directory: /data/mp3/czech/mladek/1/
Playing MPEG stream from 02.O sněhurce.mp3 ...
MPEG 1.0 layer III, 128 kbit/s, 44100 Hz joint-stereo
Segmentation fault (core dumped)
pavel@amd:/data/picture/zoo7$ gdb `which mpg123` core
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type show
copying
and show warranty for details.
This GDB was configured as i486-linux-gnu.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/...
Reading symbols from /usr/local/bin/mpg123...(no debugging symbols
found)...done.
[New LWP 5148]

warning: Can't read pathname for load map: Input/output error.
Failed to read a valid object file image from memory.
Core was generated by `mpg123 /data/mp3/czech/mladek/1/02.O
sněhurce.mp3'.
Program terminated with signal 11, Segmentation fault.
#0  __memcpy_ia32 () at ../sysdeps/i386/i686/multiarch/../memcpy.S:75
75  ../sysdeps/i386/i686/multiarch/../memcpy.S: No such file or
directory.
(gdb) bt
#0  __memcpy_ia32 () at ../sysdeps/i386/i686/multiarch/../memcpy.S:75
#1  0x0805cf90 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb) 



-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 3.6.0-rc6+ (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=cs_CZ (charmap=)
Shell: /bin/sh linked to /bin/dash

Versions of packages mpg123 depends on:
ii  libc6   2.13-35  Embedded GNU C Library: Shared lib
ii  libltdl72.4.2-1.1A system independent dlopen wrappe
ii  libmpg123-0 1.14.2+svn20120622-1 MPEG layer 1/2/3 audio decoder (sh

Versions of packages mpg123 recommends:
ii  libasoun 1.0.25-4shared library for ALSA applicatio
ii  libjack0 1:0.121.3+20120418git75e3e20b-2 JACK Audio Connection Kit (librari
ii  libopena 1:1.13-2Software implementation of the Ope
ii  libporta 19+svn2021-1Portable audio I/O - shared librar
ii  oss-comp 2   Open Sound System (OSS) compatibil

Versions of packages mpg123 suggests:
ii  alsa-utils1.0.25-3   Utilities for configuring and usin
pn  jackd none (no description available)
pn  nas   none (no description available)
ii  oss-compat2  Open Sound System (OSS) compatibil
pn  oss4-base none (no description available)
ii  pulseaudio1.1-3.2PulseAudio sound server

-- no debconf information


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#689659: mpg123 segfaults on specific file

2012-10-09 Thread Pavel Machek

 Holy macaroni! I totally overlooked that:
 
 Version 0.59o (1998/Feb/08). Written and copyrights by Michael Hipp.

Oops, sorry about that. I had old version of mpg123 hiding in
/usr/local. I can confirm that right version works as expected...

Should I search for brown paper bag?
Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) 
http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#689659: mpg123 segfaults on specific file

2012-10-06 Thread Pavel Machek
On Sat 2012-10-06 03:18:55, Thomas Orgis wrote:
 Am Fri, 5 Oct 2012 22:06:49 +0200
 schrieb Pavel Machek pa...@ucw.cz: 
 
  I cut this from the offending file, and it still causes the
  crash. Is it enough for debugging?
 
 Thanks for the data and no, I cannot reproduce a crash on my main
 system (not debian). I get valgrind to complain about overlapping
 memcpy in the ALSA library, but that's not new and not specific to the
 file.

It does crash even if I just let it decode into a file. So that should
not be alsa.

 I checked a i686 chroot, too, no issue. I guess I'd need to whip out a debian
 install/vm to reproduce. I have intentionally very old glibc here;
 before that infamous memcpy optimization ... which we very well might
 be dealing with here. But a test LD_PRELOAD checking for overlapping
 memcpy didn't trigger, neither.

What is the infamous memcpy optimization? I tried brief google, but
nothing. This? http://lwn.net/Articles/417881/ It has no details :-(.

 Can you run under valgrind to check memory issues?

Hopefully I got valgrind right...

pavel@amd:/tmp$ efence mpg123 mp3.bug/cut.mp3 
-bash: efence: command not found
pavel@amd:/tmp$ valgrind mpg123 mp3.bug/cut.mp3 
==18936== Memcheck, a memory error detector
==18936== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et
al.
==18936== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright
info
==18936== Command: mpg123 mp3.bug/cut.mp3
==18936== 
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2 and 3.
Version 0.59o (1998/Feb/08). Written and copyrights by Michael Hipp.
Uses code from various people. See 'README' for more!
THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK!
Title  : O SNEHURCE  Artist: IVAN MLADEK   
Album  : POHADKY A JINE POVIDACKYYear: 1994, Genre: 28
Comment:

Directory: mp3.bug/
Playing MPEG stream from cut.mp3 ...
MPEG 1.0 layer III, 128 kbit/s, 44100 Hz joint-stereo
Illegal Audio-MPEG-Header 0xc7ae608a at offset 0x4e3.
Skipped 159 bytes in input.
==18936== 
==18936== Process terminating with default action of signal 11
(SIGSEGV): dumping core
==18936==  Bad permissions for mapped region at address 0x805EFFC
==18936==at 0x4028E3C: memcpy (in
/usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
==18936==by 0x804D322: ??? (in /usr/local/bin/mpg123)
==18936== Invalid read of size 1
==18936==at 0x4008D11: check_match.8610 (dl-lookup.c:134)
==18936==by 0x400936A: do_lookup_x (dl-lookup.c:273)
==18936==by 0x4009661: _dl_lookup_symbol_x (dl-lookup.c:729)
==18936==by 0x400DC15: _dl_fixup (dl-runtime.c:119)
==18936==by 0x40139BF: _dl_runtime_resolve (dl-trampoline.S:37)
==18936==by 0x4035E0F: ??? (in /tmp/mp3.bug/cut.mp3)
==18936==by 0x804D322: ??? (in /usr/local/bin/mpg123)
==18936==  Address 0x1eb is not stack'd, malloc'd or (recently) free'd
==18936== 
==18936== 
==18936== Process terminating with default action of signal 11
(SIGSEGV)
==18936==  Access not within mapped region at address 0x1EB
==18936==at 0x4008D11: check_match.8610 (dl-lookup.c:134)
==18936==by 0x400936A: do_lookup_x (dl-lookup.c:273)
==18936==by 0x4009661: _dl_lookup_symbol_x (dl-lookup.c:729)
==18936==by 0x400DC15: _dl_fixup (dl-runtime.c:119)
==18936==by 0x40139BF: _dl_runtime_resolve (dl-trampoline.S:37)
==18936==by 0x4035E0F: ??? (in /tmp/mp3.bug/cut.mp3)
==18936==by 0x804D322: ??? (in /usr/local/bin/mpg123)
==18936==  If you believe this happened as a result of a stack
==18936==  overflow in your program's main thread (unlikely but
==18936==  possible), you can try to increase the size of the
==18936==  main thread stack using the --main-stacksize= flag.
==18936==  The main thread stack size used in this run was 8388608.
==18936== 
==18936== HEAP SUMMARY:
==18936== in use at exit: 33,808 bytes in 2 blocks
==18936==   total heap usage: 2 allocs, 0 frees, 33,808 bytes
allocated
==18936== 
==18936== LEAK SUMMARY:
==18936==definitely lost: 0 bytes in 0 blocks
==18936==indirectly lost: 0 bytes in 0 blocks
==18936==  possibly lost: 0 bytes in 0 blocks
==18936==still reachable: 33,808 bytes in 2 blocks
==18936== suppressed: 0 bytes in 0 blocks
==18936== Rerun with --leak-check=full to see details of leaked memory
==18936== 
==18936== For counts of detected and suppressed errors, rerun with: -v
==18936== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 13 from
6)
Segmentation fault



-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) 
http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#689659: mpg123 segfaults on specific file

2012-10-05 Thread Pavel Machek
On Fri 2012-10-05 15:35:43, Thomas Orgis wrote:
 Am Thu, 4 Oct 2012 22:51:03 +0200
 schrieb Pavel Machek pa...@ucw.cz: 
 
  Crash seems to be repeatable. Possible security problem?
 
 Could you send me the offending file?

I cut this from the offending file, and it still causes the
crash. Is it enough for debugging?

Thanks,   
Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) 
http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html


cut.mp3
Description: audio/mpeg


Bug#689659: mpg123 segfaults on specific file

2012-10-04 Thread Pavel Machek
Subject: mpg123 segfaults on specific mp3 file
Package: mpg123
Version: 1.14.2+svn20120622-1
Severity: important

*** Please type your report below this line ***

Crash seems to be repeatable. Possible security problem?

pavel@amd:/data/picture/zoo7$ mpg123 /data/mp3/czech/mladek/1/02.O\
sněhurce.mp3 
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2 and 3.
Version 0.59o (1998/Feb/08). Written and copyrights by Michael Hipp.
Uses code from various people. See 'README' for more!
THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK!
Title  : O SNEHURCE  Artist: IVAN MLADEK   
Album  : POHADKY A JINE POVIDACKYYear: 1994, Genre: 28
Comment:

Directory: /data/mp3/czech/mladek/1/
Playing MPEG stream from 02.O sněhurce.mp3 ...
MPEG 1.0 layer III, 128 kbit/s, 44100 Hz joint-stereo
Segmentation fault (core dumped)
pavel@amd:/data/picture/zoo7$ gdb `which mpg123` core
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type show
copying
and show warranty for details.
This GDB was configured as i486-linux-gnu.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/...
Reading symbols from /usr/local/bin/mpg123...(no debugging symbols
found)...done.
[New LWP 5148]

warning: Can't read pathname for load map: Input/output error.
Failed to read a valid object file image from memory.
Core was generated by `mpg123 /data/mp3/czech/mladek/1/02.O
sněhurce.mp3'.
Program terminated with signal 11, Segmentation fault.
#0  __memcpy_ia32 () at ../sysdeps/i386/i686/multiarch/../memcpy.S:75
75  ../sysdeps/i386/i686/multiarch/../memcpy.S: No such file or
directory.
(gdb) bt
#0  __memcpy_ia32 () at ../sysdeps/i386/i686/multiarch/../memcpy.S:75
#1  0x0805cf90 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb) 



-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 3.6.0-rc6+ (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=cs_CZ (charmap=)
Shell: /bin/sh linked to /bin/dash

Versions of packages mpg123 depends on:
ii  libc6   2.13-35  Embedded GNU C Library: Shared lib
ii  libltdl72.4.2-1.1A system independent dlopen wrappe
ii  libmpg123-0 1.14.2+svn20120622-1 MPEG layer 1/2/3 audio decoder (sh

Versions of packages mpg123 recommends:
ii  libasoun 1.0.25-4shared library for ALSA applicatio
ii  libjack0 1:0.121.3+20120418git75e3e20b-2 JACK Audio Connection Kit (librari
ii  libopena 1:1.13-2Software implementation of the Ope
ii  libporta 19+svn2021-1Portable audio I/O - shared librar
ii  oss-comp 2   Open Sound System (OSS) compatibil

Versions of packages mpg123 suggests:
ii  alsa-utils1.0.25-3   Utilities for configuring and usin
pn  jackd none (no description available)
pn  nas   none (no description available)
ii  oss-compat2  Open Sound System (OSS) compatibil
pn  oss4-base none (no description available)
ii  pulseaudio1.1-3.2PulseAudio sound server

-- no debconf information


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#689187: python-gps: fakegps segfaults on NMEA file

2012-09-30 Thread Pavel Machek
Hi!

  fakegps segfaults on many nmea logs I could find. It does so even
  without all the debugging options.
 
 please provide the nmea files.

The file I can reproduce it is rather big (7MB). I tried shorter
sections, but no luck. I can send it to you, but would prefer it not
be redistributed; would that be feasible?

 Also please checkout the gpsd git repository or use apt-get to retrieve the
 source and check if they files from the regression tests fail on your 
 machine, too.
 
 In case they also fail...
 
  Kernel: Linux 3.6.0-rc6+ (SMP w/2 CPU cores)
 
 please try the same with a kernel shipped with Debian and

Sorry, that is not easy to do.

  Locale: LANG=C, LC_CTYPE=cs_CZ (charmap=)
 
 please also try it with en_US.UTF-8 or C as LC_TYPE.

Does not seem to help.

pavel@amd:~/misc/gpx$ LC_CTYPE=C gpsfake test.nmea
Processing test.nmea
gpsd:ERROR: can't bind to IPv4 port 2947, Address already in use
gpsd:ERROR: maybe gpsd is already running!
gpsd:ERROR: can't create IPv6 socket
Segmentation fault (core dumped)
pavel@amd:~/misc/gpx$ 

 Also please try to get a core file, see which process segfaulted and provide a
 backtrace.

root@amd:/home/pavel/misc/gpx# file core
core: ELF 32-bit LSB core file Intel 80386, version 1 (SYSV),
SVR4-style, from '/usr/bin/python /usr/bin/gpsfake test.nmea'

It looks like gpsd does not have to be involved.

pavel@amd:~/misc/gpx$ cat zlutak_klepec_toris_dolanka.nmea  test.nmea
pavel@amd:~/misc/gpx$ ls -al test.nmea
-rw-r--r-- 1 pavel pavel 7172096 Sep 30 20:22 test.nmea
pavel@amd:~/misc/gpx$ gpsfake test.nmea
Processing test.nmea
gpsd:ERROR: can't bind to IPv4 port 2947, Address already in use
gpsd:ERROR: maybe gpsd is already running!
gpsd:ERROR: can't create IPv6 socket
Segmentation fault (core dumped)
pavel@amd:~/misc/gpx$ 

pavel@amd:~/misc/gpx$ gdb /usr/bin/python core 
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type show
copying
and show warranty for details.
This GDB was configured as i486-linux-gnu.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/...
Reading symbols from /usr/bin/python...(no debugging symbols
found)...done.

warning: core file may not match specified executable file.
[New LWP 11904]

warning: Can't read pathname for load map: Input/output error.
[Thread debugging using libthread_db enabled]
Using host libthread_db library
/lib/i386-linux-gnu/i686/cmov/libthread_db.so.1.
Failed to read a valid object file image from memory.
Core was generated by `/usr/bin/python /usr/bin/gpsfake
zlutak_klepec_toris_dolanka.nmea'.
Program terminated with signal 11, Segmentation fault.
#0  __memmove_ia32 () at
../sysdeps/i386/i686/multiarch/../memmove.S:77
77  ../sysdeps/i386/i686/multiarch/../memmove.S: No such file or
directory.
(gdb) 
(gdb) quit
pavel@amd:~/misc/gpx$ python --version
Python 2.7.3rc2
pavel@amd:~/misc/gpx$ 

dmesg says:

gpsfake[11746]: segfault at 8c1a000 ip b741f6a3 sp bfba3818 error 4 in
libc-2.13.so[b73a8000+156000]

Aha, I can gdb it to get better backtrace:

Program received signal SIGSEGV, Segmentation fault.
__memmove_ia32 () at ../sysdeps/i386/i686/multiarch/../memmove.S:77
77 ../sysdeps/i386/i686/multiarch/../memmove.S: No such
file or directory.
(gdb) bt
#0  __memmove_ia32 () at
../sysdeps/i386/i686/multiarch/../memmove.S:77
#1  0xb7a74c89 in ?? () from
/usr/lib/python2.7/dist-packages/gps/packet.so
#2  0xb7a78f1f in packet_get () from
/usr/lib/python2.7/dist-packages/gps/packet.so
#3  0xb7a746a3 in ?? () from
/usr/lib/python2.7/dist-packages/gps/packet.so
#4  0x0813b279 in PyEval_EvalFrameEx ()
#5  0x081417f0 in PyEval_EvalCodeEx ()
#6  0x0819bf62 in ?? ()
#7  0x080bfe6f in PyObject_Call ()
#8  0x0809be57 in ?? ()
#9  0x080bfe6f in PyObject_Call ()
#10 0x080c03f9 in PyEval_CallObjectWithKeywords ()
#11 0x080e346c in PyInstance_New ()
#12 0x080bfe6f in PyObject_Call ()
#13 0x0813ba96 in PyEval_EvalFrameEx ()
#14 0x081417f0 in PyEval_EvalCodeEx ()
#15 0x0813b6ac in PyEval_EvalFrameEx ()
#16 0x081417f0 in PyEval_EvalCodeEx ()
#17 0x0819ad51 in PyRun_FileExFlags ()
#18 0x0819c61a in PyRun_SimpleFileExFlags ()
#19 0x0819d6a8 in Py_Main ()
#20 0x0806109b in main ()
(gdb) 

Is there some easy way to dump the offending sentence.
Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) 
http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#689187: python-gps: fakegps segfaults on NMEA file

2012-09-30 Thread Pavel Machek
Hi!

   fakegps segfaults on many nmea logs I could find. It does so even
   without all the debugging options.
  
  please provide the nmea files.
 
 The file I can reproduce it is rather big (7MB). I tried shorter
 sections, but no luck. I can send it to you, but would prefer it not
 be redistributed; would that be feasible?

Ok, here's smaller testcase, I did a bit of bisection and now I have
smaller test.

Can you try with this one?
Pavel
$GPRMC,104513.00,A,5000.562828,N,01444.944695,E,000.0,294.0,091010,,,A*5A

$GPGSV,2,1,07,30,83,096,25,25,74,102,25,29,73,236,24,31,45,298,27*76

$GPGSV,2,2,07,02,30,052,19,12,36,106,17,14,09,238,*42

$GPGSA,A,3,02,25,29,30,316.7,3.0,6.0*39

$PGLOR,FIX,1.0,ST,U,NS,A,DR,N,PS,A*2A

$GPGGA,104514.00,5000.562828,N,01444.944695,E,1,05,3.0,450.0,M,0.193000,M,0.0100515,*4B

$GPRMC,104514.00,A,5000.562828,N,01444.944695,E,000.0,294.0,091010,,,A*5D

$GPGSV,2,1,07,30,83,096,24,25,74,102,26,29,73,236,29,31,45,298,29*77

$GPGSV,2,2,07,02,30,052,18,12,36,106,16,14,09,238,*42

$GPGSA,A,3,02,25,29,30,316.7,3.0,6.0*39

$PGLOR,FIX,1.0,ST,U,NS,A,DR,N,PS,A*2A

$GPGGA,104515.00,5000.562828,N,01444.944695,E,1,06,3.0,450.0,M,0.193000,M,0.0100515,*49

$GPRMC,104515.00,A,5000.562828,N,01444.944695,E,000.0,294.0,091010,,,A*5C

$GPGSV,2,1,07,30,83,096,24,25,74,102,25,29,73,236,28,31,45,298,28*74

$GPGSV,2,2,07,12,36,106,24,02,30,052,23,14,09,238,*4B

$GPGSA,A,3,02,12,25,29,30,31,,,6.7,3.0,6.0*3A

$PGLOR,FIX,1.0,ST,U,NS,A,DR,N,PS,A*2A

$GPGGA,104516.00,5000.562828,N,01444.944695,E,1,06,3.0,450.0,M,0.195000,M,0.0100515,*4C

$GPRMC,104516.00,A,5000.562828,N,01444.944695,E,000.0,294.0,091010,,,A*5F

$GPGSV,2,1,07,30,83,096,26,25,74,102,25,29,73,236,30,31,45,298,30*76

$GPGSV,2,2,07,12,36,106,23,02,30,052,22,14,09,238,18*44

$GPGSA,A,3,02,12,25,29,30,31,,,6.7,3.0,6.0*3A

$PGLOR,FIX,1.0,ST,U,NS,A,DR,N,PS,A*2A

$GPGGA,104517.00,5000.562828,N,01444.944695,E,1,06,3.0,450.0,M,0.195000,M,0.0100515,*4D

$GPRMC,104517.00,A,5000.562828,N,01444.944695,E,000.0,294.0,091010,,,A*5E

$GPGSV,2,1,07,30,83,096,24,25,74,102,24,29,73,236,28,31,45,298,29*74

$GPGSV,2,2,07,12,36,106,22,02,30,052,21,14,09,238,17*49

$GPGSA,A,3,02,12,25,29,30,31,,,6.7,3.0,6.0*3A

$PGLOR,FIX,1.0,ST,U,NS,A,DR,N,PS,A*2A

$GPGGA,104518.00,5000.558697,N,01444.925270,E,1,06,0.5,450.0,M,0.194000,M,0.0100515,*4E

$GPRMC,104518.00,A,5000.558697,N,01444.925270,E,000.0,294.0,091010,,,A*5A

$GPGSV,2,1,07,30,83,096,30,25,74,102,29,29,73,236,33,31,45,298,32*7C

$GPGSV,2,2,07,12,36,106,21,02,30,052,24,14,09,238,17*4F

$GPGSA,A,3,02,12,25,29,30,31,,,1.1,0.5,1.0*3A

$PGLOR,FIX,1.0,ST,U,NS,A,DR,N,PS,A*2A

$GPGGA,104519.00,5000.558697,N,01444.925270,E,1,06,3.0,450.0,M,0.195000,M,0.0100515,*48

$GPRMC,104519.00,A,5000.558697,N,01444.925270,E,000.0,294.0,091010,,,A*5B

$GPGSV,2,1,07,30,83,096,28,25,74,102,27,29,73,236,29,31,45,298,30*72

$GPGSV,2,2,07,12,36,106,19,02,30,052,23,14,09,238,16*42

$GPGSA,A,3,02,12,25,29,30,31,,,6.7,3.0,6.0*3A

$PGLOR,FIX,1.0,ST,U,NS,A,DR,N,PS,A*2A

$GPGGA,104520.00,5000.556611,N,01444.920008,E,1,06,0.5,450.0,M,0.195001,M,0.0100515,*4D

$GPRMC,104520.00,A,5000.556611,N,01444.920008,E,000.0,294.0,091010,,,A*59

$GPGSV,2,1,07,30,83,096,27,25,74,102,23,29,73,236,27,31,45,298,30*77

$GPGSV,2,2,07,12,36,106,22,02,30,052,22,14,09,238,18*45

$GPGSA,A,3,02,12,25,29,30,31,,,1.1,0.5,1.0*3A

$PGLOR,FIX,1.0,ST,U,NS,A,DR,N,PS,A*2A

$GPGGA,104521.00,5000.556611,N,01444.920008,E,1,06,3.0,450.0,M,0.194000,M,0.0100515,*4A

$GPRMC,104521.00,A,5000.556611,N,01444.920008,E,000.0,294.0,091010,,,A*58

$GPGSV,2,1,07,30,83,096,26,25,74,102,22,29,73,236,31,31,45,298,28*79

$GPGSV,2,2,07,12,36,106,21,02,30,052,21,14,09,238,17*4A

$GPGSA,A,3,02,12,25,29,30,31,,,6.7,3.0,6.0*3A

$PGLOR,FIX,1.0,ST,U,NS,A,DR,N,PS,A*2A

$GPGGA,104522.00,5000.556611,N,01444.920008,E,1,06,3.0,450.0,M,0.194000,M,0.0100515,*49

$GPRMC,104522.00,A,5000.556611,N,01444.920008,E,000.0,294.0,091010,,,A*5B

$GPGSV,2,1,07,30,83,096,25,25,74,102,21,29,73,236,31,31,45,298,27*76

$GPGSV,2,2,07,12,36,106,20,02,30,052,20,14,09,238,17*4A

$GPGSA,A,3,02,12,25,29,30,31,,,6.7,3.0,6.0*3A

$PGLOR,FIX,1.0,ST,U,NS,A,DR,N,PS,A*2A

$GPGGA,104523.00,5000.556611,N,01444.920008,E,1,06,3.0,450.0,M,0.194000,M,0.0100515,*48

$GPRMC,104523.00,A,5000.556611,N,01444.920008,E,000.0,294.0,091010,,,A*5A

$GPGSV,2,1,07,30,83,096,27,25,74,102,26,29,73,236,30,31,45,298,28*7D

$GPGSV,2,2,07,12,36,106,19,02,30,052,24,14,09,238,16*45

$GPGSA,A,3,02,12,25,29,30,31,,,6.7,3.0,6.0*3A

$PGLOR,FIX,1.0,ST,U,NS,A,DR,N,PS,A*2A

$GPGGA,104524.00,5000.552988,N,01444.910386,E,1,06,0.5,449.0,M,0.192001,M,0.0100515,*4B

$GPRMC,104524.00,A,5000.552988,N,01444.910386,E,000.0,294.0,091010,,,A*50

$GPGSV,2,1,07,30,83,096,26,25,74,102,24,29,73,236,35,31,45,298,27*74

$GPGSV,2,2,07,12,36,106,24,02,30,052,23,14,09,238,15*4F

$GPGSA,A,3,02,12,25,29,30,31,,,1.1,0.5,1.0*3A

$PGLOR,FIX,1.0,ST,U,NS,A,DR,N,PS,A*2A


Bug#689187: python-gps: fakegps segfaults on NMEA file

2012-09-29 Thread Pavel Machek
Package: python-gps
Version: 3.6-4
Severity: important


fakegps segfaults on many nmea logs I could find. It does so even
without all the debugging options.
 

root@amd:/home/pavel/misc/gpx#  gpsfake -p -v -D 5 -b  -c 1
zlutak_klepec_toris_dolanka.nmea 
Processing zlutak_klepec_toris_dolanka.nmea...gpsd:PROG: control
socket opened at /tmp/gpsfake-20137.sock
gpsd:INFO: launching (Version 3.6)
gpsd:IO: opening IPv4 socket
gpsd:IO: opening IPv6 socket
gpsd:ERROR: can't create IPv6 socket
gpsd:INFO: listening on port 2947
gpsd:PROG: NTPD shmat(872382469,0,0) succeeded, segment 0
gpsd:PROG: NTPD shmat(872415244,0,0) succeeded, segment 1
gpsd:PROG: NTPD shmat(872448013,0,0) succeeded, segment 2
gpsd:PROG: NTPD shmat(872480782,0,0) succeeded, segment 3
gpsd:PROG: successfully connected to the DBUS system bus
gpsd:PROG: changing to group 20
gpsd:INFO: running with effective group ID 20
gpsd:INFO: running with effective user ID 65534
gpsd:INFO: startup at 2012-09-29T22:03:25.000Z (1348956205)
gpsfake: gps_add(zlutak_klepec_toris_dolanka.nmea, 4800)
Segmentation fault (core dumped)
root@amd:/home/pavel/misc/gpx# 


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 3.6.0-rc6+ (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=cs_CZ (charmap=)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-gps depends on:
ii  libbluetooth34.99-2  Library to use the BlueZ Linux Blu
ii  libc62.13-35 Embedded GNU C Library: Shared lib
ii  libdbus-1-3  1.6.0-1 simple interprocess messaging syst
ii  python   2.7.3~rc2-1 interactive high-level object-orie

Versions of packages python-gps recommends:
ih  gpsd  3.6-4  Global Positioning System - daemon

python-gps suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#689188: python-gps: fakegps segfaults on NMEA file

2012-09-29 Thread Pavel Machek
Subject: python-gps: fakegps segfaults on NMEA file
Package: python-gps
Version: 3.6-4
Severity: important

*** Please type your report below this line ***

fakegps segfaults on many nmea logs I could find. It does so even
without all the debugging options.


root@amd:/home/pavel/misc/gpx#  gpsfake -p -v -D 5 -b  -c 1
zlutak_klepec_toris_dolanka.nmea
Processing zlutak_klepec_toris_dolanka.nmea...gpsd:PROG: control
socket opened at /tmp/gpsfake-20137.sock
gpsd:INFO: launching (Version 3.6)
gpsd:IO: opening IPv4 socket
gpsd:IO: opening IPv6 socket
gpsd:ERROR: can't create IPv6 socket
gpsd:INFO: listening on port 2947
gpsd:PROG: NTPD shmat(872382469,0,0) succeeded, segment 0
gpsd:PROG: NTPD shmat(872415244,0,0) succeeded, segment 1
gpsd:PROG: NTPD shmat(872448013,0,0) succeeded, segment 2
gpsd:PROG: NTPD shmat(872480782,0,0) succeeded, segment 3
gpsd:PROG: successfully connected to the DBUS system bus
gpsd:PROG: changing to group 20
gpsd:INFO: running with effective group ID 20
gpsd:INFO: running with effective user ID 65534
gpsd:INFO: startup at 2012-09-29T22:03:25.000Z (1348956205)
gpsfake: gps_add(zlutak_klepec_toris_dolanka.nmea, 4800)
Segmentation fault (core dumped)
root@amd:/home/pavel/misc/gpx#

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 3.6.0-rc6+ (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=cs_CZ (charmap=)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-gps depends on:
ii  libbluetooth34.99-2  Library to use the BlueZ
Linux Blu
ii  libc62.13-35 Embedded GNU C Library:
Shared lib
ii  libdbus-1-3  1.6.0-1 simple interprocess
messaging syst
ii  python   2.7.3~rc2-1 interactive high-level
object-orie

Versions of packages python-gps recommends:
ih  gpsd  3.6-4  Global Positioning System
- daemon

python-gps suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#577449: fbset manual page is outdated

2010-04-11 Thread Pavel Machek
Package: fbset
Version: 2.1-24
Severity: minor


Manual page seems outdated:

  fbset -fb /dev/fb0 vga

...does not really work, you have to use 640x480-60.

SEE ALSO
   fb.modes(5), fbdev(4), /usr/share/doc/fbset/FAQ

FAQ file does not exist, it is FAQ.gz


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.34-rc3 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=cs_CZ (charmap=ISO-8859-2)
Shell: /bin/sh linked to /bin/bash

Versions of packages fbset depends on:
ii  libc6 2.10.2-2   GNU C Library: Shared libraries
ii  makedev   2.3.1-89   creates device files in /dev
ii  udev  150-2  /dev/ and hotplug management daemo

fbset recommends no packages.

fbset suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#534731: stardict broadcasts clipboard context over network

2009-06-26 Thread Pavel Machek
Package: stardict
Version: 3.0.1-4.1
Severity: grave
Tags: security
Justification: user security hole


In default config enable net dict is selected, it attempts to grab
clipboard and sends it over network... Unfortunately, not nearly all
data in clipboard are meant for translation, and some may be pretty
sensitive.

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.30 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=cs_CZ (charmap=ISO-8859-2)
Shell: /bin/sh linked to /bin/bash

Versions of packages stardict depends on:
ii  stardict-gnome3.0.1-4.1  International dictionary for GNOME

stardict recommends no packages.

stardict suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#532748: apt-cross(1) references emdebian-tools(1), but that does not exist

2009-06-11 Thread Pavel Machek
Package: apt-cross
Version: 0.13.0
Severity: normal


apt-cross(1) references emdebian-tools(1), but that does not
exist. And yes, I installed emdebian-tools.

-- Package-specific info:

-- apt-cache policy request denied --


-- /etc/apt/sources.list --

# See sources.list(5) for more information, especialy
# Remember that you can only use http, ftp or file URIs
# CDROMs are managed through the apt-cdrom tool.
deb http://ftp.debian.org/debian testing main contrib non-free
deb http://non-us.debian.org/debian-non-US testing/non-US main contrib non-free

# openembedded build environment.
#deb http://www.openembedded.org/dl/ packages/

#deb http://debian-x86-64.alioth.debian.org sarge main

#for scratchbox
#deb http://scratchbox.org/debian/ ./

# For vlc-and dcss.
#deb ftp://ftp.videolan.org/pub/videolan/debian i386/
#deb-src ftp://ftp.videolan.org/pub/videolan/debian sources/


# Uncomment if you want the apt-get source function to work
deb-src http://http.us.debian.org/debian unstable main contrib non-free

#deb ftp://sunsite.mff.cuni.cz/pub/debian unstable main contrib non-free
#deb ftp://sunsite.mff.cuni.cz/pub/debian-non-US unstable non-US/main 
non-US/non-free
#deb-src ftp://sunsite.mff.cuni.cz/pub/debian unstable main contrib non-free
#deb-src ftp://sunsite.mff.cuni.cz/pub/debian-non-US unstable non-US/main 
non-US/non-free

-- /etc/apt/sources.list.d/emdebian.sources.list --

# The Emdebian toolchain repository
deb http://www.emdebian.org/debian/ testing main
deb-src http://www.emdebian.org/debian/ testing main

-- System Information:
Debian Release: 5.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-rc8 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=cs_CZ (charmap=ISO-8859-2)
Shell: /bin/sh linked to /bin/bash

Versions of packages apt-cross depends on:
ii  apt   0.7.21 Advanced front-end for dpkg
ii  dpkg-cross2.5.0  tools for cross compiling Debian p
ii  dpkg-dev  1.15.2 Debian package development tools
ii  libcache-apt-perl 0.13.0 object oriented apt cache perl bin
ii  libterm-progressbar-perl  2.09-5 Perl module to print a progress ba
ii  libwww-perl   5.813-1WWW client/server library for Perl
ii  perl  5.10.0-22  Larry Wall's Practical Extraction 
ii  sudo  1.6.9p17-1 Provide limited super user privile

apt-cross recommends no packages.

apt-cross suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#507875: nbd-server: confusing man page

2008-12-05 Thread Pavel Machek
Package: nbd-server
Version: 1:2.9.11-1
Severity: normal

Man page for nbd-server is confusing:

-l host list is mentioned in 'SYNOPSIS'

down below, host list is mentioned without '-l', and it tells me that
host list   is not a list but a filename.

Perhaps 'host list' should be replaced with 'host list file' ?

(and at the very end of manpage, date is 01 mei, instead of 01 may)

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: armel (armv5tel)

Kernel: Linux 2.6.24 (PREEMPT)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages nbd-server depends on:
ii  adduser   3.110  add and remove users and groups
ii  debconf [debconf-2.0] 1.5.23 Debian configuration management sy
ii  libc6 2.7-13 GNU C Library: Shared libraries
ii  libglib2.0-0  2.16.6-1   The GLib library of C routines
ii  ucf   3.0010 Update Configuration File: preserv

nbd-server recommends no packages.

nbd-server suggests no packages.

-- debconf information excluded



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#458769: icecc does not work if g++ is not installed

2008-01-02 Thread Pavel Machek
Package: icecc
Version: 0.7.14
Severity: important


(The bug happened on another machine that has poor network
connectivity).

If g++ is not installed, iceccd fails to start, and icecc is
useless. No error message is given, and nothing useful is in the
logs. (I got clues using strace).

-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-5-amd64
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#383852: [Suspend-devel] Fw: Does not properly resume from S3 with kernel 2.6.17

2006-08-28 Thread Pavel Machek
Hi!

  Christian can't get s2ram to work to work with a 2.6.17 kernel, although
  it is in the whitelist. It used to work with 2.6.16. Do you now of any
  regressions? 
  Could anybody give him a hand in trying to get it to work again?
  
  In the mean time I asked him to try with minimal number modules loaded.
 
 I indeed tryied with way much less modules lodaded, without success:

Well, you still have way too many modules. What about init=/bin/bash
boot?

Pavel

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) 
http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#383852: [Suspend-devel] Fw: Does not properly resume from S3 with kernel 2.6.17

2006-08-28 Thread Pavel Machek
Hi!

In the mean time I asked him to try with minimal number modules loaded.
   
   I indeed tryied with way much less modules lodaded, without success:
  
  Well, you still have way too many modules. What about init=/bin/bash
  boot?
 
 Well, with this, the system does not wake up either.
 
 Moreover, it *also* does not wake up properly when I boot with the
 2.6.16 kernel.
 
 Indeed, when the suspend to RAM happens while the machine is in text
 mode, the system usually does not wake up properly, either with 2.6.16
  or 2.6.17
 
 The wake up works well when initiated in graphics mode with the 2.6.16
 kernel.

Okay, can we get report at bugzilla.kernel.org (with all the
details, cc me and rafael)? I'm getting lost...

No, I do not know what the difference between .16 and .17 is... and we
may need to do git bisect after all..
Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) 
http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#354254: hibernate: Suspend to disk doesn't work: cannot find swap device

2006-02-25 Thread Pavel Machek
On So 25-02-06 17:06:49, Victor Porton wrote:
 On 25-Feb-2006 Pavel Machek wrote:
  
  On So 25-02-06 05:37:27, Victor Porton wrote:
  On 22-Feb-2006 Pavel Machek wrote:
   On Sat 25-02-06 00:17:04, Victor Porton wrote:
   Suspend to disk does not work for me with the following dmesg message:
   
   PM: writing image.
   swsusp: cannot find swap device, try swapon -a.
  
  ...
  
   I run 2.6.15.4 kernel (not from Debian distribution).
   
   Do you have resume=/dev/hda2 on kernel command line?
  
  Yes.
  
  Is driver for /dev/hda built-in (not a module)?
 
 I'm not an idiot, so drivers for IDE (/dev/hda is IDE), ext2, and ext3 are 
 built-in.

Great. Find out what is wrong and report it to proper bugzilla,
then. That's likely *kernel* bugzilla, not Debian bugzilla for
self-compiled kernel.

Pavel
-- 
Web maintainer for suspend.sf.net (www.sf.net/projects/suspend) wanted...


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#354254: hibernate: Suspend to disk doesn't work: cannot find swap device

2006-02-24 Thread Pavel Machek
On Sat 25-02-06 00:17:04, Victor Porton wrote:
 Package: hibernate
 Version: 1.12-1
 Severity: normal
 X-Debbugs-CC: [EMAIL PROTECTED], [EMAIL PROTECTED]
 
 Suspend to disk does not work for me with the following dmesg message:
 
 PM: writing image.
 swsusp: cannot find swap device, try swapon -a.
 
 Yes, my swap was turned on and I checked it again. I HAVE run swapon -a.
 $ swapon -s
 FilenameTypeSizeUsed   
 Priority
 /dev/hda2   partition   254008  0   -1
 
 I run 2.6.15.4 kernel (not from Debian distribution).

Do you have resume=/dev/hda2 on kernel command line?

-- 
Thanks, Sharp!


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#354254: hibernate: Suspend to disk doesn't work: cannot find swap device

2006-02-24 Thread Pavel Machek

On So 25-02-06 05:37:27, Victor Porton wrote:
 On 22-Feb-2006 Pavel Machek wrote:
  On Sat 25-02-06 00:17:04, Victor Porton wrote:
  Suspend to disk does not work for me with the following dmesg message:
  
  PM: writing image.
  swsusp: cannot find swap device, try swapon -a.
 
 ...
 
  I run 2.6.15.4 kernel (not from Debian distribution).
  
  Do you have resume=/dev/hda2 on kernel command line?
 
 Yes.

Is driver for /dev/hda built-in (not a module)?
Pavel
-- 
Web maintainer for suspend.sf.net (www.sf.net/projects/suspend) wanted...


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#323305: proj: Funny inputs result in wrong output

2005-08-15 Thread Pavel Machek
Package: proj
Version: 4.4.9-1
Severity: normal


[EMAIL PROTECTED]:~$ echo '90N 14E 90S 18E' | geod +ellps=WGS84 -I +units=km

results in 

-2147483648d-2147483648'nan-2147483648d-2147483648'nannan

...which looks like a bug to me. I'd expect something close to
2km...

[EMAIL PROTECTED]:~$ echo '89N 14E 89S 99E' | geod +ellps=WGS84 -I +units=km
137d29'31.508  -42d30'28.492  19839.241

..which seems okay but

[EMAIL PROTECTED]:~$ echo '90N 14E 89S 18E' | geod +ellps=WGS84 -I +units=km
4d  180d111.694

...which is way too short. Going from north pole close to south pole
should take more than 112 km.

Ok, maybe core of the problem is that it does not check for invalid
inputs, and 90N is invalid input for some reason? 91N definitely
should be invalid ;-)

[EMAIL PROTECTED]:~$ echo '91N 14E 89S 99E' | geod +ellps=WGS84 -I +units=km
132d29'44.351  -132d29'44.351 150.914


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.13-rc4-mm1
Locale: LANG=C, LC_CTYPE=cs_CZ (charmap=ISO-8859-2)

Versions of packages proj depends on:
ii  libc6   2.3.2.ds1-22 GNU C Library: Shared libraries an

proj recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#305412: p2c segfaults on specific input

2005-04-19 Thread Pavel Machek
Package: p2c
Severity: grave
Tags: security
Justification: user security hole


I'm not really sure if this can be exploited, but I'm getting
segfaults while trying to convert specific program... It is small
enough to inline:

{
Copyright 2005 Zdenek Hrdina, distribute under GPLv2
}

program prepocet;
var lat,lon,alt,x1,y1,z1,x2,y2,z2:double;

procedure transformace(xs,ys,zs:double; var xn,yn,zn:double);
{transformace pravouhlych souradnic}
const
 {koeficienty transformace ze systemu WGS-84 do systemu S-JTSK}
 dx=-574.4; dy=-119.4; dz=-421.6;
 wz=2.5e-5;wy=3.825e-6;wx=3.162e-5;
 m=-7.39e-6;

begin
 xn:=dx+(1+m)*(xs+wz*ys-wy*zs);
 yn:=dy+(1+m)*(-wz*xs+ys+wx*zs);
 zn:=dz+(1+m)*(wy*xs-wx*ys+zs);
end;

procedure BLH_xyz(B,L,H:double; var x,y,z:double);
{vypocet pravouhlych souradnic z geodetickych souradnic}
const
 {parametry elipsoidu WGS-84}
 a=6378137.0;f_1=298.257223563;
var
 ro,e2:double;
begin
 e2:=1-sqr(1-1/f_1); ro:=a/sqrt(1-e2*sqr(sin(B)));
 x:=(ro+H)*cos(B)*cos(L);
 y:=(ro+H)*cos(B)*sin(L);
 z:=((1-e2)*ro+H)*sin(B);
end;

procedure xyz_BLH(x,y,z:double; var B,L,H:double);
{vypocet geodetickych souradnic z pravouhlych souradnic}
const
 {parametry Besselova elipsoidu}
 a=6377397.15508; f_1=299.152812853;
var
 a_b,e2,theta,st,ct,p,t:double;
begin
 a_b:=f_1/(f_1-1); p:=sqrt(sqr(x)+sqr(y)); e2:=1-sqr(1-1/f_1);
 theta:=arctan(z*a_b/p);st:=sin(theta);ct:=cos(theta);
 t:=(z+e2*a_b*a*sqr(st)*st)/(p-e2*a*sqr(ct)*ct);
 B:=arctan(t);
 H:=sqrt(1+sqr(t))*(p-a/sqrt(1+(1-e2)*sqr(t)));
 L:=2*arctan(y/(p+x));
end;


begin
 lat:=(50+6/60+11.8/3600)*pi/180;
 lon:=(14+23/60+33.7/3600)*pi/180;
 alt:=297.1;
 BLH_xyz(lat,lon,alt,x1,y1,z1);
 writeln(x1:10:2);writeln(y1:10:2);writeln(z1:10:2);
 transformace(x1,y1,z1,x2,y2,z2);
 writeln(x2:10:2);writeln(y2:10:2);writeln(z2:10:2);
 xyz_BLH(x2,y2,z2,lat,lon,alt);
 writeln(lat*180/pi:10:7);
 writeln(lon*180/pi:10:7);
 writeln(alt:7:3);
end.


When p2c is run on program above, it ends with

#undef wz
#undef wy
#undef wx
#undef m


/*parametry elipsoidu WGS-84*/

#define a   6378137.0
Segmentation fault (core dumped)
[EMAIL PROTECTED]:~/sf/timetab/cz/geo$ gdb `which p2c` core
GNU gdb 6.3-debian
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type show copying to see the conditions.
There is absolutely no warranty for GDB.  Type show warranty for
details.
This GDB was configured as i386-linux...(no debugging symbols found)
Using host libthread_db library /lib/tls/libthread_db.so.1.

(no debugging symbols found)
Core was generated by `p2c'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libc.so.5...(no debugging symbols
found)...done.
Loaded symbols for /lib/libc.so.5
Reading symbols from /lib/ld-linux.so.1...(no debugging symbols
found)...done.
Loaded symbols for /lib/ld-linux.so.1
#0  0xb7f06787 in malloc () from /lib/libc.so.5
(gdb) [EMAIL PROTECTED]:~/sf/timetab/cz/geo$

Pavel
-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.12-rc2
Locale: LANG=C, LC_CTYPE=cs_CZ (charmap=ISO-8859-2)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]